/* India Unveiled — the grid is the page. Indigo ink, monsoon-sky paper, marigold for what's in season.
   Rozha One for names, Hind for everything else. Photos carry the colour. */
:root {
  --ink: #16213B;
  --paper: #EEF1F6;
  --surface: #FFFFFF;
  --sunk: #E3E8F0;
  --turmeric: #E8A317;
  --turmeric-deep: #9A6A00;
  --slate: #5B6782;
  --line: #D3DAE5;
  --veg: #128A3A;
  --nonveg: #8B3A1A;
  --text: var(--ink);
  --muted: var(--slate);
  --map-land: #C9D2E1;
  --shadow: 0 1px 0 rgba(22, 33, 59, .05), 0 12px 32px -16px rgba(22, 33, 59, .35);
  --display: 'Rozha One', Georgia, 'Times New Roman', serif;
  --body: 'Hind', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 8px;
  --wrap: 1320px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
}
:root[data-theme="dark"] {
  --ink: #E8ECF4; --paper: #0D1424; --surface: #16203A; --sunk: #1C2847; --slate: #9DA9C2; --line: #29375A;
  --turmeric-deep: #F2BE4B; --veg: #3DBE68; --nonveg: #D9774E; --map-land: #2E3D61;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 36px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8ECF4; --paper: #0D1424; --surface: #16203A; --sunk: #1C2847; --slate: #9DA9C2; --line: #29375A;
    --turmeric-deep: #F2BE4B; --veg: #3DBE68; --nonveg: #D9774E; --map-land: #2E3D61;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 36px -16px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--body); }
body.lb-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--turmeric); color: #16213B; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
main { min-height: 70vh; outline: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; background: none; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { filter: brightness(1.15); }
.btn-ink.added { background: var(--sunk); color: var(--muted); cursor: default; }
.btn-line { border-color: var(--line); background: var(--surface); }
.btn-line:hover { border-color: var(--slate); }
.btn-text { min-height: 36px; padding: 0 8px; color: var(--muted); font-weight: 500; }
.btn-text:hover { color: var(--text); }
.link { border: 0; background: none; padding: 0; color: var(--turmeric-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.icon-btn.sm { width: 32px; height: 32px; font-size: 1rem; }
.icon-btn.on-photo { color: #fff; background: rgba(10, 14, 26, .45); backdrop-filter: blur(6px); }
.icon-btn.on-photo:hover { background: rgba(10, 14, 26, .7); }
.save { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; flex: none; }
.save:hover, .save.on { color: #D2364F; border-color: color-mix(in srgb, #D2364F 40%, var(--line)); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sunk); font-size: .85rem; }
.label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.ic { flex: none; }

/* India's number plate: white, black letters, blue IND band. Same in both themes; it is an object. */
.plate { display: inline-flex; align-items: stretch; height: 24px; border-radius: 4px; background: #FBFBF8; color: #111; border: 1.5px solid #111; overflow: hidden; font: 700 .82rem/1 var(--body); letter-spacing: .08em; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); flex: none; }
.plate i { display: grid; place-items: center; width: 14px; background: #1A4FB4; color: #fff; font: 700 5px/1 var(--body); letter-spacing: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-style: normal; }
.plate b { display: grid; place-items: center; padding: 0 7px 0 6px; padding-top: 2px; }
.plate.lg { height: 34px; font-size: 1.15rem; }
.plate.lg i { width: 18px; font-size: 6.5px; }
.plate.lg b { padding: 2px 10px 0 9px; }

/* veg / non-veg marks */
.vm { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 2px solid; border-radius: 2px; flex: none; vertical-align: -2px; margin-right: 6px; background: #fff; }
.vm-veg { border-color: #128A3A; } .vm-veg i { width: 6px; height: 6px; border-radius: 50%; background: #128A3A; }
.vm-nonveg { border-color: #8B3A1A; } .vm-nonveg i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #8B3A1A; }

/* month bar */
.mbar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; list-style: none; margin: 0; padding: 0; }
.mbar li { height: 22px; border-radius: 3px; display: grid; place-items: center; font-size: .68rem; font-weight: 600; position: relative; }
.mbar .m0 { background: var(--sunk); color: var(--muted); }
.mbar .m1 { background: color-mix(in srgb, var(--turmeric) 32%, var(--surface)); color: var(--ink); }
.mbar .m2 { background: var(--turmeric); color: #16213B; }
.mbar .now::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--text); }
.mbar.lg li { height: 34px; font-size: .82rem; }

.skel { height: 120px; border-radius: var(--r); background: linear-gradient(100deg, var(--sunk) 30%, color-mix(in srgb, var(--sunk) 50%, var(--surface)) 50%, var(--sunk) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
.skel.short { height: 40px; width: 60%; }
.skel.tall { height: 340px; }
.skel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* placeholder when a photo isn't available */
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .28); background:
  radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--turmeric) 26%, transparent), transparent 55%),
  repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
  linear-gradient(160deg, #2A3B66, #16213B); }
.ph svg { width: clamp(22px, 22%, 54px); height: auto; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--display); white-space: nowrap; flex: none; }
.brand-mark { width: 46px; height: 46px; object-fit: contain; flex: none; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.topnav a[aria-current] { background: var(--ink); color: var(--paper); }
.count { background: var(--turmeric); color: #16213B; border-radius: 999px; font-size: .75rem; font-weight: 600; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---------- home: the stage ---------- */
.stage { padding-block: 28px 40px; }
.stage-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.stage-title h1 { font: 400 clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem)/1 var(--display); letter-spacing: -.005em; }
.stage-title p { color: var(--muted); margin-top: 8px; font-size: 1.05rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 22px; }
.find { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); flex: 1 1 280px; max-width: 380px; color: var(--muted); }
.find:focus-within { border-color: var(--turmeric); }
.find input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.fgroup { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.pill:hover { color: var(--text); background: var(--sunk); }
.pill.cur { box-shadow: inset 0 -2px 0 var(--turmeric); border-radius: 6px 6px 0 0; }
.pill.on { background: var(--turmeric); color: #16213B; font-weight: 600; box-shadow: none; border-radius: 999px; }
.vibes { gap: 6px; }
.vibe { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); padding: 6px 12px 6px 10px; border-radius: 999px; cursor: pointer; font-size: .9rem; }
.vibe:hover { border-color: var(--slate); }
.vibe.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.regions .pill.on { background: var(--ink); color: var(--paper); }
.match { flex-basis: 100%; min-height: 1.5em; color: var(--muted); }
.match strong { color: var(--text); font-size: 1.15rem; }

.tiles-scroll { margin-top: 18px; }
.tiles { display: grid; gap: 12px; }
.tiles.mode-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tiles.mode-map { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); gap: 8px; max-width: 980px; margin: 0 auto; }
.tiles.mode-map .tile { grid-column: var(--gc); grid-row: var(--gr); aspect-ratio: 1; }

.tile { position: relative; display: block; aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; background: #16213B; color: #fff; text-align: left; isolation: isolate; transition: opacity .25s, filter .25s, box-shadow .2s; }
.tile > img, .tile > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover > img { transform: scale(1.05); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .35) 0%, transparent 28%, transparent 48%, rgba(8, 12, 24, .82) 100%); }
.tile-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tile-season { display: inline-flex; align-items: center; gap: 4px; background: var(--turmeric); color: #16213B; font-size: .72rem; font-weight: 700; padding: 3px 8px 2px 6px; border-radius: 999px; }
.tile-text { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.tile-name { display: block; font: 400 clamp(1.15rem, .9rem + .6vw, 1.5rem)/1.05 var(--display); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.tile-short { display: none; }
.tile.dim { opacity: .16; filter: grayscale(1); }
.tile.dim:hover { opacity: .45; }
.tile.sel { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--turmeric); }
.mode-map .tile { border-radius: 6px; }
.mode-map .tile-top { top: 6px; left: 6px; right: 6px; }
.mode-map .plate { height: 20px; font-size: .7rem; }
.mode-map .plate i { width: 11px; font-size: 4px; }
.mode-map .tile-season { display: none; }
.mode-map .tile-text { left: 7px; right: 7px; bottom: 6px; }
.mode-map .tile-name { display: none; }
.mode-map .tile-short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: .78rem; line-height: 1.1; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

/* ---------- quick look ---------- */
.quick { position: fixed; z-index: 70; top: calc(64px + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 40px -24px rgba(8, 12, 24, .5); overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.75,.25,1), visibility 0s linear .32s; padding-bottom: env(safe-area-inset-bottom, 0px); }
.quick.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.75,.25,1); }
.q-photo { position: relative; height: 240px; background: #16213B; }
.q-photo > img, .q-photo > .ph { width: 100%; height: 100%; object-fit: cover; }
.q-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .4), transparent 35%, transparent 50%, rgba(8, 12, 24, .85)); }
.q-top { position: absolute; top: 12px; left: 14px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.q-nav { display: flex; gap: 6px; }
.q-title { position: absolute; left: 18px; right: 18px; bottom: 14px; color: #fff; }
.q-title h2 { font: 400 2.2rem/1 var(--display); }
.q-title p { opacity: .85; margin-top: 4px; }
.q-body { padding: 18px 18px 24px; display: grid; gap: 18px; }
.q-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.q-loc .locator { width: 96px; }
.q-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.q-vibes { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.q-vibes span { display: inline-flex; align-items: center; gap: 4px; }
.q-more { display: grid; gap: 4px; }
.q-more .q-label { margin-top: 10px; }
.q-spots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-spot { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; text-decoration: none; color: #fff; background: #16213B; }
.q-spot > img, .q-spot > .ph { width: 100%; height: 100%; object-fit: cover; }
.q-spot .ph span { font-size: 1.4rem; }
.q-spot > span:last-child { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-weight: 600; font-size: .9rem; line-height: 1.15; background: linear-gradient(transparent, rgba(8, 12, 24, .85)); }
.q-foods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.q-food { display: grid; justify-items: center; gap: 6px; text-decoration: none; text-align: center; font-size: .82rem; line-height: 1.2; }
.q-plate { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); background: #16213B; }
.q-plate > img, .q-plate > .ph { width: 100%; height: 100%; object-fit: cover; }
.q-plate .ph span { font-size: 1.1rem; }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.q-chips span { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--turmeric) 22%, var(--surface)); font-size: .88rem; }
.q-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q-actions .btn-ink { flex: 1; }
.q-error { color: var(--muted); padding: 12px 0; }

.locator path { fill: var(--map-land); stroke: var(--surface); stroke-width: 3; }
.locator path.hl { fill: var(--turmeric); stroke: var(--ink); stroke-width: 4; }
.locator .ring { fill: none; stroke: var(--turmeric); stroke-width: 10; }

/* ---------- state page ---------- */
.st-hero { position: relative; min-height: clamp(380px, 64vh, 640px); display: flex; align-items: flex-end; color: #fff; background: #16213B; overflow: hidden; }
.st-hero-photo { position: absolute; inset: 0; margin: 0; }
.st-hero-photo > img, .st-hero-photo > .ph { width: 100%; height: 100%; object-fit: cover; }
.st-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 24, .25), transparent 30%, rgba(8, 12, 24, .2) 55%, rgba(8, 12, 24, .88)); }
.st-hero-in { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 0 84px; }
.st-hero-text { min-width: 0; }
.st-hero h1 { font: 400 clamp(3rem, 1.2rem + 7vw, 7.5rem)/.92 var(--display); margin-top: 16px; letter-spacing: -.01em; overflow-wrap: anywhere; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.st-sub { margin-top: 12px; font-size: 1.1rem; opacity: .92; }
.st-vibes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.st-vibes span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); font-size: .9rem; }
.st-loc { flex: none; width: 150px; padding: 10px; border-radius: var(--r); background: rgba(8, 12, 24, .35); backdrop-filter: blur(8px); }
.st-loc .locator path { fill: rgba(255, 255, 255, .28); stroke: rgba(8, 12, 24, .3); }
.st-loc .locator path.hl { fill: var(--turmeric); stroke: #fff; }

.glance { position: relative; z-index: 2; margin-top: -56px; }
.glance > * { min-width: 0; }
.glance { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 18px 32px; align-items: center; }
.glance::before { content: ''; position: absolute; inset: 0 max(4px, calc(var(--gut) - 16px)); z-index: -1; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.glance { padding-block: 22px; }
.glance-when { padding-left: 4px; }
.glance-when .label { display: block; margin-bottom: 8px; }
.glance-figs { display: flex; gap: 22px; color: var(--muted); }
.glance-figs span { display: grid; font-size: .85rem; line-height: 1.2; }
.glance-figs b { font: 400 2rem/1 var(--display); color: var(--text); }
.glance-act { display: flex; gap: 10px; align-items: center; padding-right: 4px; }
.save.big { width: 48px; height: 48px; }

.st-nav { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-top: 28px; }
.st-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.st-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; white-space: nowrap; color: var(--muted); }
.st-nav a:hover { color: var(--text); }
.st-nav a[aria-current] { background: var(--ink); color: var(--paper); }

.st-body { padding-bottom: 32px; }
.loading { padding-top: 40px; }
.sec { padding-top: 56px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 22px; }
.sec-head h2 { font: 400 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--display); }
.hint { color: var(--muted); font-size: .9rem; }

.place-row { padding: 18px 0 26px; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.place-row:first-of-type { border-top: 0; padding-top: 0; }
.place-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 20px; margin-bottom: 14px; }
.place-head h3 { font: 400 1.75rem/1.05 var(--display); }
.place-head p { color: var(--muted); margin-top: 2px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Spots: a mosaic. The first photo leads; the rest fill around it. */
.spots { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
.spots .spot:first-child { grid-column: span 2; grid-row: span 2; }
.spots.n1 .spot:first-child { grid-column: 1 / -1; grid-row: span 2; }
.spots.n2 { grid-template-columns: 2fr 1fr; }
.spots.n2 .spot:first-child { grid-column: 1; }
.spots.n3 .spot:first-child { grid-row: span 2; }
.spots.n3 { grid-template-columns: 2fr 1fr; }
.spots.n3 .spot:first-child { grid-column: 1; }
.spot { position: relative; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: #16213B; color: #fff; text-align: left; scroll-margin-top: 140px; }
.spot > img, .spot > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.spot:hover > img { transform: scale(1.05); }
.spot-shade { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8, 12, 24, .82)); }
.spot-name { position: absolute; left: 12px; right: 12px; bottom: 10px; font-weight: 600; line-height: 1.2; }
.spots .spot:first-child .spot-name { font: 400 1.6rem/1.05 var(--display); }
.flash { box-shadow: 0 0 0 4px var(--turmeric); }

.itin { margin-top: 12px; }
.itin summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--sunk); list-style: none; }
.itin summary::-webkit-details-marker { display: none; }
.itin ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.itin ol > li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.itin-day { font-weight: 600; margin-bottom: 6px; }
.itin ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.itin ul li { margin: 4px 0; }

.tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { flex: none; white-space: nowrap; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--muted); font-size: .92rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
.plate-item { display: grid; justify-items: center; gap: 8px; border: 0; background: transparent; cursor: zoom-in; text-align: center; padding: 0; }
.plate-photo { width: min(150px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line), var(--shadow); background: #16213B; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.plate-photo > img, .plate-photo > .ph { width: 100%; height: 100%; object-fit: cover; }
.plate-item:hover .plate-photo { transform: rotate(-4deg) scale(1.04); }
.plate-name { font-weight: 600; line-height: 1.2; }
.plate-kind { font-size: .82rem; color: var(--muted); margin-top: -4px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: #16213B; color: #fff; text-align: left; }
.card > img, .card > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover > img { transform: scale(1.05); }
.card-shade { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(8, 12, 24, .85)); }
.card-name { position: absolute; left: 14px; right: 14px; bottom: 12px; font: 400 1.35rem/1.05 var(--display); }

.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.season { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 14px; align-content: start; }
.season-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.season-top .ic { color: var(--turmeric-deep); }
.season h3 { font: 400 1.5rem/1 var(--display); }
.season-top p { color: var(--muted); font-size: .9rem; }
.season .temp { font: 400 1.25rem/1 var(--display); color: var(--text); white-space: nowrap; }
.season-tops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.season-top-item { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; background: #16213B; }
.season-top-item > img, .season-top-item > .ph { width: 100%; height: 100%; object-fit: cover; }
.season-top-item .ph span { font-size: 1.1rem; }
.season-top-item > span:last-child { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: .72rem; font-weight: 600; line-height: 1.15; background: linear-gradient(transparent, rgba(8, 12, 24, .9)); }
.pack { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pack .label { margin-right: 4px; }

.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.reach-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.reach-item .ic { color: var(--turmeric-deep); }
.reach-item h3 { font-size: 1.1rem; }
.reach-item p { color: var(--muted); font-size: .95rem; }

.ribbon { list-style: none; margin: 0; padding: 26px 0 8px; display: flex; gap: 0; overflow-x: auto; position: relative; scroll-snap-type: x proximity; }
.ribbon li { flex: 0 0 220px; position: relative; padding: 24px 18px 0 0; scroll-snap-align: start; border-top: 3px solid var(--turmeric); }
.ribbon li::before { content: ''; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--turmeric); }
.r-date { display: block; font: 400 1.25rem/1.1 var(--display); color: var(--turmeric-deep); }
.r-title { display: block; margin-top: 6px; font-weight: 500; line-height: 1.3; }

.st-next { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding-block: 56px 8px; }
.nx { position: relative; display: flex; align-items: flex-end; min-height: 120px; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: #16213B; }
.nx > img, .nx > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .3s; }
.nx:hover > img { opacity: .9; }
.nx > span { position: relative; padding: 14px 16px; font: 400 1.5rem/1.05 var(--display); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.nx small { display: block; font: 500 .8rem/1.4 var(--body); opacity: .85; }
.nx.all { background: var(--ink); color: var(--paper); align-items: center; justify-content: center; padding: 0 24px; }
.nx.all > span { text-shadow: none; text-align: center; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(6, 10, 20, .92); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gut-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gut); }
.lb-inner { position: relative; width: min(1180px, 100%); max-height: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-photo { margin: 0; background: #0B1020; min-height: 320px; max-height: calc(100vh - 32px); display: grid; }
.lb-photo > img, .lb-photo > .ph { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: cover; }
.lb-info { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 20px; overflow-y: auto; max-height: calc(100vh - 32px); }
.lb-eyebrow { color: var(--muted); font-size: .9rem; }
.lb-head h2 { font: 400 clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem)/1.02 var(--display); margin-top: 4px; padding-right: 36px; }
.lb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lb-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sunk); font-size: .85rem; }
.lb-chips .vm { margin-right: 0; }
.lb-body { display: grid; gap: 12px; color: var(--text); font-size: .98rem; }
.lb-body .lead { font-size: 1.08rem; }
.lb-body .where { display: flex; gap: 6px; color: var(--muted); }
.lb-body .ingr { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-body .tip { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--turmeric) 16%, var(--surface)); }
.lb-body details summary { cursor: pointer; font-weight: 600; }
.lb-body details p { margin-top: 8px; color: var(--muted); }
.lb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.lb-x { position: absolute; top: 12px; right: 12px; background: var(--surface); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .9); color: #16213B; width: 46px; height: 46px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.lb-nav:hover { background: #fff; }
.lb-nav.prev { left: 12px; }
.lb-nav.next { left: calc(61.5% - 58px); }
.lb-count { position: absolute; left: 14px; top: 14px; color: #fff; background: rgba(8, 12, 24, .55); padding: 2px 10px; border-radius: 999px; font-size: .85rem; }

/* ---------- trip ---------- */
.trip { padding-block: 36px 0; }
.trip-name { font: 400 clamp(2.2rem, 1.4rem + 3vw, 3.6rem)/1.05 var(--display); border: 0; background: transparent; width: 100%; padding: 4px 0; border-bottom: 2px dashed transparent; }
input.trip-name:hover, input.trip-name:focus { border-bottom-color: var(--line); outline: none; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.trip-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 28px; }
.days { display: grid; gap: 14px; justify-items: start; }
.days > * { width: 100%; }
.days > .btn { width: auto; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.day header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.day h2 { font: 400 1.6rem/1 var(--display); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stops li { display: flex; align-items: center; gap: 8px; }
.stop { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px; border-radius: 10px; background: var(--sunk); }
.stop > img, .stop > .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.stop .ph span { font-size: 1.1rem; }
.stop > span { display: grid; min-width: 0; }
.stop b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop small { color: var(--muted); font-size: .85rem; }
.stop-btns { display: flex; }
.day-empty { color: var(--muted); padding: 6px 0; }
.notes { width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 8px 10px; resize: vertical; font-size: .95rem; }
.saved { position: sticky; top: 84px; }
.saved h2 { font: 400 1.9rem/1 var(--display); margin-bottom: 6px; }
.saved h3 { margin: 16px 0 8px; font-size: .95rem; color: var(--muted); }
.saved .btn { margin-top: 12px; }
.saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.saved-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.saved-item a { display: block; text-decoration: none; }
.saved-item a > img, .saved-item a > .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.saved-item a > .ph span { font-size: 1.3rem; }
.saved-item a > span { display: block; padding: 8px 10px 4px; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.saved-btns { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 6px 8px 10px; }
.saved-btns select { min-width: 0; flex: 1; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; padding: 0 8px; }
.saved-btns .save { width: 34px; height: 34px; }

.empty { padding-block: 80px; max-width: 640px; }
.empty h1 { font: 400 clamp(2.4rem, 1.6rem + 3vw, 4rem)/1 var(--display); margin-bottom: 14px; }
.empty p + p { margin-top: 18px; }

/* ---------- footer, toast, dialog ---------- */
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); padding-block: 28px 100px; color: var(--muted); font-size: .9rem; }
.foot-inner { display: grid; gap: 6px; }
.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -10px); opacity: 0; visibility: hidden; box-shadow: 0 10px 30px -10px rgba(8, 12, 24, .5); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 500; z-index: 150; transition: transform .25s ease, opacity .25s ease, visibility .25s; max-width: min(460px, calc(100vw - 32px)); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.confirm { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; background: rgba(6, 10, 20, .55); }
.confirm-box { background: var(--surface); color: var(--text); border-radius: 12px; padding: 24px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.confirm-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .glance { grid-template-columns: 1fr auto; }
  .glance-figs { grid-column: 1 / -1; grid-row: 2; }
  .lb-inner { grid-template-columns: 1fr; overflow-y: auto; max-height: calc(100vh - 32px); }
  .lb-photo, .lb-photo > img, .lb-photo > .ph { max-height: 52vh; min-height: 240px; }
  .lb-info { max-height: none; overflow: visible; }
  .lb-nav { top: calc(26vh); }
  .lb-nav.next { left: auto; right: 12px; }
}
@media (max-width: 860px) {
  .trip-grid { grid-template-columns: 1fr; }
  .saved { position: static; }
  .spots { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .spots.n2, .spots.n3 { grid-template-columns: repeat(2, 1fr); }
  .spots .spot:first-child, .spots.n3 .spot:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .st-loc { width: 110px; }
  .quick { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(86vh, 760px); border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; transform: translateY(105%); box-shadow: 0 -18px 40px -20px rgba(8, 12, 24, .6); }
  .quick.open { transform: none; }
  .q-photo { height: 200px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-inner { gap: 6px; }
  .topnav a { padding: 8px 10px; }
  .tiles.mode-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .tiles-scroll { overflow-x: auto; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut-r)); padding: 4px var(--gut-r) 8px var(--gut); }
  .tiles.mode-map { gap: 5px; }
  .fgroup { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut-r)); padding: 2px var(--gut-r) 2px var(--gut); flex: 1 1 100%; }
  .find { max-width: none; }
  .vibe, .pill { flex: none; }
  .st-hero-in { flex-direction: column; align-items: flex-start; padding-bottom: 76px; }
  .st-loc { display: none; }
  .glance { grid-template-columns: 1fr; }
  .glance-figs { grid-row: auto; }
  .glance-act .btn { flex: 1; }
  .st-next { grid-template-columns: 1fr 1fr; }
  .nx.all { grid-column: 1 / -1; grid-row: 2; min-height: 56px; }
  .plates { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 22px 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-name { font-size: 1.1rem; left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .site-foot, .trip-actions, .saved, .stop-btns, .days > .btn, .day header .btn, #aero-btn, #aero-panel, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .trip-grid { display: block; }
  .day { break-inside: avoid; }
}

@media (max-width: 600px) {
  .tiles.mode-map { gap: 3px; }
  .mode-map .tile { border-radius: 4px; }
  .mode-map .tile-shade { background: linear-gradient(180deg, transparent 30%, rgba(8, 12, 24, .55)); }
  .mode-map .tile-top { top: auto; bottom: 3px; left: 0; right: 0; justify-content: center; }
  .mode-map .plate { height: 14px; font-size: .56rem; letter-spacing: .03em; border-width: 1px; border-radius: 2px; }
  .mode-map .plate i { display: none; }
  .mode-map .plate b { padding: 1px 3px 0; }
  .mode-map .tile-text { display: none; }
  .tile.sel { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--turmeric); }
}
@media (max-width: 440px) {
  .topnav a[href="/"] { display: none; }
  .brand { font-size: 1.3rem; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
}
@media (max-width: 720px) {
  .fgroup, .st-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
