/* Places to Find: public site. Mobile-first, light/dark, no web fonts (fast). Optional looks in themes/*.css build on these variables. */
:root {
  --bg: #fbfaf7; --surface: #ffffff; --ink: #15191e; --muted: #5d6672; --line: #e7e4dd; --accent: #0f766e; --accent-2: #115e59; --on-accent: #fff;
  --shadow: 0 1px 2px rgba(20,25,30,.06), 0 6px 20px rgba(20,25,30,.06); --radius: 14px; --head: 56px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1114; --surface: #161a1f; --ink: #eceff2; --muted: #9ca6b2; --line: #272d35; --accent: #2dd4bf; --accent-2: #5eead4; --on-accent: #052e2a;
    --shadow: 0 1px 2px rgba(0,0,0,.4); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
/* A page scrollbar that is always there on computers with a mouse (Macs otherwise hide it until you scroll), so long pages such
   as an area's list of places can be dragged. Chrome, Edge and Safari use the ::-webkit-scrollbar rules (they'd ignore them if
   scrollbar-color were also set, so that's only for Firefox, which keeps the system's own show/hide behaviour). Phones unchanged. */
@media (hover: hover) and (pointer: fine) {
  html::-webkit-scrollbar { width: 14px; }
  html::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--line); }
  html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 8px; border: 3px solid var(--bg); min-height: 48px; }
  html::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--muted) 80%, transparent); }
  @supports (-moz-appearance: none) { html { scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) var(--bg); } }
}
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2 { line-height: 1.15; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 9999; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
a.btn { text-decoration: none; }

.site-head { position: sticky; top: 0; z-index: 1100; height: var(--head); display: flex; align-items: center; gap: 14px; padding: 0 16px;
  padding-left: max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo-tag { font: 500 .68rem/1.2 var(--sans, system-ui, -apple-system, "Segoe UI", sans-serif); text-transform: none; letter-spacing: .01em; opacity: .8; margin-top: 2px; }
.logo img { border-radius: 22%; } /* the square app icon (assets/icons), rounded like on a phone */
.crumb { display: flex; gap: 6px; min-width: 0; font-size: .92rem; }
.crumb a { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb a::before { content: "›"; margin-right: 6px; }
@media (max-width: 340px) { .logo span { display: none; } }

.home-hero .tagline { margin: -4px 0 10px; font-size: 1.15rem; font-weight: 600; color: var(--muted); }

.site-foot { margin-top: 48px; padding: 28px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.site-foot a { color: inherit; }
/* the © is a quiet link to /all-places/: looks like the plain text round it */
.site-foot a.foot-c, .site-foot a.foot-c:hover { color: inherit; text-decoration: none; cursor: pointer; }
/* /all-places/: every place on one map, filling the screen below its heading */
.all-map-head { padding-top: 16px; padding-bottom: 8px; }
.all-map-head h1 { margin: 0 0 4px; font-size: 1.4rem; }
.all-map-head p { margin: 0; color: var(--muted); }
.all-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.all-tools input[type=search] { grid-column: 1 / -1; width: 100%; min-height: 44px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.all-tools input[type=search]:focus, .all-tools select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.all-tools select { min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.all-tools .all-count { grid-column: 1 / -1; }
.all-tools .clear-filters { justify-self: start; }
@media (min-width: 760px) {
  .all-tools { grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; }
  .all-tools input[type=search] { grid-column: auto; min-height: 40px; padding: 7px 16px; }
  .all-tools select { min-height: 40px; }
  .all-tools .all-count { grid-column: 1 / 4; }
}
.mk.sm { width: 24px; height: 24px; font-size: 11px; border-width: 1.5px; }
.all-map .map { height: calc(100dvh - var(--head, 60px) - 170px); min-height: 360px; }

/* ---------- home ---------- */
.home-hero { max-width: 760px; margin: 0 auto; padding: 40px 16px 16px; text-align: center; }
.home-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 .3em; }
.lead { font-size: 1.12rem; color: var(--muted); }
.lead p { margin: 0 0 .6em; }
.empty { text-align: center; color: var(--muted); }
.area-cards { list-style: none; margin: 16px auto; padding: 0 16px; max-width: 1180px; display: grid; gap: 18px; grid-template-columns: 1fr; }
.area-group-head { max-width: 1180px; margin: 36px auto 2px; padding: 0 16px; } /* "Collections" on the home page */
.area-group-sub { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
/* Home page jump bar: Areas / Collections and an A–Z of the letters that have areas; sticks under the site header. */
.home-jump { position: sticky; top: var(--head); z-index: 600; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 8px; }
.home-jump-in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.jump-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.jump-tabs a { padding: 6px 14px; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; }
.jump-tabs a + a { border-left: 1px solid var(--line); }
.jump-tabs a.on { background: var(--accent); color: #fff; }
.jump-az { display: flex; flex-wrap: wrap; gap: 2px; }
.jump-az a { min-width: 1.9em; padding: 4px 2px; text-align: center; border-radius: 6px; font-weight: 600; font-size: .9rem; color: var(--accent); text-decoration: none; }
.jump-az a:hover, .jump-az a:focus-visible { background: var(--surface); box-shadow: var(--shadow); }
.jump-az[hidden] { display: none; }
#areas, #collections, .area-cards li[id^="az-"] { scroll-margin-top: calc(var(--head) + var(--jump-h, 52px) + 12px); }
/* home page cards: 2 across on tablets, 3 on small laptops, 4 on laptops and wider (smaller text to suit) */
@media (min-width: 560px) { .area-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 800px) { .area-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; } .area-cards li strong, .area-cards .aname { font-size: 1.1rem; } }
@media (min-width: 1000px) { .area-cards { grid-template-columns: repeat(4, 1fr); } .area-cards li strong, .area-cards .aname { font-size: 1.02rem; }
  .area-cards li { --cp: 14px; } .area-cards li .txt { padding: 12px var(--cp) 14px; } .area-cards li .txt > span:not(.area-hit) { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
.area-cards a { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); transition: transform .15s ease; }
.area-cards a:hover { transform: translateY(-2px); }
.area-cards li { --cp: 16px; } /* the card's side margin: name, photo and text all start at the same left edge */
.area-cards .aname { display: block; padding: 12px var(--cp) 9px; font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.area-cards .img { display: block; margin: 0 var(--cp); border-radius: calc(var(--radius) * .6); aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent), #155e75); }
.area-cards img { width: 100%; height: 100%; object-fit: cover; display: block; }
.area-cards .txt { display: flex; flex-direction: column; gap: 4px; padding: 14px var(--cp) 18px; }
.area-cards strong { font-size: 1.25rem; line-height: 1.25; }
.area-cards .txt span { color: var(--muted); font-size: .95rem; }

/* ---------- area page ---------- */
.hero { position: relative; height: clamp(240px, 46vh, 520px); background: linear-gradient(135deg, var(--accent), #155e75); overflow: hidden; }
.hero.no-img { height: auto; min-height: 160px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-txt { position: absolute; inset: auto 0 0 0; padding: 60px 16px 22px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.hero.no-img .hero-txt { position: static; background: none; padding-top: 40px; }
.hero h1 { color: #fff; margin: 0 auto; max-width: 1180px; font-size: clamp(1.7rem, 5.5vw, 3rem); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.intro { padding-top: 20px; padding-bottom: 8px; }
.intro .prose { max-width: none; } /* full content width, same margins both sides as the hero title and list */
.prose { max-width: 70ch; font-size: 1.05rem; }
.prose p { margin: 0 0 .9em; }
.prose h2 { font-size: 1.35rem; margin: 1.2em 0 .4em; } .prose h3 { font-size: 1.12rem; margin: 1.1em 0 .3em; }
.prose img { height: auto; border-radius: 10px; }
[data-clamp].clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more { margin: 4px 0 0; }

.explorer { position: relative; }
.list-pane { padding: 0 16px 90px; }
/* filter bar: sticky under the header; its height (--tools-h, set by site.js) keeps list jumps clear of it */
.tools { position: sticky; top: var(--head); z-index: 500; background: var(--bg); padding: 10px 16px 8px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 10px; border-bottom: 1px solid var(--line); }
.tools input[type=search], .tools .count-row, .ftags { grid-column: 1 / -1; }
.places > li, .places { scroll-margin-top: calc(var(--tools-h, 0px) + 6px); scroll-margin-bottom: 12px; }
.tools input[type=search] { width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.tools input[type=search]:focus { outline: 2px solid var(--accent); border-color: transparent; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 36px; }
.chip[aria-pressed=true] { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, var(--surface)); font-weight: 600; }
/* second click: hide these */
.chip[aria-pressed=mixed] { border-style: dashed; border-color: var(--muted); background: var(--surface); color: var(--muted); text-decoration: line-through; }
.chip[aria-pressed=mixed]::before { content: "✕"; margin-right: 2px; text-decoration: none; display: inline-block; font-weight: 700; color: var(--ink); }
.chip.static { cursor: default; border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.count { margin: 0; color: var(--muted); font-size: .88rem; }

.places { list-style: none; margin: 0; padding: 0; }
.places li { position: relative; border-bottom: 1px solid var(--line); scroll-margin-top: 220px; }
.places li.hl { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.places li[hidden] { display: none; }
.pl { display: grid; grid-template-columns: 34px 96px 1fr; gap: 12px; align-items: start; padding: 14px 44px 14px 0; color: var(--ink); text-decoration: none; }
.pl:hover strong { color: var(--accent); }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; background: var(--c); color: #fff; font-weight: 700; font-size: .82rem; margin-top: 2px; }
.th { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--line); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tx strong { font-size: 1.04rem; line-height: 1.3; }
.tys { font-size: .82rem; color: var(--muted); }
.sm { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dist { font-size: .85rem; font-weight: 600; color: var(--accent); }
.onmap { position: absolute; right: 0; top: 12px; width: 38px; height: 38px; display: grid; place-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; font-size: 1rem; padding: 0; cursor: pointer; }
.group-h { list-style: none; padding: 18px 0 6px; font-weight: 700; font-size: 1.05rem; border-bottom: 2px solid var(--c, var(--accent)); }
.none { padding: 24px 0; color: var(--muted); text-align: center; }
@media (max-width: 480px) { .pl { grid-template-columns: 30px 72px 1fr; gap: 10px; } .th { width: 72px; height: 56px; } }

.map-pane { display: none; }
.map { width: 100%; height: 100%; background: var(--line); }
.view-toggle { position: fixed; z-index: 1050; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 999px;
  padding: 12px 22px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,.25); cursor: pointer; }
.view-toggle [data-when=map] { display: none; }
.explorer.show-map .view-toggle [data-when=map] { display: inline; } .explorer.show-map .view-toggle [data-when=list] { display: none; }
.explorer.show-map .map-pane { display: block; position: fixed; z-index: 1000; inset: var(--head) 0 0 0; }
@media (min-width: 1000px) {
  .explorer { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; border-top: 1px solid var(--line); }
  .list-pane { padding: 0 20px 40px; border-right: 1px solid var(--line); }
  /* filter bar across the whole page: search, Filters, sort and count on one line; ticked filters as tags under it */
  .tools { grid-column: 1 / -1; grid-template-columns: minmax(200px, 320px) auto auto 1fr; gap: 8px 12px; padding: 10px 20px; }
  .tools input[type=search] { grid-column: auto; min-height: 40px; padding: 7px 16px; }
  .tools .seg button { min-height: 32px; padding: 4px 12px; font-size: .88rem; }
  .tools .count-row { grid-column: auto; justify-content: flex-end; }
  .chips { margin: 0; padding: 0 0 2px; flex-wrap: wrap; overflow: visible; }
  .map-pane { display: block; position: sticky; top: calc(var(--head) + var(--tools-h, 0px)); height: calc(100vh - var(--head) - var(--tools-h, 0px)); }
  /* The list scrolls in its own pane beside the map, with a scrollbar you can see and drag (always shown, also on Macs) */
  .list-pane { position: sticky; top: calc(var(--head) + var(--tools-h, 0px)); height: calc(100vh - var(--head) - var(--tools-h, 0px));
    overflow-y: auto; padding-bottom: 24px; }
  .list-pane::-webkit-scrollbar { width: 14px; }
  .list-pane::-webkit-scrollbar-track { background: transparent; }
  .list-pane::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 50%, transparent); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; min-height: 48px; }
  .list-pane::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--muted) 80%, transparent); }
  @supports (-moz-appearance: none) { .list-pane { scrollbar-color: color-mix(in srgb, var(--muted) 50%, transparent) transparent; } }
  .view-toggle { display: none; }
  .explorer.show-map .map-pane { position: sticky; inset: auto; }
}

/* Filters: button, ticked-filter tags, and the panel (a sheet from the bottom on phones; a dropdown on wide screens, above) */
.fbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.fbtn[aria-expanded=true] { border-color: var(--accent); }
.fbadge { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .76rem; line-height: 18px; text-align: center; }
.fbadge[hidden], .ftags[hidden], .fpanel[hidden], .fback[hidden] { display: none; }
.ftags { display: flex; flex-wrap: wrap; gap: 6px; }
.ftag { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 10px; border: 1px solid var(--c, var(--accent)); border-radius: 999px;
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)); color: var(--ink); font: inherit; font-size: .84rem; cursor: pointer; }
.ftag span { font-size: .75rem; opacity: .7; }
.fback { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.45); }
.fpanel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-height: 85vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 12px 40px rgba(0,0,0,.28); padding-bottom: env(safe-area-inset-bottom); }
.fp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.fp-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.fp-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 20px; }
.fgroup { display: contents; }
.fgh { grid-column: 1 / -1; padding: 14px 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fopt { display: grid; grid-template-columns: 18px 22px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border-radius: 8px; cursor: pointer; }
.fopt:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--c, var(--accent)); }
.fopt.on .fl { font-weight: 600; }
.fl { min-width: 0; }
.fn { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
@media (max-width: 999px) {
  .tools .seg button { white-space: nowrap; padding: 6px 9px; font-size: .86rem; }
  /* phones: options are pills that size to their text and wrap, so long names never break across lines */
  .fp-body { display: block; padding: 0 16px 16px; }
  .fgroup { display: flex; flex-wrap: wrap; gap: 8px; }
  .fgh { flex-basis: 100%; }
  .fopt { position: relative; display: inline-flex; gap: 6px; min-height: 42px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--bg); white-space: nowrap; max-width: 100%; }
  .fopt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .fopt.on { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 20%, var(--surface)); }
  .fopt.on::before { content: "✓"; font-weight: 700; }
  .fopt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
  .fl { overflow: hidden; text-overflow: ellipsis; }
}
.explorer.filters-open .view-toggle { display: none; }
html.sheet-open { overflow: hidden; }
@media (min-width: 1000px) {
  .fbtn { min-height: 40px; }
  /* the Filters panel drops down under the bar */
  .fpanel { position: absolute; top: calc(100% + 6px); left: 20px; right: auto; bottom: auto; width: min(780px, calc(100% - 40px));
    max-height: calc(100vh - var(--head) - var(--tools-h, 0px) - 24px); border-radius: var(--radius); padding-bottom: 0; }
  .fp-body { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .fopt { min-height: 34px; }
  .fback { background: none; }
}

/* map markers + popups */
.mk { width: 30px; height: 30px; border-radius: 50%; background: var(--c, #0f766e); color: #fff; border: 2px solid #fff; display: grid; place-content: center;
  font: 700 12px/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mk.on { transform: scale(1.25); z-index: 1000 !important; outline: 3px solid color-mix(in srgb, var(--c) 40%, transparent); }
.mk.me { background: #2563eb; width: 18px; height: 18px; border-width: 3px; }
.leaflet-popup-content { margin: 10px 12px; font: 14px/1.4 system-ui, sans-serif; }
/* Card popup: photo banner across the top with the pin's number, then title, type / open today / distance, summary (2 lines max) and a button. */
.card-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 4px 10px rgb(0 0 0 / .12), 0 14px 36px rgb(0 0 0 / .2); }
.card-popup .leaflet-popup-tip { background: var(--surface); }
.card-popup .leaflet-popup-content { margin: 0; }
.leaflet-container .card-popup a.leaflet-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-content: center; border-radius: 50%;
  background: rgb(0 0 0 / .45); color: #fff; font: 20px/1 system-ui, sans-serif; z-index: 2; }
.leaflet-container .card-popup a.leaflet-popup-close-button:hover { background: rgb(0 0 0 / .65); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .card-popup { animation: pop-in .22s cubic-bezier(.2, .9, .3, 1.2); }
  @keyframes pop-in { from { opacity: 0; translate: 0 8px; } }
}
.pop-img { position: relative; display: block; height: 96px; background: var(--line); }
.pop-img > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pop-img > .ph { height: 100%; }
.pb-info.pop-info { top: 8px; left: 8px; right: auto; z-index: 2; } /* top left: the close button has top right */
.pop-n { position: absolute; left: 10px; bottom: -13px; width: 28px; height: 28px; display: grid; place-content: center; border-radius: 50%;
  background: var(--c, var(--accent)); color: #fff; border: 2px solid var(--surface); font: 700 12px/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.pop-body { padding: 16px 12px 8px; }
.card-popup h3.pop-t { margin: 0; font-size: .98rem; line-height: 1.25; color: var(--ink); }
.pop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.pop-meta .oh { margin: 0; }
.pop-type { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.5;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.pop-dist { font-size: .8rem; font-weight: 600; color: var(--accent); }
.pop-note { font-size: .8rem; font-weight: 600; }
/* Facilities (public car parks / toilets): small rounded squares, so they don't read as numbered places */
.mk.fac { border-radius: 7px; font-size: 13px; }
.zsmall .mk.fac { width: 20px; height: 20px; font-size: 11px; }
.pop-sum { margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-foot { padding: 0 12px 12px; }
.card-popup a.pop-go { display: flex; align-items: center; justify-content: center; min-height: 32px; border-radius: 999px; background: var(--accent);
  color: var(--on-accent); font-weight: 600; font-size: .85rem; text-decoration: none; }
.card-popup a.pop-go:hover { background: var(--accent-2); }
@media (max-width: 480px) { .pop-img { height: 84px; } }
.cl { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent); border: 3px solid var(--accent); display: grid; place-content: center;
  font: 800 14px/1 system-ui, sans-serif; cursor: zoom-in; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 2px 6px rgba(0,0,0,.3); }
.zsmall .mk { width: 20px; height: 20px; margin: 5px; font-size: 9px; border-width: 1.5px; }
.zsmall .mk.on { transform: scale(1.5); }
.leaflet-container { font: inherit; }

/* ---------- place page ---------- */
.gallery { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #111; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 86%; scroll-snap-align: start; position: relative; aspect-ratio: 4 / 3; max-height: 62vh; }
.gallery.single figure { flex-basis: 100%; aspect-ratio: 16 / 9; }
.gallery button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-play, .thplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-content: center; border-radius: 50%;
  background: rgba(0,0,0,.62); color: #fff; padding-left: .12em; pointer-events: none; backdrop-filter: blur(3px); }
.badge-play { width: 68px; height: 68px; font-size: 28px; }
.thplay { width: 30px; height: 30px; font-size: 13px; }
.pb-main:hover .badge-play, .pb-th:hover .thplay { background: #c4302b; }
.viewer-body .pano-flat { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; padding: 56px 0 72px; }
.viewer-body .pano-flat img { display: block; height: 100%; max-height: 100%; width: auto; max-width: none; }
.viewer-body .vid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 0 72px; }
.viewer-body .vid iframe { width: min(100%, calc((100dvh - 128px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.viewer-cap a { color: #fff; pointer-events: auto; }
.badge360 { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(4px); }
.is-pano button { cursor: grab; }
@media (min-width: 900px) {
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; overflow: hidden; max-width: 1180px; margin: 16px auto 0; border-radius: var(--radius); background: none; }
  .gallery figure { aspect-ratio: auto; max-height: none; }
  .gallery figure:first-child { grid-row: span 2; }
  .gallery figure:nth-child(n+6) { display: none; }
  .gallery.single { grid-template-columns: 1fr; grid-auto-rows: 460px; }
  .gallery.single figure:first-child { grid-row: auto; }
}
.place-body { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 18px; }
@media (min-width: 900px) { .place-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } .side-col { padding-top: 14px; } }
.place h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .25em; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.place .lead { margin-top: 0; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 18px 0 22px; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; padding: 8px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  text-align: center; overflow-wrap: anywhere; line-height: 1.25; }
.act span { font-size: 1.3rem; line-height: 1.1; }
.act .w3w { color: #e11f26; font-weight: 800; font-size: 1.05rem; }
.act:hover { border-color: var(--accent); }
.sources { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.05rem; margin: 0 0 8px; }
.sources ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sources li { margin: 0; border-top: 1px solid var(--line); }
.sources li:first-child { border-top: 0; }
.sources a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 9px 34px 9px 12px; position: relative; text-decoration: none; overflow-wrap: anywhere; }
.sources a:hover .src-t, .sources a:focus-visible .src-t { text-decoration: underline; }
.sources a::after { content: "↗"; position: absolute; right: 12px; top: 9px; opacity: .55; }
.sources .src-s { font-size: .82rem; color: var(--muted, #666); }
.map.small { height: 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts { margin: 16px 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-top: 10px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.also a { margin-right: 8px; }
.nearby h2 { margin: 32px 0 12px; }
.near-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
@media (min-width: 900px) { .near-cards { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); } }
.near-cards a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.near-cards .img { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--line); margin-bottom: 6px; }
.near-cards img { width: 100%; height: 100%; object-fit: cover; display: block; }
.near-cards .muted { font-size: .88rem; }
.back { margin-top: 28px; }
.page { padding-top: 24px; }

.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.viewer::backdrop { background: #000; }
.viewer-body { position: absolute; inset: 0; }
.viewer-body .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-body .slides::-webkit-scrollbar { display: none; }
/* each slide is exactly the screen; the photo fits inside it whole, portrait or landscape */
.viewer-body .slide { flex: 0 0 100%; height: 100%; min-width: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viewer-body .slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-body .slides { touch-action: pan-x; }
.viewer-body .slides.zoomed { overflow: hidden; touch-action: none; cursor: grab; }
.viewer-body .slides.zoomed.dragging { cursor: grabbing; }
.viewer-body .slide img { transform-origin: center; user-select: none; -webkit-user-select: none; }
.viewer .zoom-bar { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; padding: 0 4px; border-radius: 23px; background: rgba(0,0,0,.6); }
.viewer .zoom-bar button { height: 46px; min-width: 44px; border: 0; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.viewer .zoom-bar .z-pct { min-width: 58px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.viewer .zoom-bar button:disabled { opacity: .35; cursor: default; }
.viewer-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 64px calc(14px + env(safe-area-inset-bottom)) 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; font-size: .95rem; }
.viewer-cap:empty { display: none; }
.viewer.is-pano .viewer-cap { bottom: 44px; padding-bottom: 8px; background: none; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.viewer-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 10; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; cursor: pointer; }
.viewer .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 22px; cursor: pointer; }
.viewer .nav-btn.prev { left: 10px; } .viewer .nav-btn.next { right: 10px; }
@media (hover: none) { .viewer:not(.is-video) .nav-btn { display: none; } }

.consent { position: fixed; z-index: 2000; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.2); padding: 14px 16px; }
.consent p { margin: 0 0 10px; font-size: .92rem; }
.consent div { display: flex; gap: 8px; justify-content: flex-end; }
.toast { position: fixed; z-index: 2100; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; }

/* style preview bar (signed-in admins/editors only, ?style=…) */
.style-preview { position: relative; z-index: 1200; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 16px;
  background: #111; color: #fff; font: 13px/1.3 system-ui, sans-serif; }
.style-preview a { color: #9fe1cb; text-decoration: none; padding: 3px 8px; border: 1px solid #333; border-radius: 999px; }
.style-preview a[aria-current] { background: #fff; color: #111; border-color: #fff; }

/* map buttons: reset view, find me, expand (site.js mapControls). 40px on touch screens. */
.map-tools button, .leaflet-bar a { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; }
.map-tools button:last-child { border-bottom: 0; }
.map-tools button:hover, .leaflet-bar a:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }
.map-tools svg { fill: currentColor; }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: 0 2px 8px rgba(0,0,0,.15) !important; border-radius: 8px; overflow: hidden; }
.leaflet-bar a, .leaflet-bar a:hover { color: var(--ink); background-color: var(--surface); border-bottom-color: var(--line); }
@media (pointer: coarse) { .map-tools button, .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 20px; } }
.map-tools .mt-me.busy svg { animation: mt-pulse 1s ease-in-out infinite; color: var(--accent); }
@keyframes mt-pulse { 50% { opacity: .3; } }
.me-ring { fill: #2563eb; fill-opacity: .12; stroke: #2563eb; stroke-opacity: .5; stroke-width: 1; }
.leaflet-control-scale-line { background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink); border-color: var(--ink); }
/* place-page map expanded to fill the window */
.map.small.map-expanded { position: fixed !important; inset: 0; z-index: 2500; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
html.map-open, html.map-open body { overflow: hidden; }

/* ---------- self-guided tours ---------- */
.tours { padding-top: 8px; }
.tours h2 { font-size: 1.3rem; margin: 10px 0; }
.tour-cards { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tour-cards a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none; }
.tour-cards a:hover strong { color: var(--accent); }
.tour-cards .img { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--line); }
.tour-cards img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-cards .txt { display: flex; flex-direction: column; gap: 2px; }
.tour-cards .muted { font-size: .88rem; }
.tour-head { padding-top: 16px; }
.tour-meta { margin: 0 0 12px; color: var(--muted); }
.tour-badge { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 600; margin-right: 6px; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tour-body { display: grid; gap: 18px; grid-template-columns: 1fr; padding-top: 6px; }
.tour-map-wrap .map { height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 1000px) {
  .tour-body { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: start; }
  .tour-map-wrap { position: sticky; top: calc(var(--head) + 12px); }
  .tour-map-wrap .map { height: calc(100vh - var(--head) - 40px); }
}
.tour-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tour-list > li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.tour-list > li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 44px; bottom: -14px; width: 3px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.tour-n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-content: center; font-weight: 700; cursor: pointer; position: relative; z-index: 1; }
.tour-li { min-width: 0; display: grid; gap: 6px; }
.tour-place { display: grid; grid-template-columns: 96px 1fr; gap: 10px; color: var(--ink); text-decoration: none; }
.tour-place .th { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--line); }
.tour-place .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-place strong { display: block; font-size: 1.05rem; }
.tour-place:hover strong { color: var(--accent); }
.tour-li .leg, .tour-step .leg { margin: 0; color: var(--accent); font-weight: 600; }
.tour-li .dirs, .tour-li .note, .tour-step .dirs, .tour-step .note { margin: 0; }
.tour-li .note, .tour-step .note { color: var(--muted); }
@media (max-width: 480px) { .tour-place { grid-template-columns: 72px 1fr; } .tour-place .th { width: 72px; height: 56px; } }

/* step by step: map above (left on wide screens), the current stop below (right) */
.tour-step { position: fixed; z-index: 2601; left: 0; right: 0; bottom: 0; height: 46vh; height: 46dvh; display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.2); border-radius: 16px 16px 0 0; }
.tour-step[hidden] { display: none; }
.ts-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.ts-close { border: 0; background: none; font-size: 1.2rem; color: var(--ink); cursor: pointer; width: 40px; height: 40px; }
.ts-body { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; gap: 8px; align-content: start; overscroll-behavior: contain; }
.ts-place { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.ts-place img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.ts-foot { display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ts-foot .btn { flex: 1; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.ts-foot .btn:disabled { opacity: .4; }
body.tour-stepping { overflow: hidden; }
body.tour-stepping .tour-map-wrap { position: fixed; z-index: 2600; inset: 0 0 46vh 0; inset: 0 0 46dvh 0; }
body.tour-stepping .tour-map-wrap .map { height: 100%; border-radius: 0; border: 0; }
@media (min-width: 900px) {
  .tour-step { left: auto; top: 0; height: auto; width: 420px; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); }
  body.tour-stepping .tour-map-wrap { inset: 0 420px 0 0; }
}

/* print: the route map and the numbered directions, nothing else */
@media print {
  .site-head, .site-foot, .tour-actions, .tour-step, .back, .pback, .leaflet-control-container, .view-toggle, .consent, .style-preview { display: none !important; }
  .hero { height: auto; min-height: 0; background: none; }
  .hero img, .hero-where, .hero-pause, .hero-arrow { display: none; }
  .hero-txt { position: static; background: none; padding: 0; }
  .hero h1 { color: #000; text-shadow: none; }
  .tour-body { display: block; }
  .tour-map-wrap { position: static !important; }
  .tour-map-wrap .map { height: 420px !important; break-inside: avoid; margin-bottom: 12px; }
  .tour-list > li { break-inside: avoid; }
  .tour-list > li::before { display: none; }
  .tour-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #000; }
}

/* area page button + per-area tours list */
.tours-link { margin: 4px auto 14px; } /* (older markup) */
.tours-n { display: inline-grid; place-content: center; min-width: 24px; height: 24px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-size: .85rem; }
.tours-index { display: grid; gap: 18px; padding-top: 4px; }
.tours-index .map { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tour-cards.big { grid-template-columns: 1fr; }
.tour-cards.big a { grid-template-columns: 1fr; padding: 0; overflow: hidden; border-top: 5px solid var(--tc, var(--accent)); }
.tour-cards.big .img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.tour-cards.big .txt { padding: 12px 14px 16px; gap: 6px; }
.tour-cards.big strong { font-size: 1.2rem; }
.tour-cards.big .tour-meta { margin: 0; }
.stops-preview { color: var(--muted); }
@media (min-width: 800px) { .tour-cards.big { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tours-index { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .tours-index .map { position: sticky; top: calc(var(--head) + 12px); height: calc(100vh - var(--head) - 40px); } .tour-cards.big { grid-template-columns: 1fr; } }

/* good-to-know badges (children, dogs) */
.chip.static.flag { border-color: var(--line); background: var(--surface); }
.tys .flags { margin-left: 4px; letter-spacing: 2px; }

/* filter chip tooltips (mouse / trackpad); chips wrap instead of scrolling sideways so the tip isn't cut off */
@media (hover: hover) and (pointer: fine) {
  .chips { flex-wrap: wrap; overflow: visible; }
  .chip[data-tip] { position: relative; }
  .chip[data-tip]:hover::after, .chip[data-tip]:focus-visible::after {
    content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30;
    width: max-content; max-width: min(230px, 80vw); padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--bg);
    font: 500 .78rem/1.35 system-ui, -apple-system, sans-serif; text-align: left; text-decoration: none; white-space: normal; pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.2); }
}

/* stand-in for a missing picture (img_ph() in lib/places.php): type colour or theme accent, faint waves, icon or name */
.ph { --ph-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cpath d='M0 12c20-10 60-10 80 0s60 10 80 0M0 36c20-10 60-10 80 0s60 10 80 0' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E"); position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; overflow: hidden;
  background: var(--ph-waves) center / 160px 48px, linear-gradient(135deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 55%, #0b1320)); color: #fff; }
.ph i { font-style: normal; font-size: clamp(1.1rem, 30cqmin, 2.8rem); line-height: 1; display: grid; place-items: center; width: 1.75em; aspect-ratio: 1;
  border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 0 0 .14em color-mix(in srgb, var(--c, var(--accent)) 35%, #fff), 0 4px 14px rgb(0 0 0 / .28); }
.ph b { padding: 0 12%; font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.15; text-align: center; text-shadow: 0 2px 8px rgb(0 0 0 / .3); overflow-wrap: anywhere; }
.th, .near-cards .img, .tour-cards .img, .area-cards .img, .pop-img > .ph { container-type: size; }
/* Hover zoom with a little bounce on the home page cards, the area list thumbnails and Nearby on place pages: mouse only, and never when the visitor
   has asked for less motion. The picture grows inside its frame (the frames already clip with overflow: hidden). */
.area-cards .img { overflow: hidden; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .area-cards .img > img, .area-cards .img > .ph, .pl .th > img, .pl .th > .ph, .near-cards .img > img, .near-cards .img > .ph { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
  .area-cards a:hover .img > img, .area-cards a:hover .img > .ph, .area-cards a:focus-visible .img > img,
  .pl:hover .th > img, .pl:hover .th > .ph, .pl:focus-visible .th > img,
  .near-cards a:hover .img > img, .near-cards a:hover .img > .ph, .near-cards a:focus-visible .img > img { transform: scale(1.08); }
}
.pbanner.ph-banner { height: clamp(120px, 26vw, 200px); min-height: 0; background: none; }
.ph-share { position: absolute; right: 12px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / .45); color: #fff; font-size: .88rem; text-decoration: none; }
.ph-share:hover { background: rgb(0 0 0 / .65); }
.hero.no-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cpath d='M0 12c20-10 60-10 80 0s60 10 80 0M0 36c20-10 60-10 80 0s60 10 80 0' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--accent), #155e75); background-size: 160px 48px, auto; }

/* home page small UK map of the areas */
.home-map { margin: 0 auto 20px; padding: 0 16px; display: grid; justify-items: center; }
/* wider screens: map on the left, intro on the right */
@media (min-width: 760px) {
  .home-top.has-map { max-width: 1180px; margin: 0 auto; padding: 24px 16px 20px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; }
  .home-top.has-map .home-hero { max-width: none; margin: 0; padding: 0; text-align: left; }
  .home-top.has-map .home-map { margin: 0; padding: 0; order: -1; }
}
#home-map { width: min(100%, 300px); aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); z-index: 0; }
#home-map .leaflet-control-attribution { font-size: 9px; }
.mk.area-pin { width: 18px; height: 18px; background: var(--accent, #0f766e); cursor: pointer; transition: opacity .2s, transform .15s; }
.mk.area-pin:hover { transform: scale(1.3); }
.leaflet-marker-icon.off { opacity: .2; }

/* home page area search */
.area-search { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 6px; }
.area-search input { width: 100%; max-width: 560px; justify-self: center; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem; }
.area-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.area-search .count { text-align: center; }
.area-cards li[hidden] { display: none; }
.area-hit { color: var(--accent) !important; font-weight: 600; font-size: .9rem !important; }

/* area page: count + Clear filters */
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.clear-filters { border: 1px solid var(--accent); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 32px; }
.clear-filters:hover { background: var(--accent); color: var(--on-accent); }
.clear-filters[hidden] { display: none; }

/* external links note; share buttons on home + area pages */
.ext-note { margin: 22px 0 0; padding: 10px 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: .85rem; }
.ext-note a { color: inherit; }
.area-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px auto 14px; }
@media print { .ext-note { border: 0; padding: 0; } }

/* Share this site: right-hand end of the header on every page */
.head-share { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.head-share:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .head-share .hs-t { display: none; } .head-share { padding: 4px 10px; } } /* icon only on phones */
@media print { .head-share { display: none; } }

/* two header shares (e.g. Share this area, then Share this site): the second sits right beside the first */
.head-share.after { margin-left: 0; }
.head-share .hs-s { display: none; }
@media (max-width: 560px) { .head-share.page .hs-s { display: inline; } .head-share.page { padding: 4px 12px; } } /* phones: "Share area" + site icon */
@media (max-width: 480px) { .site-head:has(.head-share.page) .crumb { display: none; } } /* no room for the breadcrumb beside two share buttons */

/* places found: header link, place-page button, list ticks, pins, progress bar */
.head-me { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.head-me:hover { border-color: var(--accent); color: var(--accent); }
.head-me ~ .head-share { margin-left: 0; }
.me-n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .75rem; line-height: 20px; text-align: center; }
.me-n[hidden] { display: none; }
@media (max-width: 560px) { .head-me .hs-t { display: none; } .head-me { padding: 4px 10px; } }
@media (max-width: 400px) { .site-head .crumb { display: none; } }
/* Place page: back to the area's list or map, on phones and tablets (where the area list and map are separate views) */
.pback { display: none; }
@media (max-width: 999px) {
  .pback { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: .95rem; }
  .pback a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-weight: 600; text-decoration: none; }
  .pback a:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pback a + a { flex: none; color: var(--accent-2); }
}
@media print { .head-me, .found-tg, .found-bar { display: none !important; } }
.found-act.on { border-color: #16a34a; background: color-mix(in srgb, #16a34a 14%, var(--surface)); }
.found-act [data-found-label] { font-size: .86rem; line-height: 1.25; }
.found-act > span:first-child { display: grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font-size: .95rem; font-weight: 800; }
.found-act.on > span:first-child { background: #16a34a; border-color: #16a34a; color: #fff; }
/* "Found it" under each list entry's photo (position and width measured by site.js); the row grows to make room */
.places > li:not(.group-h) { min-height: calc(var(--th-y, 86px) + 48px); }
.found-tg { position: absolute; left: var(--th-x, 46px); top: calc(var(--th-y, 86px) + 8px); width: var(--th-w, 96px); display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; min-height: 30px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.found-tg:hover { border-color: #16a34a; color: #16a34a; }
.ft-box { flex: none; display: grid; place-content: center; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 5px; font-size: .72rem; font-weight: 800; line-height: 1; }
.found-tg[aria-pressed=true] { border-color: #16a34a; background: color-mix(in srgb, #16a34a 14%, var(--surface)); color: #15803d; }
.found-tg[aria-pressed=true] .ft-box { background: #16a34a; border-color: #16a34a; color: #fff; }
.found-tg[aria-pressed=true] .ft-box::after { content: "✓"; }
@media (prefers-color-scheme: dark) { .found-tg[aria-pressed=true] { color: #4ade80; } }
.found-tg .ft-t { line-height: 1; }
/* small thumbnails (phones): just "Found", so the box and word sit comfortably inside the pill */
.tg-narrow .found-tg { gap: 5px; padding: 2px 8px; font-size: .74rem; }
.tg-narrow .ft-it { display: none; }
.tg-narrow .ft-box { width: 14px; height: 14px; border-width: 1.5px; border-radius: 4px; font-size: .64rem; }
.places li.found .tx strong::after { content: " ✓"; color: #16a34a; }
.mk.found { box-shadow: 0 0 0 3px #16a34a; }
.mk.found::after { content: "✓"; position: absolute; right: -7px; top: -7px; width: 15px; height: 15px; border-radius: 50%; background: #16a34a; color: #fff;
  font-size: 10px; line-height: 15px; text-align: center; font-weight: 800; }
.mk { position: relative; }
.found-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: .92rem; }
.found-bar[hidden] { display: none; }
.found-bar .fb-t { font-weight: 600; }
.found-bar.zero .fb-t { font-weight: 400; color: var(--muted); }
.found-bar .bar { flex: 1 1 120px; }
.found-bar a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: #16a34a; transition: width .3s; }

/* account pages */
.account { max-width: 760px; padding-bottom: 40px; }
.account h2 { margin-top: 32px; }
.account .note { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #16a34a 12%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 40%, var(--line)); }
.account .note.warn { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 45%, var(--line)); }
.account .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.account .stack, .signin { display: flex; flex-direction: column; gap: 10px; }
.account input[type=email], .account input[name=name] { min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.account .small { font-size: .86rem; }
.account .check { display: flex; gap: 8px; align-items: flex-start; }
.account .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.account form.inline { display: inline; }
.guest-ticks { padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--line); }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.stat-row > div { flex: 1 1 120px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat-row strong { display: block; font-size: 1.9rem; line-height: 1.1; }
.stat-row span { color: var(--muted); font-size: .88rem; }
.progress-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.progress-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: var(--ink); text-decoration: none; padding: 10px 0; }
.progress-list .bar { grid-column: 1 / -1; }
.pl-name { font-weight: 600; }
.pl-n { color: var(--muted); font-size: .9rem; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); }
.b-i { font-size: 2rem; line-height: 1.1; }
.b-t { font-weight: 600; font-size: .92rem; }
.b-d { color: var(--muted); font-size: .78rem; }
.found-list { list-style: none; padding: 0; margin: 0 0 8px; }
.found-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.found-list li a { flex: 1; color: var(--ink); }
.found-list form { margin: 0; }
.account details.danger { margin-top: 24px; }
.account details.danger summary { cursor: pointer; color: var(--muted); }
@media (max-width: 480px) { .site-head:has(.head-share.page) .logo span { display: none; } } /* room for My places + two share buttons */
@media (max-width: 560px) { .found-bar a { display: none; } .site-head { gap: 8px; } }
.guest-found h2 { margin-top: 8px; }

/* help page */
.help-toc ul { columns: 2 220px; padding-left: 1.2em; margin: 0 0 8px; }
.help-toc li { margin: 2px 0; }
.help h2 { scroll-margin-top: calc(var(--head) + 12px); }

/* place page photo banner: the main photo across the top (as before), with a strip of the place's other photos along its bottom */
.pbanner { position: relative; height: min(75vw, 62vh); min-height: 240px; overflow: hidden; background: #111; }
.pb-main { all: unset; position: absolute; inset: 0; display: block; cursor: zoom-in; }
.pb-main:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.pb-bg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 26px 14px 12px; overflow-x: auto; scrollbar-width: none;
  justify-content: flex-start; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.pb-strip::-webkit-scrollbar { display: none; }
.pb-th { all: unset; position: relative; flex: none; width: 76px; height: 56px; border-radius: 6px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.35); transition: transform .15s; }
.pb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-th:hover { transform: translateY(-2px); }
.pb-th:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.th360 { position: absolute; left: 3px; bottom: 3px; padding: 0 4px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .62rem; font-weight: 700; }
.pbanner .badge360 { pointer-events: none; }
.pbanner:not(.single) .badge360 { bottom: auto; top: 12px; }
@media (min-width: 900px) { .pbanner { height: 440px; max-width: 1180px; margin: 16px auto 0; border-radius: var(--radius); } }
.pb-ti { position: relative; flex: none; display: block; }
.pb-info { all: unset; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #222; font: italic 700 12px/1 Georgia, serif; box-shadow: 0 1px 4px rgba(0,0,0,.45); cursor: pointer; z-index: 1; }
.pb-info::after { content: ""; position: absolute; inset: -5px; } /* bigger tap target than it looks */
.pb-info:focus-visible, .pb-info[aria-expanded="true"] { background: var(--accent); color: #fff; }
.pb-strip { padding-top: 30px; }
.pb-info-main { top: 12px; right: 12px; width: 28px; height: 28px; font-size: 16px; }
.pb-info[hidden] { display: none; }
/* UK-wide area hero slideshow (site.js): photos fade in over the last one; the place's name top left, pause beside the ⓘ */
.hero-img.hero-next { opacity: 0; transition: opacity 1.2s ease; }
.hero-img.hero-next.on { opacity: 1; }
.hero-where { position: absolute; top: 12px; left: 12px; z-index: 1; max-width: calc(100% - 172px); padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-where::before { content: "📍 "; }
.hero-where:hover { background: rgba(0,0,0,.75); }
/* top right, left to right: ‹  ❚❚  ›  ⓘ (the ⓘ sits at right: 12px) */
.hero-pause, .hero-arrow { all: unset; position: absolute; top: 12px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.hero-pause::after, .hero-arrow::after { content: ""; position: absolute; inset: -4px; } /* bigger tap target than it looks */
.hero-pause { right: 84px; font-size: 9px; letter-spacing: 2px; text-indent: 2px; } /* text-indent: centres the two bars, whose spacing trails */
.hero-arrow { font-size: 20px; line-height: 1; padding-bottom: 2px; box-sizing: border-box; }
.hero-arrow.prev { right: 120px; } .hero-arrow.next { right: 48px; }
.hero-pause:hover, .hero-arrow:hover { background: rgba(0,0,0,.75); }
.hero-pause:focus-visible, .hero-where:focus-visible, .hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.area-cards .img { position: relative; }
.area-cards .img > img.slide-next { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.area-cards .img > img.slide-next.on { opacity: 1; }
.card-pause { all: unset; grid-row: 2; grid-column: 1; position: absolute; top: 8px; left: calc(var(--cp) + 8px); z-index: 2; width: 26px; height: 26px;
  border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 8px; letter-spacing: 2px; text-indent: 2px; cursor: pointer; }
.card-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pb-info.card-info { grid-row: 2; grid-column: 1; top: 8px; right: calc(var(--cp) + 8px); z-index: 2; } /* home card photo ⓘ, opposite the pause button */
@media (prefers-reduced-motion: reduce) { .hero-img.hero-next, .area-cards .img > img.slide-next { transition: none; } }
.pl-info { visibility: hidden; } /* until site.js puts it on the thumbnail's corner */
.pb-pop { position: absolute; z-index: 1050; max-width: min(320px, calc(100% - 24px)); padding: 10px 34px 10px 12px; border-radius: 8px;
  background: rgba(20,20,20,.92); color: #fff; font-size: .88rem; line-height: 1.4; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.pb-pop[hidden] { display: none; }
.pb-pop p { margin: 0; }
.pb-pop p:empty { display: none; }
.pb-pop .pb-pop-credit { opacity: .8; font-size: .8rem; }
.pb-pop .pb-pop-cap:not(:empty) + .pb-pop-credit { margin-top: 4px; }
.pb-pop .pb-pop-term { font-weight: 700; margin-bottom: 2px; }
.pb-pop .pb-pop-more { margin-top: 6px; font-size: .82rem; }
.pb-pop .pb-pop-more a { color: #fff; text-decoration: underline; }
/* Glossary words (lib/glossary.php): same colour as the text around them, dotted underline, popup on tap. */
.prose a.gloss, .lead a.gloss { color: inherit; font-weight: inherit; text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; }
.prose a.gloss:hover, .prose a.gloss[aria-expanded="true"], .lead a.gloss:hover, .lead a.gloss[aria-expanded="true"] { text-decoration-style: solid; }
.gl-list { margin: 1.5em 0; }
.gl-item { padding: 10px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.gl-item dt { font-weight: 700; }
.gl-item dd { margin: 2px 0 0; }
.gl-item:target { background: color-mix(in srgb, var(--accent, #0f766e) 10%, transparent); border-radius: 6px; padding-inline: 8px; }
@media print { .prose a.gloss, .lead a.gloss { text-decoration: none; } }
.pb-pop-x { all: unset; position: absolute; top: 4px; right: 6px; width: 24px; height: 24px; text-align: center; font-size: 20px; line-height: 24px; cursor: pointer; }
.pb-pop-x:focus-visible { outline: 2px solid #fff; border-radius: 4px; }
@media (max-width: 600px) { .pb-th { width: 58px; height: 44px; } .pb-strip { gap: 6px; padding: 24px 10px 10px; } }
@media print { .pb-strip, .pb-pop { display: none; } .pbanner { height: auto; } }

/* My places: league table */
.league { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.league li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.league li:first-child { border-top: 0; }
.league li.me { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.lg-r { font-weight: 800; font-size: 1.05rem; text-align: center; color: var(--muted); }
.league .rk1 .lg-r::before { content: "🥇"; } .league .rk2 .lg-r::before { content: "🥈"; } .league .rk3 .lg-r::before { content: "🥉"; }
.league :is(.rk1, .rk2, .rk3) .lg-r { font-size: 0; } .league :is(.rk1, .rk2, .rk3) .lg-r::before { font-size: 1.3rem; }
.lg-n { color: var(--ink); font-weight: 600; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-n:hover { text-decoration: underline; }
.lg-c { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* beta notice: tag by the logo, slim bar under the header */
.beta-tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #f59e0b; color: #1f1300; font: 700 .62rem/1.5 system-ui, -apple-system, sans-serif;
  font-style: normal; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.beta-bar { padding: 7px 16px; background: color-mix(in srgb, #f59e0b 18%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, #f59e0b 45%, var(--line));
  color: var(--ink); font-size: .84rem; line-height: 1.4; text-align: center; }
.beta-bar strong { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 4px; background: #f59e0b; color: #1f1300; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.beta-bar a { color: inherit; font-weight: 600; }
@media (max-width: 480px) { .beta-bar { font-size: .78rem; padding: 6px 12px; text-align: left; } .site-head:has(.head-share.page) .beta-tag { display: none; } }
@media print { .beta-bar { border: 1px solid #999; } }

/* Each card takes three rows of the list's grid (name, photo, text) and its link shares them (subgrid), so across a row of cards
   the photos line up however many lines a name takes, and the "Editor needed" ribbon's corner box sits on the photo's top-right
   corner (links to the application form). */
.area-cards { row-gap: 0; }
.area-cards li { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 18px; }
.area-cards li > a { grid-row: 1 / -1; grid-column: 1; display: grid; grid-template-rows: subgrid; }
.ed-corner { grid-row: 2; grid-column: 1; position: absolute; top: 0; right: var(--cp); border-top-right-radius: calc(var(--radius) * .6); width: 132px; height: 132px; overflow: hidden; pointer-events: none; z-index: 2; }
.area-cards li .ed-corner a.ed-ribbon { /* specific enough to beat the styles' own .area-cards a rules */
  position: absolute; top: 30px; right: -42px; width: 190px; padding: 7px 0; transform: rotate(45deg); pointer-events: auto;
  display: block; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  background: #dc2626; color: #fff; border: 0; border-radius: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); text-decoration: none; overflow: visible; outline: 0; }
.area-cards li .ed-corner a.ed-ribbon:hover, .area-cards li .ed-corner a.ed-ribbon:focus-visible { background: #b91c1c; transform: rotate(45deg); }
.area-cards li .ed-corner a.ed-ribbon:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }

/* editor application form */
.editor-apply form label:not(.check), .contact form label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.editor-apply form label .muted, .contact form label .muted { font-weight: 400; }
.editor-apply input[type=email], .editor-apply input[name=name], .editor-apply input[type=url], .editor-apply select, .editor-apply textarea,
  .contact input[type=email], .contact input[name=name], .contact input[name=place], .contact select, .contact textarea {
  min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.editor-apply fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.editor-apply legend { font-weight: 600; margin-bottom: 4px; }
.editor-apply .note ul, .contact .note ul { margin: 6px 0 0; padding-left: 20px; }
.editor-apply .note p { margin: 0; }
.editor-apply .hp, .photo-form .hp, .signin .hp, .contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* share a photo */
.share-photo { margin: 14px 0 0; font-size: .92rem; }
.share-photo a { color: var(--accent); font-weight: 600; text-decoration: none; }
.share-photo a:hover { text-decoration: underline; }
.photo-form label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.photo-form label .muted, .photo-form small { font-weight: 400; }
.photo-form [hidden], .photo-form label[hidden] { display: none; } /* label[hidden] beats the label:not(.check) rule above */
.photo-form select, .photo-form textarea, .photo-form input[name=where], .photo-form input[name=credit] {
  min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.photo-form input[type=file] { font: inherit; font-weight: 400; }
.photo-preview img { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; }
.photo-form .licence { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.photo-form .licence h2 { margin: 0 0 6px; font-size: 1rem; }
.photo-form .licence p { margin: 0; }
.account.photos .note ul { margin: 6px 0 0; padding-left: 20px; }
.my-photos { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.my-photos li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

.my-photos .uses { flex-basis: 100%; margin: 2px 0 0; padding-left: 18px; }

/* big areas: link to the full list when the rest couldn't be fetched (or without JavaScript) */
.list-more { text-align: center; margin: 16px 0; }

/* Opening hours (lib/hours.php; "today" worked out by site.js): a badge on list entries and under a place's summary, the week in the facts */
.oh { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.5; }
.oh-on { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.oh-off { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
.tx .oh { display: table; }
.oh-line { display: inline-block; margin: 6px 0 0; padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.oh-line[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .oh-on { color: #4ade80; } }
.facts .oh-season { display: block; font-weight: 600; }
.facts .oh-week { display: grid; gap: 1px; margin: 2px 0 4px; }
.facts .oh-d { display: inline-block; min-width: 7.5em; color: var(--muted); }
.facts .oh-notes { display: block; color: var(--muted); font-size: .92em; }
/* Place page: several locations (lib/public_place.php) */
.facts .pts { margin: 2px 0 0; padding-left: 1.4em; }
.facts .pts li { margin: 2px 0; }

/* ---------- treasure hunts (lib/public_hunts.php; site.js does the playing) ---------- */
.hunt-badge { background: #b45309; color: #fff; }
.hunt-head { padding-top: 16px; }
.hunt-gauge { margin: 4px 0 14px; max-width: 520px; }
.hg-bar { display: block; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hg-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #16a34a); transition: width .6s ease; }
.hg-txt { margin: 6px 0 0; color: var(--muted); }
.hg-txt strong { color: var(--ink); font-size: 1.15rem; }
.hunt-done { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, #16a34a 14%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 40%, transparent); }
.hunt-done p { margin: 0; } .hunt-done .hd-big { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.hunt-how { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hunt-how summary { cursor: pointer; font-weight: 600; }
.hunt-how p { margin: 8px 0 0; }
.hunt-list { list-style: none; margin: 0; padding: 0; }
.hunt-list > li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hunt-n { background: #b45309; color: #fff; cursor: default; }
.hunt-list > li.found .hunt-n { background: #16a34a; }
.hunt-list > li.given .hunt-n { background: var(--muted); }
.hunt-li { min-width: 0; display: grid; gap: 8px; }
.hunt-pic { display: block; max-width: 340px; border-radius: 10px; overflow: hidden; background: var(--line); }
.hunt-pic img { display: block; width: 100%; height: auto; }
.hunt-credit { margin-top: -4px; }
.hunt-clue { margin: 0; font-size: 1.08rem; }
.hunt-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hunt-btns[hidden], .hunt-btns [hidden] { display: none; }
.hunt-hints { margin: 0; padding: 8px 12px 8px 28px; border-radius: 10px; background: color-mix(in srgb, #f59e0b 12%, var(--surface)); }
.hunt-got { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #16a34a 12%, var(--surface)); }
.hunt-got p, .hunt-gave { margin: 0; }
.hunt-got p + p { margin-top: 4px; }
.hunt-gave { color: var(--muted); }
.hunt-map-note { margin: 6px 0 0; }
.mk.hunt-mk.got { --c: #16a34a; }
.mk.hunt-mk.gave { --c: #64748b; }
.hunt-mini { display: grid; gap: 4px; margin-top: 4px; }
.hunt-mini[hidden] { display: none; }
.hunt-mini .hg-bar { height: 8px; }
.hunt-cards .ph { width: 100%; height: 100%; }
.hunt-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
@media print {
  .hunt-btns, .hunt-gauge, .hunt-how, .hunt-done, .hunt-map-note, .tour-map-wrap:has(#hunt-map) { display: none !important; }
  .hunt-list > li { break-inside: avoid; }
  .hunt-pic { max-width: 260px; }
}

/* ---------- pub crawls and foodie trails (lib/public_tours.php, kind-pubcrawl / kind-foodie) ---------- */
.tour-badge[style*="--kc"] { background: var(--kc); color: #fff; }
.crawl-tonight { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius); background: color-mix(in srgb, #16a34a 12%, var(--surface)); border: 1px solid color-mix(in srgb, #16a34a 35%, transparent); }
.crawl-tonight.warn { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 45%, transparent); }
.crawl-tonight p { margin: 0; }
.crawl-care { margin: 0 0 12px; }
.foodie-days { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.foodie-days summary { cursor: pointer; font-weight: 600; }
.foodie-days ul { margin: 8px 0 4px; padding-left: 18px; }
.foodie-days .closed { color: #b45309; }
.stop-hours { margin: 0; }
.stop-hours .open-now { color: #15803d; font-weight: 600; }
.stop-hours .closed-now { color: #b45309; font-weight: 600; }
.tag-book { font-weight: 600; }
.stop-tick { margin: 2px 0 0; }
.found-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.found-btn.on { background: #16a34a; border-color: #16a34a; color: #fff; }
.kind-foodie .tour-list > li::before { display: none; }
@media print { .stop-tick, .crawl-tonight { display: none; } }

/* "Get the app": an area's local guide in the stores (guide_app_box), and the guide list on the home page. */
.get-app { display: flex; gap: 14px; align-items: center; margin: 18px auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.get-app img { border-radius: 22%; flex: none; }
.get-app p { margin: 4px 0 0; color: var(--muted); }
.get-app .get-app-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.get-apps { margin: 28px auto; }
.get-apps ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.get-apps li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.get-apps li strong { margin-right: auto; }

/* Weather and tide times on a place page (outdoor places; beaches and coast). */
.place-extra { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
