/* =============================================================================
   TRIPNOVA DESIGN SYSTEM
   Palette:
     --navy      #0B1D3A  (dusk sky - primary brand, headers, footer)
     --coral     #FF6B4A  (sunset accent - primary CTA)
     --teal      #14B8A6  (ocean accent - hotel/secondary CTA)
     --gold      #FFB020  (ratings, highlights)
     --mist      #F7F8FB  (page background)
     --ink       #16213E  (body text)
   Type:
     Display: 'Poppins' (bold geometric, confident headlines)
     Body:    'Inter' (clean, highly legible at small sizes)
     Utility: 'JetBrains Mono' (booking refs, prices, flight numbers)
   Signature: the search card is styled as a boarding-pass ticket stub,
   complete with a perforated notch — ties the UI directly to the product.
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --navy: #0B1D3A;
  --navy-light: #14294f;
  --coral: #FF6B4A;
  --coral-dark: #e8532f;
  --teal: #14B8A6;
  --gold: #FFB020;
  --mist: #F7F8FB;
  --ink: #16213E;
  --ink-soft: #5B6B8C;
  --border-soft: #E7EAF3;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(11, 29, 58, 0.08);
  --shadow-pop: 0 20px 50px rgba(11, 29, 58, 0.16);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

.mono { font-family: 'JetBrains Mono', monospace; }

a { color: var(--coral); }
a:hover { color: var(--coral-dark); }

.text-coral { color: var(--coral) !important; }
.text-teal { color: var(--teal) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-mist { background-color: var(--mist) !important; }

/* Bootstrap primary override -> coral (main CTAs) */
.btn-primary {
  background-color: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--coral-dark);
  border-color: var(--coral-dark);
}
.btn-outline-primary { color: var(--coral); border-color: var(--coral); }
.btn-outline-primary:hover { background-color: var(--coral); border-color: var(--coral); }

.btn:focus-visible, a:focus-visible, input:focus-visible, .nav-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* =============================================================================
   NAVBAR
============================================================================= */
.navbar-tripnova {
  background: var(--navy);
  padding: 0.9rem 0;
}
.navbar-tripnova .brand-logo,
.brand-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.brand-logo i { color: var(--coral); }
.navbar-tripnova .nav-link {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
}
.navbar-tripnova .nav-link:hover,
.navbar-tripnova .nav-link.active { color: #fff; }
.navbar-tripnova .btn-signup {
  background: var(--coral);
  color: #fff;
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  font-weight: 600;
}

/* =============================================================================
   HERO + BOARDING-PASS SEARCH WIDGET (signature element)
============================================================================= */
.hero-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, #1a3a63 100%);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 9rem;
}

/* Ambient drifting cloud/plane-trail shapes */
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}
.hero-section::before {
  width: 380px; height: 380px;
  background: var(--teal);
  top: -120px; right: -80px;
}
.hero-section::after {
  width: 300px; height: 300px;
  background: var(--coral);
  bottom: -100px; left: -60px;
  opacity: 0.18;
}

.hero-plane-trail {
  position: absolute;
  top: 18%;
  left: -60px;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.55);
  animation: fly-across 14s linear infinite;
}
@keyframes fly-across {
  0%   { transform: translateX(0) translateY(0) rotate(8deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(110vw) translateY(-40px) rotate(8deg); opacity: 0; }
}

.hero-heading {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}
.hero-subtext {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
}

/* --- Boarding pass ticket card --- */
.search-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  margin-top: -6rem;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.ticket-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.6rem 0.6rem 0;
}
.ticket-tabs .tab-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 0.85rem 1.5rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all .2s ease;
}
.ticket-tabs .tab-btn i { font-size: 1.15rem; }
.ticket-tabs .tab-btn.active {
  background: var(--mist);
  color: var(--navy);
}
.ticket-tabs .tab-btn:not(.active):hover { color: var(--navy); }

.ticket-body {
  background: var(--mist);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

/* Perforated notch dividers to sell the "ticket stub" metaphor */
.ticket-body::before,
.ticket-body::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  background: var(--mist);
  border-radius: 50%;
  top: -13px;
  box-shadow: inset 0 0 0 2px #fff;
}
.ticket-body::before { left: -13px; }
.ticket-body::after { right: -13px; }

.search-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.search-field .form-control,
.search-field .form-select {
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.search-field .form-control:focus,
.search-field .form-select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,74,0.15);
}

