/* mozoozoo — brand styles. Colors are tokens per theme (html[data-theme]). */

:root {
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 10px 30px -8px rgb(0 0 0 / .14);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .06), 0 4px 12px -4px rgb(0 0 0 / .1);
}

:root, [data-theme="jungle"] {
  color-scheme: light;
  --bg: #f5f2e9; --surface: #ffffff; --surface-2: #eef3ec; --ink: #16241c; --muted: #5a6a60; --line: #e0e2d7;
  --brand: #135d42; --brand-2: #0c4430; --on-brand: #ffffff;
  --accent: #ffb627; --accent-2: #f29d00; --on-accent: #1e1400;
  --hero-1: #135d42; --hero-2: #2b8a5f; --on-hero: #ffffff; --pupil: #16241c;
  --good: #15803d; --good-bg: #dcf3e3; --warn: #a75a00; --warn-bg: #fff1d6; --bad: #b42318; --bad-bg: #fde4e1;
}
[data-theme="lagoon"] {
  color-scheme: light;
  --bg: #eef6f7; --surface: #ffffff; --surface-2: #e3f0f2; --ink: #0f2a2e; --muted: #557075; --line: #d6e6e8;
  --brand: #0b6e79; --brand-2: #07535b; --on-brand: #ffffff;
  --accent: #ff6b5b; --accent-2: #f24c3a; --on-accent: #ffffff;
  --hero-1: #0b6e79; --hero-2: #1aa0a8; --on-hero: #ffffff; --pupil: #0f2a2e;
  --good: #0f7a4f; --good-bg: #d8f2e7; --warn: #9a5b00; --warn-bg: #fff0d4; --bad: #b42318; --bad-bg: #fde4e1;
}
[data-theme="berry"] {
  color-scheme: light;
  --bg: #f8f3f8; --surface: #ffffff; --surface-2: #f1e8f4; --ink: #251231; --muted: #6c5a75; --line: #e8dcec;
  --brand: #5b2a86; --brand-2: #451f67; --on-brand: #ffffff;
  --accent: #ff8fab; --accent-2: #ff6f93; --on-accent: #2b0a17;
  --hero-1: #5b2a86; --hero-2: #9a3f9e; --on-hero: #ffffff; --pupil: #251231;
  --good: #15803d; --good-bg: #dcf3e3; --warn: #a75a00; --warn-bg: #fff1d6; --bad: #b42318; --bad-bg: #fde4e1;
}
[data-theme="night"] {
  color-scheme: dark;
  --bg: #0d1113; --surface: #161c1f; --surface-2: #1e262a; --ink: #e9efeb; --muted: #9caaa2; --line: #2a3439;
  --brand: #4ade80; --brand-2: #22c55e; --on-brand: #06140c;
  --accent: #fbbf24; --accent-2: #f59e0b; --on-accent: #1e1400;
  --hero-1: #12241b; --hero-2: #0d1113; --on-hero: #e9efeb; --pupil: #0d1113;
  --good: #4ade80; --good-bg: #123323; --warn: #fbbf24; --warn-bg: #33260a; --bad: #f87171; --bad-bg: #3a1414;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -8px rgb(0 0 0 / .6);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--brand); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 999px; padding: .7rem 1.25rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px var(--accent-2); }
.btn-accent:hover { background: var(--accent-2); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-2); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: .2rem; text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; }
.logo-mark { width: 46px; height: 28px; }
.logo:hover .pupil { transform: translate(-3px, 2px); }
.pupil { transition: transform .25s; }
.logo-sm { font-size: 1.15rem; }
.logo-sm .logo-mark { width: 38px; height: 23px; }
.nav { display: flex; gap: .25rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: .45rem .8rem; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--surface-2); }
.header-tools { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.select-pill { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 .3rem; height: 38px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.select-pill select { border: 0; background: transparent; padding: 0 .4rem; height: 100%; cursor: pointer; font-weight: 600; }
summary.select-pill { list-style: none; padding: 0 .8rem 0 .5rem; }
summary::-webkit-details-marker { display: none; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--brand) 0 50%, var(--accent) 0); }

