/* Layout: one column of big photo cards, a sticky filter bar on top. Phone first, parents read this on a phone. */
:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --ink: #14202b;
  --muted: #5b6875;
  --line: #dde3e9;
  --fjord: #14324a;
  --fjord-soft: #e3ecf4;
  --heart: #d6334a;
  --warn-bg: #fff3df;
  --warn-ink: #8a4b00;
  --good: #1d7a4f;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151b;
    --card: #17202a;
    --ink: #e8eef4;
    --muted: #9aa8b5;
    --line: #2a3643;
    --fjord: #9cc3e6;
    --fjord-soft: #1d2d3c;
    --heart: #ff5c73;
    --warn-bg: #3a2a12;
    --warn-ink: #ffc876;
    --good: #5fd39b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
button, select, summary, a, label.check, input[type=checkbox] { cursor: pointer; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); text-wrap: balance; margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--fjord); outline-offset: 2px; }
[hidden] { display: none !important; }

/* gates */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left)) 24px max(16px, env(safe-area-inset-right)); }
.gate-box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 14px; }
.gate-box h1 { font-size: 30px; }
.gate-box p { margin: 0; color: var(--muted); }
.gate-box label { font-weight: 600; font-size: 15px; }
.gate-box input { font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.gate-box button[type=submit] { background: var(--fjord); color: var(--card); border: 0; border-radius: 10px; padding: 13px; font-weight: 700; font-size: 17px; }
.err { color: var(--heart) !important; font-weight: 600; }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.who-list button { padding: 16px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 18px; font-weight: 600; }
.who-list button:hover { border-color: var(--fjord); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--fjord); color: #fff; padding-top: env(safe-area-inset-top, 0px); }
@media (prefers-color-scheme: dark) { .top { background: #10283b; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--fjord); }
.top-in, .bar-in { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px 8px; }
.brand h1 { font-size: 22px; }
.sub { margin: 0; font-size: 14px; opacity: .85; }
.me { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chip-btn { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; }
.link-btn { background: none; border: 0; color: #fff; opacity: .8; font-size: 14px; text-decoration: underline; padding: 4px; }
.bar-in { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding-block: 4px 12px; }
.seg { display: flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: #fff; padding: 6px 13px; border-radius: 999px; font-size: 15px; font-weight: 600; opacity: .85; }
.seg button.on { background: #fff; color: #14324a; opacity: 1; }
.tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; }
.sel { display: flex; gap: 6px; align-items: center; }
.sel span { opacity: .8; }
.sel select { font: inherit; font-size: 15px; border-radius: 8px; border: 0; padding: 5px 8px; background: #fff; color: #14324a; }
.check { display: flex; gap: 6px; align-items: center; }
.check input { width: 18px; height: 18px; accent-color: #fff; }

/* list */
.wrap { max-width: 760px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 16px; }
.intro p { margin: 0; color: var(--muted); font-size: 15px; max-width: 65ch; }
.intro strong { color: var(--ink); }
.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 12px 14px; border-radius: 10px; margin: 0; font-weight: 600; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }
#map { height: 380px; border-radius: 14px; border: 1px solid var(--line); z-index: 1; }
.list { display: grid; gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card.flash { box-shadow: 0 0 0 3px var(--fjord); }
.gallery { position: relative; aspect-ratio: 16 / 10; background: var(--fjord-soft); max-width: 100%; }
.track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.track .nophoto { flex: 0 0 100%; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.count, .rank { position: absolute; background: rgba(10,20,30,.7); color: #fff; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.count { right: 10px; bottom: 10px; }
.rank { left: 10px; top: 10px; }
.rank.top { background: #fff; color: #14324a; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #14202b; font-size: 26px; line-height: 1; display: grid; place-items: center; }
.prev { left: 10px; } .next { right: 10px; }
@media (hover: none) { .nav { display: none; } }

.body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rent { font-family: var(--display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); font-size: 15px; margin-left: 6px; }
.heart { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex-shrink: 0; }
.heart svg { width: 28px; height: 28px; fill: none; stroke: var(--heart); stroke-width: 1.8; }
.heart[aria-pressed=true] { background: var(--heart); border-color: var(--heart); }
.heart[aria-pressed=true] svg { fill: #fff; stroke: #fff; }
.addr { font-size: 20px; line-height: 1.25; }
.facts { margin: 0; color: var(--muted); font-size: 15px; }
.why { margin: 0; font-size: 16px; }
.why:empty { display: none; }
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flags:empty { display: none; }
.flags li { background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.travel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.travel div { background: var(--fjord-soft); border-radius: 10px; padding: 8px 8px 7px; min-width: 0; }
.travel dt { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.travel dd { margin: 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.travel dd small { font-weight: 500; font-size: 13px; color: var(--muted); }
@media (max-width: 420px) { .travel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.likes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; color: var(--muted); }
.likes:empty { display: none; }
.who-chip { background: var(--heart); color: #fff; font-weight: 700; font-size: 14px; border-radius: 999px; padding: 3px 10px; }
.notes { display: grid; gap: 6px; }
.notes:empty { display: none; }
.notes p { margin: 0; background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.notes b { margin-right: 6px; }
.note-l { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.note { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; resize: vertical; }
.more summary { font-size: 15px; color: var(--fjord); font-weight: 600; }
.desc { white-space: pre-line; font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.finn { justify-self: start; background: var(--fjord); color: var(--card); text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 10px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .finn { color: #0f151b; } }
@media (prefers-reduced-motion: reduce) { .track { scroll-behavior: auto; } }