.swap-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border-soft);
  color: var(--coral);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.swap-btn:hover { transform: rotate(180deg); border-color: var(--coral); }

.search-submit-btn {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  letter-spacing: 0.02em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.search-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255,107,74,0.35);
  color: #fff;
}

/* =============================================================================
   FLIGHT DETAILS MODAL — branded tabs + itinerary segment design
============================================================================= */
#flightDetailsModal .nav-tabs {
  border-bottom: none;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}
#flightDetailsModal .nav-tabs .nav-link {
  border: none;
  border-radius: 50px;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
  background: var(--mist);
}
#flightDetailsModal .nav-tabs .nav-link.active {
  background: var(--coral);
  color: #fff;
}

.itinerary-route-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.itinerary-segment {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.itinerary-airline-col { display: flex; align-items: center; gap: 0.65rem; }
.itinerary-plane-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,107,74,0.12); color: var(--coral);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.itinerary-duration-col i { color: var(--coral); font-size: 1.1rem; }

.itinerary-layover-pill {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed var(--border-soft);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  margin: 0.6rem auto;
  width: fit-content;
}
.itinerary-layover-pill i { color: var(--gold); margin-right: 0.3rem; }
.itinerary-footer-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.fare-rule-callout {
  background: rgba(20,184,166,0.08);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.fare-rule-callout i { color: var(--teal); margin-right: 0.4rem; }
.fare-rule-callout.warn { background: rgba(255,176,32,0.1); border-left-color: var(--gold); }
.fare-rule-callout.warn i { color: var(--gold); }

.fare-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}
.fare-option-row:hover { border-color: var(--coral); }
.fare-option-price { text-align: right; }
.fare-option-price .btn { margin-top: 0.35rem; }

.fare-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
}
.fare-row:last-child { border-bottom: none; }

.baggage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.baggage-card {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}
.baggage-card i { font-size: 1.6rem; color: var(--coral); margin-bottom: 0.5rem; display: block; }

.cancellation-table { font-size: 0.85rem; }
.cancellation-table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); border-bottom-width: 1px; }
.cancellation-table .our-fee-row { background: rgba(255,176,32,0.06); }
.cancellation-table .our-fee-row td { border-top: 2px solid var(--border-soft); }
.cancellation-terms { background: var(--mist); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.cancellation-terms li { margin-bottom: 0.35rem; }

@media (max-width: 575.98px) {
  .itinerary-segment { grid-template-columns: 1fr; text-align: center; }
  .itinerary-airline-col { justify-content: center; }
}

/* =============================================================================
   LOCATION AUTOCOMPLETE (From / To)
============================================================================= */
.location-input-wrap { position: relative; }
.location-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--coral); font-size: 0.9rem; pointer-events: none;
}
.location-display { padding-left: 2.1rem !important; cursor: text; }

.location-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  max-height: 320px;
  overflow-y: auto;
  z-index: 40;
  padding: 0.4rem;
}
.location-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
}
.location-item:hover { background: var(--mist); }
.location-item i { color: var(--coral); font-size: 0.95rem; }
.location-item-text { display: flex; flex-direction: column; }
.loc-city { font-weight: 600; color: var(--navy); font-size: 0.88rem; }
.loc-code { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--ink-soft); font-size: 0.78rem; }
.loc-name { color: var(--ink-soft); font-size: 0.76rem; }
.location-empty { text-align: center; }

.swap-btn.spin i { animation: spin-once .3s ease; }
@keyframes spin-once { from { transform: rotate(0); } to { transform: rotate(180deg); } }

/* =============================================================================
   TRAVELLERS & CABIN CLASS POPOVER
============================================================================= */
.traveller-trigger,
.guest-trigger {
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  cursor: pointer;
}
.traveller-trigger:hover,
.guest-trigger:hover { border-color: var(--coral); }

.traveller-panel,
.guest-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  z-index: 45;
}
.traveller-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.traveller-row:last-of-type { border-bottom: none; }

.counter-widget { display: flex; align-items: center; gap: 0.7rem; }
.counter-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.counter-btn:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.counter-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.counter-value { min-width: 18px; text-align: center; font-weight: 700; color: var(--navy); }

.traveller-policy-note { padding-top: 0.6rem; line-height: 1.35; }

.child-ages-wrap { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem 0; }
.child-age-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--mist); border-radius: 10px; padding: 0.4rem 0.6rem;
}
.child-age-row .child-age-select { width: 120px; font-size: 0.82rem; padding: 0.25rem 0.5rem; }

