.menu-ngang {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.menu-ngang > li {
  position: relative;
  list-style: none;
}

.menu-ngang .menu-cha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0 !important;
  line-height: inherit;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.menu-ngang .co-menu-con:hover > .menu-cha,
.menu-ngang .co-menu-con:focus-within > .menu-cha,
.menu-ngang .co-menu-con.dang-mo > .menu-cha,
.menu-ngang .co-menu-con > .menu-cha.dang-chon {
  color: #ffffff !important;
  background: rgba(168, 85, 247, 0.25) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

/* Caret chevron for dropdown toggle */
.menu-ngang .menu-cha::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #c084fc;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.menu-ngang .co-menu-con:hover > .menu-cha::after,
.menu-ngang .co-menu-con:focus-within > .menu-cha::after,
.menu-ngang .co-menu-con.dang-mo > .menu-cha::after {
  transform: rotate(180deg);
}

.menu-ngang .menu-con {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  display: none;
  min-width: 195px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #181028;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.menu-ngang .co-menu-con:hover > .menu-con,
.menu-ngang .co-menu-con:focus-within > .menu-con,
.menu-ngang .co-menu-con.dang-mo > .menu-con {
  display: block;
}

.menu-ngang .menu-con li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-ngang .menu-con a {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  padding: 9px 12px;
  font-size: 0.86rem;
  color: #e2e8f0;
  border-radius: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.15s ease;
}

.menu-ngang .menu-con a:hover,
.menu-ngang .menu-con a:focus-visible,
.menu-ngang .menu-con a.dang-chon {
  color: #ffffff !important;
  background: rgba(168, 85, 247, 0.35) !important;
}

.menu-ngang .co-menu-con:hover > .menu-cha,
.menu-ngang .co-menu-con.dang-mo > .menu-cha,
.menu-ngang .co-menu-con > .menu-cha.dang-chon {
  color: #ffffff !important;
  background: rgba(168, 85, 247, 0.38) !important;
  border-color: #a855f7 !important;
}

@media (max-width: 768px) {
  .thanh-menu {
    overflow: visible !important;
  }

  .menu-ngang {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 6px !important;
    padding: 4px 0 6px !important;
    width: 100% !important;
  }

  .menu-ngang > li {
    position: relative;
    flex: 0 0 auto;
  }

  .menu-ngang a,
  .menu-ngang .menu-cha {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.2s ease;
  }

  .menu-ngang a:hover,
  .menu-ngang a.dang-chon,
  .menu-ngang .dang-chon,
  .menu-ngang .co-menu-con.dang-mo > .menu-cha {
    color: #ffffff !important;
    background: rgba(168, 85, 247, 0.38) !important;
    border-color: #a855f7 !important;
  }

  .menu-ngang .menu-con {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 185px;
    z-index: 999;
  }
}

/* Nút Đối tác trên thanh menu Header (giống Booking.com) */
.menu-ngang a.nut-menu-hop-tac {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 15px !important;
  border-radius: 999px !important;
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.menu-ngang a.nut-menu-hop-tac:hover {
  color: #ffffff !important;
  background: rgba(245, 158, 11, 0.32) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  .menu-ngang a.nut-menu-hop-tac {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
}

