/* SkyFareNet: brand band, floating search bar, sidebar filters (bottom sheet on phones), ticket cards.
   All colours are tokens below; dark mode redefines them. */
:root {
  color-scheme: light dark;
  --brand: #1257f0;
  --brand-strong: #0b43c4;
  --band-1: #0a3fd1;
  --band-2: #1463ff;
  --band-3: #4f8dff;
  --accent: #ff6a00;
  --accent-strong: #e65c00;
  --on-accent: #ffffff;
  --on-brand: #ffffff;
  --bg: #f1f4fa;
  --card: #ffffff;
  --field: #ffffff;
  --soft: #edf3ff;          /* light brand tint for highlights */
  --text: #0f1b33;
  --muted: #5b6880;
  --border: #e1e6ef;
  --good: #0d8a5a;
  --good-bg: #e2f6ec;
  --warn: #b45309;
  --warn-bg: #fff3e0;
  --error-bg: #fdecec;
  --error: #b42318;
  --demo-bg: #fff4d6;
  --demo-text: #7a4b00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 51, 0.05), 0 6px 20px rgba(15, 27, 51, 0.06);
  --shadow-lift: 0 2px 4px rgba(15, 27, 51, 0.06), 0 14px 32px rgba(15, 27, 51, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6c9bff;
    --brand-strong: #8fb3ff;
    --band-1: #061536;
    --band-2: #0b2a6b;
    --band-3: #1b47a8;
    --accent: #ff7a1a;
    --accent-strong: #ff8f3d;
    --on-brand: #0a1120;
    --bg: #0a1120;
    --card: #121b2e;
    --field: #172238;
    --soft: #172a4d;
    --text: #e8edf7;
    --muted: #98a6bf;
    --border: #243250;
    --good: #3ccf8e;
    --good-bg: #0f2e22;
    --warn: #f5a524;
    --warn-bg: #2e2210;
    --error-bg: #3a1414;
    --error: #ff8a80;
    --demo-bg: #3a2c08;
    --demo-text: #ffd27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 36px rgba(0, 0, 0, 0.35);
  }
}