.cabin-pills { display: flex; gap: 0.5rem; }
.cabin-pill {
  flex: 1;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.cabin-pill.active { border-color: var(--coral); background: rgba(255,107,74,0.08); color: var(--coral); }

/* Return-date field reveal animation */
.return-date-field { transition: opacity .2s ease; }

/* =============================================================================
   FLIGHT REVIEW PAGE
============================================================================= */
.section-eyebrow-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.fare-rules-accordion summary { cursor: pointer; list-style: none; }
.fare-rules-accordion summary::-webkit-details-marker { display: none; }
.fare-rules-accordion summary::before { content: "▸ "; }
.fare-rules-accordion[open] summary::before { content: "▾ "; }

/* Fare Summary's Base Fare / Taxes / Other Services sections — same
   <details>-based collapsible as .fare-rules-accordion above, but with a
   circled +/- marker (matches how this kind of price breakdown is shown
   elsewhere) instead of a triangle, and no side padding since it sits
   directly in the Price Summary card rather than a bordered box. The
   marker is a real element (not a summary::before) because summary uses
   d-flex + justify-content-between for the label/amount split — a
   pseudo-element there would become an extra flex item and break that
   spacing instead of sitting next to the label. */
.fare-summary-section { margin-bottom: 0.9rem; }
.fare-summary-section summary { cursor: pointer; list-style: none; }
.fare-summary-section summary::-webkit-details-marker { display: none; }
.fare-summary-marker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-soft);
  font-size: 0.7rem; margin-right: 0.5rem; flex-shrink: 0; color: var(--ink-soft);
}
.fare-summary-marker::before { content: "+"; }
.fare-summary-section[open] .fare-summary-marker { border-color: var(--coral); color: var(--coral); }
.fare-summary-section[open] .fare-summary-marker::before { content: "−"; }
.fare-rules-text {
  white-space: pre-wrap;
  background: var(--mist);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  max-height: 260px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}
/* The vendor's FareRuleDetail is itself pre-formatted HTML (its own
   inline-styled headings/tables — confirmed against a real response), so
   it's rendered as HTML rather than escaped into .fare-rules-text's <pre>.
   This just keeps that markup from overflowing/breaking OUR card layout —
   the vendor's own inline styles still drive font sizes/colors/spacing. */
.fare-rules-html {
  max-height: 320px;
  overflow: auto;
  border-radius: 10px;
  padding: 0.5rem;
}
.fare-rules-html table { max-width: 100%; }
.fare-rules-html img { max-width: 100%; }

