/* ReelRadar design system ----------------------------------------------------
   Fonts: Inter (interface) and Fraunces (display), both SIL Open Font License 1.1. */

@font-face { font-family: "Inter"; src: url(/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --bg: #f6f3ec;
  --bg-2: #efe9dd;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #0d2226;
  --ink-2: #2f454a;
  --muted: #5f7175;
  --line: #e4ddcf;
  --line-2: #d6cdbb;

  --brand: #0e4a4f;
  --brand-2: #14696c;
  --brand-ink: #0b3236;
  --sky: #dcefeb;
  --sky-2: #c3e3dd;
  --accent: #e8662a;
  --accent-2: #c9521a;
  --accent-soft: #fde8dc;

  --danger: #b8322a; --danger-bg: #fcebea; --danger-line: #f3c7c3;
  --amber: #925c00;  --amber-bg: #fff3d9;  --amber-line: #f2d9a1;
  --ok: #1b7343;     --ok-bg: #e3f4ea;     --ok-line: #b9e1c9;
  --grey: #5f6e71;   --grey-bg: #eceae4;   --grey-line: #d9d5cb;

  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(13,34,38,.06), 0 1px 1px rgba(13,34,38,.04);
  --shadow-2: 0 2px 4px rgba(13,34,38,.05), 0 8px 24px -6px rgba(13,34,38,.14);
  --shadow-3: 0 4px 10px rgba(13,34,38,.06), 0 24px 48px -12px rgba(13,34,38,.28);
  --ring: 0 0 0 3px rgba(232,102,42,.35);
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --max: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1b1e; --bg-2: #0f2427; --surface: #12292d; --surface-2: #163236;
    --ink: #eaf3f1; --ink-2: #c3d4d1; --muted: #8fa5a2; --line: #23403f; --line-2: #2e504f;
    --brand: #5fc3b8; --brand-2: #7fd3c8; --brand-ink: #071518; --sky: #173a3b; --sky-2: #1f4a4a;
    --accent: #ff8a4c; --accent-2: #ff9f6b; --accent-soft: #3a2418;
    --danger: #ff8a80; --danger-bg: #3a1a19; --danger-line: #5e2a27;
    --amber: #f3c262; --amber-bg: #33270f; --amber-line: #574215;
    --ok: #7fd7a2; --ok-bg: #12301f; --ok-line: #1f4d33;
    --grey: #a9b8b6; --grey-bg: #1d3033; --grey-line: #2c4447;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 10px 28px -8px rgba(0,0,0,.6);
    --shadow-3: 0 6px 14px rgba(0,0,0,.35), 0 28px 56px -12px rgba(0,0,0,.7);
  }
}

