@font-face {
  font-family: Overpass;
  src: url("overpass-latin.woff") format("woff");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed Caps";
  src: url("barlow-condensed-caps.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0a1622;
  --panel: #0f1d2a;
  --raised: #162737;
  --hover: #213648;
  --line: #2a3d4e;
  --ink: #eef7f8;
  --muted: #a6b9c5;
  --mint: #68f2c3;
  --mint-ink: #09251d;
  --water: #285275;
  --side-width: 324px;
  --top-height: 58px;
  --intro-height: 38px;
  --top-inset: env(safe-area-inset-top, 0px);
  --bottom-inset: env(safe-area-inset-bottom, 0px);
  --shadow: 0 8px 24px #050c1670;
  font: 14px/1.4 Overpass, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
button:hover { background: var(--hover); }
button:disabled { opacity: .46; cursor: default; }
a { color: var(--mint); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
::selection { color: var(--mint-ink); background: var(--mint); }
input, textarea, select { accent-color: var(--mint); caret-color: var(--mint); }
.ui-icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.accent-button { border-color: transparent; background: var(--mint); color: var(--mint-ink); font-weight: 800; }
.accent-button:hover { background: #92f7d6; }

.app-bar {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(0, auto) minmax(115px, 1fr);
  gap: 10px;
  align-items: center;
  height: calc(var(--top-height) + var(--top-inset));
  padding: var(--top-inset) 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 0; color: var(--ink); text-decoration: none; font: 800 21px/1 Montserrat, sans-serif; letter-spacing: -.035em; }
.brand span span { color: var(--mint); }
.brand img { display: block; }
.app-bar h1 { margin: 0; font-size: clamp(14px, 1.55vw, 19px); font-weight: 700; line-height: 1.2; text-align: center; text-wrap: balance; }
.app-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.app-tools button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; font-weight: 700; }
.app-tools #aboutMap { background: transparent; }

.map-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--intro-height); padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; line-height: 1.2; }
.map-intro p { margin: 0; }
.map-intro a { flex: none; }
.layout { position: relative; display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); height: calc(100dvh - var(--top-height) - var(--intro-height) - var(--top-inset)); min-height: 360px; }
.layout.sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
.layout:fullscreen { height: 100dvh; }
.sidebar { position: relative; z-index: 520; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-right: 1px solid var(--line); background: var(--panel); }
.sidebar-masthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px 8px; }
.sidebar-masthead h2 { margin: 0; font: 700 22px/1.18 Montserrat, sans-serif; letter-spacing: -.028em; }
#closeSidebar { display: grid; place-items: center; min-width: 34px; background: transparent; color: var(--muted); border-color: transparent; padding: 0; }
#closeSidebar:hover { background: var(--raised); color: var(--ink); }
.sidebar-tabs { display: flex; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.sidebar-tabs button { flex: 1; min-height: 38px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-weight: 700; }
.sidebar-tabs button:hover { color: var(--ink); }
.sidebar-tabs button[aria-selected=true] { color: var(--mint); border-bottom-color: var(--mint); }
.sidebar-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sidebar-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #3b5466 var(--panel); }
.sidebar-tools { flex: none; padding: 12px 16px 0; }
.search-line { display: flex; gap: 8px; align-items: center; min-width: 0; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--muted); }
.search-line:focus-within { border-color: var(--mint); }
.search-line input { width: 100%; min-width: 0; padding: 8px 0; outline: none; border: 0; background: transparent; color: var(--ink); }
.search-line input::placeholder { color: var(--muted); opacity: 1; }
#searchOptions { list-style: none; max-height: min(205px, 30dvh); margin: 5px 0 0; padding: 3px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
#searchOptions li { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 5px; cursor: pointer; }
#searchOptions li:hover, #searchOptions li[aria-selected=true] { background: var(--hover); }
.result-copy, #searchOptions small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-copy { flex: 1; min-width: 0; }
#searchOptions small { max-width: 40%; color: var(--muted); font-size: 11px; }
#searchStatus { margin: 5px 1px 0; color: var(--muted); font-size: 12px; }
.sidebar-actions, .feature-tools { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.sidebar-actions button { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.sidebar-actions button:hover { color: var(--ink); }
.sidebar-actions button[aria-pressed=true] { color: var(--mint); border-color: #3b947e; }
.feature-tools { flex-wrap: wrap; font-size: 12px; }
.feature-tools button { font-size: 12px; }
#categories { padding: 0 11px 6px 16px; }
.category-group { padding: 6px 0; }
.category-group + .category-group { border-top: 1px solid var(--line); }
.filter-initial h3 { margin: 0; padding: 8px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; }
.filter-initial ul { margin: 0; padding: 0; list-style: none; }
.filter-initial li { display: flex; align-items: center; justify-content: space-between; min-height: 37px; padding: 3px 9px 3px 5px; }
.filter-initial li span { color: var(--muted); font-size: 11px; }
.group-heading { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 0 0 2px; }
.group-heading label { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; cursor: pointer; }
.group-heading label span { font-size: 11px; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; color: var(--muted); }
.group-heading input { appearance: none; position: relative; order: 2; flex: none; width: 26px; height: 15px; margin: 0 0 0 auto; border: 1px solid #526574; border-radius: 20px; background: var(--canvas); cursor: pointer; }
.group-heading input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.group-heading input:checked { background: var(--mint); border-color: var(--mint); }
.group-heading input:checked::after { transform: translateX(11px); background: var(--mint-ink); }
.group-heading input:indeterminate { background: #294c4b; border-color: #5b988b; }
.group-heading input:indeterminate::after { transform: translateX(5px); background: var(--mint); }
.group-fold, .category-row > button { display: grid; place-items: center; flex: none; width: 29px; height: 29px; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--muted); }
.group-fold[aria-expanded=true] svg { transform: rotate(180deg); }
.category-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; position: relative; min-height: 37px; padding: 3px 0 3px 5px; border-radius: 7px; cursor: pointer; }
.category-row:hover { background: var(--raised); }
.category-row:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: -1px; }
.category-row > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sidebar-marker { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 1px 3px #050c1680; }
.sidebar-marker svg { width: 14px; height: 14px; }
.category-row:has(input:not(:checked)) .sidebar-marker { filter: grayscale(1); opacity: .58; }
.category-row:has(input:not(:checked)) .category-name { color: var(--muted); }
.category-row-text { display: flex; align-items: center; gap: 7px; min-width: 0; }
.category-title { min-width: 0; overflow-wrap: anywhere; }
.category-name { color: inherit; text-decoration: none; font-weight: 600; }
.category-name:hover { text-decoration: underline; }
.category-new { margin-left: 4px; color: var(--mint); white-space: nowrap; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.category-row small { flex: none; margin-left: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.category-count-word { display: none; }
.category-row > button:hover, .group-fold:hover { color: var(--mint); }

#myMap { padding: 12px 16px; }
.saved-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.my-map-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: baseline; gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.my-map-row summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.my-map-row small, .my-map-row details p { color: var(--muted); font-size: 12px; }
.my-map-row details button { display: block; width: 100%; margin: 5px 0 0; text-align: left; }
.sidebar-footer { flex: none; display: grid; gap: 6px; padding: 11px 16px calc(12px + var(--bottom-inset)); border-top: 1px solid var(--line); background: var(--panel); }
.progress-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 12px; }
.progress-meta span { color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar-footer progress { appearance: none; width: 100%; height: 4px; border: 0; overflow: hidden; border-radius: 999px; background: var(--line); color: var(--mint); accent-color: var(--mint); }
.sidebar-footer progress::-webkit-progress-bar { background: var(--line); }
.sidebar-footer progress::-webkit-progress-value { background: var(--mint); }
.progress-actions { display: flex; justify-content: space-between; gap: 5px; }
.progress-actions button { padding: 1px 0; min-height: 27px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.progress-actions button:hover { color: var(--ink); }
.add-pin { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 39px; }

.map { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--water); }
#mapViewport { position: absolute; inset: 0; background: var(--water); }
.map-preview { position: absolute; z-index: 401; inset: 0; background: url('map-preview.webp') center / contain no-repeat; filter: brightness(.80) saturate(.79) hue-rotate(-5deg); pointer-events: none; }
#map.map-ready .map-preview { visibility: hidden; }
#mapViewport .leaflet-tile-pane { filter: brightness(.80) saturate(.79) hue-rotate(-5deg); }
.placing-pin #mapViewport, .placing-pin #mapViewport * { cursor: crosshair; }
.map-context, .controls button, #mapOpenSidebar, #mapNotice, .credit { position: absolute; z-index: 500; background: var(--canvas); color: var(--ink); }
.map-context { top: 12px; right: 12px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 110px); padding: 7px 10px; border: 1px solid #405268; border-radius: 8px; font-size: 12px; font-weight: 700; }
.map-context > span + span { padding-left: 9px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 400; white-space: nowrap; }
.map-context b { color: var(--mint); font-weight: 800; font-variant-numeric: tabular-nums; }
#mapOpenSidebar { top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; min-height: 39px; border-color: #405268; font-weight: 700; }
.controls { position: absolute; right: 12px; bottom: calc(34px + var(--bottom-inset)); display: grid; gap: 7px; }
.controls button { position: relative; display: grid; place-items: center; width: 41px; height: 41px; padding: 0; border-color: #405268; border-radius: 7px; }
.controls .zoom-controls { display: grid; gap: 0; }
.zoom-controls button:first-child { border-radius: 7px 7px 0 0; }
.zoom-controls button:last-child { margin-top: -1px; border-radius: 0 0 7px 7px; }
.controls button:hover, #mapOpenSidebar:hover, .credit:hover { background: var(--hover); }
#mapNotice { top: 60px; left: 50%; width: max-content; max-width: calc(100% - 24px); transform: translateX(-50%); border: 1px solid #3b947e; border-radius: 8px; padding: 8px 12px; color: var(--mint); text-align: center; }
.credit { left: 12px; bottom: calc(8px + var(--bottom-inset)); min-height: 24px; padding: 3px 8px; border: 0; border-radius: 4px; color: var(--muted); font-size: 11px; }
#drawerBackdrop { position: absolute; inset: 0; z-index: 510; background: #07101b91; }
.county-label { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; color: #e9f4f8; font: 600 16px/1 "Barlow Condensed Caps", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 3px #071522, 0 1px 3px #071522; }
.counties-close .county-label { display: none; }
.counties-close path.county-hit { pointer-events: none; }
.pin-shell { background: transparent; border: 0; }
.pin { display: grid; position: relative; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 2px 4px #0715229e; }
.pin svg { width: 74%; height: 74%; }
.pin-far .pin-shell .pin { transform: scale(.80); }
.pin-found { opacity: .55; }
.pin-selected { outline: 2px solid var(--mint); outline-offset: 2px; }
.pin-number, .saved-pin-badge { position: absolute; top: -5px; right: -6px; padding: 1px 4px; border-radius: 8px; background: var(--mint); color: var(--mint-ink); font: 800 10px/1.25 Overpass, sans-serif; }
.saved-pin-badge svg { display: block; width: 9px; height: 9px; }
.marker-cluster { display: grid; place-items: center; border-radius: 9px; background: var(--canvas); border: 1px solid var(--mint); color: var(--ink); font-weight: 800; }
.cluster-content { display: flex; align-items: center; gap: 3px; font-size: 11px; font-variant-numeric: tabular-nums; }
.cluster-content svg { width: 11px; height: 11px; color: var(--mint); }

.leaflet-container { font-family: inherit; }
.leaflet-tooltip { border: 0; background: var(--canvas); color: var(--ink); }
.leaflet-tooltip-top:before { border-top-color: var(--canvas); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--canvas); color: var(--ink); }
.place-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; }
.place-popup .leaflet-popup-content { margin: 0; }
.place-popup .detail { position: relative; width: min(294px, calc(100vw - 44px)); max-height: min(480px, calc(var(--map-height, 700px) * .74)); overflow: auto; padding: 13px; border-radius: 12px; font: 13px/1.4 Overpass, sans-serif; }
#screenshotLink { display: block; margin: -13px -13px 10px; }
#screenshot { display: block; width: 100%; height: 124px; object-fit: cover; background: var(--raised); }
.close { position: absolute; z-index: 1; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; background: var(--canvas); border-color: transparent; }
.close .ui-icon { width: 15px; height: 15px; }
.place-new { position: absolute; top: 8px; left: 8px; border-radius: 4px; padding: 2px 5px; background: var(--mint); color: var(--mint-ink); font-weight: 800; }
.place-heading { display: flex; align-items: flex-start; gap: 5px; justify-content: space-between; margin: 11px 0 3px; padding-right: 18px; }
.place-with-image .place-heading { margin-top: 0; padding-right: 0; }
.place-heading h2 { margin: 0; color: var(--ink); font: 700 17px/1.23 Montserrat, sans-serif; overflow-wrap: anywhere; }
.place-tools { display: flex; flex: none; gap: 2px; }
.place-tools button { display: grid; place-items: center; width: 27px; min-height: 26px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.place-tools button:hover, .place-tools button[aria-pressed=true] { color: var(--mint); }
.place-tools button[aria-pressed=true] svg { fill: currentColor; }
.place-tools .ui-icon { width: 15px; height: 15px; }
.place-subheading { display: flex; gap: 6px; align-items: center; margin: 0 0 7px; color: var(--muted); font-size: 12px; }
#category { display: flex; align-items: center; gap: 4px; color: var(--ink); }
#category svg { width: 13px; height: 13px; }
#placeIndex { padding-inline: 5px; border-radius: 4px; background: var(--raised); }
.place-popup .detail p { margin: 6px 0; }
.place-credit { color: var(--muted); font-size: 11px; }
.place-found { display: flex; align-items: center; gap: 5px; width: fit-content; margin: 8px 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.place-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
#noteButton { min-height: 27px; padding: 0 3px; border: 0; background: transparent; color: var(--mint); font-size: 12px; }
#noteButton:hover { text-decoration: underline; }
.place-nav, .detail-actions, .form-actions { display: flex; gap: 6px; align-items: center; }
.place-nav { justify-content: space-between; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.place-nav button { min-height: 28px; padding: 3px 5px; }
.place-popup .leaflet-popup-content a { color: var(--mint); }
.place-popup .place-nav a { font-size: 12px; }
.detail-actions { margin-top: 8px; }
.spot-menu { display: grid; gap: 5px; min-width: 150px; }
.spot-menu button { text-align: left; }

dialog { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); scrollbar-width: thin; scrollbar-color: #4e6578 var(--panel); }
dialog::backdrop { background: #06101bb0; }
.map-info-dialog { width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 18px; overflow: auto; }
.map-info-dialog h2 { margin: 0 36px 9px 0; font: 750 19px/1.2 Montserrat, sans-serif; }
.map-info-dialog h3 { margin: 16px 0 6px; font-size: 14px; }
.map-info-dialog p { color: var(--muted); }
.map-dialog-close { position: absolute; right: 9px; top: 9px; }
.map-dialog-close button { width: 34px; padding: 0; }
.map-dialog-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.credit-list { padding-left: 18px; margin: 6px 0 10px; color: var(--muted); }
.credit-list li + li { margin-top: 7px; }
.progress-dialog select, #pinForm input, #pinForm textarea, #noteForm textarea { width: 100%; margin: 3px 0 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); color: var(--ink); }
#pinForm, #noteForm { margin: 10px 0; }
.reset-action { color: #ffd4cf; }
.category-places { list-style: none; padding: 0; margin: 0; }
.category-places li + li { border-top: 1px solid var(--line); }
.category-places button { display: block; width: 100%; background: transparent; border: 0; text-align: left; }
.category-places button:hover { background: var(--raised); color: var(--mint); }
.image-dialog { max-width: min(970px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 9px; }
.image-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-bottom: 7px; }
.image-dialog h2 { font-size: 16px; margin: 0; }
.image-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 86px); object-fit: contain; margin: auto; }

.map-guide { width: min(100% - 32px, 960px); margin-inline: auto; padding: 30px 0 48px; line-height: 1.65; font-size: 16px; }
.map-guide section { padding: 21px 0; border-bottom: 1px solid var(--line); }
.map-guide h2 { margin: 0 0 12px; color: var(--ink); font-size: clamp(21px, 4vw, 28px); line-height: 1.2; }
.map-guide h3, .map-guide dt { margin: 0 0 4px; font-size: 17px; font-weight: 750; }
.map-guide p, .map-guide dd { max-width: 72ch; color: var(--muted); }
.map-guide dd, .map-guide p { margin: 0 0 10px; }
.map-guide time { color: var(--mint); font-size: 14px; }
.guide-steps { display: grid; gap: 5px; max-width: 76ch; padding-inline-start: 24px; color: var(--muted); }
.guide-steps li::marker { color: var(--mint); }
.layer-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 15px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; margin: 0; }
.guide-details details { border-bottom: 1px solid var(--line); }
.guide-details details:last-child { border-bottom: 0; }
.guide-details summary { cursor: pointer; padding: 7px 0; color: var(--ink); font-weight: 700; }
.guide-details details p, .guide-details details ul { padding-inline-start: 18px; }
.locations summary span + span { float: inline-end; margin-inline-start: 8px; color: var(--muted); font-weight: 400; }
.locations ul { columns: 2; }
.locations li { break-inside: avoid; }
.map-guide > p:last-child { padding-top: 18px; }

@media (max-width: 699px) {
  :root { --top-height: 86px; --intro-height: 42px; }
  .app-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 47px auto; gap: 0 6px; padding-inline: 10px; }
  .app-bar h1 { grid-column: 1 / -1; grid-row: 2; padding-bottom: 4px; }
  .app-tools { gap: 4px; }
  .app-tools #shareMap span { display: none; }
  .map-intro { padding-inline: 10px; font-size: 12px; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .layout, .layout.sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: absolute; inset: 0 auto 0 0; width: min(335px, calc(100% - 30px)); }
  .sidebar-masthead { padding-block: 8px 4px; }
  .sidebar-masthead h2 { font-size: 20px; }
  .map-context { right: 8px; top: 10px; gap: 0; padding: 6px 8px; }
  .map-context > span:first-child { display: none; }
  .map-context > span + span { padding: 0; border: 0; }
  #mapOpenSidebar { left: 8px; top: 10px; }
  .controls { right: 8px; }
  .controls button { width: 42px; height: 42px; }
  .category-row > button, .group-fold { min-width: 34px; min-height: 32px; }
  .county-label { font-size: 13px; }
  .place-popup .detail { max-height: min(430px, calc(var(--map-height, 700px) * .68)); }
  #screenshot { height: 104px; }
  .guide-grid { grid-template-columns: 1fr; }
  .locations ul { columns: 1; }
}
@media (max-height: 600px) {
  .sidebar-footer { padding-block: 7px calc(7px + var(--bottom-inset)); gap: 3px; }
  .sidebar-masthead { padding-block: 6px 2px; }
  .sidebar-tabs button { min-height: 32px; }
  #searchOptions { max-height: 25dvh; }
}