/* =============================================================================
   SEAT MAP (Flight Review page)
============================================================================= */
.passenger-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.passenger-tab {
  border: 1.5px solid var(--border-soft);
  background: #fff;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.passenger-tab.active { border-color: var(--coral); background: rgba(255,107,74,0.08); color: var(--coral); }

.seat-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0.9rem 0; font-size: 0.78rem; color: var(--ink-soft); }
.seat-legend span { display: flex; align-items: center; gap: 0.4rem; }
.seat-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.seat-swatch.available { background: #fff; border: 1.5px solid var(--border-soft); }
.seat-swatch.legroom { background: rgba(255,176,32,0.25); border: 1.5px solid var(--gold); }
.seat-swatch.selected { background: var(--coral); }
.seat-swatch.booked { background: var(--border-soft); }

.seat-grid { display: flex; flex-direction: column; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.5rem; }
.seat-row { display: flex; gap: 0.32rem; justify-content: center; }
.seat-btn {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.62rem;
  color: var(--ink);
  transition: all .15s ease;
}
/* Narrow phones (a 6-across row at the base 46px size needs ~330px of
   content width, which doesn't reliably fit under ~380px alongside the
   offcanvas's own padding) — shrink further so the FULL row is visible
   with NO horizontal scrollbar, matching the actual ask: not just "make
   it scrollable", make it fit. */
@media (max-width: 420px) {
  .seat-btn { width: 38px; height: 38px; font-size: 0.54rem; border-radius: 8px; }
  .seat-row { gap: 0.2rem; }
  .seatmap-plane { padding: 0 0.35rem 0.75rem; }
}
.seat-btn:hover:not(:disabled) { border-color: var(--coral); }
/* No :focus style existed before — the browser's OWN default focus ring
   (dark/black, stays on the button after a click) was being mistaken for a
   second "selected" seat, since .selected (coral fill) and a plain focus
   outline look similar at a glance. Only one seat is ever actually
   .selected per passenger (assets/js/flight-review.js dedupes on click) —
   this just stops the leftover focus ring from looking like a 2nd pick. */
.seat-btn:focus { outline: none; }
.seat-btn:focus-visible:not(.selected) { box-shadow: 0 0 0 2px var(--teal); }
.seat-btn.legroom { background: rgba(255,176,32,0.1); border-color: rgba(255,176,32,0.5); }
.seat-btn.selected { background: var(--coral); border-color: var(--coral); color: #fff; }
.seat-btn.booked { background: var(--border-soft); color: var(--ink-soft); cursor: not-allowed; opacity: 0.6; }
.seat-number { font-weight: 700; }
.seat-price { font-size: 0.6rem; opacity: 0.85; }
.seat-price.free { color: var(--teal); }
.seat-btn.selected .seat-price.free { color: #fff; }
.seat-aisle-gap { flex-shrink: 0; width: 14px; }
@media (max-width: 420px) {
  .seat-aisle-gap { width: 8px; }
}

/* Fuselage framing for the seat grid — a light-blue "outside the plane"
   band top and bottom, with a white domed nose (a simple chevron "cockpit
   window" mark on it) and a tapering tail (two wing flaps + a centre
   aisle strip), so the grid reads as a cross-section of a plane cabin.
   Deliberately built from plain CSS shapes (clip-path + border-triangles),
   not an image asset — keeps it crisp at any size and in line with the
   flat, schematic icon style used everywhere else on this site. */
.seatmap-plane {
  border: 1.5px solid var(--border-soft);
  border-radius: 28px 28px 18px 18px;
  padding: 0 0.75rem 0;
  position: relative;
  overflow: hidden;
}
.plane-nose {
  height: 60px;
  margin: 0 -0.75rem 0.75rem;
  background: linear-gradient(180deg, #e4eefb, #f2f7fc);
  border-radius: 28px 28px 0 0;
  position: relative;
  overflow: hidden; /* contains the dome to THIS band only — it must never spill down into the seat grid below */
}
.plane-nose::before {
  /* the white fuselage dome — mostly sits above the band, only its lower
     curve pokes into view within the band, like a rounded archway top */
  content: "";
  position: absolute;
  left: 20%; right: 20%; top: -34px; height: 84px;
  background: #fff;
  border-radius: 50%;
}
.plane-chevron {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  display: flex; z-index: 1;
}
.plane-chevron span { width: 20px; height: 6px; background: var(--navy); border-radius: 3px; display: block; }
.plane-chevron span:first-child { transform: rotate(28deg) translate(4px, 0); }
.plane-chevron span:last-child { transform: rotate(-28deg) translate(-4px, 0); }

.plane-tail {
  height: 46px;
  margin: 0.75rem -0.75rem 0;
  background: linear-gradient(180deg, #f2f7fc, #e4eefb);
  border-radius: 0 0 16px 16px;
  position: relative;
  overflow: hidden; /* contains the wing triangles/tapering tip to THIS band only */
  display: flex; align-items: flex-start; justify-content: center;
}
.plane-tail::before {
  /* the white tapering fuselage tip, narrowing toward the tail */
  content: "";
  position: absolute;
  left: 32%; right: 32%; top: 0; bottom: 0;
  background: #fff;
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}
.plane-tail-wing {
  width: 0; height: 0;
  border-style: solid;
  margin-top: 6px;
  position: relative; z-index: 1;
}
.plane-tail-wing.left { border-width: 0 0 32px 34px; border-color: transparent transparent var(--coral) transparent; margin-right: -6px; }
.plane-tail-wing.right { border-width: 0 34px 32px 0; border-color: transparent transparent var(--coral) transparent; margin-left: -6px; }
.plane-tail-aisle {
  width: 7px; height: 38px;
  background: var(--border-soft);
  border-radius: 4px;
  position: relative; z-index: 1;
  margin-top: 4px;
}
.seatmap-plane .seat-grid { padding: 0 0.25rem 0.75rem; }

/* Seat selection offcanvas — the full grid lives here now, not inline on
   the page (see modules/flight/book.php's #seatOffcanvas). Wider than
   Bootstrap's default offcanvas so the seat grid has room to breathe, and
   near-full-width on mobile (96vw, not 92) since every pixel matters for
   fitting a 6-across row without a horizontal scrollbar. */
.seat-offcanvas { width: 560px; max-width: 96vw; }
.seat-offcanvas .offcanvas-body { overflow-y: auto; padding-top: 0; }
.seat-offcanvas .offcanvas-footer { background: var(--mist); }

/* Passenger tabs + legend stay pinned to the top of the scrollable
   offcanvas body as the traveller scrolls through 30+ rows — otherwise
   there's no way to tell which passenger is active or what a colour means
   once the header scrolls out of view. */
.seatmap-sticky-header {
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-soft);
}

/* =============================================================================
   SSR: BAGGAGE & MEALS (Flight Review page)
============================================================================= */
.ssr-baggage-options { display: flex; flex-direction: column; gap: 0.5rem; }
.ssr-radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.ssr-radio input { margin: 0; }
.ssr-radio span:last-child { margin-left: auto; }
.ssr-radio:has(input:checked) { border-color: var(--coral); background: rgba(255,107,74,0.05); }

.ssr-meal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.counter-widget.compact-counter { gap: 0.5rem; }
.counter-widget.compact-counter .counter-btn { width: 26px; height: 26px; font-size: 0.9rem; }

.insurance-card { border: 1.5px dashed rgba(20,184,166,0.4) !important; }

.offer-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  transition: all .15s ease;
}
.offer-chip:hover { border-color: var(--gold); background: rgba(255,176,32,0.06); color: var(--ink); }
.offer-chip i { color: var(--gold); }
.offer-chip.applied { border-color: var(--teal); background: rgba(20,184,166,0.08); }
.offer-chip.applied i { color: var(--teal); }

.toast { background: #fff; box-shadow: var(--shadow-pop); border-radius: 12px; }

/* =============================================================================
   FULL SEARCH PRELOADER OVERLAY
   Sits on top of the shimmer skeleton at reduced opacity + blur, so the
   loading cards are still dimly visible behind the "searching..." message.
============================================================================= */
.search-loading-wrap { position: relative; min-height: 320px; }

.search-preloader-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 248, 251, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000; /* above the sticky navbar so it truly covers the full page */
  padding: 1.5rem;
}

.search-preloader-card {
  text-align: center;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 2.25rem 2rem;
}

.preloader-route-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  color: var(--coral);
  margin-bottom: 1rem;
}
.preloader-route-icons .bi-airplane-fill {
  animation: preloader-bounce 1.6s ease-in-out infinite;
}
.preloader-route-icons .route-swap-icon {
  font-size: 1.1rem;
  color: var(--ink-soft);
  animation: preloader-spin 2.4s linear infinite;
}
@keyframes preloader-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes preloader-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.preloader-route-line {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}
.preloader-route-line i { color: var(--coral); }
.preloader-date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.preloader-date-line .badge {
  background: #fff;
  color: var(--ink-soft);
  border: 1px solid var(--border-soft);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
}

.preloader-progress-bar {
  margin-top: 1.25rem;
  height: 4px;
  border-radius: 2px;
  background: var(--border-soft);
  overflow: hidden;
}
.preloader-progress-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 2px;
  animation: preloader-progress 1.3s ease-in-out infinite;
}
@keyframes preloader-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-route-icons .bi-airplane-fill,
  .preloader-route-icons .route-swap-icon,
  .preloader-progress-fill { animation: none !important; }
}