@view-transition { navigation: auto; }  /* smooth page-to-page fades where supported */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---- brand band: header + hero ------------------------------------------------ */
.band {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 360px at 85% -20%, rgba(255, 255, 255, 0.20), transparent 60%),
    radial-gradient(700px 300px at -10% 120%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, var(--band-1) 0%, var(--band-2) 55%, var(--band-3) 100%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { color: #fff; text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; opacity: 0.9; transition: background 0.2s var(--ease); }
.topnav a:hover { background: rgba(255, 255, 255, 0.16); opacity: 1; }

.hero { padding-top: 20px; padding-bottom: 28px; position: relative; z-index: 1; }
.band-hero .hero { padding-top: 44px; padding-bottom: 64px; }
.hero-art { position: absolute; right: 0; top: 0; width: min(620px, 60%); color: rgba(255, 255, 255, 0.28); pointer-events: none; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin: 0 0 8px; letter-spacing: -0.03em; max-width: 18ch; }
.hero .lead { margin: 0 0 24px; opacity: 0.9; font-size: 1.08rem; }
.hero-compact { padding-top: 4px; padding-bottom: 22px; }

/* ---- floating search bar --------------------------------------------------------- */
.searchbar {
  position: relative; display: grid; gap: 2px; padding: 6px; border-radius: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(170px, 1.1fr) auto;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(4, 22, 70, 0.25);
}
.sb-field {
  position: relative; background: var(--field); color: var(--text); padding: 9px 14px 7px;
  display: flex; flex-direction: column; justify-content: center; min-height: 64px; min-width: 0;
}
.sb-field:first-child { border-radius: 14px 0 0 14px; }
.sb-field label { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.sb-field input, .sb-field select {
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--text); border: 0; padding: 2px 0; background: transparent; width: 100%; min-width: 0;
}
.sb-field input::placeholder { color: var(--muted); font-weight: 500; }
.sb-field input:focus, .sb-field select:focus { outline: none; }
.sb-field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); z-index: 1; }
.sb-hint { font-size: 0.7rem; color: var(--muted); }
.sb-pair { display: flex; gap: 6px; }
.sb-pair select:first-child { flex: 1 1 auto; }
.sb-pair select:last-child { flex: 0 0 62px; width: 62px; color: var(--muted); }
.sb-field input[type=date] { font-size: 0.95rem; }
.sb-pax { border-radius: 0 14px 14px 0; }
.sb-to { padding-left: 26px; }
.sb-swap {
  position: absolute; z-index: 2; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--field); color: var(--brand);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.25s var(--ease);
}
.sb-swap:hover { color: var(--accent); transform: translate(-50%, -50%) rotate(180deg); }
.sb-go {
  margin-left: 6px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 800; font-size: 1.05rem; padding: 0 30px; cursor: pointer; min-height: 64px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.sb-go:hover { background: var(--accent-strong); }
.sb-go:active { transform: scale(0.98); }
.errors { background: var(--error-bg); color: var(--error); border-radius: var(--radius-sm); padding: 12px 12px 12px 32px; margin: 12px 0 0; }

.recent { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.recent-title { font-size: 0.82rem; opacity: 0.85; margin-right: 4px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 12px; border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 0.85rem; font-weight: 600; transition: background 0.2s var(--ease);
}
.chip span { font-weight: 400; opacity: 0.85; }
.chip:hover { background: rgba(255, 255, 255, 0.28); }

.demo-banner { background: var(--demo-bg); color: var(--demo-text); text-align: center; padding: 8px 16px; font-weight: 600; }

/* ---- home ------------------------------------------------------------------------ */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -30px 0 8px; position: relative; z-index: 2; }
.trust div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; display: flex; flex-direction: column; }
.demo-banner + main .trust { margin-top: 16px; }
.trust strong { font-size: 0.95rem; }
.trust span { color: var(--muted); font-size: 0.85rem; }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; padding: 20px 0 8px; }
.audience {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px 12px; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.audience:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.audience-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.audience-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--brand); display: grid; place-items: center; }
.audience-icon svg { width: 22px; height: 22px; fill: currentColor; }
.audience h2 { font-size: 1.05rem; margin: 2px 0 2px; }
.audience p { margin: 0; font-size: 0.84rem; }
.routes { display: flex; flex-direction: column; gap: 2px; }
.route {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 9px 10px; min-height: 44px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-size: 0.86rem; line-height: 1.3; transition: background 0.15s var(--ease);
}
.route:hover { background: var(--soft); }
.route-arrow { color: var(--muted); transition: transform 0.2s var(--ease); }
.route:hover .route-arrow { transform: translateX(3px); color: var(--brand); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 16px 0 40px; }
.features div { background: var(--card); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.features h3 { margin: 0 0 4px; font-size: 1rem; }
.features p { margin: 0; color: var(--muted); }

/* ---- results ----------------------------------------------------------------------- */
.results-head { padding: 20px 0 6px; }
.results-head h1 { font-size: 1.4rem; margin: 0 0 2px; }
.results-head p { margin: 0; }
.live-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 10px 0 12px;
}
.live-box.prominent { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.live-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; font-size: 0.9rem; }
.btn-live { background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 800; padding: 11px 20px; border-radius: 12px; white-space: nowrap; transition: background 0.2s var(--ease); }
.btn-live:hover { background: var(--accent-strong); }
.live-box:not(.prominent) .btn-live { background: transparent; color: var(--accent-strong); box-shadow: inset 0 0 0 1.5px var(--accent); }
.notice { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.empty { background: var(--card); padding: 28px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }

.empty-rich { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px; }
.empty-rich h2 { margin: 0; font-size: 1.25rem; }
.empty-rich p { margin: 0; max-width: 62ch; }
.alternatives { width: min(520px, 100%); text-align: left; margin-top: 8px; }
.alternatives h3 { font-size: 0.95rem; margin: 0 0 6px; }
.insight { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); color: var(--text); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 12px; font-size: 0.9rem; }
.insight svg { flex: none; color: var(--brand); margin-top: 1px; }
.insight p { margin: 0; }
.insight.good { background: var(--good-bg); }
.insight.good svg { color: var(--good); }
.insight.warn { background: var(--warn-bg); }
.insight.warn svg { color: var(--warn); }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 14px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ds-day {
  flex: 1 0 112px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; scroll-snap-align: center;
  background: var(--card); border-radius: 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  border: 2px solid transparent; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ds-day:hover { transform: translateY(-2px); border-color: var(--border); }
.ds-day.selected { border-color: var(--brand); background: var(--soft); }
.ds-date { font-size: 0.78rem; color: var(--muted); }
.ds-price { font-weight: 700; font-size: 0.92rem; }
.ds-day.cheapest .ds-price { color: var(--good); }

.results-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }

