/* ============================================================
   TravelBooking — Unified Design System
   One CSS file for all pages: home, search results, booking,
   booking success. Theme: Refined Luxury Travel.
   Font stack: Fraunces (display) + Cabinet Grotesk (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,600,700,800&display=swap');

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --navy:           #0c1f3f;
  --navy-deep:      #08142a;
  --navy-mid:       #163260;
  --blue:           #1a56db;
  --blue-hover:     #1740b0;
  --blue-light:     #eff4ff;
  --blue-faint:     #f5f8ff;
  --gold:           #d4922a;
  --gold-light:     #fef3dc;
  --gold-vivid:     #f0a500;
  --teal:           #0f766e;
  --teal-light:     #f0fdfa;

  /* Neutrals */
  --ink:            #0f172a;
  --ink-2:          #1e293b;
  --ink-3:          #334155;
  --muted:          #64748b;
  --subtle:         #94a3b8;
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;
  --surface:        #ffffff;
  --bg:             #f4f7fc;
  --bg-2:           #eef3fb;

  /* Semantic */
  --success:        #059669;
  --success-light:  #ecfdf5;
  --danger:         #dc2626;
  --danger-light:   #fef2f2;
  --warn:           #d97706;
  --warn-light:     #fffbeb;

  /* Typography */
  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'Cabinet Grotesk', 'DM Sans', sans-serif;
  --font-mono:      'DM Mono', ui-monospace, monospace;

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.07), 0 1px 4px rgba(15,23,42,.04);
  --shadow:    0 6px 24px rgba(15,23,42,.09), 0 2px 8px rgba(15,23,42,.05);
  --shadow-lg: 0 16px 48px rgba(15,23,42,.13), 0 4px 16px rgba(15,23,42,.07);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.18), 0 8px 24px rgba(15,23,42,.10);

  /* Layout */
  --navbar-h: 66px;
}

/* ─────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-2);
  color: var(--ink);
  padding-top: var(--navbar-h);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ─────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .25s ease;
  padding: 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img { height: 30px; width: auto; }

.navbar-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -.01em;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3) !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  background: var(--blue-faint);
  color: var(--blue) !important;
}

.nav-link.btn-signin {
  background: var(--navy);
  color: #fff !important;
  padding: 0.45rem 1.1rem !important;
  font-weight: 600;
}

.nav-link.btn-signin:hover {
  background: var(--navy-mid);
  color: #fff !important;
}

.navbar-toggler {
  border: none !important;
  color: var(--ink) !important;
  padding: 6px;
}

/* ─────────────────────────────────────────────────────────────
   HERO (home page)
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(150deg, rgba(8,20,42,.82) 0%, rgba(22,50,96,.62) 100%),
    url('../images/bg3.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
  position: relative;
}

/* subtle animated grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .4;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-vivid);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  background: rgba(240,165,0,.12);
  border: 1px solid rgba(240,165,0,.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}

.hero-headline em {
  color: var(--gold-vivid);
  font-style: italic;
}

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
  max-width: 520px;
}

/* ─────────────────────────────────────────────────────────────
   SEARCH CARD (used on hero + search results modify panel)
───────────────────────────────────────────────────────────── */
.search-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  margin-top: 2.25rem;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255,255,255,.6);
}

/* trip tabs */
.trip-tabs {
  display: inline-flex;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
  margin-bottom: 1.35rem;
  border: 1px solid var(--border);
}

.trip-tab {
  border: none;
  background: transparent;
  padding: .4rem 1.25rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-body);
}

.trip-tab.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

/* field wrappers */
.field-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-input {
  position: relative;
}

.field-input .fi-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  z-index: 2;
  font-size: .9rem;
  pointer-events: none;
}

.field-input input,
.field-input .field-input-inner {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .65rem .85rem .65rem 2.4rem;
  background: var(--bg);
  font-size: .9rem;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
  height: 46px;
}

.field-input input:focus {
  border-color: var(--blue);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.field-input.is-invalid input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.field-error {
  display: block;
  font-size: .71rem;
  color: var(--danger);
  margin-top: 4px;
  min-height: 1em;
  font-weight: 500;
}

/* Swap button */
.swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 28px auto 0;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(212,146,42,.35);
}