/* =============================================================================
   ROUND-TRIP LEG SWITCHER (sidebar Price/Time filters, per-leg)
============================================================================= */
.leg-switch-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--mist);
  padding: 0.35rem;
  border-radius: 12px;
}
.leg-switch-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 0.55rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.leg-switch-btn.active { background: var(--coral); color: #fff; box-shadow: 0 4px 10px rgba(255,107,74,0.25); }

/* =============================================================================
   APPLIED FILTERS CHIPS
============================================================================= */
.applied-filters-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.35);
  color: var(--navy);
  border-radius: 50px;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.filter-chip i.bi-airplane,
.filter-chip i.bi-airplane-fill,
.filter-chip i.bi-buildings,
.filter-chip i.bi-cash-coin { color: var(--teal); font-size: 0.8rem; }
.chip-remove-btn {
  border: none;
  background: transparent;
  padding: 0;
  line-height: 1;
  color: var(--ink-soft);
  display: flex;
}
.chip-remove-btn:hover { color: var(--coral); }
.chip-remove-btn i { font-size: 0.95rem; }

/* =============================================================================
   FARE CALENDAR SLIDE ARROWS
============================================================================= */
.fare-calendar-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0;
}
.fare-calendar-wrap .fare-calendar-strip {
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.fare-calendar-wrap .fare-calendar-strip::-webkit-scrollbar { display: none; }
.fare-cal-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.fare-cal-arrow:hover { border-color: var(--coral); color: var(--coral); }

/* =============================================================================
   ROUND-TRIP SIDE-BY-SIDE COLUMNS
   Both legs visible at once — no scrolling past onward to reach return.
============================================================================= */
.round-trip-columns {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.round-trip-col {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}
.round-trip-col:first-child { border-right: none; }
.round-trip-columns .round-trip-col + .round-trip-col {
  position: relative;
}
.round-trip-columns .round-trip-col + .round-trip-col::before {
  content: "";
  position: absolute;
  left: -0.7rem; top: 0; bottom: 0;
  width: 1px;
  background: var(--border-soft);
}
.round-trip-col-header {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.bg-teal-soft { background: rgba(20,184,166,0.12); color: var(--teal); font-weight: 600; }
.round-trip-col-list {
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 0.4rem;
}
.round-trip-col-list::-webkit-scrollbar { width: 6px; }
.round-trip-col-list::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }

.flight-result-card.compact .card-body { padding: 0.9rem 1rem; }

@media (max-width: 991.98px) {
  .round-trip-columns { flex-direction: column; }
  .round-trip-columns .round-trip-col + .round-trip-col::before { display: none; }
  .round-trip-col-list { max-height: none; overflow-y: visible; }
}

/* =============================================================================
   SHIMMER / SKELETON LOADER (flight search results)
============================================================================= */
.skeleton-backdrop { position: relative; }
.skeleton-card { position: relative; overflow: hidden; }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef0f5 25%, #f8f9fc 37%, #eef0f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.skeleton-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(0.5px);
  pointer-events: none;
}

/* =============================================================================
   FLIGHT RESULT CARD: stops timeline, coupon strike-through, selection state
============================================================================= */
.flight-timeline { display: flex; align-items: center; justify-content: center; margin: 4px 0; height: 10px; }
.flight-timeline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.flight-timeline .line { flex-grow: 1; height: 2px; background: var(--border-soft); margin: 0 4px; position: relative; display: flex; align-items: center; justify-content: space-evenly; }
.flight-timeline.no-stop .line { background: var(--teal); }
.layover-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); border: 1.5px solid #fff; cursor: help; }
.layover-caption { font-size: 0.72rem; }

