:root {
  --pine: #14382b;
  --pine-deep: #0a2219;
  --leaf: #bfe6c4;
  --mist: #eef6ef;
  --text: #f4f9f3;
  --text-2: #d3e6d6;
  --text-3: #a9c7b0;
  --healing: #f6b48e;
  --center: #9ad8f5;
  --kids: #f3dc8a;
  --glass-bg: rgba(8, 30, 22, 0.56);
  --glass-line: rgba(225, 245, 230, 0.13);
  --serif: "Gowun Batang", serif;
  --sans: "Gowun Dodum", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--pine-deep); word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 10px; background: var(--mist); color: var(--pine); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- 숲 배경 ---------- */
.forest { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.sky { position: absolute; inset: 0; background:
  radial-gradient(90% 55% at 70% 6%, rgba(255, 238, 196, 0.6), transparent 60%),
  linear-gradient(180deg, #8bb9a3 0%, #4c8770 30%, #22533f 58%, #0c271d 100%); }
.forest-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mist { position: absolute; left: -15%; right: -15%; bottom: 18%; height: 34%; background: radial-gradient(50% 50% at 50% 50%, rgba(230, 244, 236, 0.3), transparent 72%); animation: drift 46s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; top: -4%; width: 11px; height: 7px; border-radius: 0 100% 0 100%; background: rgba(200, 235, 170, 0.75); animation: fall linear infinite; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translate(var(--dx), 108vh) rotate(500deg); opacity: 0; } }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  box-shadow: 0 30px 70px rgba(2, 16, 10, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* ---------- 상단 바 ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: center; gap: 16px; padding: 12px clamp(14px, 3vw, 32px); background: linear-gradient(180deg, rgba(8, 30, 22, 0.55), transparent); transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.topbar.stuck { background: rgba(10, 36, 27, 0.72); box-shadow: 0 1px 0 rgba(220, 245, 225, 0.14), 0 12px 30px rgba(3, 20, 13, 0.25); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
.topbar nav { display: flex; gap: 2px; justify-self: end; }
.topbar .brand { justify-self: start; }
.topbar nav a { padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.topbar nav a:hover { background: rgba(230, 248, 235, 0.14); color: var(--text); }

/* ---------- 검색 ---------- */
.searchbar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 5px 0 16px; border-radius: 999px; background: rgba(244, 251, 245, 0.1); border: 1px solid rgba(225, 245, 230, 0.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.searchbar:focus-within { background: rgba(244, 251, 245, 0.96); border-color: transparent; box-shadow: 0 16px 40px rgba(2, 16, 10, 0.35); }
.searchbar > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; transition: stroke 0.25s; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15.5px; color: var(--text); }
.searchbar input::placeholder { color: var(--text-3); }
.searchbar:focus-within > svg { stroke: #4c7564; }
.searchbar:focus-within input { color: var(--pine); }
.searchbar:focus-within input::placeholder { color: #7d9a8b; }
.search-go { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(244, 251, 245, 0.14); color: var(--text); font-weight: 700; font-size: 14px; transition: background 0.2s, color 0.2s; }
.searchbar:focus-within .search-go { background: var(--pine); color: var(--mist); }

.doors { max-width: 1400px; margin: 0 auto 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.door { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 18px 22px; border-radius: 20px; transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.door::after { content: ""; position: absolute; inset: auto -30% -70% -30%; height: 120%; border-radius: 50%; opacity: 0.22; transition: opacity 0.3s; pointer-events: none; }
.door[data-door="heal"]::after { background: radial-gradient(closest-side, var(--healing), transparent); }
.door[data-door="edu"]::after { background: radial-gradient(closest-side, var(--center), transparent); }
.door[data-door="pro"]::after { background: radial-gradient(closest-side, #d2c3f2, transparent); }
.door:hover { transform: translateY(-5px); border-color: rgba(240, 252, 242, 0.5); }
.door:hover::after { opacity: 0.42; }
.door[aria-pressed="true"] { background: rgba(240, 252, 242, 0.22); border-color: rgba(240, 252, 242, 0.75); }
.door svg { grid-row: 1 / span 3; width: 46px; height: 46px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.door[data-door="heal"] svg { stroke: var(--healing); }
.door[data-door="edu"] svg { stroke: var(--center); }
.door[data-door="pro"] svg { stroke: #d2c3f2; }
.door-name { font-size: 15px; font-weight: 700; color: var(--text-2); }
.door-num { font-size: 15px; color: var(--text-2); }
.door-num b { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--text); margin-right: 3px; font-variant-numeric: tabular-nums; }
.door-desc { font-size: 13px; color: var(--text-3); }
.sum-line { max-width: 1400px; margin: 0 auto 14px !important; padding: 0 8px; text-align: right; }
.hero-total { margin: 22px 0 0; font-size: 14.5px; color: var(--text-2); text-shadow: 0 1px 10px rgba(5, 30, 20, 0.6); }
.hero-total b { color: var(--text); }

/* ---------- 필터 줄 ---------- */
.finder { position: relative; }
.filterbar { position: sticky; top: 66px; z-index: 40; max-width: 1400px; margin: 84px auto 12px; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.filterbar::before { content: ""; position: absolute; inset: 0 16px; border-radius: 999px; background: rgba(8, 30, 22, 0.6); border: 1px solid var(--glass-line); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); z-index: -1; }
.seg { flex: none; display: flex; gap: 2px; padding: 3px; margin-left: 8px; border-radius: 999px; background: rgba(230, 248, 235, 0.1); }
.seg button { border: 0; background: none; padding: 7px 14px; min-height: 38px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.seg button[aria-checked="true"] { background: var(--mist); color: var(--pine); }
.regions { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; padding: 2px 10px 2px 2px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.regions::-webkit-scrollbar { display: none; }
.regions button { flex: none; min-height: 36px; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: none; border: 1px solid transparent; color: var(--text-2); transition: background 0.2s; }
.regions button small { margin-left: 5px; color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.regions button:hover { background: rgba(230, 248, 235, 0.12); }
.regions button[aria-pressed="true"] { background: rgba(230, 248, 235, 0.92); color: var(--pine); }
.regions button[aria-pressed="true"] small { color: #50735f; }

/* ---------- 목록 + 지도 ---------- */
.explorer { scroll-margin-top: 130px; max-width: 1400px; margin: 0 auto; padding: 0 16px 40px; display: grid; grid-template-columns: minmax(400px, 600px) 1fr; gap: 14px; align-items: start; }
.listpane { border-radius: 20px; padding: 22px 14px 14px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 6px 12px; }
.list-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.list-head p { margin: 0; font-size: 14px; color: var(--text-3); text-align: right; }
.list { outline: none; }
.group-title { margin: 18px 8px 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.group-title i { width: 9px; height: 9px; border-radius: 50%; }

/* 사진 있는 시설 카드 */
.site { position: relative; display: grid; grid-template-columns: 168px 1fr; gap: 14px; padding: 10px; border-radius: 18px; transition: background 0.2s; }
.site:hover, .site.hot { background: rgba(230, 248, 235, 0.07); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.2); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 24px rgba(2, 16, 10, 0.35); }
.thumb img { filter: saturate(0.92); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.4s var(--ease); }
.site:hover .thumb img { transform: scale(1.04); }
.thumb.none { display: grid; place-items: center; font-size: 12.5px; color: var(--text-3); padding: 8px; text-align: center; }
.site-body { min-width: 0; display: flex; flex-direction: column; }
.site-name { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.site-name button { all: unset; cursor: pointer; }
.site-name button:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-name button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.site-addr { margin: 3px 0 0; font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-news { margin: 6px 0 0; font-size: 13.5px; color: #a8d9b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-news a { text-decoration: none; }
.site-news a:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; padding-top: 10px; }
.links a, .links button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text-2); background: none; border: 1px solid transparent; transition: background 0.2s, color 0.2s; }
.links a:hover, .links button:hover { background: rgba(230, 248, 235, 0.12); color: var(--text); }
.links .go { background: rgba(238, 246, 239, 0.94); color: var(--pine); }
.links .go:hover { background: #fff; color: var(--pine); }
.links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.links .dead { opacity: 0.65; font-weight: 500; }

/* 수목원·나눔길: 사진 없는 카드 */
.info { padding: 12px 12px 14px; border-radius: 16px; border-top: 1px solid rgba(220, 245, 225, 0.1); transition: background 0.2s; }
.info:hover, .info.hot { background: rgba(230, 248, 235, 0.08); }
.info-line { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.info .links { padding-top: 8px; }
.chip-v { display: inline-block; align-self: flex-start; margin-top: 7px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #d9cdf7; border: 1px solid rgba(217, 205, 247, 0.45); }
.s-voucher { margin: 10px 0 0; font-size: 13.5px; color: var(--text-2); }
.s-voucher .chip-v { margin: 0 6px 0 0; }
.group { margin-bottom: 8px; }
.group-note { margin: -2px 8px 8px; font-size: 13.5px; color: var(--text-3); }
.row strong button { all: unset; cursor: pointer; }
.row strong button:hover { text-decoration: underline; text-underline-offset: 3px; }
.row strong button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.row.hot { background: rgba(230, 248, 235, 0.08); border-radius: 12px; }

/* 유아숲·숲 선생님: 짧은 행 */
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 11px 12px; border-top: 1px solid rgba(220, 245, 225, 0.1); }
.row:first-of-type { border-top: 0; }
.row strong { font-size: 15px; font-weight: 600; }
.row span { grid-column: 1; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .links { grid-column: 2; grid-row: 1 / span 2; padding: 0; margin: 0; flex-wrap: nowrap; }

.empty { padding: 30px 8px; color: var(--text-2); }
.more { display: block; width: 100%; margin: 8px 0 14px; min-height: 44px; border-radius: 14px; font-weight: 700; background: rgba(230, 248, 235, 0.1); border: 1px solid rgba(230, 248, 235, 0.22); }

.mappane { position: sticky; top: 130px; border-radius: 20px; padding: 6px; height: calc(100vh - 144px); display: flex; flex-direction: column; }
.map-wrap { position: relative; flex: 1; display: flex; min-height: 0; }
.legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 5px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--text); background: rgba(8, 30, 22, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(225, 245, 230, 0.16); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend i.big { width: 13px; height: 13px; }
#leaflet { flex: 1; border-radius: 15px; overflow: hidden; background: #24513f; }
.map-note { margin: 8px 10px 4px; font-size: 13px; color: var(--text-3); }
.leaflet-container { font-family: var(--sans); }
.leaflet-tile-pane { filter: saturate(0.7) brightness(1.03) contrast(0.96); }
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); transition: transform 0.2s var(--ease); }
.pin.healing { background: #e98451; }
.pin.center { background: #2f9bd6; }
.pin.hot { transform: scale(1.6); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4); }
.pin.dim { opacity: 0.35; }
.leaflet-tooltip.tip { background: var(--pine); color: #fff; border: 0; border-radius: 8px; font-weight: 600; box-shadow: none; padding: 5px 9px; }
.leaflet-tooltip.tip::before { display: none; }

/* ---------- 상세 시트 ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4, 20, 13, 0.5); }
.sheet { position: fixed; z-index: 100; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); overflow-y: auto; border-radius: 22px; padding: 0 0 24px; background: rgba(9, 32, 24, 0.9); transform: translateX(105%); transition: transform 0.4s var(--ease); }
.sheet.open { transform: none; }
.s-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0f2b21; }
.s-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.s-cover span { position: absolute; left: 14px; bottom: 14px; padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: var(--mist); color: var(--pine); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.s-inner { padding: 20px 24px 0; }
.close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10, 34, 25, 0.75); font-size: 22px; line-height: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kind-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.kind-tag i { width: 9px; height: 9px; border-radius: 50%; }
.sheet h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 30px; line-height: 1.25; }
.s-addr { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.sheet .links { margin-top: 14px; padding: 0; }
.sheet .links a { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.blk { margin-top: 26px; }
.blk h3 { margin: 0 0 10px; font-size: 16px; }
.news a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 0; border-top: 1px solid rgba(220, 245, 225, 0.12); text-decoration: none; font-size: 14.5px; }
.news a:hover b { text-decoration: underline; }
.news b { font-weight: 600; }
.news small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.news em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--text-3); }
.facts { margin: 0; display: grid; grid-template-columns: 70px 1fr; gap: 8px 12px; font-size: 14.5px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; }
.mini { height: 230px; border-radius: 16px; overflow: hidden; }
.elev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.elev div { padding: 10px; border-radius: 12px; background: rgba(230, 248, 235, 0.08); }
.elev b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.elev small { color: var(--text-3); font-size: 12.5px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bars span { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--leaf), rgba(191, 230, 196, 0.35)); }
.bars b { color: var(--text-2); font-weight: 600; font-size: 11.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: rgba(230, 248, 235, 0.1); }
.note { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }

.s-band { position: relative; height: 104px; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--band) 55%, #0c2a1f), rgba(12, 42, 31, 0.2)); }
.s-band svg { position: absolute; right: -10px; bottom: -18px; width: 260px; height: 160px; opacity: 0.35; fill: #0d2a1f; }
.about { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }

/* ---------- 지역별 현황 ---------- */
.chart-sec { padding: 26px 16px 14px; scroll-margin-top: 70px; }
.chart-inner { max-width: 1400px; margin: 0 auto; border-radius: 20px; padding: 30px 32px; display: grid; grid-template-columns: 300px 1fr; gap: 36px; }
.chart-head h2 { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.3; }
.chart-head p { margin: 12px 0 0; color: var(--text-2); font-size: 14.5px; }
.chart-key { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 14px; font-size: 13.5px; font-weight: 600; }
.chart-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.k-heal { background: var(--healing); } .k-edu { background: var(--center); } .k-pro { background: #d2c3f2; }
.chart { display: grid; gap: 3px; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 46px; align-items: center; gap: 10px; padding: 4px 8px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14px; transition: background 0.2s; }
.bar-row:hover { background: rgba(230, 248, 235, 0.1); }
.bar-row b { font-weight: 700; }
.bar-row em { font-style: normal; text-align: right; color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.bar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; transform-origin: left; transform: scaleX(0); transition: transform 0.9s var(--ease); }
.chart.in .bar { transform: none; }
.bar span { height: 100%; }

/* ---------- 바닥 ---------- */
.foot { padding: 0 16px 48px; }
.foot-inner { max-width: 1400px; margin: 0 auto; border-radius: 20px; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.foot { scroll-margin-top: 70px; }
.credit { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid rgba(220, 245, 225, 0.14); }
.foot h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.foot p { margin: 10px 0 0; color: var(--text-2); font-size: 14.5px; }
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.sources a { font-weight: 600; text-underline-offset: 3px; }
.sources span { color: var(--text-3); margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; transform: none; }
  .forest-svg g { transform: none !important; }
  .mist, .leaf { animation: none; } .leaves { display: none; }
  .sheet, .thumb img, .pin { transition: none; }
}
@media (max-width: 980px) {
  .explorer { grid-template-columns: 1fr; }
  .mappane { position: relative; top: 0; height: 440px; order: -1; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .foot-inner, .chart-inner { grid-template-columns: 1fr; gap: 20px; }
  .doors { grid-template-columns: 1fr; gap: 10px; }
  .door { padding: 14px 18px; }
  .door-num b { font-size: 26px; }
}
@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr; row-gap: 8px; padding: 10px 12px; background: rgba(8, 30, 22, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .topbar .searchbar { grid-column: 1 / -1; grid-row: 2; }
  .topbar nav a:nth-child(2) { display: none; }
  .topbar nav a { padding: 8px 10px; font-size: 14px; }
  .searchbar input { font-size: 16px; }
  .filterbar { top: 112px; margin-top: 128px; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px; }
  .filterbar::before { inset: 0 6px; border-radius: 20px; }
  .seg { margin: 0 4px; }
  .seg button { flex: 1; padding: 7px 6px; }
  .regions { padding-left: 6px; }
  .explorer { padding: 0 10px 28px; }
  .listpane { padding: 16px 8px 10px; }
  .site { grid-template-columns: 112px 1fr; gap: 10px; }
  .site-name { font-size: 16px; }
  .row { grid-template-columns: 1fr; }
  .row .links { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 90vh; border-radius: 26px 26px 0 0; transform: translateY(105%); }
  .chart-sec { padding: 20px 10px 10px; }
  .chart-inner { padding: 22px 16px; }
  .foot { padding: 0 10px 32px; }
  .foot-inner { padding: 22px 18px; }
  .legend { font-size: 11.5px; padding: 8px 10px; }
}