.swap-btn:hover {
  background: var(--gold-vivid);
  transform: rotate(180deg);
}

/* Search button */
.btn-search {
  width: 100%;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #fff;
  border-radius: var(--r);
  padding: .7rem;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(12,31,63,.3);
}

.btn-search:hover {
  opacity: .93;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12,31,63,.35);
}

/* Autocomplete dropdowns */
#fromCitylist,
#toCitylist,
#prefferedAirlineList {
  position: absolute;
  width: 100%;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 9999;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  top: calc(100% + 6px);
  left: 0;
}

.ac-group-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 8px 14px 4px;
  background: var(--bg);
}

.ac-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background .1s;
}

.ac-item:hover,
.ac-item.active { background: var(--blue-faint); }

.ac-main { font-size: .88rem; color: var(--ink); }
.ac-sub  { font-size: .75rem; color: var(--muted); margin-top: 1px; }
.ac-empty { padding: 12px 14px; color: var(--muted); font-size: .85rem; text-align: center; }

/* Traveller dropdown */
#travellerBox { cursor: pointer; }

.trav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 310px;
  max-width: 92vw;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1rem;
  z-index: 99999;
  animation: fadeUp .2s ease;
}

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

.trav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .85rem;
}

.trav-row strong { font-size: .88rem; color: var(--ink); font-weight: 700; }
.trav-row small  { font-size: .72rem; color: var(--muted); }

.trav-row button {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.trav-row button:hover {
  background: var(--blue-faint);
  border-color: var(--blue);
  color: var(--blue);
}

#travellerError {
  font-size: .75rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

/* Airline tags */
.airline-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--r-sm);
  padding: 3px 9px;
  font-size: .76rem;
  font-weight: 600;
  margin: 3px 3px 3px 0;
  border: 1px solid rgba(26,86,219,.18);
}

.airline-tag-remove {
  cursor: pointer;
  font-size: .65rem;
  color: var(--muted);
  line-height: 1;
  transition: color .15s;
}
.airline-tag-remove:hover { color: var(--danger); }

/* Non-stop checkbox */
.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}

/* ─────────────────────────────────────────────────────────────
   STATS BAR (home page)
───────────────────────────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  padding: 1.4rem 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,.07), transparent 65%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: .5rem .75rem;
  color: #fff;
  position: relative;
  transition: transform .25s ease;
}

.stat-item:hover { transform: translateY(-3px); }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-vivid);
  font-weight: 700;
  line-height: 1;
}

.stat-num span { color: #fff; font-size: .9rem; }

.stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.68);
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 500;
}

.stat-label i { color: var(--gold-vivid); }

.stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  height: 60%; width: 1px;
  background: rgba(255,255,255,.12);
}

.col-md-3:last-child .stat-item::after { display: none; }

/* ─────────────────────────────────────────────────────────────
   SECTION HEADINGS
───────────────────────────────────────────────────────────── */
.sec-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.sec-sub {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .3rem;
}

/* ─────────────────────────────────────────────────────────────
   DESTINATION CARDS (home page)
───────────────────────────────────────────────────────────── */
.dest-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.dest-card img {
  width: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.dest-card:hover img { transform: scale(1.07); }

.dest-info {
  position: absolute;
  inset: 0;
  top: auto;
  background: linear-gradient(transparent 25%, rgba(8,20,42,.88));
  padding: 3rem 1.25rem 1.1rem;
  color: #fff;
}

.dest-city {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dest-price {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
}

.dest-price strong {
  color: var(--gold-vivid);
  font-size: .92rem;
}

.dest-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(212,146,42,.4);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
}

footer p {
  font-size: .82rem;
  color: rgba(255,255,255,.48);
  margin: 0;
}

footer a {
  font-size: .82rem;
  color: rgba(255,255,255,.48);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}

footer a:hover { color: #fff; }

footer a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}

footer a:hover::after { width: 100%; }

/* ─────────────────────────────────────────────────────────────
   SEARCH RESULTS — Page Shell
───────────────────────────────────────────────────────────── */
.sr-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-h));
  overflow: hidden;
  margin-top: 0;
}

/* sticky search bar */
.sr-search-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.sr-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 58px;
  flex-wrap: wrap;
}