.filters-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters-panel > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.filters-panel > summary::-webkit-details-marker { display: none; }
.sheet-close { display: none; }
.filters { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.filters fieldset { border: 0; margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.filters legend { font-weight: 700; font-size: 0.9rem; padding: 0; margin-bottom: 6px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 0.9rem; cursor: pointer; border-radius: 8px; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.chk-text { flex: 1; }
.chk-meta { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.chk.small { font-size: 0.8rem; min-height: 0; align-items: flex-start; }
.filter-actions { display: flex; gap: 12px; align-items: center; }
.filter-actions button { font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }
.js .filter-actions button { display: none; }

.alert-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.alert-box input[type=email] { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; background: var(--field); color: var(--text); }
.alert-box button { font: inherit; font-weight: 700; padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); cursor: pointer; }
.alert-box button:hover { background: var(--soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.sort-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; scroll-margin-top: 12px; }
.tab { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; text-decoration: none; color: var(--text); border-radius: 12px; transition: background 0.2s var(--ease); }
.tab:hover { background: var(--soft); }
.tab.active { background: var(--brand); color: var(--on-brand); }
.tab.active .tab-meta { color: var(--on-brand); opacity: 0.85; }
.tab-label { font-weight: 700; }
.tab-meta { font-size: 0.82rem; color: var(--muted); }

/* ---- ticket cards ------------------------------------------------------------------- */
.ticket {
  display: grid; grid-template-columns: 214px minmax(0, 1fr); background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ticket-buy { padding: 16px; border-right: 1px dashed var(--border); display: flex; flex-direction: column; gap: 8px; }
.tag { align-self: flex-start; background: var(--good-bg); color: var(--good); font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.btn-buy {
  display: flex; flex-direction: column; align-items: center; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-weight: 800; padding: 11px 12px; border-radius: 12px; text-align: center; transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-buy:hover { background: var(--accent-strong); }
.btn-buy:active { transform: scale(0.98); }
.btn-buy .via { font-weight: 500; font-size: 0.75rem; opacity: 0.9; }
.btn-buy.disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.also { font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.direct { font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.pay, .fresh { font-size: 0.75rem; color: var(--muted); }

.ticket-legs { padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket-airlines { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.al-badge {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
}
.al-name { font-weight: 600; font-size: 0.92rem; margin-right: 6px; }
.leg { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; gap: 14px; align-items: center; }
.leg + .leg { padding-top: 10px; border-top: 1px solid var(--border); }
.leg-end { display: flex; flex-direction: column; min-width: 64px; }
.leg-end-arr { text-align: right; }
.leg-time { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.leg-place { font-weight: 600; font-size: 0.9rem; }
.leg-date { font-size: 0.75rem; color: var(--muted); }
.leg-path { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--muted); min-width: 0; }
.leg-line { position: relative; width: 100%; height: 2px; background: var(--border); display: flex; justify-content: space-evenly; align-items: center; }
.leg-line::before, .leg-line::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.leg-line::before { left: 0; }
.leg-line::after { right: 0; }
.stop-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.leg-stops { color: var(--accent-strong); font-weight: 600; text-align: center; }
.leg-stops.nonstop { color: var(--good); }
.ticket-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 0.78rem; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--border); }
.share { color: var(--good); font-weight: 600; }

.calendar-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 16px; margin-top: 8px; }
.calendar-panel > summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.calendar-panel[open] { padding-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 0.72rem; color: var(--muted); text-align: center; }
.cal-day { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); min-width: 0; }
a.cal-day:hover { border-color: var(--brand); }
.cal-day .d { font-size: 0.75rem; color: var(--muted); }
.cal-day .p { font-size: 0.85rem; font-weight: 700; }
.cal-day.cheapest { background: var(--good-bg); border-color: var(--good); }
.cal-day.selected { outline: 2px solid var(--brand); outline-offset: -1px; }
.cal-day.past { opacity: 0.4; }

/* ---- phones: bottom bar + filters bottom sheet ---------------------------------------- */
.bottom-bar, .sheet-backdrop { display: none; }

/* ---- loading screen ------------------------------------------------------------------- */
.loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(10, 17, 32, 0.45); backdrop-filter: blur(4px); }
.loading[hidden] { display: none; }
.loading-card { width: min(360px, calc(100% - 32px)); background: var(--card); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.loading-plane { color: var(--brand); animation: fly 1.4s var(--ease) infinite; }
.skeleton { width: 100%; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--border) 25%, var(--soft) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fly { 0% { transform: translateX(-18px) translateY(4px); opacity: 0.4; } 50% { opacity: 1; } 100% { transform: translateX(18px) translateY(-4px); opacity: 0.4; } }

/* ---- content pages -------------------------------------------------------------------- */
.legal { background: var(--card); border-radius: var(--radius); padding: 24px; margin: 24px 0; box-shadow: var(--shadow); }
.legal h2 { font-size: 1.1rem; margin-top: 24px; }
.guide li { margin-bottom: 6px; }
.legal .routes { gap: 6px; }
.legal .route { border: 1px solid var(--border); }
.bag-table, .admin table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.bag-table th, .bag-table td, .admin th, .admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.footer { color: var(--muted); font-size: 0.85rem; padding: 24px 0 40px; }

/* ---- tablet and phone ------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .searchbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); }
  .sb-go { grid-column: 1 / -1; margin: 6px 0 0; }
  .sb-pax { border-radius: 0 14px 14px 0; }
}
@media (max-width: 980px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .sb-field { border-radius: 0 !important; }
  .sb-from { border-radius: 14px 0 0 0 !important; }
  .sb-to { border-radius: 0 14px 0 0 !important; }
  .sb-pax { grid-column: 1 / -1; border-radius: 0 0 14px 14px !important; }
  .sb-go { grid-column: 1 / -1; margin: 6px 0 0; }
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: contents; }
  .results-main { order: 1; }
  .alert-box { order: 2; }
  .topnav { display: none; }
  .hero-art { width: 90%; opacity: 0.6; }
  .trust { grid-template-columns: 1fr; margin-top: -24px; }

  /* filters become a bottom sheet opened from the bottom bar */
  .filters-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 82vh; overflow-y: auto;
    border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lift); transform: translateY(105%);
    transition: transform 0.3s var(--ease); visibility: hidden;
  }
  .filters-panel[open] { transform: none; visibility: visible; }
  .filters-panel > summary { position: sticky; top: 0; background: var(--card); z-index: 1; border-bottom: 1px solid var(--border); }
  .sheet-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
  .sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(10, 17, 32, 0.45); }
  .bottom-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    padding: 6px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lift);
  }
  .bb-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 12px;
    background: var(--soft); color: var(--text); font: inherit; font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer;
  }
  main:has(.bottom-bar) { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-buy { order: 2; border-right: 0; border-top: 1px dashed var(--border); }
  .leg-time { font-size: 1.15rem; }
  .sort-tabs .tab { padding: 8px; }
  .tab-meta { font-size: 0.74rem; }
  .cal-day .p { font-size: 0.72rem; }
  .band-hero .hero { padding-top: 28px; padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