.flight-result-card.selected-card { border: 2px solid var(--coral) !important; box-shadow: 0 8px 20px rgba(255,107,74,0.18) !important; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: #109485; border-color: #109485; color: #fff; }

.card-promo-strip {
  background: linear-gradient(90deg, rgba(255,176,32,0.12), rgba(255,176,32,0.03));
  border-top: 1px dashed rgba(255,176,32,0.5);
  border-left: 4px solid var(--gold);
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  color: #8a5a00;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.card-promo-strip i { color: var(--gold); margin-right: 0.35rem; }
.card-promo-strip strong { color: var(--navy); }

.seats-left-warning {
  color: #dc3545;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.15rem;
}
.seats-left-warning i { margin-right: 0.2rem; }

/* =============================================================================
   DUAL-HANDLE PRICE RANGE SLIDER
============================================================================= */
.dual-range-wrap { position: relative; height: 30px; }
.dual-range-track {
  position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  height: 4px; background: var(--border-soft); border-radius: 2px;
  pointer-events: none; /* let drags pass through to the range input thumbs beneath */
}
.dual-range-fill { position: absolute; top: 0; bottom: 0; background: var(--coral); border-radius: 2px; pointer-events: none; }
.dual-range {
  position: absolute; top: 0; left: 0; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; height: 30px;
}
.dual-range::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: all;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--coral); cursor: pointer; margin-top: 7px;
}
.dual-range::-moz-range-thumb {
  pointer-events: all; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--coral); cursor: pointer;
}
.dual-range::-webkit-slider-runnable-track { background: transparent; }

/* =============================================================================
   TIME-OF-DAY FILTER BUTTONS (Departure from X / Arrival at Y)
============================================================================= */
.time-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.time-filter-btn {
  border: 1.5px solid var(--border-soft);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  font-size: 0.74rem;
  color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  transition: all .15s ease;
}
.time-filter-btn i { font-size: 1rem; }
.time-filter-btn.active { border-color: var(--coral); background: rgba(255,107,74,0.08); color: var(--coral); }