.sr-route {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sr-route-iata {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .05em;
}

.sr-route-arrow { color: var(--muted); font-size: 13px; }

.sr-route-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.sr-route-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 10px;
  white-space: nowrap;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sr-modify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
}

.sr-modify-btn:hover { background: var(--bg); border-color: #c0cad8; }

.sr-modify-panel {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 1.25rem 0;
}

/* ── Body layout ── */
.sr-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR — Filters
───────────────────────────────────────────────────────────── */
.sr-sidebar {
  width: 276px;
  min-width: 276px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex-shrink: 0;
  position: relative;
}

.sr-sidebar::-webkit-scrollbar { width: 3px; }
.sr-sidebar::-webkit-scrollbar-track { background: transparent; }
.sr-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sr-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-light);
}

.sr-sidebar-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sr-reset-btn {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  transition: opacity .15s;
}

.sr-reset-btn:hover { text-decoration: underline; }

.sr-filter-count {
  font-size: .7rem;
  color: var(--subtle);
  margin-top: -.2rem;
}

.sr-filter-section { display: flex; flex-direction: column; gap: .4rem; }

.sr-filter-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* Stops */
.stop-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.stop-filter-row label {
  font-size: .82rem;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

.stop-filter-row .stop-price {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Time slots */
.sr-time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }

.time-slot-btn {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 2px 6px;
  background: var(--bg);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
  line-height: 1.3;
  font-family: var(--font-body);
}

.time-slot-btn i { font-size: 13px; display: block; margin-bottom: 3px; color: var(--muted); }

.time-slot-btn.active {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.time-slot-btn.active i { color: var(--blue); }

/* Airlines in sidebar */
.sr-airline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.sr-airline-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

.sr-airline-row .sr-price-hint {
  font-size: .68rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Price slider */
.sr-price-range-labels {
  display: flex;
  justify-content: space-between;
}

.sr-price-range-labels small {
  font-size: .72rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

#priceSliderWrap {
  position: relative;
  height: 22px;
  margin: 6px 0;
}

#priceSliderWrap input[type=range] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  height: 4px;
  -webkit-appearance: none;
  background: transparent;
  top: 8px;
}

#priceSliderWrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  pointer-events: all;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
}

#priceSliderWrap input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

#priceValue {
  font-size: .7rem;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
  margin-top: 3px;
}

.sr-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: .15rem 0;
}

/* sidebar skeleton */
#sidebarSkeleton {
  position: absolute;
  inset: 0;
  background: var(--surface);
  padding: 1rem;
  z-index: 5;
}

/* ─────────────────────────────────────────────────────────────
   RESULTS COLUMN
───────────────────────────────────────────────────────────── */
.sr-results-col {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.sr-results-col::-webkit-scrollbar { width: 4px; }
.sr-results-col::-webkit-scrollbar-track { background: transparent; }
.sr-results-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Sort tabs */
.flight-sort-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.flight-sort-tab {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-body);
}

.flight-sort-tab:hover { border-color: var(--navy); box-shadow: var(--shadow-xs); }

.flight-sort-tab.active {
  border-color: var(--navy);
  background: var(--navy-deep);
  box-shadow: 0 4px 14px rgba(12,31,63,.2);
}

.flight-sort-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px; height: 16px;
  background: var(--navy-deep);
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: translateX(-50%) rotate(45deg);
  z-index: 1;
}

.flight-sort-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.flight-sort-tab.active .flight-sort-label { color: rgba(255,255,255,.75); }

.flight-sort-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 5px;
  font-family: var(--font-mono);
  letter-spacing: -.02em;
}

.flight-sort-tab.active .flight-sort-price { color: #fff; }

/* Alert box */
#alertBox { margin-bottom: .65rem; }

/* ─────────────────────────────────────────────────────────────
   FLIGHT CARDS (search results)
───────────────────────────────────────────────────────────── */
.fc-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: .75rem;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.fc-card:hover {
  box-shadow: var(--shadow);
  border-color: #c8d4e8;
  transform: translateY(-1px);
}

/* top row */
.fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-airline { display: flex; align-items: center; gap: 10px; }

.fc-airline-logo {
  width: 33px; height: 33px;
  object-fit: contain;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
  padding: 2px;
  background: #fff;
}

.fc-airline-name { font-size: .85rem; font-weight: 700; color: var(--ink); }
.fc-airline-code { font-size: .72rem; color: var(--subtle); margin-top: 1px; }

/* badges */
.fc-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.fc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  font-family: var(--font-body);
}

