/* /visit/ pages (site/build_visit.py, build_visit_outdoors.py). Loads after info.css and resets its tokens for the Visit section.
   Every colour is a token; AA contrast in both themes. Three candidate looks for the main page (Jon, 2026-11-19: "a professional-looking
   overhaul, more designs than one"): body.v-look-a (flat list, full-width map), .v-look-b (filter rail), .v-look-c (guidebook cards).
   The build picks one with VISIT_LOOK; once Jon chooses, delete the other two blocks at the end of this file. */
:root {
  --bg: #ffffff; --fg: #14171c; --muted: #5a6370; --link: #0b57d0; --line: #e4e7ec; --panel: #f4f5f7; --btn-line: #cdd2da; --in-line: #858d99;
  --ok: #0a6b2d; --bad: #b3261e; --surface: #ffffff; --accent: #0b57d0; --on-accent: #ffffff; --tint: #e9f0fd; --seg-on: #ffffff;
  --warnbg: #fff6e6; --warnfg: #7a3e00; --warnline: #d99a2b; --resbg: #fdecea; --resfg: #8c1d18; --star: #b26a00; --chip: #e9f0fd;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.10);
  --head: inherit;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014; --fg: #e8eaee; --muted: #a4acb8; --link: #8ab4f8; --line: #272b33; --panel: #171a21; --btn-line: #3b414c; --in-line: #767e8b;
    --ok: #6dd58c; --bad: #f2b8b5; --surface: #15181e; --accent: #8ab4f8; --on-accent: #0e1014; --tint: #1b2941; --seg-on: #2b303a;
    --warnbg: #2e2210; --warnfg: #ffcf99; --warnline: #a8752a; --resbg: #3d1a18; --resfg: #ffb4ab; --star: #ffc107; --chip: #1b2941;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014; --fg: #e8eaee; --muted: #a4acb8; --link: #8ab4f8; --line: #272b33; --panel: #171a21; --btn-line: #3b414c; --in-line: #767e8b;
  --ok: #6dd58c; --bad: #f2b8b5; --surface: #15181e; --accent: #8ab4f8; --on-accent: #0e1014; --tint: #1b2941; --seg-on: #2b303a;
  --warnbg: #2e2210; --warnfg: #ffcf99; --warnline: #a8752a; --resbg: #3d1a18; --resfg: #ffb4ab; --star: #ffc107; --chip: #1b2941;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* ---- base ---- */
body.visit { max-width: 62rem; margin: 0 auto 4rem; padding: 0 1.5rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); color: var(--link); padding: 0.4rem 0.8rem; z-index: 1000; }
.visit h1, .visit h2, .visit h3, .visit h4 { font-family: var(--head); }
.visit h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.2rem 0 0.4rem; }
.visit h2 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.25; }
.visit .muted { color: var(--muted); }
button, select, input[type=search] { font: inherit; color: var(--fg); }
button { background: var(--surface); border: 1px solid var(--btn-line); border-radius: 8px; padding: 0 0.85rem; cursor: pointer; min-height: 40px; font-size: 0.92rem; font-weight: 550; }
button:hover { background: var(--panel); }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
button[aria-pressed="true"] { background: var(--tint); color: var(--accent); border-color: var(--accent); }

