/* ─── Reset & Tokens ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:       #2563EB;
  --blue-dk:    #1D4ED8;
  --blue-lt:    #EFF6FF;
  --blue-mid:   #DBEAFE;
  --green:      #059669;
  --green-lt:   #ECFDF5;
  --amber:      #D97706;
  --amber-lt:   #FFFBEB;
  --red:        #DC2626;
  --purple:     #7C3AED;
  --purple-lt:  #F5F3FF;
  --ink:        #0F172A;
  --ink-2:      #334155;
  --ink-3:      #64748B;
  --ink-4:      #94A3B8;
  --border:     #E2E8F0;
  --border-2:   #CBD5E1;
  --surface:    #FFFFFF;
  --bg:         #F1F5F9;
  --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.14);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Flatpickr overrides ────────────────────────────────────────────────── */
.flatpickr-calendar { font-family: 'Inter', system-ui, sans-serif !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--border) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--blue) !important; border-color: var(--blue) !important; }
.flatpickr-day:hover { background: var(--blue-lt) !important; }
.flatpickr-months .flatpickr-month { color: var(--ink) !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; }
.flatpickr-weekday { color: var(--ink-4) !important; font-weight: 600 !important; font-size: .75rem !important; }
.flatpickr-day.today { border-color: var(--blue) !important; }
.flatpickr-day.inRange { background: var(--blue-lt) !important; border-color: var(--blue-mid) !important; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  height: 60px; display: flex; align-items: center;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 800; color: var(--blue); letter-spacing: -.5px; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav .nav-signin { border: 1.5px solid var(--border-2); border-radius: 8px; }
.nav .nav-signin:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0F2450 0%, #1a3a6b 35%, #1e55a8 70%, #2563EB 100%);
  padding: 64px 20px 56px; position: relative; overflow: hidden;
}
.search-widget-outer {
  position: relative; z-index: 10;
  margin-top: -40px;
  padding: 0 20px 40px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(37,99,235,.35) 0%, transparent 70%);
}
.hero-eyebrow { text-align: center; color: rgba(255,255,255,.6); font-size: .8125rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; position: relative; z-index: 1; }
.hero-title { text-align: center; color: #fff; font-size: 3.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.8px; margin-bottom: 12px; position: relative; z-index: 1; }
.hero-title span { color: #60A5FA; }
.hero-sub { text-align: center; color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 36px; position: relative; z-index: 1; }

/* ─── Search Widget ──────────────────────────────────────────────────────── */
.search-widget {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible;
}
.widget-tabs { display: flex; gap: 0; padding: 12px 20px 0; border-bottom: 1px solid var(--border); }
.widget-tab {
  background: none; border: none; padding: 14px 16px;
  font-size: .875rem; font-weight: 500; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s; cursor: pointer;
}
.widget-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.widget-tab:hover:not(.active) { color: var(--ink); }
.widget-body { padding: 20px; }
.search-form { display: flex; flex-direction: column; gap: 10px; }
.search-row { display: flex; gap: 8px; align-items: flex-end; }

/* Fields */
.field { position: relative; flex: 1; }
.field label { display: block; font-size: .6875rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 5px; padding-left: 2px; }
.field-input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .9375rem; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field-input::placeholder { color: var(--ink-4); }
.field-input:disabled { background: var(--bg); color: var(--ink-4); cursor: not-allowed; }

/* Autocomplete */
.ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; min-width: 260px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); z-index: 300; max-height: 280px; overflow-y: auto;
  display: none;
}
.ac-list.open { display: block; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background .1s; }
.ac-item:hover, .ac-item.sel { background: var(--blue-lt); }
.ac-code { font-weight: 700; font-size: .8125rem; color: var(--blue); width: 34px; flex-shrink: 0; }
.ac-name { font-size: .875rem; color: var(--ink); }
.ac-country { font-size: .75rem; color: var(--ink-4); margin-left: auto; }

/* Swap */
.swap-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border);
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: .9rem; flex-shrink: 0; align-self: flex-end; margin-bottom: 1px;
  transition: all .2s;
}
.swap-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); transform: rotate(180deg); }