.fc-badge--success { background: var(--success-light); color: var(--success); }
.fc-badge--danger  { background: var(--danger-light);  color: var(--danger); }
.fc-badge--warning { background: var(--warn-light);    color: var(--warn); }
.fc-badge--neutral { background: #f1f5f9; color: var(--muted); border: 1px solid var(--border); }

/* stop popup */
.fc-stop-wrapper { position: relative; }
.fc-stop-toggle { border: none; cursor: pointer; transition: all .15s; }
.fc-stop-toggle:hover { background: #f1f5f9 !important; }

.fc-stop-collapse {
  position: absolute;
  top: 38px; right: 0;
  z-index: 30;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}

.fc-stop-item:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px; margin-bottom: 8px;
}

.fc-stop-city    { font-size: .82rem; font-weight: 700; color: var(--ink); }
.fc-stop-airport { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.fc-stop-layover { font-size: .7rem; color: var(--blue); margin-top: 4px; font-weight: 600; }

/* leg */
.fc-leg { margin-bottom: 0; }
.fc-leg-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 7px;
}

/* route grid */
.fc-route {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,155px) minmax(0,1fr);
  align-items: center;
  gap: 8px;
}

.fc-endpoint { display: flex; flex-direction: column; }
.fc-endpoint--right { align-items: flex-end; text-align: right; }

.fc-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  font-family: var(--font-mono);
}

.fc-date { font-size: .7rem; color: var(--subtle); margin-top: 3px; }

.fc-airport { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; }
.fc-airport-code-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fc-iata { font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.fc-city-name { font-size: .7rem; color: #a0aec0; }
.fc-airport-name { font-size: .65rem; color: #b8c2d0; margin-top: 1px; line-height: 1.3; }

.fc-terminal {
  font-size: .6rem; color: #777;
  background: #f4f4f4;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 1px 4px;
}

/* middle */
.fc-middle { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fc-duration {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-mono);
}

.fc-path-line { display: flex; align-items: center; width: 100%; gap: 4px; }
.fc-path-line-bar { flex: 1; height: 1px; background: var(--border); }
.fc-plane-icon { width: 14px; height: 14px; color: var(--subtle); flex-shrink: 0; }
.fc-via { font-size: .65rem; color: var(--subtle); text-align: center; min-height: 13px; }

.fc-cabin-info {
  font-size: .65rem;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fc-dot { color: var(--border); }

/* card divider between legs */
.fc-divider { border: none; border-top: 1px dashed var(--border); margin: .9rem 0; }

/* bottom row */
.fc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 10px;
}

.fc-price { display: flex; align-items: baseline; gap: 3px; }
.fc-currency { font-size: .78rem; color: var(--muted); font-weight: 600; }
.fc-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  font-family: var(--font-mono);
}

.fc-price-sub { font-size: .65rem; color: var(--subtle); margin-top: 2px; }
.fc-actions { display: flex; gap: 8px; align-items: center; }

.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: all .15s;
}

.fc-btn--secondary {
  background: var(--bg);
  color: var(--muted);
  border: 1.5px solid var(--border);
}

.fc-btn--secondary:hover { background: var(--border-light); }

.fc-btn--primary {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  color: #fff;
  box-shadow: 0 2px 8px rgba(12,31,63,.28);
}

.fc-btn--primary:hover {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  box-shadow: 0 4px 14px rgba(12,31,63,.35);
  transform: translateY(-1px);
}

/* Details panel */
.fc-details-panel { margin-top: .9rem; }

.fc-details-section {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: .9rem;
  margin-bottom: .6rem;
}

.fc-details-title {
  font-size: .68rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.fc-details-leg-label {
  font-size: .65rem;
  font-weight: 800;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: .5rem 0 .35rem;
}

.fc-segment-row {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: .65rem .85rem;
  margin-bottom: .4rem;
}

.fc-segment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.fc-segment-flight { font-size: .82rem; font-weight: 700; color: var(--ink); font-family: var(--font-mono); }
.fc-segment-aircraft { font-size: .7rem; color: var(--subtle); display: flex; align-items: center; gap: 4px; }
.fc-segment-route {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--ink);
  margin-bottom: 3px; font-family: var(--font-mono);
}

.fc-segment-time { color: var(--muted); font-weight: 400; }
.fc-segment-arrow { color: var(--border); }
.fc-segment-meta { display: flex; align-items: center; gap: 5px; font-size: .7rem; color: var(--muted); flex-wrap: wrap; }

/* Fare table */
.fc-fare-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.fc-fare-table th {
  text-align: left; font-weight: 700; color: var(--muted);
  font-size: .65rem; text-transform: uppercase; letter-spacing: .06em;
  padding: 0 0 6px; border-bottom: 1px solid var(--border);
}
.fc-fare-table td { padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--border-light); }
.fc-fare-table tfoot td {
  font-weight: 700; color: var(--navy);
  border-bottom: none; padding-top: 8px;
  font-size: .88rem; font-family: var(--font-mono);
}