/* Base ------------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01";
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.12; color: var(--ink); }
h1, .display { font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 120, "SOFT" 50; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.015em; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 .9rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.i .fill, .i circle.fill { fill: currentColor; }
.i-lg { width: 1.5em; height: 1.5em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 3000; padding: .6rem 1rem; background: var(--accent); color: #fff; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; color: #fff; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; outline: none; }
main:focus, main:focus-visible { box-shadow: none; }
.gap-top { margin-top: 1.2rem; }
.spacer { height: 4rem; }
.spacer-x { flex: 1; }
.section-tight { padding-top: .4rem; }
.forum-tools { margin-bottom: .4rem; }
.noscript { padding: 4rem 1rem; text-align: center; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 44rem; }

/* Header ---------------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 1200; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.top-in { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-size: 1.32rem; letter-spacing: -.01em; font-weight: 400; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 10px; box-shadow: var(--shadow-1); }
.brand b { font-weight: 750; color: var(--accent); }
.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .85rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; transition: background .2s, color .2s; }
.nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.nav a.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.count-pill { min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700; border-radius: 999px; background: var(--accent); color: #fff; }
.top-cta { padding: .55rem 1rem; font-size: .92rem; }

/* Transparent header over the home hero. */
body.over .top { background: linear-gradient(to bottom, rgba(5,20,22,.55), rgba(5,20,22,0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.over .brand, body.over .nav a { color: #fff; }
body.over .nav a:hover, body.over .nav a.on { background: rgba(255,255,255,.16); color: #fff; }

/* Buttons and controls --------------------------------------------------------- */

input, select, textarea, button { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.2rem; border: 1px solid transparent; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: .96rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
@media (prefers-color-scheme: dark) { .btn { color: var(--brand-ink); } }
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
@media (prefers-color-scheme: dark) { .btn:hover { color: var(--brand-ink); } }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-accent, .btn-accent:hover { color: #1b0d05; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.btn-soft { background: var(--sky); color: var(--brand); }
.btn-soft:hover { background: var(--sky-2); color: var(--brand); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.26); color: #fff; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.btn-sm { padding: .42rem .8rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, transform .15s, color .2s; }
.icon-btn:hover { transform: translateY(-1px); background: var(--surface-2); }

.field { display: grid; gap: .4rem; }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=file]), .field select, .field textarea, select.input {
  width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, select.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
select.input, .field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7175' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.05rem;
}
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.stack { display: grid; gap: 1rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Photo picker */
.picker { position: relative; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.picker:hover, .picker:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.picker .ph { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-1); }
.picker b { display: block; font-weight: 600; }
.picker small { color: var(--muted); }
.preview:empty { display: none; }
.preview { position: relative; }
.preview img { max-height: 240px; width: auto; border-radius: var(--r-sm); box-shadow: var(--shadow-2); }

.msg { padding: .75rem 1rem; border-radius: var(--r-sm); font-weight: 500; font-size: .94rem; }
.msg.err { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-line); }
.msg.good { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 550; font-size: .92rem; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 2.6rem; height: 1.5rem; margin: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(1.1rem); }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { padding: .45rem .95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Chips, badges, pills */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px; background: var(--sky); color: var(--brand); font-size: .82rem; font-weight: 550; white-space: nowrap; }
.chip.more { background: var(--bg-2); color: var(--muted); }
button.chip { border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .15s; }
button.chip:hover { background: var(--sky-2); transform: translateY(-1px); }
.chip.filter { background: var(--ink); color: var(--bg); }
.chip.filter .i { width: .95em; height: .95em; }
.safety { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 650; border: 1px solid; white-space: nowrap; }
.safety .i { width: 1.05em; height: 1.05em; }
.safety.danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.safety.amber { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.safety.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.safety.grey { color: var(--grey); background: var(--grey-bg); border-color: var(--grey-line); }

/* Hero (home) --------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 80% at 15% 100%, rgba(4,24,27,.92) 10%, rgba(4,24,27,.35) 55%, rgba(4,24,27,0) 80%),
  linear-gradient(to top, rgba(4,24,27,.85), rgba(4,24,27,.15) 55%, rgba(4,24,27,.45)); }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero .eyebrow { color: #ffd2b8; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; max-width: 13ch; margin: .6rem 0 1rem; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 500; color: #ffb48a; }
.hero .lede { color: rgba(255,255,255,.86); }
.hero-search { display: flex; align-items: center; gap: .5rem; max-width: 680px; margin-top: 1.8rem; padding: .45rem .45rem .45rem 1.1rem; border-radius: 999px; background: rgba(255,255,255,.97); box-shadow: 0 20px 50px -10px rgba(0,0,0,.45); }
.hero-search .i { color: var(--muted); width: 1.3rem; height: 1.3rem; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #0d2226; font-size: 1.05rem; padding: .7rem .2rem; outline: none; }
.hero-search input::placeholder { color: #7a8a8d; }
.hero-search .btn { padding: .85rem 1.4rem; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.quick button { padding: .38rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: .86rem; font-weight: 550; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .15s; }
.quick button:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.hero-credit { position: absolute; right: .9rem; top: calc(var(--header-h) + .6rem); margin: 0; font-size: .7rem; color: rgba(255,255,255,.6); }
.hero-credit a { color: inherit; }

.stats { position: relative; z-index: 2; margin-top: -2.4rem; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.stat { padding: 1.3rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat span { display: block; margin-top: .35rem; font-size: .86rem; color: var(--muted); }

/* Explore -------------------------------------------------------------------- */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-head p { margin: 0; color: var(--muted); }

.toolbar { position: sticky; top: var(--header-h); z-index: 900; margin: 0 calc(-1 * var(--gutter)) 1.2rem; padding: .8rem var(--gutter); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.toolbar.stuck { border-color: var(--line); box-shadow: 0 8px 20px -16px rgba(13,34,38,.4); }
.tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.tb-search { position: relative; flex: 1 1 240px; min-width: 200px; }
.tb-search .i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tb-search input { padding-left: 2.6rem; border-radius: 999px; }
.tb-row select.input { width: auto; min-width: 0; flex: 0 1 auto; border-radius: 999px; min-height: 2.75rem; padding-top: .55rem; padding-bottom: .55rem; font-size: .92rem; }
.tb-row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-top: .75rem; }
.tb-left { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.result-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.1rem; color: var(--muted); font-size: .93rem; }
.result-line b { color: var(--ink); }
.linkish { padding: 0; border: 0; background: none; color: var(--brand-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.explore { display: grid; gap: 1.5rem; }
.explore.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.explore.split .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.map-pane { display: none; }
.explore.split .map-pane, .explore.map-only .map-pane { display: block; }
.explore.split .map-pane { position: sticky; top: calc(var(--header-h) + 128px); height: calc(100vh - var(--header-h) - 150px); min-height: 420px; }
.explore.map-only .list-pane { display: none; }
.explore.map-only .map-pane { height: calc(100vh - var(--header-h) - 190px); min-height: 440px; }
.map { width: 100%; height: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sky); box-shadow: var(--shadow-2); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.dot { display: inline-block; width: .65rem; height: .65rem; margin-right: .35rem; border-radius: 50%; vertical-align: 0; }
.dot.danger { background: #c0392b; } .dot.amber { background: #e0a100; } .dot.ok { background: #1f8a50; } .dot.grey { background: #869497; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem 1.2rem; }

/* Spot card */
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover, .card.hl { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,24,27,.45), transparent 45%); pointer-events: none; }
.card-type { position: absolute; left: .8rem; top: .8rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 999px; background: rgba(255,255,255,.94); color: #0d2226; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-1); }
.card-dist { position: absolute; left: .8rem; bottom: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; color: #fff; font-size: .8rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.save { position: absolute; right: .7rem; top: .7rem; z-index: 3; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #0d2226; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .2s var(--ease), color .2s; }
.save:hover { transform: scale(1.08); }
.save[aria-pressed="true"] { color: #e0393e; }
.save[aria-pressed="true"] .i { fill: currentColor; }
.save.pop { animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.25); } }
.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.card h3 { margin: 0; font-family: var(--display); font-size: 1.28rem; font-weight: 600; letter-spacing: -.015em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { box-shadow: none; }
.card:has(h3 a:focus-visible) { box-shadow: var(--ring), var(--shadow-2); }
.where { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .9rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.record { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 650; color: var(--accent-2); }

/* Placeholder art for spots without a photo */
.art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.9); }
.art svg.waves { position: absolute; left: -5%; right: -5%; bottom: 0; width: 110%; height: 60%; }
.art .i { width: 2.6rem; height: 2.6rem; stroke-width: 1.4; position: relative; z-index: 1; opacity: .9; }
.art.t0 { background: linear-gradient(160deg, #1d6f73, #0b3a3e); }
.art.t1 { background: linear-gradient(160deg, #2a7a8c, #123c4f); }
.art.t2 { background: linear-gradient(160deg, #4f8a6b, #1b4636); }
.art.t3 { background: linear-gradient(160deg, #b0703f, #5b3420); }
.art.t4 { background: linear-gradient(160deg, #3f6d9e, #1a3352); }

/* Empty and skeleton states */
.empty { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1.5rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .i { width: 2.4rem; height: 2.4rem; color: var(--brand-2); stroke-width: 1.4; }
.empty h3 { color: var(--ink); margin: 0; }
.empty p { margin: 0; max-width: 32rem; }
.sk { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--r-sm); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.sk-card .sk-img { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-card .sk-lines { display: grid; gap: .55rem; padding: 1rem 1.1rem 1.2rem; }
.sk-line { height: .9rem; } .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; } .sk-line.h { height: 1.3rem; width: 75%; }

/* Bands on the home page ------------------------------------------------------- */

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.feature { padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.feature .ic { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .9rem; border-radius: 14px; }
.feature .ic .i { width: 1.4rem; height: 1.4rem; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.ic.danger { background: var(--danger-bg); color: var(--danger); } .ic.amber { background: var(--amber-bg); color: var(--amber); }
.ic.ok { background: var(--ok-bg); color: var(--ok); } .ic.grey { background: var(--grey-bg); color: var(--grey); }
.ic.brand { background: var(--sky); color: var(--brand); } .ic.accent { background: var(--accent-soft); color: var(--accent-2); }

.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem; padding: clamp(1.8rem, 5vw, 3.2rem); border-radius: var(--r-lg); background: radial-gradient(120% 140% at 100% 0%, #1b7a7c 0%, #0b3236 55%, #071f22 100%); color: #fff; box-shadow: var(--shadow-3); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.cta svg.waves { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 90px; opacity: .25; pointer-events: none; }

/* Spot page ------------------------------------------------------------------ */

.spot-hero { position: relative; isolation: isolate; min-height: clamp(340px, 52vh, 520px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.spot-hero > img, .spot-hero > .art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.spot-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4,24,27,.9) 0%, rgba(4,24,27,.35) 55%, rgba(4,24,27,.25) 100%); }
.spot-hero-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 2.2rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: auto; font-size: .88rem; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.crumbs a:hover { color: #fff; }
.spot-hero .eyebrow { color: #ffd2b8; }
.spot-hero h1 { color: #fff; margin: .4rem 0 .5rem; font-size: clamp(2.2rem, 5.5vw, 4rem); text-wrap: balance; }
.spot-hero .where { color: rgba(255,255,255,.88); font-size: 1rem; }
.spot-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.spot-hero .save { position: static; width: auto; height: auto; padding: .72rem 1.2rem; gap: .45rem; display: inline-flex; font-weight: 600; font-size: .96rem; }
.spot-hero .save { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spot-hero .save:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.spot-hero .save[aria-pressed="true"] { background: #fff; color: #e0393e; }
.credit { position: absolute; right: .9rem; bottom: .6rem; font-size: .72rem; color: rgba(255,255,255,.65); max-width: 60%; text-align: right; }
.credit a { color: inherit; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -1.6rem; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.fact { display: flex; gap: .8rem; align-items: flex-start; padding: 1.05rem 1.2rem; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; }
.fact .i { width: 1.35rem; height: 1.35rem; color: var(--brand-2); margin-top: .15rem; }
.fact small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact b { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }

.subnav { position: sticky; top: var(--header-h); z-index: 800; margin-top: 1.4rem; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: .9rem .9rem; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.on { color: var(--ink); border-color: var(--accent); }

.spot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.2rem; align-items: start; padding: 2rem 0 4rem; }
.spot-main > section { margin-bottom: 2.6rem; scroll-margin-top: calc(var(--header-h) + 64px); }
.spot-main h2 { margin-bottom: .9rem; }
.aside { position: sticky; top: calc(var(--header-h) + 70px); display: grid; gap: 1rem; }

.panel { padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.panel h3 { display: flex; align-items: center; gap: .5rem; font-size: .98rem; }
.panel h3 .i { color: var(--brand-2); }
.panel > * + h3 { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.panel p { color: var(--ink-2); font-size: .95rem; }
.panel ul.plain { margin: 0 0 .7rem; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .94rem; color: var(--ink-2); }
.panel ul.plain li { position: relative; padding-left: 1rem; }
.panel ul.plain li::before { content: ""; position: absolute; left: 0; top: .62em; width: .38rem; height: .38rem; border-radius: 50%; background: var(--line-2); }
.mini-map { height: 200px; margin: -.2rem 0 1rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sky); }
.unverified { display: flex; gap: .5rem; align-items: flex-start; padding: .65rem .8rem; border-radius: var(--r-sm); background: var(--bg-2); color: var(--muted); font-size: .88rem; }
.unverified .i { margin-top: .15rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.alert { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: var(--r-lg); border: 1px solid; margin-bottom: 1.8rem; }
.alert .ic { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--surface); }
.alert .ic .i { width: 1.5rem; height: 1.5rem; }
.alert strong { display: block; font-size: 1.06rem; margin-bottom: .15rem; }
.alert p { margin: 0; color: var(--ink-2); }
.alert.danger { background: var(--danger-bg); border-color: var(--danger-line); } .alert.danger .ic, .alert.danger strong { color: var(--danger); }
.alert.amber { background: var(--amber-bg); border-color: var(--amber-line); } .alert.amber .ic, .alert.amber strong { color: var(--amber); }
.alert.ok { background: var(--ok-bg); border-color: var(--ok-line); } .alert.ok .ic, .alert.ok strong { color: var(--ok); }
.alert.grey { background: var(--grey-bg); border-color: var(--grey-line); } .alert.grey .ic, .alert.grey strong { color: var(--grey); }

.prose { font-size: 1.06rem; color: var(--ink-2); max-width: 68ch; }
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.species { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 550; font-size: .94rem; }
.species .ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--sky); color: var(--brand); flex: none; }
.species .ic .i { width: 1.15rem; height: 1.15rem; }
.best-time { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); }
.best-time .i { color: var(--accent-2); width: 1.4rem; height: 1.4rem; margin-top: .1rem; }
.best-time p { margin: 0; }

/* Leaderboard */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.pb { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pb.first { background: linear-gradient(160deg, #10474b, #0a2b2f); color: #fff; border-color: transparent; box-shadow: var(--shadow-2); }
.pb-media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.pb-media img { width: 100%; height: 100%; object-fit: cover; }
.pb.first .pb-media { background: rgba(255,255,255,.08); }
.pb-media.none { display: grid; place-items: center; color: var(--muted); }
.pb.first .pb-media.none { color: rgba(255,255,255,.55); }
.pb-body { padding: .9rem 1rem 1rem; }
.rank { position: absolute; left: .7rem; top: .7rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; font-weight: 800; font-size: .9rem; background: #fff; color: #0d2226; box-shadow: var(--shadow-1); }
.rank.r1 { background: linear-gradient(135deg, #ffd56b, #e8a317); }
.rank.r2 { background: linear-gradient(135deg, #f0f2f2, #b7c1c2); }
.rank.r3 { background: linear-gradient(135deg, #f1b98a, #c07a42); }
.pb .kg { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.pb.first .kg { color: #ffb48a; }
.pb .who { margin-top: .35rem; font-size: .9rem; color: var(--muted); }
.pb.first .who { color: rgba(255,255,255,.75); }
.pb .who b { color: var(--ink); font-weight: 600; }
.pb.first .who b { color: #fff; }
.pb .del-wrap { margin-top: .6rem; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
td.num { font-weight: 700; white-space: nowrap; color: var(--ink); }
td.thumb { width: 3.6rem; padding-right: 0; }
td.thumb img { width: 2.8rem; height: 2.8rem; object-fit: cover; border-radius: 10px; }
.note { font-size: .84rem; color: var(--muted); margin-top: .8rem; }

/* Forum ---------------------------------------------------------------------- */

.page-head { padding: clamp(2rem, 5vw, 3.4rem) 0 1.6rem; }
.page-head .lede { margin: 0; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.threads { display: grid; gap: .8rem; }
.thread { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.thread:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.thread h3 { margin: 0 0 .25rem; font-size: 1.08rem; }
.thread h3 a { color: inherit; text-decoration: none; }
.thread h3 a::after { content: ""; position: absolute; inset: 0; }
.thread .excerpt { margin: 0 0 .5rem; color: var(--ink-2); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .7rem; color: var(--muted); font-size: .84rem; }
.meta .sep { opacity: .5; }
.meta a { position: relative; z-index: 1; }
.tag { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; background: var(--sky); color: var(--brand); font-weight: 600; font-size: .78rem; }
.thread-side { display: flex; align-items: center; gap: .8rem; }
.thread-thumb { width: 4.6rem; height: 4.6rem; border-radius: 14px; object-fit: cover; }
.replies-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 600; font-size: .84rem; }
.avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; font-weight: 700; font-size: .92rem; color: #fff; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 3.2rem; height: 3.2rem; font-size: 1.05rem; }
.av0 { background: #1d6f73; } .av1 { background: #c9521a; } .av2 { background: #4f7a3a; } .av3 { background: #6b4fa0; }
.av4 { background: #b5466b; } .av5 { background: #2f6aa3; } .av6 { background: #8a6a1c; } .av7 { background: #3c4f57; }

.post { padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.post-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.post-head b { display: block; }
.post h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.body { white-space: pre-line; overflow-wrap: anywhere; font-size: 1.04rem; color: var(--ink-2); }
.photo-link { display: block; margin-top: 1rem; border-radius: var(--r); overflow: hidden; }
.photo-link img { max-height: 560px; width: auto; max-width: 100%; border-radius: var(--r); }
.conversation { position: relative; display: grid; gap: 1rem; margin: 1.6rem 0 0 1.3rem; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.reply { position: relative; padding: 1rem 1.15rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.reply .avatar { position: absolute; left: calc(-1.6rem - 1.3rem - 1px); top: .9rem; width: 2.6rem; height: 2.6rem; border: 3px solid var(--bg); }
.reply .body { font-size: .98rem; }
.composer { display: grid; gap: 1rem; margin-top: 1.6rem; padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; padding: 1.6rem 0 4rem; }
.back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.2rem; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.back:hover { color: var(--ink); }

.narrow { max-width: 820px; margin: 0 auto; padding-bottom: 4rem; }
.form-card { padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }

/* Dialog ---------------------------------------------------------------------- */

dialog.sheet { width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); overflow: auto; }
dialog.sheet::backdrop { background: rgba(4,20,22,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: rise .3s var(--ease); }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.35rem; }
.sheet-body { padding: 1.4rem; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Toasts ---------------------------------------------------------------------- */

.toasts { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 4000; display: grid; gap: .5rem; transform: translateX(-50%); pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem; border-radius: 999px; background: #0d2226; color: #fff; font-weight: 550; font-size: .92rem; box-shadow: var(--shadow-3); animation: toast-in .3s var(--ease); }
.toast .i { color: #7fe0a6; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* About ---------------------------------------------------------------------- */

.about-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.about-hero h1 { max-width: 16ch; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; padding-bottom: 4rem; }
.legend-list { display: grid; gap: .7rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.legend-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }

/* Footer and tab bar ----------------------------------------------------------- */

.foot { margin-top: auto; background: #071a1d; color: rgba(255,255,255,.7); font-size: .92rem; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 3rem var(--gutter) 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot .brand { color: #fff; margin-bottom: .8rem; }
.foot-brand p { max-width: 22rem; }
.foot-col { display: grid; align-content: start; gap: .5rem; }
.foot-col h2 { margin: 0 0 .3rem; font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-note { max-width: var(--max); margin: 0 auto; padding: 1.3rem var(--gutter) 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,255,255,.5); }
.tabbar { display: none; }

/* Leaflet touches: soften the standard map, and invert it for dark mode */
.leaflet-container { font: inherit; }
.leaflet-tile-pane { filter: saturate(.7) contrast(.96) brightness(1.02); }
@media (prefers-color-scheme: dark) { .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.9) contrast(.9); } }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-3); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.pop img { width: 100%; height: 120px; object-fit: cover; }
.pop div { padding: .7rem .85rem .8rem; }
.pop a { display: block; font-family: var(--display); font-size: 1.08rem; font-weight: 600; color: #0d2226; text-decoration: none; }
.pop span { display: block; margin-top: .2rem; font-size: .8rem; color: #5f7175; }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .2s; }
.pin.hl { transform: scale(1.5); }
.pin.danger { background: #c0392b; } .pin.amber { background: #e0a100; } .pin.ok { background: #1f8a50; } .pin.grey { background: #869497; }

/* Weather ------------------------------------------------------------------- */

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card-wx { position: absolute; right: .7rem; bottom: .7rem; z-index: 2; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem .22rem .45rem; border-radius: 999px; background: rgba(4,24,27,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: .82rem; line-height: 1.3; }
.card-wx[hidden] { display: none; }
.card-wx .i { width: 1.15rem; height: 1.15rem; }
.card-wx b { font-weight: 700; }
.card-wx small { font-size: .74rem; font-weight: 500; opacity: .85; }
.pop .pop-wx { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; color: #2f454a; font-weight: 600; }
.pop-wx .i { width: 1rem; height: 1rem; }

.wx-updated { color: var(--muted); font-size: .86rem; }
/* Always deep teal, in light and dark mode, so white text keeps its contrast. */
.wx-now { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 1.2rem 2rem; align-items: center; padding: 1.4rem 1.5rem; border-radius: var(--r-lg); background: linear-gradient(135deg, #0b3236, #14696c); color: #fff; box-shadow: var(--shadow-2); }
.wx-now.sk-wx { display: block; min-height: 9rem; background: var(--surface-2); box-shadow: none; border: 1px solid var(--line); }
.wx-main { display: flex; align-items: center; gap: 1rem; }
.wx-big { width: 4rem; height: 4rem; stroke-width: 1.3; flex: none; }
.wx-temp { font-family: var(--display); font-size: 3.2rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.wx-temp span { font-size: 1.3rem; font-weight: 500; opacity: .8; margin-left: .1rem; vertical-align: super; }
.wx-sum { margin-top: .35rem; font-weight: 600; }
.wx-range { margin-top: .15rem; font-size: .88rem; opacity: .8; }
.wx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.wx-stat { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .75rem; border-radius: var(--r); background: rgba(255,255,255,.09); min-width: 0; }
.wx-stat > .i { width: 1.25rem; height: 1.25rem; margin-top: .1rem; opacity: .85; }
.wx-stat small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.wx-stat b { display: flex; align-items: center; gap: .25rem; font-weight: 650; white-space: nowrap; }
.wx-stat span { display: block; font-size: .8rem; opacity: .8; }
.wx-dir { width: 1rem; height: 1rem; stroke-width: 2.4; }
.wx-h { margin: 1.5rem 0 .7rem; font-size: 1rem; font-family: var(--font); font-weight: 700; }

.wx-hours { display: flex; gap: .45rem; margin: 0; padding: 0 0 .4rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.wx-hour { flex: none; display: grid; justify-items: center; gap: .2rem; width: 4.3rem; padding: .7rem .3rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; font-size: .82rem; }
.wx-hour:first-child { border-color: var(--brand-2); }
.wx-hour .t { color: var(--muted); font-weight: 600; }
.wx-hour .i { width: 1.6rem; height: 1.6rem; color: var(--brand-2); }
.wx-hour b { font-size: 1rem; }
.wx-hour .rain { min-height: 1.1em; color: var(--muted); font-size: .76rem; }
.wx-hour .rain.on { color: var(--brand-2); font-weight: 700; }
.wx-hour .wind { color: var(--muted); font-size: .76rem; }

.wx-days { margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.wx-day { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 4rem minmax(9rem, 1.2fr) 6.5rem; gap: .8rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.wx-day:first-child { border-top: 0; }
.wx-day .d { font-weight: 650; }
.wx-day .s { display: flex; align-items: center; gap: .5rem; min-width: 0; color: var(--ink-2); }
.wx-day .s span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-day .s .i { width: 1.5rem; height: 1.5rem; color: var(--brand-2); }
.wx-day .rain, .wx-day .w { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-size: .84rem; white-space: nowrap; }
.wx-day .rain.on { color: var(--brand-2); font-weight: 700; }
.wx-day .rain .i, .wx-day .w .i { width: .95rem; height: .95rem; }
.wx-day .range { display: flex; align-items: center; gap: .5rem; font-variant-numeric: tabular-nums; }
.wx-day .lo { color: var(--muted); width: 2.2em; text-align: right; }
.wx-day .hi { font-weight: 650; width: 2.2em; }
.wx-day .bar { position: relative; flex: 1; height: 6px; border-radius: 999px; background: var(--bg-2); }
.wx-day .bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #5fb8c9, var(--accent)); }
.more-row { display: flex; justify-content: center; margin-top: 1.2rem; }
.more-row [hidden], .more-row[hidden] { display: none; }

/* Reports, corrections and the admin review queue -------------------------- */

.linkish.report { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-size: .8rem; font-weight: 500; text-decoration: none; }
.linkish.report:hover { color: var(--danger); text-decoration: underline; }
.linkish.report .i { width: .95rem; height: .95rem; }
.post-head .linkish.report { margin-right: .6rem; }
.reply .meta .linkish.report { margin-left: auto; }
.del-wrap { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
td .linkish.report + .btn { margin-left: .5rem; }
.unverified .linkish { margin-left: .25rem; font-size: inherit; }
.choices { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: .4rem; font-weight: 600; }
.choice { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand-2); background: var(--sky); }
.choice input { accent-color: var(--brand-2); }

.queue { display: grid; gap: .9rem; }
.queue-item { display: grid; gap: .5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.queue-item h3 { margin: 0; font-size: 1.05rem; }
.queue-item p { margin: 0; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.q-kind { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.q-kind.report { background: var(--danger-bg); color: var(--danger); }
.q-kind.suggest { background: var(--sky); color: var(--brand); }
.q-kind .i { width: .95rem; height: .95rem; }
.q-photo { width: 160px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.q-text { white-space: pre-line; color: var(--ink-2); }
.q-notes { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .9rem; }
.q-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.q-compare > div { padding: .6rem .75rem; border-radius: var(--r-sm); background: var(--bg-2); }
.q-compare small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.q-compare p { white-space: pre-line; }
.audit { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9rem; }
.audit time { display: inline-block; min-width: 10.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .q-compare { grid-template-columns: 1fr; } .audit time { display: block; } }

/* Page entrance */
@media (prefers-reduced-motion: no-preference) {
  .enter > * { animation: fade-up .5s var(--ease) both; }
  .enter > *:nth-child(2) { animation-delay: .05s; }
  .enter > *:nth-child(3) { animation-delay: .1s; }
  .enter > *:nth-child(4) { animation-delay: .15s; }
  @keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .explore.split { grid-template-columns: 1fr; }
  .explore.split .map-pane { display: none; }
  .spot-layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .nav a { padding: .5rem .65rem; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav, .top-cta { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: .1rem; padding: .35rem 0; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
  .tabbar a .i { width: 1.4rem; height: 1.4rem; }
  .tabbar a.on { color: var(--ink); }
  .tabbar .tab-post { justify-self: center; width: 3.2rem; height: 3.2rem; margin-top: -1.4rem; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(232,102,42,.7); }
  .tabbar .tab-post .i { width: 1.6rem; height: 1.6rem; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .thread { grid-template-columns: auto minmax(0, 1fr); }
  .thread-side { grid-column: 2; }
}
@media (max-width: 560px) {
  .hero { min-height: 92vh; }
  /* Photo credits join the flow on phones so they never cover the content. */
  .hero, .spot-hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-credit, .credit { position: static; max-width: none; margin: 0; padding: 0 var(--gutter) .6rem; text-align: right; font-size: .66rem; }
  .hero-credit { padding-bottom: 3rem; }
  .credit { padding-bottom: 2.2rem; }
  .hero-in { padding-bottom: 1rem; }
  .spot-hero-in { padding-bottom: 1rem; }
  .hero-search { padding-left: .9rem; }
  .hero-search .btn span { display: none; }
  .hero-search .btn { padding: .85rem; }
  .tb-row select.input { flex: 1 1 calc(50% - .3rem); }
  .tb-row2 .seg { width: 100%; }
  .tb-row2 .seg button { flex: 1; padding: .45rem .5rem; }
  .grid { grid-template-columns: 1fr; }
  .conversation { margin-left: .8rem; padding-left: 1.2rem; }
  .reply .avatar { display: none; }
  .spot-actions .btn, .spot-actions .save { flex: 1 1 auto; }
  .wx-now { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; }
  .wx-day { grid-template-columns: 5.2rem auto 3.2rem minmax(0, 1fr); gap: .55rem; padding: .65rem .8rem; }
  .wx-day .s span, .wx-day .w { display: none; }
}
@media (max-width: 380px) {
  .wx-stats { grid-template-columns: minmax(0, 1fr); }
}
