:root {
  --bg: #fdfcf9; --fg: #1c2430; --dim: #5b6573; --line: #e4e1d8; --accent: #0e7490; --sand: #f4ecd8;
  --yes: #15803d; --no: #9ca3af;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11161d; --fg: #e6e9ee; --dim: #9aa4b2; --line: #2a323d; --accent: #38bdf8; --sand: #1d2530; --yes: #4ade80; --no: #6b7280; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid var(--line); padding: 12px 16px; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.crumbs { font-size: 14px; color: var(--dim); margin: 16px 0 8px; }
.crumbs a { color: var(--dim); }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 1.35rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.lead { font-size: 1.1rem; color: var(--fg); }
.note { color: var(--dim); font-size: 14px; }
.stats { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats li { background: var(--sand); border-radius: 10px; padding: 10px 12px; }
.stats b { display: block; font-size: 1.5rem; line-height: 1.2; }
.stats span, .stats a { font-size: 14px; color: var(--dim); }
.stats a { color: var(--accent); }
.map { background: var(--sand); border-radius: 10px; margin: 16px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
/* Home page: the map runs edge to edge and takes most of the first screen. */
.map-hero { height: clamp(320px, 62vh, 620px); border-radius: 0; margin: 16px calc(50% - 50vw) 20px; }
.map-load { border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.badges, .chips { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: var(--sand); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.chips li { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.chips small, h3 small, .beaches small { color: var(--dim); font-weight: 400; }
.spots { border-collapse: collapse; width: 100%; font-size: 15px; }
.spots th, .spots td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.spots thead th { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); }
.spots tbody th { font-weight: 600; }
.facts { border-collapse: collapse; width: 100%; max-width: 520px; }
.facts th, .facts td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-weight: 400; }
.facts td.y { color: var(--yes); font-weight: 600; }
.facts td.n { color: var(--no); }
.beaches { columns: 2 260px; padding-left: 18px; }
.beaches li { break-inside: avoid; margin-bottom: 2px; }
.near { padding-left: 18px; }
.aff { background: var(--sand); padding: 10px 14px; border-radius: 8px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 16px; color: var(--dim); font-size: 14px; }
/* Centred brand with the mark, search under it: the site is a search-and-map site, so both sit in the middle. */
.site-header { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; letter-spacing: -0.2px; }
.brand .logo { display: block; border-radius: 7px; }
.search { position: relative; width: 100%; max-width: 520px; }
.search input { width: 100%; padding: 11px 14px; border: 2px solid var(--accent); border-radius: 999px; background: var(--sand); color: var(--fg); font: inherit; }
.search input::placeholder { color: var(--dim); }
.search input:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.search-results { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: 6px 12px; text-decoration: none; color: var(--fg); }
.search-results a small { display: block; color: var(--dim); }
.search-results li.on a, .search-results a:hover { background: var(--sand); }
.search-results .empty { padding: 6px 12px; color: var(--dim); }