/* Load more */
#loadMoreBtn {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 10px 28px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity .15s, transform .15s;
  box-shadow: 0 2px 10px rgba(212,146,42,.35);
}

#loadMoreBtn:hover { opacity: .9; transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────
   SKELETON
───────────────────────────────────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e8edf4;
  border-radius: var(--r-sm);
  display: block;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer { 100% { transform: translateX(100%); } }

.skeleton-circle    { width: 32px; height: 32px; border-radius: 50%; }
.skeleton-circle-lg { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-text-lg   { height: 15px; border-radius: 4px; }
.skeleton-text-sm   { height: 11px; border-radius: 4px; }
.skeleton-text-xs   { height: 9px;  border-radius: 4px; }
.skeleton-badge     { height: 24px; border-radius: 20px; }
.skeleton-time      { height: 28px; border-radius: 4px; }
.skeleton-duration  { height: 12px; border-radius: 4px; }
.skeleton-line      { height: 4px;  border-radius: 20px; }
.skeleton-price     { height: 30px; border-radius: 4px; }
.skeleton-btn       { height: 36px; border-radius: 8px; }

.flight-skeleton-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.flight-skeleton-top   { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flight-skeleton-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flight-skeleton-middle { flex: 1; padding: 0 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.flight-skeleton-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: .9rem; border-top: 1px solid var(--border-light); }

.filter-skeleton-wrap { display: flex; flex-direction: column; gap: 12px; }

/* ─────────────────────────────────────────────────────────────
   BOOKING PAGE
───────────────────────────────────────────────────────────── */
.booking-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: 3rem 0;
  color: #fff;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.booking-header::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.booking-header::after {
  content: '';
  position: absolute;
  left: -40px; bottom: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.booking-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: .5rem;
}

.booking-header p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* Shared cards */
.main-card,
.passenger-card,
.sidebar-card,
.side-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-title i { color: var(--gold); }

/* Flight box in booking page */
.flight-box {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  transition: .25s ease;
  background: var(--surface);
}

.flight-box:hover {
  box-shadow: var(--shadow-sm);
  border-color: #c8d4e8;
}

.airline-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-faint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 20px;
  border: 1px solid var(--blue-light);
}

.airline-name {
  font-size: .88rem;
  font-weight: 700;
  margin-top: 8px;
  color: var(--ink);
}

.flight-time {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-mono);
}

.airport-code {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 3px;
  color: var(--ink-3);
}

.flight-date { font-size: .78rem; color: var(--muted); }

.flight-line {
  position: relative;
  text-align: center;
  margin-top: 10px;
}

.flight-line::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 10px;
  border-top: 2px dashed var(--border);
}

.flight-duration {
  position: relative;
  z-index: 2;
  background: var(--surface);
  padding: 0 12px;
  font-size: .78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.stops-badge {
  display: inline-block;
  margin-top: 10px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: .72rem;
  font-weight: 700;
}

/* Baggage box */
.baggage-box {
  margin-top: 1.1rem;
  background: var(--bg);
  border-radius: var(--r);
  padding: 1rem;
  border: 1px solid var(--border-light);
  font-size: .85rem;
}

.baggage-box i { color: var(--blue); margin-right: 5px; }

/* Booking sidebar */
.sidebar-card.timer-card {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
  text-align: center;
  position: sticky;
  top: calc(var(--navbar-h) + 16px);
}

.timer-card h5 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}

