/* ==========================================================================
   DELTA TRAVEL - APPLE LIQUID GLASS HEADER & TOPBAR (header.css)
   Ported 100% from deltatravel-main design system (Pure CSS, HTML, JS)
   ========================================================================== */

/* Header cố định phủ lớp kính Liquid Glass lên đỉnh màn hình */
header.sticky-top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════════════════════════════════════════
   HERO 3D NAVBAR MODE (GOOGLE PURE WHITE LUXURY GLASS)
   - Giữ nền kính trắng tinh khiết, chữ đen sắc nét cao cấp
   - Logo DELTA TRAVEL đen tuyền, thanh Tab Capsule trắng viền mỏng
   - Chuyển động mượt mà Google Standard Easing
   ════════════════════════════════════════════════════════════ */
header.sticky-top.hero-transparent:not(.ai-chat-open) .topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .topbar a {
  color: #1f2937 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .topbar a:hover {
  color: #000000 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .topbar-divider {
  background-color: #e5e7eb !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .navbar-delta {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03) !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .brand-title {
  color: #000000 !important;
  text-shadow: none !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .brand-subtitle {
  color: #64748b !important;
  text-shadow: none !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .brand-icon-crystal {
  background: #ffffff !important;
  border-radius: 11px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .brand-logo-img {
  border-radius: 10px !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-nav-dock {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-nav-link {
  color: #374151 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-nav-link:hover {
  color: #000000 !important;
  background: #f1f5f9 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-nav-link.active {
  color: #ffffff !important;
  background: #000000 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-user-glass {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  color: #000000 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-user-glass span {
  color: #000000 !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .liquid-btn-icon {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #000000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .btn-explore-liquid {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1.5px solid #000000 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

/* Topbar trên cùng - Pure White Chữ Đen */
.topbar {
  background: #ffffff;
  color: #4b5563;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.topbar .container {
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.topbar a {
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: #000000;
}

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: #e5e7eb;
  margin: 0 0.65rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Ghi chú cam kết: ẩn bớt khi màn hình chưa đủ rộng để topbar luôn 1 hàng */
.topbar-note {
  white-space: nowrap;
  color: #334155 !important;
  font-size: 0.78rem;
}

@media (max-width: 1399.98px) {
  .topbar-note,
  .topbar-divider.topbar-divider-note {
    display: none !important;
  }
}

.topbar-badge {
  background: #f59e0b;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
}

/* ════════════════════════════════════════════════════════════
   LIQUID GLASS NAVBAR CONTAINER
   ════════════════════════════════════════════════════════════ */
.navbar-delta {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0.65rem 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-delta.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

/* ════════════════════════════════════════════════════════════
   1. BRAND LOGO (Matching deltatravel-main glass-brand-logo)
   Pure Luxury Black "DELTA TRAVEL" & Neutral Tagline
   ════════════════════════════════════════════════════════════ */
.navbar-brand-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  user-select: none;
  flex-shrink: 0;
}

.brand-icon-crystal {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 1.5px rgba(255, 255, 255, 1);
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand-delta:hover .brand-icon-crystal {
  transform: scale(1.06);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

/* DELTA TRAVEL: Solid Black, No Orange/Teal Split */
.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #000000 !important;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: block;
  line-height: 1.1;
}

/* KHÁM PHÁ & NGHỈ DƯỠNG: Neutral-600 Uppercase */
.brand-subtitle {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #52525b !important;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 575.98px) {
  .brand-subtitle {
    display: none !important;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  .brand-icon-crystal {
    width: 36px;
    height: 36px;
  }
  .brand-logo-img {
    width: 28px;
    height: 28px;
  }
}

/* ════════════════════════════════════════════════════════════
   2. LIQUID GLASS NAV DOCK (Floating Pill Capsule)
   NO COLUMN WRAPPING (white-space: nowrap)
   ════════════════════════════════════════════════════════════ */
.liquid-nav-dock {
  position: relative;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 24px -2px rgba(0, 0, 0, 0.06),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 1.5px 0 rgba(0, 0, 0, 0.03);
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

/* Đảm bảo thanh Tab Capsule nằm CHÍNH GIỮA 100% màn hình, không bị lệch do độ rộng 2 bên */
@media (min-width: 992px) {
  .navbar-delta .container-fluid {
    position: relative !important;
  }
  .liquid-nav-dock {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 10;
  }
}

/* Mọi tab nav tuyệt đối nằm trên một hàng ngang, không bị ngắt thành cột dọc */
.liquid-nav-link {
  position: relative;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3f3f46 !important;
  text-decoration: none !important;
  white-space: nowrap !important; /* KHÔNG BAO GIỜ BỊ RỚT DÒNG CỘT DỌC */
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  line-height: 1.2;
}

@media (min-width: 1400px) {
  .liquid-nav-link {
    padding: 6px 14px;
    font-size: 13px;
    gap: 5px;
  }
}

.liquid-nav-link:hover {
  color: #000000 !important;
  font-weight: 700;
  background: #f1f5f9;
  transform: translateY(-1px);
}

.liquid-nav-link.active {
  color: #ffffff !important;
  font-weight: 700;
  background: #000000 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  border-radius: 9999px !important;
}

/* Đốm ngọc hổ phách biểu thị tab đang kích hoạt (Amber bead indicator) */
.liquid-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.95);
}

/* Badge số đơn hàng trên tab Đơn của tôi */
.booking-counter-badge {
  font-size: 10px;
  padding: 0.15rem 0.4rem;
  font-weight: 800;
}

/* ════════════════════════════════════════════════════════════
   3. RIGHT SECTION: USER MENU PILL & EXPLORE BUTTON
   Matching deltatravel-main glass-user-menu.tsx
   ════════════════════════════════════════════════════════════ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Liquid User Glass Pill */
.liquid-user-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 4px 12px 4px 5px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none !important;
  color: #000000 !important;
  user-select: none;
}

.liquid-user-glass:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.user-avatar-gold-rim {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #fcd34d;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.liquid-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #18181b;
  white-space: nowrap;
}

/* Nút đăng xuất nhỏ dạng glass capsule tròn */
.liquid-logout-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.liquid-logout-btn:hover {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
  transform: scale(1.08);
}

/* Nút icon phong cách Liquid Glass bo tròn (Wishlist & Mobile Menu Toggle) */
.liquid-btn-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #18181b;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 1.5px rgba(255, 255, 255, 0.95);
  padding: 0;
  text-decoration: none !important;
}

.liquid-btn-icon:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: #000000;
}

.liquid-btn-icon .liquid-icon-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #f59e0b;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  padding: 0 3px;
}

/* ════════════════════════════════════════════════════════════
   GLASS MOBILE DRAWER DROPDOWN
   Tuyệt đối ẩn trên desktop (>=992px), mở mượt mà trên Mobile
   ════════════════════════════════════════════════════════════ */
.glass-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1rem 1.25rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.16);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: fadeInDrawer 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-mobile-drawer.show {
  display: block !important;
}

@media (min-width: 1200px) {
  .glass-mobile-drawer {
    display: none !important;
  }
}

.mobile-nav-item {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #27272a;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
  background: #f4f4f5;
  color: #000000;
}

@keyframes fadeInDrawer {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Luxury Button: Khám phá Tour */
.btn-explore-liquid {
  background: #09090b;
  color: #ffffff !important;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  white-space: nowrap;
  user-select: none;
}

.btn-explore-liquid:hover {
  background: #000000;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Dropdown menu của tài khoản */
.auth-dropdown-menu {
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  min-width: 250px;
}

.auth-dropdown-header {
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 6px;
}

.auth-dropdown-header .user-name {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.auth-dropdown-menu .dropdown-item {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-dropdown-menu .dropdown-item:hover {
  background: #f1f5f9;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE CHO MOBILE & TABLET
   ════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .liquid-nav-dock {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   AI CONCIERGE CHAT OPEN MODE FOR HEADER
   ════════════════════════════════════════════════════════════ */
header.sticky-top.ai-chat-open {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

header.sticky-top.ai-chat-open .topbar {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

header.sticky-top.ai-chat-open .topbar a {
  color: rgba(255, 255, 255, 0.88) !important;
}

header.sticky-top.ai-chat-open .brand-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

header.sticky-top.ai-chat-open .brand-subtitle {
  color: #64748b !important;
  text-shadow: none !important;
}

header.sticky-top.ai-chat-open .brand-icon-crystal {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

header.sticky-top.ai-chat-open .liquid-nav-dock {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

header.sticky-top.ai-chat-open .liquid-nav-link {
  color: #475569 !important;
}

header.sticky-top.ai-chat-open .liquid-nav-link:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

header.sticky-top.ai-chat-open .liquid-nav-link.active {
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ════════════════════════════════════════════════════════════
   BILINGUAL TOGGLE SWITCH (VI 🇻🇳 / EN 🇬🇧) - LIQUID CAPSULE DOCK STYLE
   Placed directly to the left of the login / user auth container
   ════════════════════════════════════════════════════════════ */
.lang-switch-capsule {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  margin-right: 0.65rem;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .lang-switch-capsule {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

header.sticky-top:not(.hero-transparent) .lang-switch-capsule,
header.sticky-top.ai-chat-open .lang-switch-capsule,
.paper-topbar .lang-switch-capsule,
.navbar-scrolled .lang-switch-capsule {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.lang-switch-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: none;
  background: transparent;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  text-decoration: none;
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .lang-switch-btn {
  color: rgba(255, 255, 255, 0.85);
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .lang-switch-btn:hover {
  color: #ffffff;
}

.lang-switch-btn .lang-flag {
  font-size: 0.88rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-0.5px);
}

.lang-flag-svg {
  width: 17px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  display: inline-block;
  vertical-align: middle;
}

.lang-switch-btn.active {
  color: #0f172a !important;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

header.sticky-top.hero-transparent:not(.ai-chat-open) .lang-switch-btn.active {
  color: #0f172a !important;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ════════════════════════════════════════════════════════════
   HEADER RESPONSIVE - TỰ CO GIÃN THEO MỌI ĐỘ RỘNG MÀN HÌNH
   ════════════════════════════════════════════════════════════ */

/* Nút CTA "Khám phá Tour" chỉ hiển thị khi màn hình đủ rộng */
.btn-explore-liquid {
  display: none;
}

@media (min-width: 1600px) {
  .btn-explore-liquid {
    display: inline-flex;
  }
}

/* Desktop vừa (1200 - 1919px): dock nav nằm trong dòng chảy flex, canh giữa an toàn */
@media (min-width: 1200px) and (max-width: 1919.98px) {
  .liquid-nav-dock {
    position: static !important;
    transform: none !important;
    margin: 0 auto !important;
  }
}

/* Desktop nhỏ (1200 - 1599px): thu gọn khoảng cách để không tràn header */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .liquid-nav-dock {
    padding: 3px 5px !important;
  }
  .liquid-nav-link {
    padding: 5px 8px;
    font-size: 12px;
  }
  .header-actions {
    gap: 0.45rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .liquid-nav-link {
    padding: 5px 6px;
    font-size: 11.5px;
  }
}

/* Ẩn bớt 1 tab nav khi màn hình chưa đủ rộng (vẫn có trong menu / topbar) */
@media (max-width: 1599.98px) {
  .nav-hide-under-1600 {
    display: none !important;
  }
}

@media (max-width: 1199.98px) {
  .header-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar-delta .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .lang-switch-capsule {
    margin-right: 0;
  }
  .lang-switch-btn {
    padding: 0.28rem 0.38rem;
  }
  .lang-switch-btn .lang-label {
    display: none;
  }
  .brand-title {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
  }
  .brand-icon-crystal {
    width: 32px;
    height: 32px;
  }
}
