/* Buy And Fly Custom Brand & Search Styling */

:root {
  --baf-primary: #0F172A;
  --baf-accent: #0284C7;
  --baf-amber: #F59E0B;
  --baf-card-bg: rgba(255, 255, 255, 0.98);
}



.baf-glass-card {
  background: var(--baf-card-bg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Header Navbar Links */
.navbar-nav {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
}

@media (min-width: 1280px) {
  .navbar-nav {
    gap: 1.75rem !important;
  }
}

.navbar-nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
  padding: 0.5rem 0.25rem !important;
  white-space: nowrap !important;
}

/* Dark header (Homepage header) - ALWAYS white text and icons in BOTH light and dark themes */
.site-header-dark .navbar-nav > li > a,
.site-header-dark .navbar-nav > li > a > span,
.site-header-dark .navbar-nav > li > a > i,
html.light .site-header-dark .navbar-nav > li > a,
html.light .site-header-dark .navbar-nav > li > a > span,
html.light .site-header-dark .navbar-nav > li > a > i,
html:not(.dark) .site-header-dark .navbar-nav > li > a,
html:not(.dark) .site-header-dark .navbar-nav > li > a > span,
html:not(.dark) .site-header-dark .navbar-nav > li > a > i,
html.dark .site-header-dark .navbar-nav > li > a,
html.dark .site-header-dark .navbar-nav > li > a > span,
html.dark .site-header-dark .navbar-nav > li > a > i {
  color: #ffffff !important;
}

.site-header-dark .navbar-nav > li > a:hover,
.site-header-dark .navbar-nav > li > a:hover > span,
.site-header-dark .navbar-nav > li > a:hover > i,
html.light .site-header-dark .navbar-nav > li > a:hover,
html:not(.dark) .site-header-dark .navbar-nav > li > a:hover,
html.dark .site-header-dark .navbar-nav > li > a:hover {
  color: #84cc16 !important; /* Citrus lime-green */
}

/* Ensure right action buttons (theme-btn, search, auth, hamburger) remain white on homepage in light theme */
.site-header-dark .theme-btn,
.site-header-dark .theme-btn svg,
.site-header-dark .theme-btn svg path,
.site-header-dark .quick-search,
.site-header-dark .quick-search i,
.site-header-dark button[title*="Sign In"],
.site-header-dark button[title*="Sign In"] i,
html.light .site-header-dark .theme-btn,
html.light .site-header-dark .theme-btn svg,
html.light .site-header-dark .theme-btn svg path,
html.light .site-header-dark .quick-search,
html.light .site-header-dark .quick-search i,
html.light .site-header-dark button[title*="Sign In"],
html.light .site-header-dark button[title*="Sign In"] i {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.site-header-dark .baf-header-menu-btn .baf-bar,
html.light .site-header-dark .baf-header-menu-btn .baf-bar {
  background-color: #ffffff !important;
}

/* Desktop Hero Alignment: Clear Header Logo cleanly & maintain balanced layout */
@media (min-width: 1024px) {
  .baf-hero-card-fullscreen > div > div:first-child {
    position: relative !important;
    top: 75px !important;
  }
  .baf-hero-header-text {
    margin-bottom: 12px !important;
  }
  #search-section {
    margin-bottom: 14px !important;
  }
}

/* Light header (Subpages) in Light Mode */
html:not(.dark) .site-header:not(.site-header-dark) .navbar-nav > li > a,
html.light .site-header:not(.site-header-dark) .navbar-nav > li > a {
  color: #1e293b !important;
}
html:not(.dark) .site-header:not(.site-header-dark) .navbar-nav > li > a:hover,
html.light .site-header:not(.site-header-dark) .navbar-nav > li > a:hover {
  color: #084c4f !important;
}

/* Subpage Headers in Dark Mode (When theme toggle is clicked) */
html.dark .site-header:not(.site-header-dark) .navbar-nav > li > a,
.dark .site-header:not(.site-header-dark) .navbar-nav > li > a {
  color: #ffffff !important;
}
html.dark .site-header:not(.site-header-dark) .navbar-nav > li > a:hover,
.dark .site-header:not(.site-header-dark) .navbar-nav > li > a:hover {
  color: #84cc16 !important;
}

/* Submenu dropdown item colors in dark/light mode */
html:not(.dark) .site-header .sub-menu a,
html.light .site-header .sub-menu a {
  color: #1e293b !important;
}
html.dark .site-header .sub-menu a,
.dark .site-header .sub-menu a {
  color: #f1f5f9 !important;
}

/* Header Hamburger / Menu Drawer 3-Line Button */
.baf-header-menu-btn {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  position: relative !important;
}
.baf-header-menu-btn .baf-bar {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  background-color: #ffffff !important;
  border-radius: 9999px !important;
  margin: 2.5px 0 !important;
  transition: all 0.25s ease !important;
}

/* Prominent Header Logo Uniform Sizing */
.site-header div[class*="z-9"]:has(a > img[src*="logo_1"]),
.site-header div.h-20:has(img[src*="logo_1"]),
.site-header .h-20.lg\:w-40,
.site-header .h-20.w-30,
.site-header .logo-box {
  min-width: 210px !important;
}
.site-header a > img[src*="logo_1"] {
  height: 66px !important;
  max-width: 225px !important;
  width: auto !important;
  object-fit: contain !important;
  transform: scale(1.12);
  transform-origin: left center;
}
@media (max-width: 640px) {
  .site-header a > img[src*="logo_1"] {
    height: 50px !important;
    max-width: 160px !important;
    transform: none;
  }
}

/* Ensure Dark/Light Logo visibility toggling is strictly respected */
html:not(.dark) .site-header a > img[src*="logo_1"].dark\:block,
html.light .site-header a > img[src*="logo_1"].dark\:block {
  display: none !important;
}
html.dark .site-header a > img[src*="logo_1"].dark\:hidden {
  display: none !important;
}
html.dark .site-header a > img[src*="logo_1"].dark\:block {
  display: block !important;
}

/* Footer Logo - 30% Bigger (h-12 / 48px -> 66px with scale, max-w-48.25 -> 280px) */
footer .widget_about .mb-6 {
  max-width: 280px !important;
}
footer .widget_about a > img[src*="logo_1"],
footer a > img[src*="logo_1"] {
  height: 66px !important;
  max-width: 260px !important;
  width: auto !important;
  object-fit: contain !important;
  transform: scale(1.15);
  transform-origin: left center;
}
html:not(.dark) footer a > img[src*="logo_1"].dark\:block,
html.light footer a > img[src*="logo_1"].dark\:block {
  display: none !important;
}
html.dark footer a > img[src*="logo_1"].dark\:hidden {
  display: none !important;
}
html.dark footer a > img[src*="logo_1"].dark\:block {
  display: block !important;
}

/* Tabbed Search Container */
.baf-search-widget-container {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  border-radius: 24px;
}

.baf-search-tab {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.baf-search-tab.active {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 8px 16px -4px rgba(15, 23, 42, 0.3);
}

/* Input Fields inside Search Widget */
.baf-search-field-box {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  transition: all 0.2s ease;
  position: relative;
}

.baf-search-field-box:focus-within {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Swap Button */
.baf-swap-btn {
  transition: transform 0.3s ease;
}

.baf-swap-btn:hover {
  transform: rotate(180deg) scale(1.1);
}

/* Floating animation */
@keyframes bafFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hero Service Category Tabs (Screenshot 5 Match) */
/* Hero Service Category Tabs (OTA Expert Style) */
.baf-tab-btn {
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.baf-tab-btn:hover {
  background: #e2e8f0 !important;
  color: #084c4f !important;
  transform: translateY(-1px);
}

.baf-tab-btn.active {
  background: #084c4f !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-color: #084c4f !important;
  box-shadow: 0 4px 14px rgba(8, 76, 79, 0.32) !important;
}

/* Hero Search Card Container */
.baf-search-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 20px 24px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  width: 100% !important;
  max-width: 1040px !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(10px);
}

.baf-hero-tabs-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

/* Service Tab Panels */
.baf-tab-pane {
  display: none;
}

.baf-tab-pane.active {
  display: block;
  animation: bafFadeIn 0.22s ease-out forwards;
}

@keyframes bafFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sub-filter Bar (Segmented Pills & Travel Details) */
.baf-search-subbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap !important;
}

.baf-subbar-left,
.baf-subbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* Segmented Radio Pills */
.baf-segmented-toggle {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  border-radius: 9999px !important;
  padding: 3px !important;
  border: 1px solid #e2e8f0 !important;
}

.baf-seg-item {
  position: relative !important;
  display: inline-flex !important;
}

.baf-seg-item input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.baf-seg-item label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.baf-seg-item label:hover {
  color: #084c4f !important;
}

.baf-seg-item input[type="radio"]:checked + label {
  background: #ffffff !important;
  color: #084c4f !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Compact Dropdown Pill Controls */
.baf-dropdown-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 0 10px 0 12px !important;
  height: 32px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  transition: all 0.2s ease !important;
}

.baf-dropdown-pill:hover,
.baf-dropdown-pill:focus-within {
  border-color: #084c4f !important;
  background: #ffffff !important;
}

.baf-dropdown-pill select {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  padding: 0 4px 0 0 !important;
  line-height: normal !important;
}

.baf-dropdown-pill i {
  font-size: 11px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
}

/* Trust / Feature Badges */
.baf-badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
}

/* Grids for Main Input Rows */
.baf-hero-inputs-row {
  display: grid !important;
  grid-template-columns: 1.15fr 1.15fr 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: flex-end !important;
}

.baf-hotel-inputs-row {
  display: grid !important;
  grid-template-columns: 1.4fr 1.05fr 1.05fr 1.1fr auto !important;
  gap: 10px !important;
  align-items: flex-end !important;
}

.baf-visa-inputs-row {
  display: grid !important;
  grid-template-columns: 1.3fr 1.2fr 1fr auto !important;
  gap: 10px !important;
  align-items: flex-end !important;
}

.baf-esim-inputs-row {
  display: grid !important;
  grid-template-columns: 1.4fr 1.3fr 1fr auto !important;
  gap: 10px !important;
  align-items: flex-end !important;
}

@media (max-width: 1024px) {
  .baf-hero-inputs-row,
  .baf-hotel-inputs-row,
  .baf-visa-inputs-row,
  .baf-esim-inputs-row {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 580px) {
  .baf-hero-inputs-row,
  .baf-hotel-inputs-row,
  .baf-visa-inputs-row,
  .baf-esim-inputs-row {
    grid-template-columns: 1fr !important;
  }
}

.baf-hero-field {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

.baf-hero-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  margin-bottom: 6px !important;
}

.baf-hero-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #ffffff !important;
  border: 1.2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  height: 48px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.baf-hero-box:focus-within,
.baf-hero-box:hover {
  border-color: #cbd5e1 !important;
}

.baf-hero-box:focus-within {
  border-color: #084c4f !important;
  box-shadow: 0 0 0 2px rgba(8, 76, 79, 0.12) !important;
}

.baf-hero-inputs-row.hidden {
  display: none !important;
}

.baf-hero-box input,
.baf-hero-box select {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: normal !important;
}

.baf-hero-box select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer !important;
  background-image: none !important;
}

.baf-hero-box i {
  color: #64748b !important;
  font-size: 13px !important;
  margin-left: 8px !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

/* Flight From/To Swap Button */
.baf-swap-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  border: 1.2px solid #e2e8f0 !important;
  color: #084c4f !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  flex-shrink: 0 !important;
}

.baf-swap-btn:hover {
  background: #084c4f !important;
  color: #ffffff !important;
  border-color: #084c4f !important;
  transform: rotate(180deg) scale(1.08) !important;
}

/* Popular Destination Chips Row */
.baf-chips-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
  flex-wrap: wrap !important;
}