.timer-card h1 {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-vivid);
  margin: .25rem 0;
  letter-spacing: -.03em;
}

.timer-card p {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* Fare summary */
.fare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .85rem;
  font-size: .88rem;
  color: var(--ink-3);
}

.fare-row strong { color: var(--ink); font-weight: 700; }

.fare-total {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-mono);
}

/* Why book with us */
.side-card { position: sticky; top: calc(var(--navbar-h) + 16px + 320px + 24px); }

.heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.why-list { list-style: none; padding: 0; margin: 0; }

.why-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: .85rem;
  color: var(--ink-3);
  font-weight: 500;
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--success);
  font-weight: 800;
}

.secure-text {
  font-size: .76rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}

/* Passenger form */
.passenger-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.passenger-heading::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--gold);
  border-radius: 2px;
}

label {
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-3);
  display: inline-block;
}

.form-control,
.form-select {
  height: 48px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  padding: .55rem .85rem;
  font-size: .875rem;
  font-family: var(--font-body);
  color: var(--ink);
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
  background: var(--bg);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12,31,63,.1) !important;
  background: var(--surface);
  outline: none;
}

/* Pay button */
.btn-pay {
  height: 52px;
  border: none;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  transition: .25s ease;
  box-shadow: 0 4px 16px rgba(12,31,63,.28);
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,31,63,.35);
}

/* ── Expiry modal ── */
.expiry-modal {
  position: fixed;
  inset: 0;
  background: rgba(8,20,42,.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(6px);
}

.expiry-content {
  width: 420px;
  max-width: 92%;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.expiry-content h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1rem 0 .5rem;
  color: var(--navy);
}

.expiry-content p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.expiry-content button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity .2s;
}

.expiry-content button:hover { opacity: .88; }

/* ── Booking form inline errors ── */
.is-invalid { border-color: var(--danger) !important; }
.invalid-feedback {
  font-size: .72rem;
  color: var(--danger);
  font-weight: 500;
  margin-top: 3px;
}

/* ─────────────────────────────────────────────────────────────
   BOOKING SUCCESS PAGE
───────────────────────────────────────────────────────────── */
.booking-success-wrapper {
  max-width: 1080px;
  margin: auto;
  padding: 3rem 0 4rem;
}

.success-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-2xl);
  padding: 3rem 3.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.success-hero::before {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.success-hero::after {
  content: '';
  position: absolute;
  left: -40px; bottom: -50px;
  width: 180px; height: 180px;
  background: rgba(212,146,42,.08);
  border-radius: 50%;
}

.success-check {
  width: 90px; height: 90px;
  min-width: 90px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  color: var(--gold-vivid);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--gold-vivid);
}

.success-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: .75rem;
  line-height: 1.2;
}

.success-content p {
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
  margin: 0;
  max-width: 680px;
}

/* Success summary card */
.booking-summary-card,
.passenger-section {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

.summary-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.summary-header h4,
.section-header h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
}

.booking-id {
  background: var(--bg);
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
}

.booking-id span { color: var(--navy); font-weight: 800; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.summary-item {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-light);
}

.summary-item label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.summary-item div {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}

/* Passenger table */
.passenger-table { margin: 0; vertical-align: middle; }

.passenger-table thead th {
  background: var(--bg);
  border: none;
  padding: 14px 16px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 800;
}

.passenger-table tbody td {
  padding: 16px;
  border-color: var(--border-light);
  font-size: .88rem;
  color: var(--ink);
}

.passenger-count {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .82rem;
}

.passenger-name { font-weight: 700; }

.gender-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
}

/* Success actions */
.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: .5rem;
}