/* =============================================================================
   FARE CALENDAR STRIP
============================================================================= */
.fare-calendar-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 1rem 0;
}
.fare-cal-day {
  flex: 0 0 auto;
  min-width: 90px;
  text-align: center;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  text-decoration: none;
  background: #fff;
  transition: all .15s ease;
}
.fare-cal-day:hover { border-color: var(--coral); }
.fare-cal-day.active { border-color: var(--coral); background: rgba(255,107,74,0.08); }
.fare-cal-date { display: block; font-size: 0.74rem; color: var(--ink-soft); font-weight: 600; }
.fare-cal-price { display: block; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--navy); font-size: 0.86rem; margin-top: 2px; }

/* =============================================================================
   COUPON BOX
============================================================================= */
.coupon-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(90deg, rgba(255,176,32,0.1), rgba(255,107,74,0.06));
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
}
.coupon-box > i { color: var(--gold); font-size: 1.1rem; }
.coupon-box input { max-width: 300px; }

/* =============================================================================
   ROUND-TRIP STICKY SUMMARY BAR
============================================================================= */
.round-trip-summary-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -8px 24px rgba(11,29,58,0.1);
  padding: 0.9rem 0;
  z-index: 100;
}

/* =============================================================================
   SECTIONS
============================================================================= */
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.deal-card, .destination-card, .feature-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.deal-card:hover, .destination-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.destination-card { position: relative; height: 320px; color: #fff; }
.destination-card img { width:100%; height:100%; object-fit: cover; }
.destination-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,29,58,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
}
.destination-card .price-tag {
  background: var(--coral);
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  display: inline-block;
  width: fit-content;
}

.feature-card { padding: 2rem 1.5rem; text-align: center; height: 100%; }
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.1rem;
}
.feature-icon.navy { background: rgba(11,29,58,0.08); color: var(--navy); }
.feature-icon.coral { background: rgba(255,107,74,0.12); color: var(--coral); }
.feature-icon.teal { background: rgba(20,184,166,0.12); color: var(--teal); }
.feature-icon.gold { background: rgba(255,176,32,0.15); color: var(--gold); }