/* Passengers */
.pax-btn-wrap { position: relative; }
.pax-toggle {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: #fff; text-align: left; font-size: .9375rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; transition: border-color .15s, box-shadow .15s;
}
.pax-toggle:hover, .pax-toggle.open { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pax-chevron { font-size: .7rem; color: var(--ink-4); transition: transform .2s; }
.pax-toggle.open .pax-chevron { transform: rotate(180deg); }
.pax-panel {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 270px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); z-index: 300; padding: 10px 12px; display: none;
}
.pax-panel.open { display: block; }
.search-row-bottom .pax-panel { top: auto; bottom: calc(100% + 4px); }
.pax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.pax-cell {
  background: var(--bg); border-radius: var(--r-sm); padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
}
.pax-cell-label { font-size: .75rem; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; line-height: 1.3; }
.pax-cell-label span { font-size: .625rem; font-weight: 400; color: var(--ink-4); }
.pax-cabin-row { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
.pax-counter { display: flex; align-items: center; gap: 6px; }
.pax-dec, .pax-inc {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--ink-2); transition: all .15s; cursor: pointer;
}
.pax-dec:hover, .pax-inc:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.pax-dec:disabled, .pax-inc:disabled { opacity: .35; cursor: not-allowed; }
.pax-num { font-size: .875rem; font-weight: 700; min-width: 14px; text-align: center; }

/* Submit */
.btn-search {
  background: var(--blue); color: #fff; border-radius: var(--r-sm);
  padding: 11px 28px; font-size: .9375rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.btn-search:hover { background: var(--blue-dk); }
.btn-search:active { transform: scale(.98); }
.btn-search svg { width: 17px; height: 17px; }
.btn-search:disabled { opacity: .7; cursor: not-allowed; }

/* ─── Results search header (inline form on results page) ────────────────── */
.results-search-header {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 12px 0 8px; position: sticky; top: 60px; z-index: 150;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.rsh-tabs { display: flex; gap: 0; margin-bottom: 10px; }
.rsh-form .search-row-main { align-items: flex-end; }
.rsh-form .field label { font-size: .6rem; }
.rsh-form .field-input { padding: 8px 12px; font-size: .875rem; }
.rsh-form .pax-toggle  { padding: 8px 12px; font-size: .875rem; }
.rsh-form .btn-search  { padding: 9px 20px; font-size: .875rem; }
.rsh-form .swap-btn    { width: 30px; height: 30px; font-size: .8rem; }

/* ─── Results header (old compact) ──────────────────────────────────────── */
.results-header { background: #fff; border-bottom: 1px solid var(--border); padding: 10px 0; }
.results-header .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.search-summary { display: flex; align-items: center; gap: 8px; font-size: .875rem; flex-wrap: wrap; }
.sum-route { font-weight: 700; font-size: 1rem; }
.sum-sep { color: var(--ink-4); }
.btn-edit-search {
  margin-left: auto; font-size: .8125rem; color: var(--blue); font-weight: 600;
  padding: 6px 14px; border: 1.5px solid var(--blue-mid); border-radius: 100px;
  background: var(--blue-lt); white-space: nowrap; transition: background .15s;
}
.btn-edit-search:hover { background: var(--blue-mid); }

/* Progress */
.search-progress { height: 3px; background: var(--blue-mid); overflow: hidden; display: none; margin-top: 6px; }
.search-progress.active { display: block; }
.progress-bar { height: 100%; background: var(--blue); border-radius: 2px; transition: width .5s ease; width: 0%; }
.search-status { font-size: .75rem; color: var(--ink-4); padding: 4px 0 2px; }

/* ─── Top picks (Cheapest / Fastest / Best) ──────────────────────────────── */
.top-picks { padding: 16px 0 0; }
.top-picks-inner {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.top-pick-card {
  flex: 1; min-width: 160px; padding: 14px 18px;
  border-radius: var(--r); border: 2px solid var(--border);
  background: #fff; cursor: pointer; text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  font-family: inherit;
}
.top-pick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tp-green { border-color: #BBF7D0; background: #F0FDF4; }
.tp-green:hover { border-color: var(--green); }
.tp-blue  { border-color: var(--blue-mid); background: var(--blue-lt); }
.tp-blue:hover  { border-color: var(--blue); }
.tp-purple{ border-color: #DDD6FE; background: #F5F3FF; }
.tp-purple:hover{ border-color: var(--purple); }
.top-pick-icon  { font-size: 1.1rem; margin-bottom: 4px; }
.top-pick-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); margin-bottom: 4px; }
.top-pick-price { font-size: 1.375rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.top-pick-meta  { font-size: .75rem; color: var(--ink-3); margin-top: 4px; }
.tp-green .top-pick-price { color: var(--green); }
.tp-blue  .top-pick-price { color: var(--blue); }
.tp-purple.top-pick-price  { color: var(--purple); }

/* Flash highlight when clicking a top pick */
@keyframes fc-flash { 0%,100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(37,99,235,.3); } }
.fc-highlight { animation: fc-flash 1.8s ease; }

/* Results page: filter sidebar top offset accounts for sticky search header */
.results-page .filter-sidebar { top: 200px; max-height: calc(100vh - 210px); }

/* ─── Results layout ─────────────────────────────────────────────────────── */
.results-layout {
  display: grid; grid-template-columns: 256px 1fr;
  gap: 20px; align-items: start; padding: 16px 0 48px;
}

/* ─── Filter sidebar ─────────────────────────────────────────────────────── */
.filter-sidebar {
  background: #fff; border-radius: var(--r); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); position: sticky; top: 72px; overflow-y: auto; max-height: calc(100vh - 80px);
}
.filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.filter-header-title { font-size: .9375rem; font-weight: 700; }
.filter-clear { font-size: .8rem; color: var(--blue); font-weight: 500; cursor: pointer; }
.filter-close-btn { display: none; font-size: 1.25rem; color: var(--ink-3); cursor: pointer; }
.filter-section { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-sec-title { font-size: .7rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 10px; }

/* Stop options */
.stop-opts { display: flex; flex-direction: column; gap: 4px; }
.stop-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm); cursor: pointer;
  transition: all .15s; user-select: none;
}
.stop-opt.active { border-color: var(--blue); background: var(--blue-lt); }
.stop-opt-label { font-size: .875rem; font-weight: 500; flex: 1; }
.stop-opt-price { font-size: .75rem; color: var(--ink-3); }

/* Checkbox opts */
.check-opts { display: flex; flex-direction: column; gap: 2px; }
.check-opt { display: flex; align-items: center; gap: 8px; padding: 6px 2px; cursor: pointer; }
.check-opt input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--blue); flex-shrink: 0; }
.check-opt-label { font-size: .875rem; color: var(--ink); flex: 1; }
.check-opt-price { font-size: .75rem; color: var(--ink-4); }

/* Price slider */
.price-slider-wrap { padding: 2px 0 4px; }
input[type="range"] { width: 100%; accent-color: var(--blue); cursor: pointer; }
.price-range-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-top: 6px; }