.btn-home,
.btn-print {
  height: 50px;
  padding: 0 28px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-home {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
  box-shadow: 0 4px 16px rgba(12,31,63,.25);
}

.btn-home:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

.btn-print {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-print:hover { background: var(--bg); }

/* ─────────────────────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.hide { display: none !important; }
.field-label.invisible { visibility: hidden; }

/* Bootstrap overrides for form elements */
.form-check-label { font-size: .85rem; color: var(--ink-3); font-weight: 500; }

.btn.btn-warning { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 700; }
.btn.btn-light   { background: var(--bg); border-color: var(--border); color: var(--ink); font-weight: 600; }

/* Alert overrides */
.alert { border-radius: var(--r); font-size: .88rem; }

/* =========================================================
   INLINE SEARCH BAR
========================================================= */

.search-card-inline {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.search-form-inline {
    width: 100%;
}

.search-inline-top {
    margin-bottom: 16px;
}

.inline-trip-tabs {
    display: inline-flex;
    gap: 6px;
}

.search-inline-wrap {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
}

/* FIELDS */

.inline-field {
    flex: 1;
    min-width: 150px;
}

.inline-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* INPUT */

.search-card-inline .field-input {
    height: 50px;
    border-radius: 14px;
}

.search-card-inline .field-input input {
    height: 50px;
    font-size: 14px;
    font-weight: 500;
}

/* SWAP */

.inline-swap {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.search-card-inline .swap-btn {
    width: 46px;
    height: 46px;
}

/* SEARCH BUTTON */

.inline-search-btn {
    flex: 0 0 180px;
}

.inline-search-btn .btn-search {
    width: 100%;
    height: 50px;
    border-radius: 14px;
}

/* TRAVELLER DROPDOWN */

.search-card-inline .trav-dropdown {
    top: calc(100% + 10px);
    right: 0;
}

/* RESPONSIVE */

@media (max-width: 1400px) {

    .search-inline-wrap {
        flex-wrap: wrap;
    }

    .inline-field {
        min-width: calc(33.33% - 10px);
    }

}

@media (max-width: 992px) {

    .inline-field {
        min-width: calc(50% - 10px);
    }

    .inline-search-btn {
        flex: 1 1 100%;
    }

}

@media (max-width: 768px) {

    .search-card-inline {
        padding: 16px;
    }

    .search-inline-wrap {
        flex-direction: column;
        gap: 12px;
    }

    .inline-field,
    .inline-search-btn {
        width: 100%;
        min-width: 100%;
    }

    .inline-swap {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-bottom: 0;
    }

}


/* ─────────────────────────────────────────────────────────────
   MOBILE — Traveller dropdown fixed
───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .trav-dropdown {
    position: fixed;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 360px;
    z-index: 99999;
    border-radius: var(--r-xl);
  }

  body.trav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(8,20,42,.5);
    z-index: 99998;
  }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Search Results
───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sr-page { height: auto; overflow: visible; }
  .sr-body { flex-direction: column; overflow: visible; }

  .sr-sidebar {
    width: 100%; min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    max-height: none;
  }

  .sr-results-col { overflow: visible; padding: 1rem; }
  .flight-sort-price { font-size: 1rem; }
}

@media (max-width: 640px) {
  .sr-search-bar { padding: 0 .75rem; }
  .sr-search-summary { height: auto; padding: .65rem 0; }
  .sr-route-iata { font-size: 14px; }

  .flight-sort-tabs { gap: 6px; }
  .flight-sort-tab  { padding: 9px 8px; }
  .flight-sort-label { font-size: .72rem; }
  .flight-sort-price { font-size: .9rem; margin-top: 3px; }
  .flight-sort-tab.active::after { display: none; }

  .fc-card { padding: .85rem; }
  .fc-route { grid-template-columns: 1fr; gap: 10px; }
  .fc-endpoint--right { align-items: flex-start; text-align: left; }
  .fc-bottom { flex-direction: column; align-items: flex-start; }
  .fc-actions { width: 100%; }
  .fc-btn { flex: 1; justify-content: center; }
  .fc-time { font-size: 1.1rem; }
  .fc-amount { font-size: 1.2rem; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Booking & Success
───────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sidebar-card,
  .side-card { position: relative; top: 0; }
}

@media (max-width: 768px) {
  .booking-header { padding: 2rem 1rem; }

  .success-hero {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }

  .success-hero::before { display: none; }
  .success-content h1 { font-size: 1.5rem; }
  .summary-grid { grid-template-columns: 1fr; }

  .success-actions { flex-direction: column; }
  .btn-home, .btn-print { width: 100%; }

  .flight-time { font-size: 1.3rem; }
  .airport-code { font-size: .95rem; }

  .main-card, .passenger-card, .sidebar-card, .side-card { padding: 1.25rem; }
}