/* pop-overs (<details data-pop>) */
.pop { position: relative; }
.pop > summary { cursor: pointer; list-style: none; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: .5rem; z-index: 50; min-width: 200px; }
.theme-panel { display: grid; gap: .2rem; }
.theme-btn { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 600; }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--brand); }
.theme-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
[data-dot="jungle"] { background: conic-gradient(#135d42 0 50%, #ffb627 0); }
[data-dot="lagoon"] { background: conic-gradient(#0b6e79 0 50%, #ff6b5b 0); }
[data-dot="berry"] { background: conic-gradient(#5b2a86 0 50%, #ff8fab 0); }
[data-dot="night"] { background: conic-gradient(#0d1113 0 50%, #4ade80 0); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--on-hero); padding: 3.2rem 0 6.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 1.15rem; opacity: .9; max-width: 46ch; margin: .8rem 0 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.hero-badges span { background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); padding: .3rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.search-dock { margin-top: -5rem; position: relative; z-index: 5; }

/* ---------- search form ---------- */
.search { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 1rem 1rem 1.1rem; border: 1px solid var(--line); }
.trip-toggle { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: .8rem; }
.trip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.trip-toggle span { display: block; padding: .35rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); }
.trip-toggle input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.trip-toggle input:focus-visible + span { outline: 3px solid var(--accent); }
.search-grid { display: grid; grid-template-columns: 1.25fr 40px 1.25fr 1fr 1fr 1.25fr auto; gap: .5rem; align-items: stretch; }
.field { position: relative; display: flex; flex-direction: column; background: var(--surface-2); border-radius: var(--r-sm); padding: .45rem .8rem .5rem; border: 1.5px solid transparent; min-width: 0; }
.field:focus-within { border-color: var(--brand); background: var(--surface); }
.field label, .field .field-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input, .field select { border: 0; background: transparent; padding: .1rem 0; font-size: 1.02rem; font-weight: 600; outline: none; width: 100%; min-width: 0; }
.field input::placeholder { color: var(--muted); font-weight: 500; opacity: .8; }
.field input:disabled { opacity: .45; }
.is-oneway .field-return { opacity: .45; }
.swap { align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--brand); transition: transform .3s; }
.swap svg { width: 20px; height: 20px; }
.swap.spun { transform: rotate(180deg); }
.swap:hover { border-color: var(--brand); }
.btn-search { border-radius: var(--r-sm); padding: 0 1.6rem; font-size: 1.05rem; min-height: 56px; }
.form-error { margin: .7rem 0 0; color: var(--bad); background: var(--bad-bg); padding: .5rem .8rem; border-radius: 8px; font-weight: 500; }

.pax > summary { font-size: 1.02rem; font-weight: 600; padding: .1rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pax-panel { left: -0.8rem; right: auto; width: 290px; padding: 1rem; display: grid; gap: .8rem; }
.stepper-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.stepper-row small { display: block; color: var(--muted); font-size: .8rem; }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.stepper button:hover { border-color: var(--brand); color: var(--brand); }
.stepper output { min-width: 1.4rem; text-align: center; font-weight: 700; }
.cabin-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.pax-panel select { border: 1.5px solid var(--line); border-radius: 8px; padding: .5rem; background: var(--surface); }

/* autocomplete */
.ac-list { position: absolute; left: 0; top: calc(100% + 6px); width: max(100%, 340px); list-style: none; margin: 0; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); z-index: 60; max-height: 360px; overflow: auto; }
.ac-list li { display: flex; gap: .7rem; align-items: center; padding: .5rem .55rem; border-radius: 8px; cursor: pointer; }
.ac-list li.active, .ac-list li:hover { background: var(--surface-2); }
.ac-code { font-weight: 800; font-size: .85rem; background: var(--brand); color: var(--on-brand); border-radius: 6px; padding: .15rem .4rem; min-width: 3.1rem; text-align: center; }
.ac-text { display: flex; flex-direction: column; min-width: 0; }
.ac-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- home sections ---------- */
.section { padding: 3rem 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.7rem; font-weight: 800; }
.section-head p { margin: .25rem 0 0; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.dest-card { background: var(--surface); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dest-art { height: 110px; background: radial-gradient(circle at 75% 30%, hsl(calc(var(--h) + 40) 80% 70%), transparent 55%), linear-gradient(135deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 30) 70% 58%)); display: flex; align-items: end; padding: .7rem .9rem; }
.dest-art span { color: #fff; font-weight: 800; font-size: 2.1rem; letter-spacing: .04em; opacity: .9; text-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.dest-body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.dest-body h3 { font-size: 1.15rem; }
.dest-body p { margin: 0; }
.dest-meta { font-size: .85rem; color: var(--muted); margin-top: .3rem !important; }
.dest-price { margin-top: auto !important; padding-top: .5rem; display: flex; align-items: baseline; gap: .4rem; }
.dest-price strong { font-size: 1.3rem; color: var(--brand); }
.dest-price small { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .8rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); }
.cta-band { margin-top: 3rem; background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: var(--on-brand); border-radius: var(--r); padding: 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.5rem; }
.cta-band p { margin: .3rem 0 0; opacity: .9; }

/* skeletons */
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { transition: none !important; } }

/* ---------- results ---------- */
.results-top { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--on-hero); padding: 1.3rem 0; }
.trip-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.trip-summary h1 { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.trip-summary h1 .arrow { color: var(--accent); }
.trip-summary p { margin: .2rem 0 0; opacity: .88; }
.results-top .search { margin-top: 1rem; color: var(--ink); }
.results-layout { padding-top: 1.2rem; padding-bottom: 2rem; }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; margin-bottom: 1rem; }
.date-strip button { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: .55rem .3rem; cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: .1rem; }
.date-strip button:hover:not(:disabled) { border-color: var(--brand); }
.date-strip button[aria-current="date"] { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.date-strip button:disabled { opacity: .45; cursor: not-allowed; }
.date-strip .d { font-size: .8rem; font-weight: 600; }
.date-strip .p { font-weight: 800; }
.date-strip .low:not([aria-current]) .p { color: var(--good); }
.date-strip .low .tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.toolbar { display: flex; gap: .7rem; align-items: stretch; flex-wrap: wrap; margin-bottom: .8rem; }
.sort-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; flex: 1; min-width: 280px; }
.sort-tabs button { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: .55rem .8rem; cursor: pointer; text-align: left; }
.sort-tabs button strong { display: block; font-size: .95rem; }
.sort-tabs button span { font-size: .85rem; color: var(--muted); }
.sort-tabs button[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 -4px 0 var(--accent); }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .7rem; }
.chip-group { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.chip-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 .2rem 0 .3rem; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .32rem .75rem; font-size: .88rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; list-style: none; }
.chip small { color: var(--muted); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .85; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 .2rem; }
.dd-panel { left: 0; right: auto; min-width: 260px; padding: .8rem; display: grid; gap: .45rem; }
.dd-panel label { display: flex; gap: .55rem; align-items: center; font-size: .92rem; cursor: pointer; }
.dd-panel label small { margin-left: auto; color: var(--muted); }
.dd-panel input[type="range"] { width: 100%; accent-color: var(--brand); }
.dd-panel input[type="checkbox"] { accent-color: var(--brand); width: 17px; height: 17px; }
.al-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--al); flex: none; }
.count { margin: .3rem 0 .7rem; color: var(--muted); font-size: .92rem; }
.results { display: grid; gap: .8rem; }
.more { display: flex; justify-content: center; margin-top: 1.2rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 2rem; text-align: center; }
.empty h2 { font-size: 1.3rem; margin-bottom: .4rem; }

/* boarding-pass result card */
.pass { display: grid; grid-template-columns: 1fr 220px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.pass:hover { box-shadow: var(--shadow); }
.pass-main { padding: 1rem 1.2rem; display: grid; gap: .9rem; min-width: 0; }
.pass-stub { border-left: 2px dashed var(--line); padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: center; gap: .35rem; position: relative; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.pass-stub::before { top: -12px; clip-path: inset(50% 0 0 0); }
.pass-stub::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.pass-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.tag-best { background: var(--accent); color: var(--on-accent); }
.price { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-sub { font-size: .82rem; color: var(--muted); }
.leg { display: grid; grid-template-columns: 150px auto 1fr auto; gap: 1rem; align-items: center; }
.airline { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: .9rem; font-weight: 600; }
.airline span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-badge { width: 32px; height: 32px; border-radius: 10px; background: var(--al); color: #fff; font-weight: 800; font-size: .72rem; display: grid; place-items: center; flex: none; }
.leg-end { text-align: center; }
.leg-end strong { font-size: 1.3rem; display: block; line-height: 1.1; }
.leg-end span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.leg-end sup { color: var(--bad); font-size: .7rem; font-weight: 700; margin-left: 1px; }
.leg-path { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; }
.leg-path .dur { font-size: .82rem; color: var(--muted); }
.leg-path .line { position: relative; width: 100%; height: 2px; background: var(--line); display: flex; justify-content: space-evenly; align-items: center; }
.leg-path .line::after { content: ""; position: absolute; right: -4px; width: 0; height: 0; border-left: 7px solid var(--line); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.leg-path .line i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--bad); }
.leg-path .stops { font-size: .8rem; font-weight: 600; color: var(--bad); }
.leg-path .stops.direct { color: var(--good); }
.details-toggle { justify-self: start; font-size: .88rem; }
.seg-list { list-style: none; margin: 0; padding: .8rem 1rem; background: var(--surface-2); border-radius: var(--r-sm); display: grid; gap: .5rem; font-size: .9rem; }
.seg-list h4 { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.seg-list .lay { color: var(--warn); font-weight: 600; font-size: .85rem; padding-left: 1rem; border-left: 3px dotted var(--warn); }

/* dialogs */
dialog { border: 0; border-radius: var(--r); padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(10 15 12 / .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.1rem 1.2rem .6rem; }
.dlg-head h2 { font-size: 1.3rem; }
.dlg-head p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.dlg-close { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; flex: none; }
.dlg-body { padding: .4rem 1.2rem 1.2rem; display: grid; gap: .7rem; }
.deal { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.deal:first-child { border-color: var(--accent); }
.deal .who { flex: 1; min-width: 0; }
.deal .who strong { display: block; }
.deal .who small { color: var(--muted); }
.deal .amt { text-align: right; }
.deal .amt strong { display: block; font-size: 1.15rem; }
.deal .amt small { color: var(--muted); font-size: .78rem; }
.notice { background: var(--warn-bg); color: var(--warn); padding: .6rem .8rem; border-radius: 10px; font-size: .88rem; font-weight: 500; margin: 0; }
.notice-good { background: var(--good-bg); color: var(--good); }
.notice-info { background: var(--surface-2); color: var(--muted); margin-bottom: .6rem; }
.form-row { display: grid; gap: .3rem; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row input { border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .8rem; background: var(--surface); }
.form-row input:focus { outline: none; border-color: var(--brand); }
.form-row small { color: var(--muted); }

/* ---------- explore ---------- */
.explore-bar { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr auto; gap: .5rem; align-items: stretch; }
.explore-bar .field input[type="range"] { accent-color: var(--brand); padding: .4rem 0; }
.check-field { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--brand); }
.page-head { padding: 2rem 0 1.2rem; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-head p { margin: .4rem 0 0; color: var(--muted); }

/* ---------- alerts ---------- */
.alert-list { display: grid; gap: .8rem; padding-bottom: 2rem; }
.alert-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; }
.alert-card h3 { font-size: 1.15rem; }
.alert-card p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.alert-nums { display: flex; gap: 1.2rem; text-align: right; }
.alert-nums small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.alert-nums strong { font-size: 1.15rem; }
.alert-actions { display: flex; gap: .4rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 3.5rem; background: var(--surface); border-top: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem 2rem; }
.footer-in nav { display: flex; gap: 1.2rem; flex-wrap: wrap; align-content: start; justify-content: end; }
.footer-in nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-in nav a:hover { color: var(--brand); }
.footer-in p { margin: .4rem 0 0; }
.demo-note { grid-column: 1 / -1; background: var(--surface-2); padding: .55rem .8rem; border-radius: 10px; font-size: .85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .search-grid { grid-template-columns: 1fr 40px 1fr; }
  .search-grid > .field:nth-child(4) { grid-column: 1 / 2; }
  .search-grid > .field:nth-child(5) { grid-column: 2 / 4; }
  .search-grid > .field-pax { grid-column: 1 / 4; }
  .btn-search { grid-column: 1 / 4; }
  .explore-bar { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .pass-stub::before, .pass-stub::after { display: none; }
  .leg { grid-template-columns: auto 1fr auto; gap: .6rem; }
  .leg .airline { grid-column: 1 / -1; }
  .alert-card { grid-template-columns: 1fr; }
  .alert-nums { text-align: left; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-in nav { justify-content: start; }
  .date-strip { grid-template-columns: repeat(7, minmax(78px, 1fr)); overflow-x: auto; padding-bottom: .3rem; }
  .filter-bar .divider { display: none; }
  .mobile-nav { display: flex !important; }
}
@media (max-width: 560px) {
  .header-in { gap: .6rem; }
  .theme-name { display: none; }
  summary.select-pill { padding: 0 .5rem; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid > .field, .search-grid > .field:nth-child(4), .search-grid > .field:nth-child(5), .search-grid > .field-pax, .btn-search { grid-column: 1 / -1; }
  .swap { justify-self: end; margin: -1.6rem .8rem -1.6rem 0; z-index: 2; transform: rotate(90deg); }
  .swap.spun { transform: rotate(270deg); }
  .explore-bar { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .sort-tabs { min-width: 0; width: 100%; }
  .toolbar .btn { width: 100%; }
}
.mobile-nav { display: none; gap: .3rem; padding: .5rem 0; overflow-x: auto; }
.mobile-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: .35rem .75rem; border-radius: 999px; background: var(--surface-2); font-size: .9rem; white-space: nowrap; }
.mobile-nav a[aria-current="page"] { color: var(--on-brand); background: var(--brand); }