/* Time of day filter */
.time-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.time-opt {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 6px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s; user-select: none; text-align: center;
}
.time-opt.active { border-color: var(--blue); background: var(--blue-lt); }
.time-opt-lbl   { font-size: .75rem; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; }
.time-opt-range { font-size: .65rem; font-weight: 400; color: var(--ink-4); }

/* Mobile filter button */
.mobile-filter-btn {
  display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 100px;
  padding: 12px 24px; font-size: .9375rem; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 300; gap: 8px; align-items: center;
  white-space: nowrap;
}

/* Filter backdrop */
.filter-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.5); z-index: 398; backdrop-filter: blur(2px);
}
.filter-backdrop.active { display: block; }

/* ─── Results area ───────────────────────────────────────────────────────── */
.results-area { display: flex; flex-direction: column; gap: 16px; }
.results-meta { display: flex; align-items: center; justify-content: space-between; }
.results-meta-controls { display: flex; align-items: center; gap: 8px; }
.results-count { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.sort-select {
  padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .875rem; color: var(--ink); background: #fff; outline: none; cursor: pointer;
}

/* ─── Flight Card ────────────────────────────────────────────────────────── */
.fc {
  background: #fff; border-radius: var(--r);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.fc:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }

/* Badge accent — colored top border on highlighted cards */
.fc.fc-badge-cheapest { border-top: 3px solid var(--green); }
.fc.fc-badge-fastest  { border-top: 3px solid var(--blue); }
.fc.fc-badge-best     { border-top: 3px solid var(--purple); }

/* Badge bar — full-width colored banner at the top of the card */
.fc-badge-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 22px; font-size: .8125rem; font-weight: 700; letter-spacing: .1px;
}
.fc-badge-bar--cheap { background: #F0FDF4; color: var(--green); border-bottom: 1px solid #BBF7D0; }
.fc-badge-bar--fast  { background: var(--blue-lt); color: var(--blue); border-bottom: 1px solid var(--blue-mid); }
.fc-badge-bar--best  { background: #F5F3FF; color: var(--purple); border-bottom: 1px solid #DDD6FE; }

/* Select button chevron rotation */
.btn-book-chevron { font-size: .65rem; transition: transform .2s; display: inline-block; margin-left: 2px; }
.btn-book-chevron.rotated { transform: rotate(180deg); }

/* Results list spacing */
#results-list { display: flex; flex-direction: column; gap: 12px; }

.fc-main {
  display: grid; grid-template-columns: 160px 1fr auto;
  gap: 16px; padding: 20px 22px; align-items: center;
}

/* Airline col */
.fc-airline { display: flex; align-items: center; gap: 10px; }
.fc-logo { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: 8px; border: 1.5px solid var(--border); padding: 4px; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.fc-logo-fb {
  width: 44px; height: 44px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--blue-lt); color: var(--blue); font-size: .7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; text-align: center; flex-shrink: 0;
}
.fc-airline-name { font-size: .8125rem; color: var(--ink-2); font-weight: 600; line-height: 1.3; max-width: 100px; }

/* Route col */
.fc-route { display: flex; align-items: center; gap: 12px; }
.fc-time-wrap { text-align: center; flex-shrink: 0; }
.fc-time { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--ink); }
.fc-dayshift { font-size: .65rem; color: var(--amber); font-weight: 700; vertical-align: super; }
.fc-iata { font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.fc-city { font-size: .75rem; color: var(--ink-4); margin-top: 1px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fc-line-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 4px; }
.fc-duration { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.fc-line { width: 100%; position: relative; height: 2px; background: var(--border-2); border-radius: 1px; }
.fc-line-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-evenly; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; border: 2px solid var(--border-2); }
.fc-stop-label { font-size: .75rem; font-weight: 600; }
.fc-stop-label.nonstop  { color: var(--green); }
.fc-stop-label.one-stop { color: var(--amber); }
.fc-stop-label.multi    { color: var(--red); }
.fc-layover-cities { font-weight: 400; color: var(--ink-4); }

/* Price col */
.fc-price-col { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 130px; }
.fc-price { font-size: 1.875rem; font-weight: 800; color: var(--ink); line-height: 1; }
.fc-pax { font-size: .75rem; color: var(--ink-4); }
.fc-extras { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fc-bag { font-size: .75rem; font-weight: 500; }
.fc-bag-ok { color: var(--green); }
.fc-bag-no { color: var(--ink-4); }
.fc-deals-count { font-size: .75rem; color: var(--blue); font-weight: 500; }
.btn-book {
  background: var(--blue); color: #fff; border-radius: var(--r-sm);
  padding: 10px 20px; font-size: .875rem; font-weight: 700;
  transition: background .15s; white-space: nowrap; width: 100%;
}
.btn-book:hover { background: var(--blue-dk); }

/* Footer toggle */
.fc-footer {
  border-top: 1px solid var(--border); padding: 0;
}
.fc-detail-btn {
  width: 100%; padding: 10px 22px; display: flex; align-items: center; gap: 6px;
  font-size: .8125rem; color: var(--blue); font-weight: 500;
  background: var(--bg); transition: background .15s; cursor: pointer;
}
.fc-detail-btn:hover { background: var(--blue-lt); }
.fc-detail-btn-label { flex: 1; text-align: left; }
.fc-chevron { width: 16px; height: 16px; transition: transform .25s; flex-shrink: 0; }
.fc-detail-btn.open .fc-chevron { transform: rotate(180deg); }

/* Deals panel */
.fc-deals { display: none; border-top: 1px solid var(--border); background: #FAFBFC; padding: 4px 0; }
.fc-deals.open { display: block; }
.deal-row { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); }
.deal-row:last-child { border-bottom: none; }
.deal-gate { flex: 1; }
.deal-gate-name { font-size: .875rem; font-weight: 600; }
.deal-gate-bag { font-size: .75rem; color: var(--ink-4); margin-top: 2px; }
.deal-gate-price { font-size: 1.125rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.btn-deal {
  background: var(--blue); color: #fff; border-radius: var(--r-sm);
  padding: 8px 18px; font-size: .875rem; font-weight: 700;
  transition: background .15s; white-space: nowrap;
  display: inline-block; cursor: pointer; border: none; font-family: inherit;
}
.btn-deal:hover { background: var(--blue-dk); }

/* Deal note — affiliate disclosure in deals panel */
.deal-note {
  padding: 10px 22px; font-size: .75rem; color: var(--ink-4);
  background: #FAFBFC; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}

/* Flight detail — timeline layout */
.fc-detail { display: none; border-top: 1px solid var(--border); background: #FAFBFC; }
.fc-detail.open { display: block; }
.detail-seg { padding: 16px 20px; }
.detail-seg + .detail-seg { border-top: 1px dashed var(--border); }
.detail-seg-label { font-size: .7rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 12px; }

/* Each flight leg: 3 rows — dep, meta, arr */
.detail-leg + .detail-leg { margin-top: 4px; }
.detail-row {
  display: grid;
  grid-template-columns: 58px 20px 1fr;
  align-items: center;
  min-height: 24px;
}
/* Time column */
.detail-time-col { text-align: right; padding-right: 8px; }
.detail-time { font-size: .9375rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.detail-date { font-size: .65rem; color: var(--ink-4); margin-top: 1px; white-space: nowrap; }
/* Node column — dot or line */
.detail-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  align-self: stretch;
}
.detail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ink-3); background: #FAFBFC; flex-shrink: 0;
}
.detail-dot-arr { border-color: var(--blue); background: var(--blue); }
.detail-vline { width: 2px; flex: 1; background: var(--border-2); min-height: 28px; }
/* Info column */
.detail-info { padding-left: 10px; }
.detail-place { font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.detail-place-sub { font-size: .75rem; color: var(--ink-4); margin-top: 1px; }
/* Leg meta row */
.detail-row-leg { min-height: 40px; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 3px 10px;
  font-size: .75rem; color: var(--ink-4); padding: 3px 0;
}
.detail-meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 100px;
  padding: 2px 8px; font-size: .7rem; font-weight: 500; color: var(--ink-3);
}
/* Layover banner */
.detail-row-layover {
  background: var(--amber-lt); border-radius: var(--r-sm);
  margin: 2px 0; min-height: 32px;
}
.detail-row-layover .detail-node { color: var(--amber); padding: 0 2px; }
.detail-layover-txt { font-size: .8rem; font-weight: 600; color: var(--amber); }

/* ─── Skeleton ───────────────────────────────────────────────────────────── */
.fc-skeleton {
  background: #fff; border-radius: var(--r); border: 1px solid var(--border);
  padding: 20px 22px; display: flex; align-items: center; gap: 20px;
}
.sk {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Empty / Error ──────────────────────────────────────────────────────── */
.state-box { text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--r); border: 1px solid var(--border); }
.state-icon { font-size: 2.5rem; margin-bottom: 12px; }
.state-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
.state-sub { font-size: .9rem; color: var(--ink-3); }

/* ─── Homepage Sections ──────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-title { font-size: 1.875rem; font-weight: 800; text-align: center; letter-spacing: -.4px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--ink-3); font-size: 1rem; margin-bottom: 40px; }

/* Destinations */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dest-card {
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s;
  background: var(--surface);
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-img {
  height: 200px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.dest-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 60%);
}
.dest-img-city { position: absolute; bottom: 14px; left: 16px; color: #fff; font-size: 1.25rem; font-weight: 800; }
.dest-img-country { position: absolute; bottom: 14px; right: 16px; color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 500; }
.dest-body { padding: 14px 16px; }
.dest-route { font-size: .8125rem; color: var(--ink-3); margin-bottom: 4px; }
.dest-explore { font-size: .875rem; font-weight: 600; color: var(--blue); }
.dest-dates { font-size: .75rem; color: var(--ink-4); margin-top: 2px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-text { font-size: .875rem; color: var(--ink-3); line-height: 1.7; }

/* Trust bar */
.trust-bar { background: var(--blue); padding: 20px 0; }
.trust-items { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #fff; }
.trust-icon { font-size: 1.5rem; }
.trust-text { font-size: .875rem; font-weight: 500; }
.trust-num { font-size: 1.25rem; font-weight: 800; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .2s; display: block; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-img { height: 190px; background-size: cover; background-position: center; position: relative; }
.blog-img-tag { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.5); color: #fff; font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .5px; }
.blog-body { padding: 16px 18px; }
.blog-date { font-size: .75rem; color: var(--ink-4); margin-bottom: 8px; }
.blog-title { font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--ink); }
.blog-read { font-size: .8125rem; color: var(--blue); font-weight: 500; margin-top: 10px; display: inline-block; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%); padding: 64px 0; }
.newsletter-inner { text-align: center; max-width: 520px; margin: 0 auto; }
.newsletter h2 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1; padding: 12px 16px; border-radius: var(--r-sm);
  border: none; font-size: .9375rem; outline: none;
}
.newsletter-btn {
  background: #fff; color: var(--blue); font-weight: 700;
  padding: 12px 20px; border-radius: var(--r-sm); font-size: .9375rem;
  transition: background .15s; flex-shrink: 0;
}
.newsletter-btn:hover { background: var(--blue-lt); }

/* ─── Search row (single horizontal line) ────────────────────────────────── */
.search-row-main {
  display: flex; gap: 8px; align-items: flex-end; flex-wrap: nowrap; margin-bottom: 8px;
}
.search-row-main .field-origin,
.search-row-main .field-dest { flex: 2; min-width: 0; }
.search-row-main .field-date  { flex: 1.2; min-width: 0; }

/* Bottom row — pax + search button, always visible */
.search-row-bottom {
  display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap;
}
.search-row-bottom .field-pax { flex: 1; min-width: 200px; }
.search-row-bottom .btn-search { align-self: flex-end; }

/* One-line layout: round trip & one-way merge both rows into a single line */
.search-form.trip-oneline {
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.search-form.trip-oneline .search-row-main {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}
.search-form.trip-oneline .search-row-bottom {
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.search-form.trip-oneline .search-row-bottom .field-pax { min-width: 0; }
.search-form.trip-oneline #form-error { flex: 0 0 100%; }

/* Hero content wrapper */
.hero-content { position: relative; z-index: 1; }

/* ─── Footer (simplified) ────────────────────────────────────────────────── */
.site-footer { background: #0F172A; color: #64748B; padding: 40px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .875rem; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-divider { border: none; border-top: 1px solid #1E293B; margin-bottom: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; flex-wrap: wrap; gap: 8px; }
.footer-simple { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #1E293B; margin-bottom: 16px; }
.footer-links-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links-row a { font-size: .875rem; color: #64748B; transition: color .15s; }
.footer-links-row a:hover { color: #fff; }

/* ─── Multi-city form ────────────────────────────────────────────────────── */
.mc-leg { margin-bottom: 12px; }
.mc-leg-label { font-size: .7rem; font-weight: 700; color: var(--ink-4); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px; }
.mc-leg-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.mc-leg-row .field { flex: 1; min-width: 0; }
.mc-remove-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-2); color: var(--ink-3); font-size: .85rem; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; align-self: flex-end; margin-bottom: 1px; }
.mc-remove-btn:hover { border-color: var(--red); color: var(--red); }
.mc-add-btn { background: none; border: 1.5px dashed var(--border-2); color: var(--blue); font-size: .875rem; font-weight: 600; padding: 9px 18px; border-radius: var(--r-sm); cursor: pointer; margin-top: 4px; transition: all .15s; }
.mc-add-btn:hover { border-color: var(--blue); background: var(--blue-lt); }

/* ─── Load more ──────────────────────────────────────────────────────────── */
.load-more-wrap { text-align: center; padding: 20px 0; }
.btn-load-more { padding: 12px 32px; border: 1.5px solid var(--border-2); border-radius: 100px; font-size: .9375rem; font-weight: 600; color: var(--blue); background: #fff; cursor: pointer; transition: all .15s; }
.btn-load-more:hover { background: var(--blue-lt); border-color: var(--blue); }
.results-end { text-align: center; padding: 16px; font-size: .8125rem; color: var(--ink-4); }

/* ─── Stale results popup ────────────────────────────────────────────────── */
#stale-popup { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.stale-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); }
.stale-card { position: relative; background: #fff; border-radius: 20px; padding: 40px 36px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.stale-icon { font-size: 2.5rem; margin-bottom: 12px; }
.stale-title { font-size: 1.375rem; font-weight: 800; margin-bottom: 10px; }
.stale-sub { color: var(--ink-3); line-height: 1.7; margin-bottom: 24px; font-size: .9375rem; }
.stale-refresh { width: 100%; justify-content: center; margin-bottom: 12px; }
.stale-dismiss { background: none; border: none; color: var(--ink-4); font-size: .875rem; cursor: pointer; font-family: inherit; text-decoration: underline; }
.stale-dismiss:hover { color: var(--ink-2); }

/* ─── Cookie consent ─────────────────────────────────────────────────────── */
#cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  background: #1E293B; color: #CBD5E1; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .875rem; box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
#cookie-bar p { flex: 1; min-width: 200px; margin: 0; line-height: 1.5; }
#cookie-bar a { color: #60A5FA; text-decoration: underline; }
.cookie-accept { background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: .875rem; font-weight: 600; cursor: pointer; font-family: inherit; flex-shrink: 0; transition: background .15s; }
.cookie-accept:hover { background: var(--blue-dk); }
.cookie-decline { background: none; border: none; color: #94A3B8; font-size: .8125rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cookie-decline:hover { color: #fff; }

/* ─── Price alert banner ─────────────────────────────────────────────────── */
.price-alert-bar {
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  padding: 20px 0;
}
.price-alert-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.price-alert-text h3 { color: #fff; font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.price-alert-text p  { color: rgba(255,255,255,.75); font-size: .875rem; }
.price-alert-form { display: flex; gap: 8px; flex: 1; min-width: 280px; }
.price-alert-input { flex: 1; padding: 11px 16px; border-radius: var(--r-sm); border: none; font-size: .9375rem; outline: none; font-family: inherit; }
.price-alert-btn { background: #fff; color: var(--blue); font-weight: 700; padding: 11px 20px; border-radius: var(--r-sm); font-size: .875rem; border: none; cursor: pointer; font-family: inherit; transition: background .15s; white-space: nowrap; }
.price-alert-btn:hover { background: var(--blue-lt); }

/* ─── How It Works ───────────────────────────────────────────────────────── */
.hiw-section { background: #F8FAFC; }
.hiw-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; max-width: 860px; margin: 0 auto;
}
.hiw-step {
  flex: 1; text-align: center; padding: 0 20px;
}
.hiw-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.hiw-icon { font-size: 1.75rem; margin-bottom: 10px; }
.hiw-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.hiw-text  { font-size: .875rem; color: var(--ink-3); line-height: 1.6; }
.hiw-connector {
  flex: 0 0 48px; height: 2px; background: #CBD5E1;
  margin-top: 20px; align-self: flex-start;
}

/* ─── Popular Routes by Region ───────────────────────────────────────────── */
.routes-section { background: #fff; }
.routes-tabs {
  display: flex; gap: 0; border-bottom: 2px solid #E2E8F0;
  margin-bottom: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.routes-tab {
  padding: 10px 20px; font-size: .875rem; font-weight: 600;
  color: var(--ink-3); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit; transition: color .15s;
}
.routes-tab:hover { color: var(--blue); }
.routes-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.routes-panel { display: none; }
.routes-panel.active { display: block; }
.routes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.route-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #F8FAFC;
  border-radius: var(--r-sm); color: var(--ink);
  text-decoration: none; font-size: .875rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.route-link:hover { background: var(--blue-lt); color: var(--blue); }
.route-link::before { content: "✈"; font-size: .75rem; opacity: .5; }

/* ─── Cheap Flight Tips ──────────────────────────────────────────────────── */
.tips-section { background: #F8FAFC; }
.tips-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.tip-card {
  background: #fff; border-radius: var(--r); padding: 24px 20px;
  box-shadow: var(--shadow-sm); text-align: center;
}
.tip-icon  { font-size: 2rem; margin-bottom: 12px; }
.tip-title { font-size: .9375rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.tip-text  { font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }

/* ─── Browse by Destination Type ────────────────────────────────────────── */
.browse-section { background: #fff; }
.browse-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.browse-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; background: #F8FAFC; border-radius: var(--r);
  text-decoration: none; color: var(--ink);
  transition: background .15s, transform .15s;
}
.browse-card:hover { background: var(--blue-lt); transform: translateY(-2px); }
.browse-icon  { font-size: 2rem; }
.browse-label { font-size: .8125rem; font-weight: 600; text-align: center; color: var(--ink); }

/* ─── Trending Searches ──────────────────────────────────────────────────── */
.trending-section { background: #F8FAFC; }
.trending-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.trending-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: #fff;
  border: 1.5px solid #E2E8F0; border-radius: 100px;
  text-decoration: none; color: var(--ink);
  font-size: .875rem; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.trending-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.trending-pill::before { content: "🔥"; font-size: .75rem; }

/* ─── Footer (expanded) ──────────────────────────────────────────────────── */
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid #1E293B;
}
.footer-col-title {
  font-size: .8125rem; font-weight: 700; color: #CBD5E1;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a {
  color: #64748B; font-size: .875rem; text-decoration: none;
  transition: color .15s;
}
.footer-col-links a:hover { color: #fff; }
.footer-brand-desc {
  font-size: .8125rem; color: #64748B; line-height: 1.6; margin-top: 8px; max-width: 220px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .routes-grid    { grid-template-columns: repeat(2, 1fr); }
  .tips-grid      { grid-template-columns: repeat(2, 1fr); }
  .browse-grid    { grid-template-columns: repeat(3, 1fr); }
  .hiw-grid       { flex-direction: column; align-items: center; }
  .hiw-connector  { width: 2px; height: 32px; margin: 0 auto; flex: 0 0 32px; }
  .results-layout { grid-template-columns: 1fr; }
  .filter-sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 85vh; overflow-y: auto; z-index: 400;
    transform: translateY(100%); transition: transform .35s cubic-bezier(.32,0,.67,0);
    box-shadow: var(--shadow-lg);
  }
  .filter-sidebar.mobile-open { transform: translateY(0); }
  .filter-close-btn { display: block; }
  .mobile-filter-btn { display: flex; }
  /* Flight card — stack airline, route, price vertically on tablet */
  .fc-main { display: flex; flex-direction: column; gap: 10px; }
  .fc-airline { flex-direction: row; }
  .fc-price-col { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .fc-price-col .btn-book { width: auto; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* Pax picker: open upward on mobile so it doesn't go off-screen */
  .pax-panel { left: auto; right: 0; }
}
@media (max-width: 768px) {
  /* On mobile, always stack — one-line is desktop-only */
  .search-form.trip-oneline { flex-direction: column; }
  .search-form.trip-oneline .search-row-main { margin-bottom: 0; }
  .search-form.trip-oneline .search-row-bottom { flex-wrap: wrap; }
  .search-row-main { flex-wrap: wrap; }
  .search-row-main .field-origin,
  .search-row-main .field-dest { flex: 1 1 calc(50% - 24px); }
  .search-row-main .field-date  { flex: 1 1 calc(50% - 4px); }
  .search-row-bottom { flex-wrap: wrap; }
  .search-row-bottom .field-pax { flex: 1 1 100%; }
  .search-row-bottom .btn-search { flex: 1 1 100%; justify-content: center; height: 48px; font-size: 1rem; }
  #return-date-field.hidden { display: none; }
  .top-picks-inner { flex-direction: column; }
  .top-pick-card { min-width: 0; }
  /* Pax panel full-width on mobile */
  .pax-panel { left: 0; right: 0; min-width: 0; }
  /* Deal rows stack on mobile */
  .deal-row { flex-wrap: wrap; gap: 8px; }
  /* Make touch targets bigger */
  .pax-dec, .pax-inc { width: 28px; height: 28px; font-size: 1.1rem; }
  .stop-opt, .time-opt, .check-opt { min-height: 36px; }
  .btn-book { padding: 11px 16px; }
}
@media (max-width: 640px) {
  .routes-grid  { grid-template-columns: repeat(2, 1fr); }
  .tips-grid    { grid-template-columns: 1fr; }
  .browse-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 16px 40px; }
  .search-widget-outer { margin-top: -30px; padding: 0 12px 32px; }
  .hero-title { font-size: 2.25rem; }
  .swap-btn { align-self: center; transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(90deg) scale(1.1); }
  .dest-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .nav a:not(.nav-signin):not(:last-child) { display: none; }
  .results-layout { padding-bottom: 80px; }
  .fc-route { flex-wrap: wrap; gap: 8px; }
  .trust-items { gap: 24px; }
  /* Results search header: compact on small screens */
  .results-search-header { padding: 8px 0; }
  .rsh-form { gap: 6px; }
  .search-row-main { gap: 6px; }
  /* Detail timeline on mobile: tighter time column */
  .detail-row { grid-template-columns: 48px 18px 1fr; }
  .detail-time { font-size: .875rem; }
  .detail-place { font-size: .8125rem; }
  .detail-seg { padding: 14px 14px; }
  .detail-meta-pill { font-size: .65rem; padding: 2px 6px; }
}