.badge-rating {
  background: var(--navy);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Stats strip */
.stats-strip { background: var(--navy); }
.stats-strip .stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: #fff;
}
.stats-strip .stat-label { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* App promo section */
.app-promo {
  background: linear-gradient(120deg, var(--coral), #ff8c6b);
  border-radius: 28px;
  overflow: hidden;
}

/* =============================================================================
   FOOTER
============================================================================= */
.footer-tripnova { background: #071328; color: rgba(255,255,255,0.65); }
.footer-tripnova h6 { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; }
.footer-tripnova a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.92rem; }
.footer-tripnova a:hover { color: #fff; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.5rem;
}
.footer-social a:hover { background: var(--coral); }

/* =============================================================================
   AUTH PAGES
============================================================================= */
.auth-page { min-height: calc(100vh - 76px); background: var(--mist); }
.auth-card { max-width: 100%; }
.toggle-password { cursor: pointer; }

/* =============================================================================
   MISC / ACCESSIBILITY
============================================================================= */
.rounded-4 { border-radius: var(--radius-md) !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-plane-trail, .deal-card, .destination-card, .swap-btn, .search-submit-btn {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 767.98px) {
  .search-widget { margin-top: -3.5rem; }
  .ticket-body { padding: 1.25rem; }
  .hero-section { padding-bottom: 6rem; }
}

/* =============================================================================
   HOTEL SEARCH — per-room guest selector boxes
   Wider panel than the flat traveller/guest popover (300px) since it now
   stacks multiple "Room N" boxes, each with its own counters + child ages.
============================================================================= */
.hotel-rooms-panel {
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
}
.hotel-room-blocks-wrap { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.4rem; }
.hotel-room-block {
  background: var(--mist);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.hotel-room-block .traveller-row { padding: 0.4rem 0; }
.hotel-room-block-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.hotel-room-block .child-ages-wrap { margin: 0.3rem 0 0; }
.hotel-room-block .child-age-row { background: #fff; }

/* =============================================================================
   HOTEL RESULT CARDS
============================================================================= */
.hotel-card-img { object-fit: cover; min-height: 180px; }
.hotel-card:hover { box-shadow: 0 0.75rem 1.5rem rgba(10, 31, 68, 0.1) !important; }

/* =============================================================================
   HOTEL DETAIL — room selection rows
============================================================================= */
.room-option-row {
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.room-option-row:hover { border-color: var(--coral); }
.room-option-selected { border-color: var(--teal); background: rgba(20, 184, 166, 0.05); }
.gallery-thumb:hover { opacity: 0.85; }


/* =============================================================================
   BUS MODULE (Phase 1 — search results)
   Reuses existing tokens/classes wherever the shape already matches flights
   (.search-field, .location-field, .flight-timeline, .dual-range-*,
   .time-filter-*, .applied-filters-chips/.filter-chip, .skeleton-*,
   .search-preloader-*) — only genuinely new shapes get new classes below.
============================================================================= */

/* Searchable + scrollable checkbox list — used for Boarding Points,
   Dropping Points and Travels in the bus filter sidebar. */
.filter-search-box {
  position: relative;
}
.filter-search-box i.bi-search {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy);
  opacity: 0.35;
  font-size: 0.85rem;
  pointer-events: none;
}
.filter-search-box .form-control {
  padding-left: 1.9rem;
}
.filter-scroll-list {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.filter-scroll-list::-webkit-scrollbar { width: 5px; }
.filter-scroll-list::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 4px; }
.filter-scroll-list .form-check { margin-bottom: 0.4rem; }
.filter-scroll-list .form-check:last-child { margin-bottom: 0; }

/* Bus result card */
.bus-result-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.bus-result-card:hover { box-shadow: 0 10px 24px rgba(11,29,58,0.10) !important; transform: translateY(-1px); }

.bus-amenities-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.bus-amenity-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid var(--border-soft);
}

.boarding-point-row {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.85rem;
}
.boarding-point-row:last-child { border-bottom: none; }

@media (max-width: 767.98px) {
  .filter-scroll-list { max-height: 150px; }
}

/* =============================================================================
   BUS MODULE (Phase 2 — seat selection)
============================================================================= */

/* Seat map grid — each .seat-cell is positioned by an explicit inline
   grid-row/grid-column (set in JS from the row/col the backend computes),
   so the aisle gap "just works" without extra markup. */
.seat-deck-grid {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.seat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  aspect-ratio: 1;
  min-height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.seat-cell i { font-size: 0.9rem; }
.seat-cell:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(11,29,58,0.12); }
.seat-cell.seat-available { border-color: var(--teal); color: var(--teal); }
.seat-cell.seat-selected { background: var(--coral); border-color: var(--coral); color: #fff; }
.seat-cell.seat-booked { background: var(--mist); border-color: var(--border-soft); color: #C7CCDA; cursor: not-allowed; }
.seat-cell.seat-ladies-flag.seat-available { border-color: #E85D9C; color: #E85D9C; }
.seat-name-label { line-height: 1; }

.seat-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; }
.seat-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--navy); }
.seat-swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; border: 1.5px solid var(--border-soft); }
.seat-swatch.seat-available { border-color: var(--teal); }
.seat-swatch.seat-selected { background: var(--coral); border-color: var(--coral); }
.seat-swatch.seat-booked { background: var(--mist); }
.seat-swatch.seat-ladies { border-color: #E85D9C; }

#deckTabs .nav-link { border-radius: 999px; padding: 0.35rem 1rem; color: var(--navy); }
#deckTabs .nav-link.active { background: var(--navy); color: #fff; }

/* Boarding / Dropping point pick lists — clickable rows, not native radios
   (see assets/js/bus-seat-select.js for why), with a custom circle
   indicator so the selected state is unambiguous per list. */
.point-select-list {
  max-height: 260px;
  overflow-y: auto;
}
.point-select-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.3rem;
  border: 1.5px solid transparent;
  background: none;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
}
.point-select-row:hover { background: var(--mist); }
.point-select-row.selected { background: rgba(255,107,74,0.06); border-color: var(--coral); }
.point-select-radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  position: relative;
}
.point-select-row.selected .point-select-radio { border-color: var(--coral); }
.point-select-row.selected .point-select-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--coral);
}
.point-select-text { flex: 1 1 auto; }

.seat-summary-card { position: sticky; top: 1rem; }
.selected-seat-row { padding: 0.35rem 0; font-size: 0.85rem; }

@media (max-width: 991.98px) {
  .seat-summary-card { position: static; margin-top: 1rem; }
}