.baf-chips-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  margin-right: 2px !important;
}

.baf-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  padding: 3px 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.baf-chip:hover {
  background: #084c4f !important;
  color: #ffffff !important;
  border-color: #084c4f !important;
  transform: translateY(-1px) !important;
}

/* Multi-city legs container */
.baf-multicity-segment {
  display: grid !important;
  grid-template-columns: 1.2fr 1.2fr 1.2fr auto !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  align-items: flex-end !important;
}

@media (max-width: 900px) {
  .baf-multicity-segment {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 580px) {
  .baf-multicity-segment {
    grid-template-columns: 1fr !important;
  }
}

/* Hero Search Submit Button (CTA - Lime Green) */
.baf-hero-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #84cc16 !important;
  color: #084c4f !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  height: 48px !important;
  padding: 0 24px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(132, 204, 22, 0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.baf-hero-search-btn:hover {
  background: #74b816 !important;
  box-shadow: 0 5px 14px rgba(132, 204, 22, 0.45) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  .baf-hero-search-btn {
    width: 100% !important;
  }
}

/* Touchspin count buttons */
.baf-touchspin-btn {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  font-weight: 700 !important;
}

/* Full-viewport Hero on Desktop */
@media (min-width: 1024px) {
  .baf-hero-fullscreen {
    height: 100vh !important;
    min-height: 800px !important;
    position: relative !important;
  }
  .baf-hero-card-fullscreen {
    height: calc(100vh - 70px) !important;
    min-height: 740px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .baf-hero-traveler-img {
    max-height: calc(100vh - 140px) !important;
    object-fit: contain !important;
    object-position: bottom right !important;
  }
}

/* Select Arrow Positioning Fix */
.custom-select .select-selected {
  padding-right: 28px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.custom-select .select-selected:after {
  left: auto !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* ==========================================================================
   MOBILE PERFORMANCE & RESPONSIVENESS (ELIMINATING LAG, JANK & HORIZONTAL OVERFLOW)
   ========================================================================== */

/* 1. Global Viewport Smoothness & Anti-Jank */
html, body {
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

/* 2. Hide Mouse Cursors on Touch Screens to Free CPU/Compositor */
@media (max-width: 1023px), (pointer: coarse) {
  .cursor, .cursor2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* 3. Disable Heavy Continuous Background Keyframes & GPU Compositing Redraws on Mobile */
@media (max-width: 1023px) {
  .twm-img-bg-circle-area,
  .twm-img-bg-circle1-wrap,
  .twm-img-bg-circle2-wrap,
  .twm-img-bg-circle3-wrap,
  .rotate-center,
  .rotate-center-reverse,
  .animate-moveCloud,
  .rain {
    display: none !important;
    animation: none !important;
  }

  /* Search Card: Crisp Solid White Background (No 60fps GPU Re-blurring Lag) */
  .baf-search-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12) !important;
  }

  .baf-hero-fullscreen,
  .baf-hero-card-fullscreen {
    min-height: auto !important;
    height: auto !important;
  }

  /* Compact Header Layout on Mobile (Prevents 99px Horizontal Overflow) */
  .site-header .w-44 {
    width: auto !important;
    max-width: 135px !important;
  }

  .site-header ul.gap-3 {
    gap: 6px !important;
    margin-left: 0 !important;
  }

  .site-header button.size-10,
  .site-header .baf-header-menu-btn {
    width: 36px !important;
    height: 36px !important;
  }

  .site-header .baf-header-menu-btn .baf-bar {
    width: 20px !important;
    height: 2px !important;
  }

  /* Mobile Drawer Menu Link Contrast (Fixes White-on-White Invisible Text in Light Mode) */
  .site-header .header-nav .navbar-nav > li > a,
  .site-header .header-nav .navbar-nav > li > a > span,
  .site-header .header-nav .navbar-nav > li > a > i,
  .site-header-dark .header-nav .navbar-nav > li > a,
  .site-header-dark .header-nav .navbar-nav > li > a > span,
  .site-header-dark .header-nav .navbar-nav > li > a > i,
  html.light .site-header-dark .header-nav .navbar-nav > li > a,
  html.light .site-header-dark .header-nav .navbar-nav > li > a > span,
  html.light .site-header-dark .header-nav .navbar-nav > li > a > i,
  html:not(.dark) .site-header-dark .header-nav .navbar-nav > li > a,
  html:not(.dark) .site-header-dark .header-nav .navbar-nav > li > a > span,
  html:not(.dark) .site-header-dark .header-nav .navbar-nav > li > a > i {
    color: #0f172a !important;
  }

  html.dark .site-header .header-nav .navbar-nav > li > a,
  html.dark .site-header .header-nav .navbar-nav > li > a > span,
  html.dark .site-header .header-nav .navbar-nav > li > a > i,
  html.dark .site-header-dark .header-nav .navbar-nav > li > a,
  html.dark .site-header-dark .header-nav .navbar-nav > li > a > span,
  html.dark .site-header-dark .header-nav .navbar-nav > li > a > i {
    color: #f8fafc !important;
  }

  .site-header .header-nav .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    padding-top: 10px !important;
  }

  .site-header .header-nav .navbar-nav > li {
    width: 100% !important;
    display: block !important;
  }

  .site-header .header-nav .navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 4px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    width: 100% !important;
  }

  html.dark .site-header .header-nav .navbar-nav > li > a {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  }

  .header-nav {
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35) !important;
  }

  .header-nav.show {
    left: 0 !important;
  }

  .fade-overlay.show {
    opacity: 0.5 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* 4. Compact Touch-Friendly Search Console & Mobile Hero (< 640px) */
@media (max-width: 640px) {
  /* Ensure Hero text starts safely below the 80px fixed header */
  .baf-hero-card-fullscreen > div > div:first-child {
    padding-top: 105px !important;
  }

  /* Compact Hero Typography */
  .baf-hero-header-text {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .baf-hero-header-text span.font-display {
    font-size: 1.15rem !important; /* ~18px */
    line-height: 1.2 !important;
  }

  .baf-hero-header-text h1 {
    font-size: 2.2rem !important; /* ~35px */
    line-height: 1.05 !important;
    margin-bottom: 2px !important;
  }

  .baf-hero-header-text div.italic {
    font-size: 0.88rem !important; /* ~14px */
    line-height: 1.3 !important;
    margin-top: 4px !important;
    margin-bottom: 24px !important;
    padding-left: 0 !important;
    text-align: center !important;
  }

  #search-section {
    margin-top: 4px !important;
  }

  /* Compact Category Tabs (Saves ~10px) */
  .baf-hero-tabs-row {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 5px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
  }
  .baf-hero-tabs-row::-webkit-scrollbar {
    display: none !important;
  }

  .baf-tab-btn {
    flex: 0 0 auto !important;
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    border-radius: 9999px !important;
    gap: 5px !important;
  }

  /* Search Card Container: Compact Padding (Saves ~10px) */
  .baf-search-card {
    padding: 12px 10px !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  }

  /* Subbar: Ultra-Compact (Saves ~25px) */
  .baf-search-subbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .baf-subbar-left {
    width: 100% !important;
  }

  .baf-segmented-toggle {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 2px !important;
  }

  .baf-seg-item {
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  .baf-seg-item label {
    width: 100% !important;
    justify-content: center !important;
    padding: 3.5px 4px !important;
    font-size: 10.5px !important;
    border-radius: 9999px !important;
  }

  .baf-subbar-right {
    width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 5px !important;
    padding-bottom: 2px !important;
  }
  .baf-subbar-right::-webkit-scrollbar {
    display: none !important;
  }

  .baf-dropdown-pill {
    flex: 0 0 auto !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    height: 27px !important;
    padding: 0 8px !important;
    border-radius: 9999px !important;
  }

  .baf-dropdown-pill select {
    font-size: 10.5px !important;
    max-width: 105px !important;
  }

  /* Main Form Input Grid: 2 Columns to pair Date fields side-by-side (Saves ~65px!) */
  .baf-hero-inputs-row,
  .baf-hotel-inputs-row,
  .baf-visa-inputs-row,
  .baf-esim-inputs-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    align-items: flex-end !important;
  }

  /* Flights Standard */
  #flight-standard-inputs > .baf-hero-field:nth-child(1) { grid-column: 1 / -1 !important; } /* Journey From */
  #flight-standard-inputs > .baf-hero-field:nth-child(2) { grid-column: 1 / -1 !important; } /* Journey To */
  #flight-standard-inputs > .baf-hero-field:nth-child(3) { grid-column: 1 / 2 !important; } /* Departing Date */
  #flight-standard-inputs > .baf-hero-field:nth-child(4) { grid-column: 2 / 3 !important; } /* Returning Date */
  #flight-standard-inputs > .baf-hero-field:nth-child(5) { grid-column: 1 / -1 !important; } /* Search CTA */

  /* Hotels */
  .baf-hotel-inputs-row > .baf-hero-field:nth-child(1) { grid-column: 1 / -1 !important; } /* Location */
  .baf-hotel-inputs-row > .baf-hero-field:nth-child(2) { grid-column: 1 / 2 !important; } /* Check-In */
  .baf-hotel-inputs-row > .baf-hero-field:nth-child(3) { grid-column: 2 / 3 !important; } /* Check-Out */
  .baf-hotel-inputs-row > .baf-hero-field:nth-child(4) { grid-column: 1 / -1 !important; } /* Stay Details */
  .baf-hotel-inputs-row > .baf-hero-field:nth-child(5) { grid-column: 1 / -1 !important; } /* Search CTA */

  /* Visa */
  .baf-visa-inputs-row > .baf-hero-field:nth-child(1) { grid-column: 1 / -1 !important; } /* Country */
  .baf-visa-inputs-row > .baf-hero-field:nth-child(2) { grid-column: 1 / 2 !important; } /* Category */
  .baf-visa-inputs-row > .baf-hero-field:nth-child(3) { grid-column: 2 / 3 !important; } /* Citizen */
  .baf-visa-inputs-row > .baf-hero-field:nth-child(4) { grid-column: 1 / -1 !important; } /* Search CTA */

  /* eSIM */
  .baf-esim-inputs-row > .baf-hero-field:nth-child(1) { grid-column: 1 / -1 !important; } /* Country */
  .baf-esim-inputs-row > .baf-hero-field:nth-child(2) { grid-column: 1 / 2 !important; } /* Plan */
  .baf-esim-inputs-row > .baf-hero-field:nth-child(3) { grid-column: 2 / 3 !important; } /* Instant QR */
  .baf-esim-inputs-row > .baf-hero-field:nth-child(4) { grid-column: 1 / -1 !important; } /* Search CTA */

  /* Compact Input Boxes (38px height instead of 48px, saves ~40px across fields) */
  .baf-hero-label {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.04em !important;
  }

  .baf-hero-box {
    height: 38px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
  }

  .baf-hero-box input,
  .baf-hero-box select,
  .baf-hero-box span {
    font-size: 12.5px !important;
  }

  .baf-hero-box i {
    font-size: 11px !important;
    margin-left: 5px !important;
  }

  .baf-swap-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
  }

  /* Compact Search CTA Button */
  .baf-hero-search-btn {
    height: 38px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    margin-top: 2px !important;
  }

  /* Popular Destination Chips (Compact single row) */
  .baf-chips-row {
    margin-top: 6px !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
  }
  .baf-chips-row::-webkit-scrollbar {
    display: none !important;
  }

  .baf-chip {
    font-size: 10px !important;
    padding: 2px 7px !important;
    flex-shrink: 0 !important;
  }

  .baf-chips-title {
    font-size: 9.5px !important;
    flex-shrink: 0 !important;
  }

  .baf-hero-traveler-img {
    max-height: 240px !important;
    width: auto !important;
    margin: 0 auto !important;
  }

  .header-nav {
    width: 280px !important;
  }
}

/* =========================================================
   BUY & FLY LUXURY AUTH POP-UP MODAL (COMPACT & SLEEK)
   ========================================================= */

.baf-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  background: radial-gradient(circle at 50% 35%, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.88)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  animation: bafFadeIn 0.2s ease-out forwards;
}

.baf-modal-backdrop.hidden {
  display: none !important;
}

@keyframes bafFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bafCardPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   Customer Auth Modal — Ultra-Clean Luxury Redesign
   ========================================================================== */

.baf-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.baf-auth-card {
  position: relative !important;
  width: 100% !important;
  max-width: 400px !important;
  max-height: calc(100vh - 40px) !important;
  margin: auto !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  padding: 32px 28px 24px 28px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  animation: bafModalZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.baf-auth-card::-webkit-scrollbar {
  width: 4px;
}
.baf-auth-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

html.dark .baf-auth-card,
body.dark .baf-auth-card {
  background: #0f172a !important;
  border-color: rgba(51, 65, 85, 0.9) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

@keyframes bafModalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Close Button */
.baf-modal-close-btn {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
}

.baf-modal-close-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: scale(1.05) !important;
}

html.dark .baf-modal-close-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

html.dark .baf-modal-close-btn:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

/* Brand Header */
.baf-auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.baf-auth-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.baf-auth-logo {
  height: 32px !important;
  max-width: 170px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

.baf-auth-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

html.dark .baf-auth-title {
  color: #f8fafc !important;
}

.baf-auth-subtitle {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 0 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

html.dark .baf-auth-subtitle {
  color: #94a3b8 !important;
}

/* Segmented Pill Tabs */
.baf-auth-pill-container {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  margin-bottom: 18px;
}

html.dark .baf-auth-pill-container {
  background: #1e293b;
}

.baf-auth-pill-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
}

.baf-auth-pill-btn:hover {
  color: #0f172a;
}

html.dark .baf-auth-pill-btn:hover {
  color: #ffffff;
}

.baf-auth-pill-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html.dark .baf-auth-pill-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.baf-bonus-chip {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 9999px;
  background: rgba(255, 170, 13, 0.18);
  color: #d97706;
  border: 1px solid rgba(255, 170, 13, 0.35);
  letter-spacing: 0.2px;
}

html.dark .baf-bonus-chip {
  background: rgba(255, 170, 13, 0.2);
  color: #fbbf24;
  border-color: rgba(255, 170, 13, 0.4);
}

/* Social Buttons in Modal */
.baf-social-auth-section {
  margin-bottom: 16px;
}

.baf-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.baf-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.baf-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

html.dark .baf-social-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html.dark .baf-social-btn:hover {
  border-color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.baf-social-google:hover {
  border-color: #ea4335 !important;
}

.baf-social-facebook:hover {
  border-color: #1877f2 !important;
}

.baf-social-apple:hover {
  border-color: #0f172a !important;
}

html.dark .baf-social-apple:hover {
  border-color: #f8fafc !important;
}

.baf-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0 16px 0;
}

.baf-social-divider::before,
.baf-social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .baf-social-divider::before,
html.dark .baf-social-divider::after {
  border-bottom-color: #334155;
}

.baf-social-divider span {
  padding: 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Auth Input Fields */
.baf-input-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.baf-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

html.dark .baf-input-label {
  color: #cbd5e1;
}

.baf-input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.baf-input-label-row .baf-input-label {
  margin-bottom: 0;
}

.baf-forgot-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #d97706;
  text-decoration: none;
  transition: color 0.15s ease;
}

.baf-forgot-link:hover {
  color: #b45309;
  text-decoration: underline;
}

html.dark .baf-forgot-link {
  color: #fbbf24;
}

.baf-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.baf-auth-input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 40px 0 38px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  color: #0f172a !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  font-family: inherit;
}

.baf-auth-input::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
}

html.dark .baf-auth-input {
  background: #0b1320 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.baf-auth-input:focus {
  background: #ffffff !important;
  border-color: #ffaa0d !important;
  box-shadow: 0 0 0 3px rgba(255, 170, 13, 0.15) !important;
}

.baf-input-wrapper:focus-within .baf-input-icon {
  color: #d97706 !important;
}

html.dark .baf-auth-input:focus {
  background: #0f172a !important;
  border-color: #ffaa0d !important;
  box-shadow: 0 0 0 3px rgba(255, 170, 13, 0.25) !important;
}

/* Password Eye Toggle */
.baf-pw-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  font-size: 13px;
}

.baf-pw-toggle-btn:hover {
  color: #ffaa0d;
}

/* Primary CTA Submit Button */
.baf-auth-submit {
  width: 100% !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.baf-auth-submit-signin {
  background: linear-gradient(135deg, #ffaa0d 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(255, 170, 13, 0.28) !important;
}

.baf-auth-submit-signin:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 170, 13, 0.4) !important;
}

.baf-auth-submit-signup {
  background: linear-gradient(135deg, #066168 0%, #0a4d53 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(6, 97, 104, 0.25) !important;
}

.baf-auth-submit-signup:hover {
  background: linear-gradient(135deg, #0a4d53 0%, #113435 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 97, 104, 0.35) !important;
}

/* Clean Switch Prompt (Sign In <-> Sign Up) */
.baf-auth-switch-prompt {
  text-align: center !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
}

html.dark .baf-auth-switch-prompt {
  color: #94a3b8 !important;
}

.baf-switch-link {
  background: transparent !important;
  border: none !important;
  color: #d97706 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-left: 3px !important;
  font-size: 13px !important;
  transition: color 0.15s ease, text-decoration 0.15s ease !important;
  display: inline !important;
  font-family: inherit !important;
}

.baf-switch-link:hover {
  color: #b45309 !important;
  text-decoration: underline !important;
}

html.dark .baf-switch-link {
  color: #fbbf24 !important;
}

html.dark .baf-switch-link:hover {
  color: #fde68a !important;
}


/* ==========================================================================
   Flight Search & Booking UI Enhancements
   ========================================================================== */

/* Search Sorting Buttons */
.baf-sort-btn {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.baf-sort-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.baf-sort-btn.active {
  background: #f59e0b !important;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

html.dark .baf-sort-btn.active {
  background: #f59e0b !important;
  color: #0f172a !important;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

/* Payment Method Options */
.baf-payment-opt {
  transition: all 0.2s ease;
  position: relative;
  background: #ffffff;
}

html.dark .baf-payment-opt {
  background: #1e293b;
}

.baf-payment-opt:hover {
  border-color: #f59e0b !important;
  transform: translateY(-1px);
}

.baf-payment-opt.active {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.08) !important;
  box-shadow: 0 0 0 1px #f59e0b;
}

html.dark .baf-payment-opt.active {
  background: rgba(245, 158, 11, 0.15) !important;
}

/* Flight Result Cards */
.baf-flight-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.baf-flight-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

html.dark .baf-flight-item:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Print Styles for E-Ticket */
@media print {
  body * {
    visibility: hidden;
  }
  #baf-confirmation-modal, #baf-confirmation-modal * {
    visibility: visible;
  }
  #baf-confirmation-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
  }
  #baf-close-modal-btn, #baf-print-ticket-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Customer Social Logins & Themed User Account Dropdown
   ========================================================================== */

/* Social Login Divider & Buttons in Auth Modal */
.baf-social-auth-section {
  margin-top: 14px;
}

.baf-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0 10px 0;
}

.baf-social-divider::before,
.baf-social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

html.dark .baf-social-divider::before,
html.dark .baf-social-divider::after {
  border-bottom-color: #334155;
}

.baf-social-divider span {
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.baf-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.baf-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.baf-social-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

html.dark .baf-social-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

html.dark .baf-social-btn:hover {
  border-color: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.baf-social-google:hover {
  border-color: #ea4335 !important;
}

.baf-social-facebook:hover {
  border-color: #1877f2 !important;
}

.baf-social-apple:hover {
  border-color: #0f172a !important;
}

html.dark .baf-social-apple:hover {
  border-color: #f8fafc !important;
}

/* ==========================================================================
   Universal Header Trigger Styles (Theme Aligned)
   ========================================================================== */

/* Logged Out Trigger */
.baf-header-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  hover: background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 170, 13, 0.45);
  padding: 6px 14px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.baf-header-signin-btn:hover {
  background: #ffaa0d;
  color: #061224;
  border-color: #ffaa0d;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 170, 13, 0.35);
}

.baf-signin-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffaa0d;
  color: #061224;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s ease;
}

.baf-header-signin-btn:hover .baf-signin-icon {
  background: #061224;
  color: #ffaa0d;
}

/* Logged In Trigger */
.baf-header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 97, 104, 0.25);
  border: 1px solid rgba(255, 170, 13, 0.4);
  padding: 4px 12px 4px 5px;
  border-radius: 9999px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.baf-header-user-btn:hover {
  background: rgba(6, 97, 104, 0.45);
  border-color: #ffaa0d;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.baf-user-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffaa0d, #f59e0b, #1db7be);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.baf-user-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #064045;
  color: #ffaa0d;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baf-user-info {
  text-align: left;
  line-height: 1.15;
}

.baf-user-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.baf-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.02em;
}

.baf-user-badge.staff {
  color: #67e8f9;
}

.baf-user-caret {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Themed VIP Traveler Dropdown Card
   ========================================================================== */

#baf-auth-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 300px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(6, 97, 104, 0.35), 0 0 0 1px rgba(6, 97, 104, 0.12), 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 170, 13, 0.25);
  z-index: 100;
  overflow: hidden;
  text-align: left;
  animation: bafDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.dark #baf-auth-dropdown {
  background: #0c181a;
  border-color: rgba(255, 170, 13, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

/* Dropdown VIP Header */
.baf-dropdown-vip-card {
  position: relative;
  background: linear-gradient(135deg, #066168 0%, #0a494e 50%, #113435 100%);
  padding: 16px 16px 14px 16px;
  color: #ffffff;
  overflow: hidden;
}

.baf-vip-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 170, 13, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.baf-vip-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.baf-vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #ffd166;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.baf-vip-tier-tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.baf-vip-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.baf-vip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffaa0d, #f59e0b);
  color: #061224;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.baf-vip-meta {
  overflow: hidden;
}

.baf-vip-fullname {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baf-vip-contact {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Points & Tier Progress Card */
.baf-vip-points-box {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
}

.baf-points-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.baf-points-bar-bg {
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin-bottom: 5px;
}

.baf-points-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffaa0d, #1db7be);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.baf-points-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
}

/* Dropdown Menu Items */
.baf-dropdown-menu {
  padding: 8px 6px;
}

.baf-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.baf-dropdown-item:hover {
  background: #f0fdfa;
}

html.dark .baf-dropdown-item:hover {
  background: rgba(6, 97, 104, 0.25);
}

.baf-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.baf-dropdown-item:hover .baf-item-icon {
  transform: scale(1.08);
}

.baf-item-icon.flight {
  background: rgba(255, 170, 13, 0.15);
  color: #d97706;
}

.baf-item-icon.passport {
  background: rgba(29, 183, 190, 0.15);
  color: #0d9488;
}

.baf-item-icon.search {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.baf-item-icon.admin {
  background: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

.baf-item-content {
  flex: 1;
  min-width: 0;
}

.baf-item-content .title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

html.dark .baf-item-content .title {
  color: #f8fafc;
}

.baf-item-content .subtitle {
  display: block;
  font-size: 10px;
  color: #64748b;
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.dark .baf-item-content .subtitle {
  color: #94a3b8;
}

.baf-item-arrow {
  font-size: 10px;
  color: #cbd5e1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.baf-dropdown-item:hover .baf-item-arrow {
  color: #066168;
  transform: translateX(2px);
}

html.dark .baf-dropdown-item:hover .baf-item-arrow {
  color: #ffaa0d;
}

.baf-dropdown-item.staff-item {
  border: 1px dashed rgba(255, 170, 13, 0.4);
  background: rgba(255, 170, 13, 0.05);
  margin-top: 4px;
}

.baf-dropdown-item.staff-item:hover {
  background: rgba(255, 170, 13, 0.12);
}

/* Dropdown Footer & Sign Out */
.baf-dropdown-bottom {
  padding: 6px 10px 10px 10px;
  border-top: 1px solid #f1f5f9;
}

html.dark .baf-dropdown-bottom {
  border-top-color: #1e293b;
}

.baf-dropdown-signout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #fee2e2;
  background: #fef2f2;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.baf-dropdown-signout-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  transform: translateY(-1px);
}

html.dark .baf-dropdown-signout-btn {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.25);
  color: #f87171;
}

html.dark .baf-dropdown-signout-btn:hover {
  background: rgba(220, 38, 38, 0.22);
}








