:root {
--bg: #FFFFFF; --ink: #0F172A; --muted: #64748B; --line: #E2E8F0; --accent: #0284C7;
--header-bg: rgba(255, 255, 255, 0.92); --border-subtle: rgba(15, 23, 42, 0.07);
--serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
--header-h: 54px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
.site-header {
flex: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px;
background: var(--header-bg); border-bottom: 1px solid var(--border-subtle);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.32rem/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-icon { flex: none; width: 32px; height: 32px; }
.brand-name span { color: var(--accent); }
.disclaimer { font-size: 13px; color: var(--muted); white-space: nowrap; }
.site-header { position: relative; z-index: 30; }
.header-right { display: flex; align-items: center; gap: 12px; }
.site-menu { position: relative; }
.site-menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line);
border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-menu summary .i { width: 22px; height: 22px; }
.site-menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 6px 0; background: #fff;
border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14); }
.site-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px;
color: var(--ink); font-size: 15px; line-height: 1.35; text-decoration: none; }
.site-menu nav a:hover, .site-menu nav a:focus-visible { background: #F1F5F9; outline: none; }
.site-menu nav a[aria-current] { font-weight: 600; }
.site-menu nav .i { width: 15px; height: 15px; color: var(--muted); }
.about { flex: 1; overflow-y: auto; padding: 22px 20px 40px; }
.about > div { max-width: 640px; margin: 0 auto; }
.about h1 { font: 700 1.6rem/1.2 var(--serif); letter-spacing: -0.01em; margin: 14px 0; }
.about p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; }
.about p a { color: var(--accent); }
.map-wrap { position: relative; flex: 1; min-height: 0; }
.map { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; outline: none; user-select: none; }
.map.grabbing { cursor: grabbing; }
.map svg, .map svg *, .map img { pointer-events: none; }
.map svg [data-code], .map svg text[data-label] { pointer-events: auto; }
.map, .map * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.map > .grab-cover { position: absolute; inset: 0; cursor: grabbing; pointer-events: none; }
.map:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.map > .view { position: absolute; inset: 0; transform-origin: 50% 50%; }
.map > .view > svg, .map > .names-view > svg { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.map > .names-view { position: absolute; inset: 0; pointer-events: none; }
.map > .names-view svg { overflow: visible; }
.map > .names-view [data-code], .map > .names-view [data-label] { pointer-events: auto; }
.map > .names-view > .sprites { position: absolute; inset: -100%; pointer-events: none; opacity: 0.001; }
.map svg.sp { position: absolute; left: 0; top: 0; overflow: visible; will-change: transform; transform-origin: 0 0; }
.map svg.sp * { animation: none; pointer-events: none; }
.map > canvas.gpu { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map > .backdrop { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.map-status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.map.ready .map-status { display: none; }
.map-controls { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; background: #fff;
border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.map-controls button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: #fff; color: var(--ink); cursor: pointer; }
.map-controls button + button { border-top: 1px solid var(--line); }
.map-controls button:hover { background: #F1F5F9; }
.map-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.map-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map svg .has-page { cursor: pointer; }
.map.hover-parks svg [data-code], .map.hover-parks svg text[data-label] { cursor: pointer; }
.map svg path.hover { fill: #2f6f52; fill-opacity: .95; stroke: #1f4d37; stroke-width: 1.2px; }
.map svg circle.hover { fill: #2f6f52; stroke: #1f4d37; stroke-width: calc(1.6px / var(--z)); }
.map svg text.hover { font-weight: 700; fill: #1f4d37; }
.map.hover-parks svg path[data-code], .map.hover-parks svg circle.d { transform-box: fill-box; transform-origin: center;
transition: transform .2s ease-out, filter .2s ease-out; }
.map.hover-parks svg path.hover, .map.hover-parks svg circle.d.hover { transform: scale(1.08); filter: drop-shadow(0 4px 5px rgba(20, 45, 30, .5)); }
.tap-chip { position: absolute; z-index: 5; display: flex; flex-direction: column; justify-content: center; padding: 0 5px;
white-space: nowrap; line-height: 1.15; background: #2f6f52; color: #fff; font-weight: 700; border-radius: 6px;
box-shadow: 0 2px 6px rgba(20, 45, 30, .35); pointer-events: none; }
.tap-note { position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex;
align-items: center; gap: 9px; max-width: calc(100% - 24px); padding: 10px 15px; background: #fff;
border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(15, 23, 42, .16); color: var(--ink);
font-size: 15px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.tap-note span { overflow: hidden; text-overflow: ellipsis; }
.tap-note svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #2f6f52; stroke-width: 2.4; stroke-linecap: round;
stroke-linejoin: round; animation: tap-turn .8s linear infinite; }
@keyframes tap-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tap-note svg { animation: none; } }
.tap-ring { position: absolute; z-index: 5; box-sizing: border-box; border: 2px solid #2f6f52; border-radius: 6px;
pointer-events: none; }
.tap-ask { position: fixed; z-index: 30; min-width: 200px; max-width: calc(100vw - 24px); overflow: hidden;
background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); }
.tap-ask p { margin: 0; padding: 10px 14px 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tap-ask button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0;
border-top: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
text-align: left; white-space: nowrap; cursor: pointer; }
.tap-ask button:hover, .tap-ask button:active { background: #F1F5F9; }
.tap-ask button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.park-bar { flex: none; height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--border-subtle); background: #fff; }
.park-back { display: inline-flex; align-items: center; gap: 6px; color: #1f4d37; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.park-back:hover { text-decoration: underline; }
.park-back .i { width: 16px; height: 16px; }
.park-bar h1 { font: 700 1.35rem/1.1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.park-where { color: var(--muted); font-size: 14px; white-space: nowrap; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.legend { position: absolute; left: 16px; bottom: 16px; z-index: 2; font-size: 12.5px; }
.legend summary { list-style: none; display: flex; align-items: center; gap: 8px;
padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer;
background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.legend summary .i { width: 16px; height: 16px; color: #1f4d37; }
.legend .lg-x, .tops .lg-x { width: 15px; height: 15px; color: var(--muted); margin-left: auto; }
.legend summary:hover .lg-x, .tops summary:hover .lg-x { color: var(--ink); }
.legend:not([open]) .lg-x, .tops:not([open]) .lg-x { display: none; }
.legend summary::-webkit-details-marker { display: none; }
.legend ul { list-style: none; display: grid; grid-template-columns: auto auto; gap: 6px 16px; padding: 10px 12px;
position: absolute; left: 0; bottom: calc(100% + 6px); width: max-content; overflow-y: auto;
max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px);
background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.lg-boardwalk { width: 22px; border-top: 3px solid #9a7b45; }
.lg-sym.mdi .i { fill: currentColor; stroke: none; }
.lg-sym.nps .i { fill: currentColor; stroke: currentColor; stroke-width: .9; }
.lg-sym.aid { background: #fff; color: #d2232a; box-shadow: inset 0 0 0 1.4px #d2232a; }
.lg-ent { width: 18px; height: 18px; display: grid; place-items: center; }
.lg-ent .i { width: 18px; height: 10px; fill: #231f20; stroke: none; }
.map-top { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start;
gap: 8px; max-width: calc(100% - 88px); }
.parts { display: flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); font-size: 14px; }
.parts a { padding: 6px 14px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.parts a:hover, .parts a:focus-visible { background: #F1F5F9; outline: none; }
.parts a[aria-current="page"] { background: #E2EEE4; font-weight: 600; }
.tops { position: relative; font-size: 14px; }
.tops summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-weight: 600;
cursor: pointer; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); border-radius: 8px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.tops summary::-webkit-details-marker { display: none; }
.tops .i { width: 16px; height: 16px; flex: none; }
.tops summary > .i:first-child, .tops button .i, .lg-star .i { color: #c2620a; fill: #c2620a; }
.tops ul { list-style: none; position: absolute; left: 0; top: calc(100% + 6px); width: max-content; padding: 4px 0;
overflow-y: auto; max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px);
background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.tops button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 14px; border: 0; background: none;
font: inherit; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.tops button .i { width: 13px; height: 13px; }
.tops button:hover, .tops button:focus-visible, .tops button[aria-pressed="true"] { background: #F1F5F9; outline: none; }
.lg-star { width: 18px; height: 18px; display: grid; place-items: center; }
.lg-star .i { width: 15px; height: 15px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg-sym { width: 18px; height: 18px; border-radius: 3px; background: #22302a; color: #fff; display: grid; place-items: center; }
.lg-sym .i { width: 13px; height: 13px; }
.lg-sign { min-width: 22px; height: 15px; padding: 0 3px; border: 1px solid #2b2b2b; border-radius: 2px; background: #fff;
font-size: 10px; font-weight: 700; line-height: 13px; text-align: center; }
.lg-road { width: 22px; border-top: 3px solid #b0452c; }
.lg-trail { width: 22px; border-top: 2px dashed #6b5034; }
.lg-rough { width: 22px; border-top: 2px dashed #8f8a82; }
.lg-carriage { width: 22px; height: 0; border-top: 2px solid #f1df86; box-shadow: 0 -1px 0 #9cb79a, 0 1px 0 #9cb79a; }
.lg-shuttle { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.lg-shuttle svg { width: 22px; height: 8px; }
.lg-shuttle .lg-shs { width: 15px; height: 15px; }
.offline { margin-left: auto; position: relative; z-index: 4; flex: none; }
.offline summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff;
border-radius: 8px; padding: 7px 12px; font: 600 14px var(--sans); color: #1f4d37; white-space: nowrap; cursor: pointer; }
.offline summary::-webkit-details-marker { display: none; }
.offline summary .i { width: 16px; height: 16px; }
.offline summary small { font-weight: 400; color: var(--muted); font-size: 13px; }
.offline summary small:empty { display: none; }
.off-i-save, .off-i-saved { display: inline-flex; }
.off-i-saved, .offline.saved .off-i-save { display: none; }
.offline.saved .off-i-saved { display: inline-flex; }
.offline.saved summary { color: var(--ink); }
.offline.saved .off-i-saved { color: #1f4d37; }
.off-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10); padding: 4px 0; font-size: 14px; }
.off-head { padding: 6px 14px 4px; font-size: 12px; color: var(--muted); }
.off-menu button { display: flex; flex-direction: column; gap: 2px; width: 100%; border: 0; background: none; padding: 9px 14px;
font: 500 14px var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.off-menu button:hover, .off-menu button:focus-visible { background: #F1F5F9; outline: none; }
.off-menu button[hidden] { display: none; }
.off-menu button b { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.off-menu button b em { font-style: normal; font-weight: 500; color: var(--muted); }
.off-menu button span { font-size: 12.5px; color: var(--muted); }
.off-menu .off-remove { flex-direction: row; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.off-menu .off-remove .i { width: 16px; height: 16px; color: var(--muted); }
.off-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #e2e8f0; z-index: 3; }
.off-bar span { display: block; height: 3px; width: 0; background: #1f4d37; }
.map-note { display: none; }
@media (max-width: 640px) {
.site-header { padding: 0 16px; }
.brand { font-size: 1.05rem; gap: 7px; }
.brand-icon { width: 30px; height: 30px; }
.brand-name { position: relative; top: -8px; }
.disclaimer { position: absolute; left: 53px; top: 30px; font-size: 11.5px; line-height: 1.2; }
.map-controls { display: none; }
.park-bar { gap: 10px; padding: 0 12px; }
.park-bar h1 { font-size: 1.05rem; }
.park-where { display: none; }
.legend { left: 12px; bottom: 12px; }
.legend ul { max-width: calc(100vw - 24px); max-height: calc(100vh - 280px); max-height: calc(100dvh - 280px); }
.tops ul { max-width: calc(100vw - 24px); max-height: calc(100vh - 280px); max-height: calc(100dvh - 280px); }
.tops button { padding: 9px 14px; }
.offline .off-label, .offline summary small { display: none; }
.offline summary { padding: 7px 9px; }
.off-menu { width: 290px; }
}
