/* Happy Layover: design tokens, then layout, then components. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f6f2ec;
  --surface-3: #ede6de;
  --ink: #16111f;
  --muted: #625b72;
  --faint: #a39cb1;
  --line: #ebe4dc;
  --brand: #6b3cf0;
  --brand-ink: #ffffff;
  --brand-soft: #efe9ff;
  --coral: #ff6a3d;
  --coral-soft: #ffece4;
  --sun: #f2a900;
  --sun-soft: #fff3d1;
  --mint: #0a9f6a;
  --mint-soft: #daf5e8;
  --rose: #e2335d;
  --rose-soft: #fde4ea;
  --sky: #2383db;
  --sky-soft: #e0effd;
  --p1: #0fae74; --p2: #6cbd3c; --p3: #e9ab00; --p4: #f57b2c; --p5: #e2335d;
  --band: rgba(107, 60, 240, 0.09);
  --shadow-sm: 0 1px 2px rgba(22, 17, 31, .06);
  --shadow: 0 1px 2px rgba(22, 17, 31, .05), 0 12px 32px -14px rgba(46, 20, 96, .22);
  --shadow-lg: 0 30px 70px -24px rgba(34, 10, 90, .55);
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0a18; --surface: #171329; --surface-2: #1f1a36; --surface-3: #2b2548; --ink: #f4f1fb; --muted: #aba4c2; --faint: #736c92;
    --line: #2c2647; --brand: #a084ff; --brand-ink: #120d24; --brand-soft: #261d4d; --coral: #ff8d66; --coral-soft: #3a2119;
    --sun: #ffc93c; --sun-soft: #372d0f; --mint: #3ad69c; --mint-soft: #10302a; --rose: #ff6d8e; --rose-soft: #3c1624; --sky: #62b4ff; --sky-soft: #13294a;
    --p1: #3ad69c; --p2: #9ad650; --p3: #ffc93c; --p4: #ff9a5a; --p5: #ff6d8e; --band: rgba(160, 132, 255, 0.13);
    --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 40px -20px rgba(0,0,0,.7); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0a18; --surface: #171329; --surface-2: #1f1a36; --surface-3: #2b2548; --ink: #f4f1fb; --muted: #aba4c2; --faint: #736c92;
  --line: #2c2647; --brand: #a084ff; --brand-ink: #120d24; --brand-soft: #261d4d; --coral: #ff8d66; --coral-soft: #3a2119;
  --sun: #ffc93c; --sun-soft: #372d0f; --mint: #3ad69c; --mint-soft: #10302a; --rose: #ff6d8e; --rose-soft: #3c1624; --sky: #62b4ff; --sky-soft: #13294a;
  --p1: #3ad69c; --p2: #9ad650; --p3: #ffc93c; --p4: #ff9a5a; --p5: #ff6d8e; --band: rgba(160, 132, 255, 0.13);
  --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 40px -20px rgba(0,0,0,.7); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--text); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { flex: none; }
.sprite { display: none; }
svg:not([viewBox]) { width: 1em; height: 1em; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }

/* ------------------------------------------------------------------ top bar */
.topbar { position: absolute; inset: 0 0 auto; z-index: 50; color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; display: block; box-shadow: 0 8px 22px -8px rgba(232, 65, 140, .8); transition: transform .25s; }
.brand:hover .mark { transform: rotate(-8deg) scale(1.05); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a { text-decoration: none; color: rgba(255,255,255,.85); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.nav > a:hover { background: rgba(255,255,255,.12); color: #fff; }
.theme { display: grid; place-items: center; background: rgba(255,255,255,.14); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; margin-left: 6px; font-size: 18px; }
.theme:hover { background: rgba(255,255,255,.22); }
.menu { position: relative; margin-left: 6px; }
.menu summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: 20px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: rgba(255,255,255,.22); }
.menu .shut, .menu[open] .open { display: none; }
.menu[open] .shut { display: block; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: min(300px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.menu-pop a:hover { background: var(--surface-2); }
.menu-pop a svg { font-size: 18px; color: var(--brand); }
.menu-sub { margin: 8px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 8px; }
.menu-chips a { padding: 6px 11px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------------ hero and search */
.hero { position: relative; color: #fff; padding: 104px 0 44px; background: #2a1170; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, #5b2be0 0%, transparent 55%), radial-gradient(90% 90% at 100% 0%, #c0368f 0%, transparent 55%), radial-gradient(90% 120% at 80% 110%, #ff7a3d 0%, transparent 55%), #2a1170; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 420px; height: 420px; left: -120px; top: 40%; background: #7b4dff; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 360px; height: 360px; right: 8%; top: -140px; background: #ff4f8b; animation: drift 22s ease-in-out infinite alternate-reverse; }
.b3 { width: 300px; height: 300px; right: -80px; bottom: -120px; background: #ffb13d; opacity: .45; animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }
.flightpath { position: absolute; left: 0; right: 0; top: 38%; width: 100%; height: 42%; opacity: .5; }
.flightpath path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.6; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-inner { position: relative; }
.hero-copy { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.eyebrow svg { font-size: 16px; color: #ffd166; }
.hero h1 { font-size: clamp(36px, 6.2vw, 66px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 14px; }
.hl { background: linear-gradient(90deg, #ffd166, #ff8a5b 55%, #ff5e8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0 0 26px; color: rgba(255,255,255,.84); font-size: 17.5px; max-width: 620px; }
.hero.compact { padding: 84px 0 22px; }
.hero.compact .hero-copy, .hero.compact .popular { display: none; }

.search { background: var(--surface); color: var(--ink); border-radius: 26px; padding: 12px; box-shadow: var(--shadow-lg); }
.search-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 2px 2px 12px; flex-wrap: wrap; }
.modes { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; }
.modes button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.modes button svg { font-size: 16px; }
.modes button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); font-weight: 600; }
.search.flex .seg { display: none; }
.cabin select, .pick { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; cursor: pointer; }
.pax { position: relative; }
.pick { display: inline-flex; align-items: center; gap: 6px; }
.pick svg { font-size: 16px; color: var(--muted); }
.pick .caret { color: var(--muted); font-size: 11px; }
.pax-pop { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: min(330px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px 16px 14px; }
.pax-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pax-row b { display: block; font-size: 14.5px; }
.step { display: flex; align-items: center; gap: 10px; flex: none; }
.step button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); font-size: 18px; line-height: 1; cursor: pointer; }
.step button:hover:not(:disabled) { border-color: var(--brand); }
.step button:disabled { color: var(--faint); opacity: .5; cursor: default; }
.step output { min-width: 16px; text-align: center; font-weight: 700; }
.pax-note { font-size: 12px; color: var(--muted); margin: 10px 0; }
.pax-foot { display: flex; justify-content: flex-end; }

.fields { display: grid; grid-template-columns: minmax(0, 1.3fr) 40px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.search.flex .fields { grid-template-columns: minmax(0, 1.3fr) 40px minmax(0, 1.3fr) minmax(0, 1.25fr) auto; }
.search.flex .exact-only, .search:not(.flex) .flex-only { display: none; }
.field { position: relative; border: 1.5px solid var(--line); border-radius: 16px; padding: 9px 14px 8px; background: var(--surface); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.field:hover { border-color: var(--faint); }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field label { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select { width: 100%; border: 0; outline: 0; background: transparent; padding: 3px 0 0; font-size: 16.5px; font-weight: 600; min-width: 0; }
.field select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 18px; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 4px top 60% / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--muted) 50%) right 0 top 60% / 5px 5px no-repeat; }
.field input::placeholder { color: var(--faint); font-weight: 500; }
.field.date input { font-size: 15.5px; }
.field.disabled { opacity: .45; }
.swap { align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--brand); display: grid; place-items: center; transition: transform .25s; }
.swap:hover { transform: rotate(180deg); border-color: var(--brand); }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #7b4dff, #ff6a3d); color: #fff; font: 700 16.5px/1 var(--display); letter-spacing: -0.01em; padding: 0 26px; cursor: pointer; min-height: 58px; box-shadow: 0 10px 24px -10px rgba(255, 106, 61, .8); transition: transform .15s, box-shadow .15s, filter .15s; white-space: nowrap; }
.go svg { font-size: 19px; }
.go:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.05); box-shadow: 0 14px 30px -10px rgba(255, 106, 61, .9); }
.go:active { transform: translateY(0) scale(.98); }
.form-error { margin: 10px 4px 2px; color: var(--rose); font-size: 14px; font-weight: 500; }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.8); }
.popular b { font-weight: 600; margin-right: 2px; }
.pop { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; font-size: 13.5px; font-weight: 500; backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.pop:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.pop img, .pop .dot { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.3); }

/* autocomplete */
.ac { position: absolute; z-index: 55; left: -1px; top: calc(100% + 8px); width: max(100%, 360px); max-height: 380px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.ac li { display: grid; grid-template-columns: 46px 1fr; gap: 1px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.ac li[aria-selected="true"], .ac li:hover { background: var(--surface-2); }
.ac .code { grid-row: span 2; font-weight: 800; font-size: 12.5px; background: var(--brand-soft); color: var(--brand); border-radius: 9px; text-align: center; padding: 6px 0; letter-spacing: .03em; }
.ac .city { font-weight: 600; font-size: 14.5px; }
.ac .name { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac .hint { grid-column: 1 / -1; font-size: 11px; color: var(--faint); padding: 4px 6px; cursor: default; background: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ------------------------------------------------------------------ shared pieces */
main { padding-bottom: 40px; }
.sec { margin-top: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec h2, .view h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.025em; margin: 0; line-height: 1.12; font-weight: 750; }
.kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.kicker svg { font-size: 15px; }
.sec-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 660px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap; }
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.inline-select select { font: inherit; font-weight: 800; color: var(--brand); background: transparent; border: 0; border-bottom: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); padding: 0 2px; cursor: pointer; letter-spacing: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 15px; cursor: pointer; white-space: nowrap; transition: border-color .15s, transform .15s, background .15s; }
.btn svg { font-size: 16px; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.ghost { background: transparent; }
.btn.glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.24); }
.btn[disabled] { opacity: .6; cursor: default; }
.more { text-align: center; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sub { display: block; font-size: 12.5px; color: var(--muted); }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%) !important; background-size: 200% 100% !important; animation: shimmer 1.3s infinite linear; border-color: transparent !important; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.pill svg { font-size: 13px; }
.pill.H { color: var(--rose); background: var(--rose-soft); }
.pill.S { color: #b07800; background: var(--sun-soft); }
.pill.L { color: var(--mint); background: var(--mint-soft); }
:root[data-theme="dark"] .pill.S { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.S { color: var(--sun); } }
.lv1 { --lv: var(--p1); } .lv2 { --lv: var(--p2); } .lv3 { --lv: var(--p3); } .lv4 { --lv: var(--p4); } .lv5 { --lv: var(--p5); }
.flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: -2px; }
.status { padding: 30px 16px; text-align: center; color: var(--muted); }
.status h3 { color: var(--ink); margin: 0 0 6px; font-size: 20px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------------ deals */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; align-items: start; }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.deal:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 24px 44px -24px rgba(46, 20, 96, .4); }
.deal.skel { min-height: 360px; }
.deal-img { position: relative; height: 128px; background: var(--g, linear-gradient(135deg, #6b3cf0, #ff6a3d)) center / cover; }
.deal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deal-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,24,.05) 30%, rgba(10,6,24,.72)); }
.deal-img .route { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; font: 750 22px/1.1 var(--display); letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.deal-img .route small { display: block; font: 600 12px/1.4 var(--text); opacity: .9; letter-spacing: 0; }
.deal-img .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.off { position: absolute; top: 12px; right: 12px; z-index: 1; font: 800 15px/1 var(--display); color: #fff; background: var(--mint); padding: 7px 10px; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.deal-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.tag { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; background: rgba(255,255,255,.92); color: #1b1330; backdrop-filter: blur(4px); }
.k-mistake_fare { color: #b8123c; }
.k-below_typical { color: #067a50; }
.k-price_drop { color: #1b62b5; }
.k-positioning, .k-self_transfer { color: #a44d00; }
.k-point_of_sale { color: #1b62b5; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font: 800 30px/1 var(--display); letter-spacing: -0.03em; }
.was { color: var(--muted); font-size: 13px; }
.was s { color: var(--faint); }
.deal .when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.deal .when svg { color: var(--brand); font-size: 16px; }
.deal .summary { font-size: 13px; }
.deal .reason { font-size: 12.5px; color: var(--muted); }
svg.spark { width: 100%; height: 42px; display: block; }
svg.spark .line { fill: none; stroke: var(--brand); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
svg.spark .band { fill: var(--band); }
svg.spark .now { fill: var(--brand); }
.legs { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line); }
.legs li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.risk { font-size: 12px; color: #9a4a00; background: var(--sun-soft); border-radius: 12px; padding: 8px 10px; }
:root[data-theme="dark"] .risk { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .risk { color: var(--sun); } }
:root[data-theme="dark"] .mcell:not(.none) { background: color-mix(in srgb, var(--lv, var(--faint)) 26%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mcell:not(.none) { background: color-mix(in srgb, var(--lv, var(--faint)) 26%, var(--surface)); } }
.deal-foot { margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.seen { font-size: 12px; color: var(--faint); }
.deal-foot .actions { display: flex; gap: 6px; }

/* ------------------------------------------------------------------ where and when grid */
.matrix-wrap { position: relative; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); scrollbar-width: thin; }
.matrix-skel { height: 420px; border-radius: var(--radius); }
table.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: 13px; }
.matrix th, .matrix td { padding: 0; border-bottom: 1px solid var(--line); }
.matrix thead th { position: sticky; top: 0; background: var(--surface); font-weight: 700; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 6px; text-align: center; z-index: 2; }
.matrix thead th small { display: block; font-size: 10.5px; font-weight: 600; color: var(--faint); letter-spacing: .04em; }
.matrix th.dest, .matrix td.dest { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; min-width: 190px; }
.matrix thead th.dest { z-index: 3; padding-left: 16px; }
.matrix td.dest button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px 12px 10px 16px; cursor: pointer; text-align: left; }
.matrix td.dest b { display: block; font-size: 14px; }
.matrix td.dest .sub { font-size: 11.5px; }
.matrix tr.region-row td { background: var(--surface-2); font: 700 11.5px/1 var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 16px; position: sticky; left: 0; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td.cell { text-align: center; padding: 5px 4px; }
.mcell { position: relative; display: grid; place-items: center; gap: 1px; width: 100%; min-width: 74px; height: 50px; border: 0; border-radius: 12px; cursor: pointer; background: color-mix(in srgb, var(--lv, var(--faint)) 16%, var(--surface)); color: var(--ink); transition: transform .12s, box-shadow .12s; }
.mcell b { font-size: 14px; font-weight: 750; }
.mcell small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.mcell:hover { transform: scale(1.05); box-shadow: 0 0 0 2px var(--lv, var(--line)); z-index: 1; }
.mcell.best { background: color-mix(in srgb, var(--p1) 30%, var(--surface)); box-shadow: inset 0 0 0 2px var(--p1); }
.mcell .fire { position: absolute; top: -5px; right: -3px; font-size: 10px; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 2px 5px; }
.mcell.none { background: none; cursor: default; color: var(--faint); }
.mcell.none:hover { transform: none; box-shadow: none; }
.matrix-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.matrix-legend .scale { display: inline-flex; gap: 3px; vertical-align: middle; margin: 0 6px; }
.matrix-legend .scale i { width: 18px; height: 10px; border-radius: 3px; background: var(--lv); }

/* ------------------------------------------------------------------ explore tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile.skel { min-height: 214px; cursor: default; }
.t-img { position: relative; height: 112px; background: var(--g, linear-gradient(135deg, #6b3cf0, #ff6a3d)); }
.t-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,6,24,.6)); }
.t-img .t-city { position: absolute; left: 14px; bottom: 9px; right: 14px; z-index: 1; color: #fff; font: 750 19px/1.1 var(--display); letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.t-img .dealmark { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 11px; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 3px 9px; }
.t-body { padding: 11px 14px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; }
.t-price { font: 800 19px/1.2 var(--display); letter-spacing: -0.02em; text-align: right; }
.vs { font-size: 11.5px; font-weight: 700; text-align: right; }
.vs.under { color: var(--mint); }
.vs.near { color: var(--muted); }
.vs.over { color: var(--coral); }

/* ------------------------------------------------------------------ how */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.how-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how h3 { margin: 12px 0 6px; font-size: 19px; letter-spacing: -0.015em; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-soft), var(--coral-soft)); color: var(--brand); font-size: 22px; }
.foot { position: relative; margin-top: 64px; padding: 44px 0 34px; color: rgba(255,255,255,.72); font-size: 13.5px; background: #150b33; background: radial-gradient(80% 120% at 100% 0%, rgba(192,54,143,.35), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(91,43,224,.45), transparent 60%), #150b33; }
.foot a { color: rgba(255,255,255,.88); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-brand .slogan { font: 800 20px/1.2 var(--display); letter-spacing: -0.02em; color: #fff; margin: 0 0 8px; background: linear-gradient(90deg, #ffd166, #ff8a5b 55%, #ff5e8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-brand p { margin: 0 0 8px; max-width: 360px; }
.foot h4 { margin: 4px 0 10px; font: 700 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot .months-list { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.foot-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.55); }
.foot-legal p { margin: 0 0 6px; max-width: 900px; }

/* ------------------------------------------------------------------ route header (planner and results) */
.view { padding-bottom: 20px; }
.p-hero { position: relative; margin-top: 22px; color: #fff; background: #241050; overflow: hidden; isolation: isolate; border-radius: 28px; box-shadow: var(--shadow); }
.p-hero .ph-img { position: absolute; inset: 0; z-index: -2; background: var(--g, linear-gradient(135deg, #6b3cf0, #ff6a3d)); }
.p-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 24s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,8,40,.82) 0%, rgba(16,8,40,.45) 55%, rgba(16,8,40,.2)), linear-gradient(0deg, rgba(16,8,40,.55), transparent 50%); }
.p-hero-in { padding: 18px 24px 26px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 6px 13px 6px 10px; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); margin-bottom: auto; }
.back:hover { background: rgba(255,255,255,.24); }
.p-eyebrow { margin: 14px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffd166; }
.p-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: clamp(30px, 5.4vw, 54px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.p-title svg { font-size: .62em; color: #ffd166; }
.p-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.fact svg { font-size: 16px; color: #ffd166; }
.fact.skel-fact { width: 150px; height: 33px; background: rgba(255,255,255,.12); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.credit { position: absolute; right: 12px; bottom: 8px; font-size: 10.5px; color: rgba(255,255,255,.7); text-decoration: none; max-width: 60%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ planner */
.p-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 6px; }
.p-controls .left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-controls .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.p-meta { font-size: 13px; color: var(--muted); }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.pick-card { position: relative; border-radius: var(--radius); padding: 16px 16px 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; text-align: left; overflow: hidden; transition: transform .2s; min-height: 132px; display: flex; flex-direction: column; gap: 4px; }
.pick-card:hover { transform: translateY(-2px); }
.pick-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.pick-card .pc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pick-card .pc-top svg { font-size: 17px; }
.pick-card .pc-main { font: 750 23px/1.1 var(--display); letter-spacing: -0.02em; margin-top: 4px; }
.pick-card .pc-sub { font-size: 13px; color: var(--muted); }
.pick-card.skel { cursor: default; }
.pc-cheap { --accent: var(--mint); } .pc-weather { --accent: #e59a00; } .pc-sweet { --accent: var(--brand); } .pc-avoid { --accent: var(--rose); }
.year { margin-top: 34px; }
.year-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.year-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.progress { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.progress .bar { width: 110px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--coral)); border-radius: 99px; transition: width .3s; }
.months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 7px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 18px; padding: 12px 12px 11px; cursor: pointer; min-height: 214px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mcard[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.mcard .mc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mcard .mc-mon { font: 750 19px/1 var(--display); letter-spacing: -0.02em; }
.mcard .mc-mon small { font: 600 11px/1 var(--text); color: var(--faint); margin-left: 4px; letter-spacing: 0; }
.mcard .mc-price { display: flex; align-items: baseline; gap: 5px; }
.mcard .mc-price b { font: 800 24px/1 var(--display); letter-spacing: -0.03em; color: var(--lv, var(--ink)); }
.mcard .mc-price span { font-size: 11.5px; color: var(--muted); }
.mcard .mc-usual { font-size: 11.5px; color: var(--muted); min-height: 16px; }
.mcard .mc-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mcard .mc-bar i { display: block; height: 100%; border-radius: 99px; background: var(--lv, var(--faint)); }
.mcard .mc-wx { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.mcard .mc-wx svg { font-size: 22px; }
.mcard .mc-wx span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.mcard .mc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.mcard .mc-flag { position: absolute; top: -9px; right: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #fff; border-radius: 999px; padding: 3px 8px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.mc-flag.cheap { background: var(--mint); } .mc-flag.sweet { background: var(--brand); } .mc-flag.yours { background: var(--sky); }
.mini { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini svg { font-size: 12px; }
.mini.ev { background: var(--brand-soft); color: var(--brand); }
.mini.in { background: var(--coral-soft); color: var(--coral); }
.mini.bad { background: var(--rose-soft); color: var(--rose); }
.wx-sun { color: #f2a900; } .wx-partly { color: #e59a00; } .wx-cloud { color: var(--faint); } .wx-rain { color: var(--sky); } .wx-storm { color: #7b4dff; } .wx-snow { color: #5aa9e6; } .wx-heat { color: var(--coral); }

.timeline { margin-top: 18px; padding: 16px 16px 10px; position: relative; }
.timeline h3, .card h3 { margin: 0; font-size: 18px; letter-spacing: -0.015em; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
svg.tl { width: 100%; height: 250px; display: block; margin-top: 8px; overflow: visible; }
.tl .grid line { stroke: var(--line); stroke-width: 1; }
.tl .mon-bg { fill: transparent; cursor: pointer; }
.tl .mon-bg:hover { fill: var(--band); }
.tl .mon-bg.sel { fill: var(--band); }
.tl .mon-lbl { fill: var(--muted); font: 600 11.5px var(--text); text-anchor: middle; }
.tl .mon-lbl.sel { fill: var(--brand); font-weight: 800; }
.tl .yaxis { fill: var(--faint); font: 500 10.5px var(--text); }
.tl .ev rect { fill: var(--coral); opacity: .12; }
.tl .ev.in rect { fill: var(--rose); opacity: .09; }
.tl .ev rect.strip { opacity: .75; }
.tl .ev text { fill: var(--coral); font: 700 10px var(--text); }
.tl .ev.in text { fill: var(--rose); }
.tl .season rect { opacity: .85; }
.tl .line { fill: none; stroke: url(#tl-grad); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tl .area { fill: url(#tl-area); }
.tl .pt { stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: r .12s; }
.tl .pt:hover { r: 7; }
.tl .usual { fill: var(--band); }
.tl-tip { position: absolute; z-index: 20; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-lg); }
.tl-tip b { display: block; font-size: 14px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }

.mdetail { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.md-cal { padding: 18px; border-right: 1px solid var(--line); }
.md-know { padding: 18px 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%); }
.md-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.md-head h3 { font-size: 22px; }
.md-nav { display: flex; gap: 6px; }
.md-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.md-nav button:disabled { opacity: .35; cursor: default; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calgrid .dow { font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; padding: 2px 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.day { position: relative; aspect-ratio: 1 / .92; border: 1.5px solid transparent; border-radius: 12px; background: var(--surface-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; min-width: 0; transition: transform .1s, border-color .1s; }
.day:hover:not(:disabled) { transform: scale(1.06); border-color: var(--brand); z-index: 1; }
.day .dn { font-size: 12.5px; font-weight: 700; }
.day .dp { font-size: 11px; font-weight: 700; color: var(--muted); }
.day.priced { background: color-mix(in srgb, var(--lv) 22%, var(--surface)); }
.day.priced .dp { color: color-mix(in srgb, var(--lv) 70%, var(--ink)); }
.day.cheapest { box-shadow: inset 0 0 0 2px var(--p1); }
.day:disabled { background: none; color: var(--faint); cursor: default; }
.day.blank { visibility: hidden; }
.day .evd { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.day .evd.in { background: var(--rose); left: 5px; right: auto; }
.day.loading .dp { width: 60%; height: 8px; border-radius: 4px; background: var(--surface-3); animation: pulse 1.2s infinite; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.cal-foot .sub { max-width: 360px; }
.know-wx { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.know-wx > svg { font-size: 40px; }
.know-wx b { font: 750 20px/1.1 var(--display); letter-spacing: -0.02em; }
.know-wx p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.know-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.know-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 13.5px; }
.know-list li > span.ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-size: 16px; color: var(--muted); }
.know-list li b { display: block; font-size: 13px; }
.know-list .k-rain span.ic, .know-list .k-storm span.ic { color: var(--sky); background: var(--sky-soft); }
.know-list .k-heat span.ic { color: var(--coral); background: var(--coral-soft); }
.know-list .k-cold span.ic { color: var(--sky); background: var(--sky-soft); }
.know-list .k-event span.ic, .know-list .k-festival span.ic { color: var(--brand); background: var(--brand-soft); }
.know-list .k-nature span.ic, .know-list .k-weather span.ic { color: var(--mint); background: var(--mint-soft); }
.know-list .k-crowds span.ic, .know-list .k-closure span.ic, .know-list .k-haze span.ic { color: var(--rose); background: var(--rose-soft); }
.know-list .k-india span.ic { color: var(--coral); background: var(--coral-soft); }
.know-list .when { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.know-sub { margin: 18px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.card.pad { padding: 18px; }
.card .lead { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.bk-bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; margin: 18px 0 6px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bk-bars .bk { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bk-bars .bk i { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--brand) 55%, var(--surface)); }
.bk-bars .bk.up i { background: var(--coral); }
.bk-bars .bk.down i { background: var(--mint); }
.bk-bars .bk b { font-size: 11.5px; }
.bk-lbls { display: flex; gap: 8px; padding: 0 2px; }
.bk-lbls span { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.alt-list { list-style: none; margin: 8px 0 0; padding: 0; }
.alt-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.alt-list li:first-child { border-top: 0; }
.alt-list b { font-size: 14.5px; }
.alt-list .ap { font: 800 17px/1 var(--display); }
.alt-list .save { font-size: 11.5px; font-weight: 700; color: var(--mint); }
.alt-list .save.more { color: var(--coral); }

/* ------------------------------------------------------------------ results */
.r-hero .p-hero-in { min-height: 190px; }
.verdict { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 320px); gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.v-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: var(--faint); }
.verdict.low .v-badge { background: linear-gradient(135deg, #16c784, #0a9f6a); }
.verdict.typical .v-badge { background: linear-gradient(135deg, #8c63ff, #6b3cf0); }
.verdict.high .v-badge { background: linear-gradient(135deg, #ff8a5b, #e2335d); }
.verdict strong { font: 800 26px/1 var(--display); letter-spacing: -0.03em; margin-right: 8px; }
.verdict .v-text { font-size: 15.5px; font-weight: 600; }
.verdict .v-note { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.glance { margin-top: 16px; padding: 16px 18px; }
.glance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.glance .g-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.glance .g-item > svg { font-size: 30px; }
.glance .g-item b { display: block; font-size: 14.5px; }
.glance .g-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.glance .g-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nearby { margin-top: 16px; padding: 16px 18px 6px; }
.nearby .months { grid-auto-columns: minmax(138px, 1fr); }
.nearby .mcard { min-height: 170px; }
.res-controls { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 22px 0 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.res-controls .chips { gap: 4px; }
.flights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flight { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(190px, 1.3fr) minmax(120px, .9fr) minmax(110px, .8fr) auto; gap: 8px 18px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.flight:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.flight.skeleton { height: 78px; }
.fl-air { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logos { position: relative; flex: none; width: 40px; height: 40px; }
.logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logo img { width: 28px; height: 28px; object-fit: contain; display: block; }
.logo.txt { border-color: transparent; }
.logos.two .logo { position: absolute; width: 28px; height: 28px; border-radius: 9px; font-size: 9.5px; }
.logos.two .logo img { width: 20px; height: 20px; }
.logos.two .logo:first-child { top: 0; left: 0; }
.logos.two .logo:last-child { right: 0; bottom: 0; box-shadow: 0 0 0 2px var(--surface); }
.fl-air b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-times { display: flex; align-items: center; gap: 10px; }
.fl-times .t b { font: 750 19px/1 var(--display); letter-spacing: -0.02em; }
.fl-times .t .sub { margin-top: 3px; }
.fl-times .line { flex: 1; min-width: 30px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); position: relative; }
.fl-times .line::after { content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.fl-times sup { color: var(--coral); font-weight: 700; margin-left: 1px; font-size: 11px; }
.fl-dur b { font-weight: 700; }
.fl-price { text-align: right; }
.fl-price b { font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.fl-price .sub { margin-top: 3px; }
.cheapest-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--mint); background: var(--mint-soft); border-radius: 999px; padding: 2px 8px; margin-bottom: 4px; }
.res-note { color: var(--muted); font-size: 12.5px; margin: 12px 2px 0; }


/* ------------------------------------------------------------------ server-rendered pages */
.page-hero { padding: 100px 0 36px; }
.page-hero.has-photo { background: #241050; }
.page-hero .ph-img { position: absolute; inset: 0; z-index: -2; background: var(--g, linear-gradient(135deg, #6b3cf0, #ff6a3d)); }
.page-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 24s ease-out both; }
.page-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,8,40,.72) 0%, rgba(16,8,40,.35) 45%, rgba(16,8,40,.8)); }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 6px 0 12px; max-width: 900px; }
.page-hero .lede { margin: 0 0 16px; max-width: 760px; }
.page-hero .p-facts { margin-bottom: 4px; }
.page-hero .credit { right: 16px; bottom: 10px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.crumbs li + li::before { content: "›"; margin-right: 4px; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.p-hero .crumbs { margin-bottom: auto; }
.p-title .to { font-size: .5em; font-weight: 600; opacity: .8; }
.plan-fallback { padding: 26px 0; color: var(--muted); }
.monthnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.monthnav a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; }
.monthnav a:hover { background: rgba(255,255,255,.22); }
.monthnav a[aria-current="page"] { background: #fff; color: #2a1170; }

.guide { margin-top: 30px; }
.guide article { max-width: 1060px; }
.g-sec { margin-top: 40px; }
.g-sec:first-child { margin-top: 10px; }
.g-sec h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.025em; margin: 0 0 8px; line-height: 1.15; }
.g-sec h2 a { color: inherit; text-decoration: none; }
.g-sec h2 a:hover { color: var(--brand); }
.g-sec p { font-size: 15.5px; line-height: 1.65; margin: 0 0 12px; max-width: 820px; }
.g-sec p.big { font-size: 18px; line-height: 1.55; color: var(--ink); }
.g-lead { color: var(--muted); }
.g-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.g-facts span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.g-facts svg { color: var(--brand); font-size: 16px; }
.g-more a { font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.muted { color: var(--faint); font-size: 13px; }
.sub-inline { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.mtable th, .mtable td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.mtable thead th { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.mtable tbody tr:last-child th, .mtable tbody tr:last-child td { border-bottom: 0; }
.mtable tbody th { font-weight: 700; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.mtable tbody th .sub-inline { display: block; font-weight: 500; }
.mtable tbody th a { color: var(--ink); text-decoration: none; }
.mtable tbody th a:hover { color: var(--brand); }
.mtable tr.best th { box-shadow: inset 4px 0 0 var(--mint); }
.tag-best { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: var(--mint); text-transform: uppercase; margin-top: 2px; }
.wxcell { display: inline-flex; align-items: center; gap: 8px; }
.wxcell > svg { font-size: 22px; }
.wxcell b { display: block; }
.whats { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.mtable td .sub-inline { display: block; }
.mtable.routes { min-width: 640px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 18px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 15px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font: 700 16px/1.35 var(--text); letter-spacing: 0; }
.faq .chev { font-size: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.faq details[open] .chev { transform: rotate(90deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.altgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.altcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 44px 16px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.altcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.altcard .ac-city { font: 750 17px/1.2 var(--display); letter-spacing: -0.015em; }
.altcard .ac-fare b { font: 800 20px/1.2 var(--display); }
.altcard .ac-fare .sub-inline { display: block; }
.altcard .ac-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 20px; }
.linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.linkrow > span { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.linkrow a.chip { text-decoration: none; }
.chip.strong { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.evlist { margin-top: 12px; max-width: 820px; }
.evlist li { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.dcard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dc-img { position: relative; height: 110px; background: var(--g, linear-gradient(135deg, #6b3cf0, #ff6a3d)); }
.dc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,6,24,.6)); }
.dc-name { position: absolute; left: 14px; bottom: 9px; right: 14px; z-index: 1; color: #fff; font: 750 19px/1.1 var(--display); letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.dc-body { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px 12px; }
.dc-best { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.mcards-ssr { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.spot { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.spot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.spot-img { position: relative; height: 120px; background: var(--g, linear-gradient(135deg, #6b3cf0, #ff6a3d)); }
.spot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,6,24,.65)); }
.spot-name { position: absolute; left: 14px; bottom: 10px; z-index: 1; color: #fff; font: 750 21px/1.05 var(--display); letter-spacing: -0.02em; }
.spot-name small { display: block; font: 600 12px/1.4 var(--text); opacity: .9; }
.spot-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.spot-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spot-note { font-size: 13px; color: var(--muted); line-height: 1.45; }
.spot-fare { font: 800 17px/1.2 var(--display); margin-top: auto; }
.spot-fare .sub-inline { font-family: var(--text); }
.think { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-width: 900px; }
.think li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.think a { color: var(--ink); text-decoration: none; }
.think a:hover { color: var(--brand); }
.think li > span:last-child { color: var(--muted); font-size: 13.5px; }
.dealrows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.dealrows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dealrows .dr-price { margin-left: auto; font: 800 19px/1 var(--display); }
.tagx { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); }
.deal-grid.ssr .deal-foot { justify-content: flex-end; }
#guides .dcards { margin-top: 4px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .fields, .search.flex .fields { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); }
  .fields .field.date:first-of-type, .search.flex .stay { grid-column: 1 / 2; }
  #return-field { grid-column: 3 / 4; }
  .search.flex .stay { grid-column: 1 / -1; }
  .go { grid-column: 1 / -1; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdetail { grid-template-columns: 1fr; }
  .md-cal { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid2 { grid-template-columns: 1fr; }
  .flight { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "air price" "times times" "dur btn"; }
  .fl-air { grid-area: air; } .fl-times { grid-area: times; } .fl-dur { grid-area: dur; } .fl-price { grid-area: price; } .flight .btn { grid-area: btn; justify-self: end; }
  .verdict { grid-template-columns: auto minmax(0, 1fr); }
  .verdict svg.spark { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .nav > a { display: none; }
  .brand { font-size: 18px; }
  .brand .mark { width: 36px; height: 36px; }
  .page-hero { padding: 86px 0 26px; }
  .page-hero h1 { font-size: 34px; }
  .g-sec { margin-top: 32px; }
  .g-sec p.big { font-size: 16.5px; }
  .mtable { font-size: 13px; }
  .mtable th, .mtable td { padding: 10px 11px; }
  .dcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dc-img { height: 92px; }
  .dc-name { font-size: 16px; left: 10px; bottom: 8px; }
  .dc-body { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px 10px; }
  .altgrid { grid-template-columns: 1fr; }
  .faq summary h3 { font-size: 15px; }
  .foot { padding-top: 34px; }
  .foot-grid { gap: 22px; }
  .monthnav a { padding: 5px 10px; font-size: 12.5px; }
  .hero { padding: 86px 0 30px; }
  .lede { font-size: 16px; }
  .search { border-radius: 22px; padding: 10px; }
  .search-top { gap: 8px; }
  .modes { width: 100%; }
  .modes button { flex: 1; justify-content: center; padding: 8px 10px; }
  .opts { width: 100%; }
  .fields, .search.flex .fields { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 6px; }
  .field { padding: 8px 11px 7px; border-radius: 14px; }
  .field input, .field select { font-size: 15.5px; }
  .swap { width: 36px; height: 36px; }
  .ac { width: calc(100vw - 52px); }
  .field[data-for="to"] .ac { left: auto; right: -1px; }
  .go { min-height: 54px; }
  .sec { margin-top: 44px; }
  .deal-grid { grid-template-columns: 1fr; }
  .picks { gap: 10px; }
  .pick-card { min-height: 118px; padding: 14px 13px 13px; }
  .pick-card .pc-main { font-size: 19px; }
  .months { grid-auto-columns: 142px; }
  .p-hero { border-radius: 22px; margin-top: 16px; }
  .p-hero-in { min-height: 220px; padding: 14px 16px 20px; }
  .md-cal, .md-know { padding: 14px; }
  .day .dp { font-size: 10px; }
  .verdict { padding: 14px; gap: 12px; }
  .v-badge { width: 46px; height: 46px; font-size: 24px; border-radius: 14px; }
  .verdict strong { font-size: 22px; }
  .credit { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