/* ---- header bar ---- */
.v-top { display: flex; align-items: center; gap: 0.5rem 1.5rem; min-height: 56px; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.v-crumbs { font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.v-crumbs a { color: var(--fg); font-weight: 650; text-decoration: none; }
.v-crumbs a:hover { text-decoration: underline; }
.v-crumbs [aria-current] { color: var(--muted); }
.v-crumbs [aria-hidden] { color: var(--btn-line); margin: 0 0.15rem; }
.v-jump { margin-left: auto; display: flex; gap: 0 1.4rem; font-size: 0.92rem; }
.v-jump a { color: var(--fg); text-decoration: none; font-weight: 500; padding: 0.8rem 0; white-space: nowrap; }
.v-jump a:hover { color: var(--link); text-decoration: underline; }
.v-navn { display: inline-block; min-width: 1.2rem; text-align: center; font-size: 0.76rem; font-weight: 650; border-radius: 999px; padding: 0 0.35rem; background: var(--resbg); color: var(--resfg); }
.v-theme { margin-left: auto; border-color: transparent; background: transparent; width: 44px; min-height: 44px; padding: 0; font-size: 1.05rem; flex: none; }
.v-jump + .v-theme { margin-left: 0; }
@media (max-width: 860px) {
  .v-top { flex-wrap: wrap; row-gap: 0; }
  .v-jump { order: 3; flex: 1 1 100%; margin: 0 -1rem; padding: 0 1rem; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  .v-jump + .v-theme { margin-left: auto; }
}

/* ---- title ---- */
.v-hero { margin-bottom: 1.1rem; }
.v-betatag { display: inline-block; vertical-align: middle; font-family: inherit; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--btn-line); border-radius: 5px; padding: 0.1rem 0.4rem; margin-left: 0.3rem; position: relative; top: -0.15em; }
.v-lead { font-size: 1.05rem; max-width: 44rem; margin: 0.3rem 0; }
.v-note { font-size: 0.86rem; color: var(--muted); margin: 0.2rem 0 0; }
.v-beta { border-left: 3px solid var(--warnline); background: var(--warnbg); color: var(--warnfg); border-radius: 0 8px 8px 0; padding: 0.55rem 0.85rem; font-size: 0.92rem; }

/* ---- island switch: a segmented control (one track, the current choice raised) ---- */
.v-isles { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px; margin: 0 0 0.75rem; background: var(--panel); border-radius: 11px; max-width: 100%; box-sizing: border-box; }
.v-isles a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; box-sizing: border-box; padding: 0 0.9rem; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 550; font-size: 0.93rem; }
.v-isles a:hover { background: var(--line); }
.v-isles a[aria-current="true"] { background: var(--seg-on); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18); font-weight: 650; }
.v-isles .v-isn { font-weight: 400; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.v-isles a.v-issoon { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) { .v-isles { display: flex; } .v-isles a { flex: 1 1 auto; justify-content: center; padding: 0 0.6rem; } .v-isles a.v-issoon { display: none; } }

/* ---- search and filters ---- */
.v-controls { display: grid; gap: 0.6rem; margin: 0 0 0.5rem; }
.v-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v-row { display: grid; }
.v-bar .v-grow { flex: 1 1 14rem; }
.v-bar .v-row:not(.v-grow) { flex: 0 1 13rem; }
.v-row input, .v-row select { min-height: 44px; box-sizing: border-box; width: 100%; padding: 0 0.8rem; border: 1px solid var(--in-line); border-radius: 10px; background-color: var(--surface); }
.v-row input { padding-left: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788090' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0.8rem center; background-size: 1.1rem; }
.v-row select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788090' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 1rem; }
.v-row input::placeholder { color: var(--muted); opacity: 1; }
.v-filters { display: grid; gap: 0.5rem; }
.v-frow { display: flex; align-items: flex-start; gap: 0.6rem; }
.v-flab { flex: none; width: 2.6rem; padding-top: 0.55rem; font-size: 0.72rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.v-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.v-chips button { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 34px; padding: 0 0.75rem 0 0.6rem; border-radius: 999px; border-color: transparent; background: var(--panel); font-size: 0.87rem; font-weight: 500; }
.v-chips button:hover { background: var(--line); }
.v-chips button[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.v-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.v-kn { display: none; }
.v-tog { position: relative; display: inline-flex; }
.v-tog input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.v-tog span { display: inline-flex; align-items: center; min-height: 34px; box-sizing: border-box; padding: 0 0.8rem; border: 1px solid transparent; border-radius: 999px; background: var(--panel); font-size: 0.87rem; font-weight: 500; }
.v-tog:hover span { background: var(--line); }
.v-tog input:checked + span { background: var(--tint); border-color: var(--accent); color: var(--accent); font-weight: 650; }
.v-tog input:checked + span::before { content: "\2713\00a0"; }
.v-tog input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
/* Folds: "Filters" (phones only) and "Hiking Trail Options" */
.v-filters > summary, .v-layers > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.4rem; min-height: 40px; font-size: 0.92rem; font-weight: 550; }
.v-filters > summary::-webkit-details-marker, .v-layers > summary::-webkit-details-marker, .v-det > summary::-webkit-details-marker { display: none; }
.v-filters > summary::after, .v-layers > summary::after, .v-det > summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 0.2rem; opacity: 0.7; }
.v-filters[open] > summary::after, .v-layers[open] > summary::after, .v-det[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.v-layers { border: 1px solid var(--line); border-radius: 10px; padding: 0 0.85rem; }
.v-layers > summary::after { margin-left: auto; }
.v-layerbox { padding: 0 0 0.6rem; }
.v-layerbox > .v-lhint { margin: 0 0 0.5rem; }
.v-layergrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.2rem 1.5rem; }
.v-lset, .v-layers .v-more { border: 0; margin: 0; padding: 0; min-width: 0; }
.v-layers .v-more legend { padding: 0; font-weight: 650; font-size: 0.9rem; }
.v-layers .v-more .v-lhint { margin: 0.2rem 0 0.1rem; }
.v-trailtoggle { display: flex; align-items: flex-start; gap: 0.55rem; min-height: 40px; padding: 0.35rem 0; box-sizing: border-box; font-size: 0.92rem; }
.v-trailtoggle input { margin: 0.25rem 0 0; flex: none; width: 1rem; height: 1rem; accent-color: var(--accent); }
.v-lhint { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; line-height: 1.45; }
@media (max-width: 700px) {
  .v-filters > summary { border: 1px solid var(--btn-line); border-radius: 10px; padding: 0 0.85rem; min-height: 44px; background: var(--surface); }
  .v-filters > summary::after { margin-left: auto; }
  .v-filters[open] > summary { border-color: var(--accent); }
  .v-frow { display: block; }
  .v-flab { display: block; width: auto; padding: 0.2rem 0 0.35rem; }
  .v-bar .v-row:not(.v-grow) { flex: 1 1 100%; }
}
@media (min-width: 701px) { .v-filters > summary { display: none; } }

/* ---- the pinned count row ---- */
.v-status { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; padding: 0.5rem 0; margin: 0.4rem 0 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.v-status[hidden] { display: none; }
.v-status #v-count { margin: 0; font-weight: 650; font-size: 0.95rem; }
.v-status #v-reset { border-color: transparent; background: transparent; color: var(--link); padding: 0 0.3rem; font-weight: 500; text-decoration: underline; }
.v-statusr { margin-left: auto; display: flex; gap: 0.4rem; }
.v-view, .v-view:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---- trail search results, My trip ---- */
.v-paths, .v-trip { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; margin: 1rem 0; background: var(--panel); }
.v-paths h2, .v-trip h2 { font-size: 1rem; margin: 0 0 0.4rem; letter-spacing: 0; }
.v-paths ul { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.4rem; }
.v-paths li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; font-size: 0.93rem; }
.v-paths li button { margin-left: auto; min-height: 36px; }
.v-paths p, .v-trip p { font-size: 0.85rem; margin: 0.3rem 0 0; }
.v-trip ol { padding-left: 1.3rem; }
.v-trip li { margin: 0.4rem 0; }
.v-trip li button { min-height: 32px; font-size: 0.82rem; }

/* ---- the list: island, area, place ---- */
.v-isec > h2 { margin: 2rem 0 0.2rem; font-size: 1.5rem; }
.v-cnt { font-family: inherit; font-size: 0.82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 0.25rem; font-variant-numeric: tabular-nums; }
.v-islead { margin: 0.2rem 0 0.4rem; max-width: 44rem; color: var(--muted); font-size: 0.95rem; }
.v-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0.3rem 0 0; font-size: 0.88rem; }
.v-nav a { padding: 0.3rem 0; text-decoration: none; }
.v-nav a:hover { text-decoration: underline; }
.v-group { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.v-group h3 { margin: 1.9rem 0 0; padding-bottom: 0.5rem; font-family: inherit; font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.v-group h3 .v-cnt { letter-spacing: 0; }
.v-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.v-card, .v-group, .v-isec, .v-knowsec, .v-closedsec, .v-about, .v-trip, .v-paths { scroll-margin-top: 4.2rem; }
.v-card { padding: 1.05rem 0.75rem 0.95rem; margin: 0 -0.75rem; border-bottom: 1px solid var(--line); border-radius: 0; overflow-wrap: anywhere; }
.v-card[hidden], .v-group[hidden], .v-isec[hidden] { display: none; }
.v-card:target, .v-card.v-hit { background: var(--tint); border-radius: 10px; border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--accent); outline: none; }
.v-card h4 { margin: 0; font-size: 1.1rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
.v-star { color: var(--star); font-size: 0.9em; }
.v-meta { margin: 0.2rem 0 0.45rem; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.v-m + .v-m::before { content: "\00b7"; margin: 0 0.4rem; color: var(--muted); font-weight: 400; }
.v-kind { color: var(--fg); font-weight: 550; }
.v-kd { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.4rem; background: #455a64; }
/* Pin colours: the same table as COLORS in visit.js (keep the two in step). */
.v-kd[data-k="beach"] { background: #0b6fa4; } .v-kd[data-k="hike"] { background: #2e7d32; } .v-kd[data-k="view"] { background: #6a1b9a; }
.v-kd[data-k="water"] { background: #00838f; } .v-kd[data-k="adventure"] { background: #c62828; } .v-kd[data-k="park"] { background: #558b2f; }
.v-kd[data-k="history"] { background: #8d6e63; } .v-kd[data-k="museum"] { background: #5d4037; } .v-kd[data-k="wildlife"] { background: #ef6c00; }
.v-kd[data-k="food"] { background: #ad1457; } .v-kd[data-k="market"] { background: #f9a825; } .v-kd[data-k="show"] { background: #d81b60; }
.v-free { color: var(--ok); font-weight: 650; }
.v-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0.1rem 0 0.5rem; font-size: 0.85rem; }
.v-tag, .kh-tag { display: inline-block; font-size: 0.76rem; font-weight: 650; border-radius: 6px; padding: 0.12rem 0.5rem; }
.v-res { background: var(--resbg); color: var(--resfg); }
.v-rsv { background: var(--warnbg); color: var(--warnfg); }
.v-blurb { margin: 0.3rem 0; font-size: 0.97rem; }
.v-tip, .v-haz { margin: 0.45rem 0; font-size: 0.9rem; line-height: 1.5; }
.v-tip strong, .v-haz strong { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 0.45rem; }
.v-tip strong { color: var(--muted); }
.v-haz, .v-warn { border-left: 3px solid var(--warnline); background: var(--warnbg); color: var(--warnfg); border-radius: 0 8px 8px 0; padding: 0.5rem 0.75rem; }
.v-warn { font-size: 0.86rem; margin: 0.45rem 0; }
.v-det { margin: 0.2rem 0; }
.v-det > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; list-style: none; font-size: 0.86rem; font-weight: 550; color: var(--fg); }
.v-det > summary:hover { color: var(--link); }
.v-facts { margin: 0.2rem 0 0.5rem; padding: 0.75rem 0.9rem; display: grid; gap: 0.55rem; font-size: 0.9rem; background: var(--panel); border-radius: 10px; }
.v-card.v-hit .v-facts, .v-card:target .v-facts { background: var(--surface); }
.v-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; }
.v-facts dt { color: var(--muted); font-size: 0.82rem; padding-top: 0.08rem; }
.v-facts dd { margin: 0; }
@media (max-width: 480px) { .v-facts div { grid-template-columns: 1fr; gap: 0; } }
.v-near { margin: 0.5rem 0; font-size: 0.9rem; }
.v-near p { margin: 0 0 0.2rem; }
.v-near ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.15rem; }
.v-near .v-when { color: var(--muted); white-space: nowrap; }
.v-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.1rem; margin: 0.6rem 0 0.35rem; font-size: 0.88rem; }
.v-links > a { font-weight: 550; text-decoration: none; padding: 0.4rem 0; }
.v-links > a:hover { text-decoration: underline; }
.v-links > a[target="_blank"]::after { content: "\00a0\2197"; font-size: 0.85em; }
.v-links .v-acts { display: inline-flex; gap: 0.4rem; }
.v-links .v-save, .v-links .v-onmap { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 34px; padding: 0 0.7rem 0 0.55rem; font-size: 0.85rem; }
.v-onmap::before, .v-save::before { content: ""; width: 0.95rem; height: 0.95rem; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.v-onmap { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.v-save { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v17l-6-4.5L6 21Z'/%3E%3C/svg%3E"); }
.v-save[aria-pressed="true"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 4h12v17l-6-4.5L6 21Z'/%3E%3C/svg%3E"); }
.v-src { margin: 0; font-size: 0.78rem; }
.v-src a { color: inherit; }

/* ---- the sections under the list ---- */
.v-after { margin-top: 3rem; }
.v-knowsec, .v-closedsec, .v-guides, .v-about { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.v-knowsec h2, .v-closedsec h2, .v-guides h2, .v-about h2 { margin: 0 0 0.6rem; }
.v-knowsec h3 { margin: 1.4rem 0 0.4rem; font-size: 0.76rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: inherit; }
.v-know { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.9rem; }
.v-know p { margin: 0.15rem 0 0; font-size: 0.92rem; }
.v-closedlist { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0.5rem 1rem; font-size: 0.93rem; }
.kh-tag { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.68rem; margin-right: 0.3rem; vertical-align: 0.08em; }
.kh-warning .kh-tag { color: var(--resfg); background: var(--resbg); }
.kh-must .kh-tag { color: var(--warnfg); background: var(--warnbg); }
.kh-tip .kh-tag { color: var(--muted); background: var(--panel); }
.v-knowbox { border: 1px solid var(--line); border-radius: 10px; padding: 0.4rem 0.9rem; margin: 1rem 0; }
.v-knowbox summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.v-soon { font-size: 0.9rem; }
.v-about { font-size: 0.9rem; color: var(--muted); }
.v-about h2 { color: var(--fg); font-size: 1rem; }
.v-guides li { margin: 0.4rem 0; font-size: 0.93rem; }

/* ---- map ---- */
.v-side { min-width: 0; }
#v-mapwrap { position: relative; }
#v-mapwrap[hidden] { display: none; }
#v-map { isolation: isolate; height: 68vh; height: 68dvh; min-height: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.v-legend { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.v-legend p { margin: 0.4rem 0 0; }
.v-mapkey { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1rem; }
.v-key { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.v-mapkey[hidden] { display: none; }
.v-mapkey .v-keybig { display: inline-block; border-radius: 50%; background: #455a64; border: 2px solid #fff; box-shadow: 0 0 0 1px #455a64; }
.v-mapkey .v-keybig { width: 0.9rem; height: 0.9rem; }
/* A closed place: faded kind color in a red ring with a slash (a "no entry" sign). .v-nopin is the map pin, .v-keyno its key. */
.v-nopin, .v-keyno { position: relative; box-sizing: border-box; border-radius: 50%; border: 2px solid #b71c1c; background: #fff; overflow: hidden; }
.v-nopin span { position: absolute; inset: 0; opacity: 0.35; }
.v-nopin::after, .v-keyno::after { content: ""; position: absolute; left: 50%; top: -25%; width: 2px; height: 150%; margin-left: -1px; background: #b71c1c; transform: rotate(-45deg); }
.v-keyno { display: inline-block; width: 0.9rem; height: 0.9rem; }
.v-nopin:focus-visible { outline: 3px solid #0b57d0; outline-offset: 2px; }
.v-netkey:not([hidden]) { display: block; margin-top: 0.25rem; }
.v-linekeys:not(:has(> span:not([hidden]))) { display: none; }
.visit .leaflet-container { font-family: inherit; }
.visit .leaflet-control-attribution { font-size: 0.68rem; }
.visit .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow); }
.visit .leaflet-popup-content { margin: 0.8rem 1rem; font-size: 0.85rem; line-height: 1.45; }
.visit .leaflet-popup-content strong { font-size: 0.95rem; }

@media (max-width: 1099px) {
  body.v-one { padding: 0 1rem; }
  #v-app:not(.v-showmap) .v-side { display: none; }
  #v-app.v-showmap #v-groups, #v-app.v-showmap #v-paths, #v-app.v-showmap .v-after, #v-app.v-showmap .v-hero { display: none; }
  .v-side { margin-top: 0.75rem; }
}
@media (min-width: 760px) and (max-width: 1099px) { .v-facts div { grid-template-columns: 7.5rem minmax(0, 1fr); } }

/* ---- wide screens: the list beside a pinned, full-height map ---- */
@media (min-width: 1100px) {
  body.v-one { max-width: none; margin: 0; padding: 0; }
  body.v-one .v-top { margin: 0; padding: 0 1.75rem; position: sticky; top: 0; z-index: 10; height: 56px; box-sizing: border-box; background: var(--bg); }
  .v-status { top: 56px; }
  .v-card, .v-group, .v-isec, .v-knowsec, .v-closedsec, .v-about, .v-trip, .v-paths { scroll-margin-top: 7.6rem; }
  .v-split { display: grid; grid-template-columns: minmax(0, min(54%, 47rem)) minmax(0, 1fr); align-items: start; }
  .v-main { padding: 1.6rem 1.75rem 4rem; min-width: 0; }
  .v-side { position: sticky; top: 56px; height: calc(100vh - 56px); }
  /* The right column: search and filters on top (visit.js moves them here), the map filling what is left. */
  .v-split > .v-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; }
  .v-split > .v-main { grid-column: 1; grid-row: 1; }
  .v-side > .v-controls { flex: none; margin: 0; padding: 0.2rem 0.25rem 0.8rem; max-height: 58%; overflow-y: auto; scrollbar-width: thin; }
  .v-side > .v-controls .v-layergrid { grid-template-columns: minmax(0, 1fr); }
  .v-side > .v-controls { gap: 0.45rem; }
  .v-side .v-chips { gap: 0.3rem; }
  .v-side .v-chips button, .v-side .v-tog span { min-height: 30px; font-size: 0.83rem; padding: 0 0.65rem 0 0.55rem; }
  .v-side .v-tog span { padding: 0 0.7rem; }
  .v-side .v-flab { padding-top: 0.45rem; }
  .v-side .v-layers > summary { min-height: 36px; }
  .v-mapoff .v-bar .v-row, .v-nomap .v-bar .v-row { flex: 1 1 100%; }
  #v-mapwrap:not([hidden]) { flex: 1 1 0; min-height: 11rem; }
  #v-map { position: absolute; inset: 0; height: auto; min-height: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .v-legend { position: absolute; left: 0.9rem; bottom: 1.4rem; z-index: 2; max-width: min(24rem, calc(100% - 1.8rem)); max-height: 45%; overflow: auto; background: var(--surface); color: var(--fg); border-radius: 10px; box-shadow: var(--shadow); font-size: 0.76rem; }
  .v-legend p { margin: 0; padding: 0.45rem 0.7rem; }
  .v-legend p + p { padding-top: 0; }
  /* "Hide map": the list widens and the filters keep the pinned column to themselves. */
  .v-mapoff #v-mapwrap { display: none; }
  .v-mapoff .v-split, .v-nomap .v-split { grid-template-columns: minmax(0, 52rem) 21rem; justify-content: center; }
  .v-mapoff .v-side > .v-controls, .v-nomap .v-side > .v-controls { max-height: 100%; }
}
.v-nomap .v-view, .v-nomap .v-onmap, .v-nomap #v-mapwrap { display: none; }
@media (max-width: 1099px) { .v-nomap .v-side { display: none; } }

@media (prefers-reduced-motion: no-preference) { button, .v-chips button, .v-tog span, .v-isles a { transition: background-color 0.12s, border-color 0.12s; } }
@media print {
  .v-top, .v-controls, .v-isles, .v-nav, .v-status, .v-side, .v-after, #v-groups, #v-paths, .v-knowbox, #v-trip-copy, #v-trip-print, #v-trip-clear, .v-beta { display: none !important; }
  #v-trip { display: block !important; border: none; }
}

/* ================= Look C: guidebook. Warm paper, serif headings, green accent, each place a card, the map framed ================= */
body.v-look-c {
  --bg: #faf7f1; --fg: #1d221f; --muted: #5b625c; --link: #17573f; --line: #e5dfd2; --panel: #f1ece2; --btn-line: #cfc8b9; --in-line: #8a8676;
  --surface: #ffffff; --accent: #17573f; --on-accent: #ffffff; --tint: #e4efe8; --seg-on: #ffffff; --chip: #e4efe8;
  --head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background: var(--bg); color: var(--fg);
}
:root[data-theme="dark"] body.v-look-c {
  --bg: #121512; --fg: #e9ebe6; --muted: #a9b0a8; --link: #8fd3b1; --line: #2a2f2a; --panel: #1a1e1a; --btn-line: #3d443d; --in-line: #788077;
  --surface: #191d19; --accent: #8fd3b1; --on-accent: #0f1410; --tint: #1c2c24; --seg-on: #2c332d; --chip: #1c2c24;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.v-look-c {
  --bg: #121512; --fg: #e9ebe6; --muted: #a9b0a8; --link: #8fd3b1; --line: #2a2f2a; --panel: #1a1e1a; --btn-line: #3d443d; --in-line: #788077;
  --surface: #191d19; --accent: #8fd3b1; --on-accent: #0f1410; --tint: #1c2c24; --seg-on: #2c332d; --chip: #1c2c24;
} }
.v-look-c a { color: var(--link); }
.v-look-c h1 { font-weight: 600; letter-spacing: -0.01em; font-size: clamp(2rem, 1.3rem + 2vw, 2.7rem); }
.v-look-c .v-isec > h2 { font-size: 1.8rem; font-weight: 600; }
.v-look-c .v-card h4 { font-size: 1.22rem; font-weight: 600; letter-spacing: 0; }
.v-look-c .v-crumbs a { font-family: var(--head); font-size: 1.05rem; }
.v-look-c .v-list { gap: 0.9rem; padding-top: 0.9rem; }
.v-look-c .v-card { margin: 0; padding: 1.15rem 1.3rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(60, 50, 30, 0.05); }
.v-look-c .v-card:target, .v-look-c .v-card.v-hit { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); border-radius: 14px; }
.v-look-c .v-card.v-hit .v-facts, .v-look-c .v-card:target .v-facts { background: var(--panel); }
.v-look-c .v-group h3 { border-bottom: 0; padding-bottom: 0; color: var(--accent); }
.v-look-c .v-chips button, .v-look-c .v-tog span { background: var(--surface); border-color: var(--btn-line); }
.v-look-c .v-chips button[aria-pressed="true"], .v-look-c .v-tog input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.v-look-c .v-chips button[aria-pressed="true"] .v-dot { box-shadow: 0 0 0 1.5px var(--on-accent); }
.v-look-c .v-isles { background: transparent; padding: 0; gap: 1.4rem; border-radius: 0; border-bottom: 1px solid var(--line); display: flex; }
.v-look-c .v-isles a { padding: 0; border-radius: 0; min-height: 44px; border-bottom: 3px solid transparent; margin-bottom: -1px; font-family: var(--head); font-size: 1.08rem; }
.v-look-c .v-isles a:hover { background: transparent; border-bottom-color: var(--btn-line); }
.v-look-c .v-isles a[aria-current="true"] { background: transparent; box-shadow: none; border-bottom-color: var(--accent); color: var(--accent); }
.v-look-c .v-isles .v-isn, .v-look-c .v-isles a.v-issoon { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.v-look-c .v-isles a.v-issoon { margin-left: auto; font-size: 0.85rem; }
@media (max-width: 600px) { .v-look-c .v-isles a { flex: 0 0 auto; } .v-look-c .v-isles { gap: 1.1rem; } }
@media (min-width: 1100px) {
  body.v-one.v-look-c { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
  body.v-one.v-look-c .v-top { padding: 0; }
  .v-look-c .v-split { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 2.25rem; }
  .v-look-c .v-main { padding: 1.75rem 0 4rem; }
  .v-look-c .v-mapoff .v-split, .v-look-c .v-nomap .v-split { grid-template-columns: minmax(0, 52rem) 21rem; justify-content: center; }
  .v-look-c .v-side { top: calc(56px + 1.25rem); height: calc(100vh - 56px - 2.5rem); margin-top: 1.25rem; }
  .v-look-c #v-map { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
}
