:root{--ink:#253b36;--muted:#66736c;--stone:#e4e7dc;--stone2:#d4ddd1;--forest:#2f5649;--sage:#edf2e9;--cream:#f7f7f2;--white:#fff;--warm:#b38b55;--border:#dfe5dc;--shadow:0 9px 37px #1d342324;--header:73px;--toolbar:65px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:15px}
*{box-sizing:border-box}body{margin:0;height:100vh;height:100dvh;background:var(--cream);overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #7a9d89;outline-offset:2px}a{color:var(--forest);text-decoration:none}a:hover{text-decoration:underline}.hidden{display:none!important}
.topbar{height:var(--header);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px;background:#fff;border-bottom:1px solid var(--border);position:relative;z-index:2000}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-icon{width:41px;height:41px;border:1.6px solid #a8baae;border-radius:14px;display:grid;place-items:center;color:var(--forest);background:#f6f9f5;font-size:25px;line-height:1}.brand-words{display:flex;flex-direction:column;gap:2px}.brand-main{font-family:Georgia,serif;letter-spacing:.015em;font-size:23px;line-height:1}.brand-sub{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#7a897c;font-weight:800}.top-right{display:flex;align-items:center;gap:10px}.prototype-pill{color:#486452;background:#edf3ed;border-radius:100px;padding:8px 11px;font-size:12px;font-weight:700}.top-link{font-size:13px;font-weight:700;color:#455c50}.divider-v{height:19px;width:1px;background:var(--border)}
.toolbar{height:var(--toolbar);position:relative;z-index:1800;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:10px 22px}.search{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:12px;background:#f8f9f7;padding:0 12px;flex:0 0 min(325px,31%);height:43px;color:#78867c}.search input{background:transparent;border:0;min-width:0;flex:1;color:var(--ink);outline:0;font-size:13px}.search input::placeholder{color:#89918a}.search button{border:0;background:none;color:#596d62;display:none;padding:2px}.search.has-value button{display:flex}.filter-label{color:#748175;white-space:nowrap;font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;margin-left:4px}.chips{display:flex;align-items:center;gap:7px;overflow-x:auto;min-width:0;scrollbar-width:none;flex:1}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap;background:#fff;color:#5a6c60;border:1px solid #e0e7df;border-radius:100px;padding:10px 13px;font-weight:650;font-size:12px;transition:all .15s ease}.chip:hover{border-color:#9fb2a4}.chip.active{background:var(--forest);border-color:var(--forest);color:white}.more-filters{position:relative;flex-shrink:0}.menu-button{height:43px;border:1px solid #cedbd0;background:white;border-radius:12px;padding:0 11px;display:flex;gap:7px;align-items:center;font-size:13px;color:#475e4f;font-weight:750;white-space:nowrap}.filters-popover{position:absolute;top:52px;right:0;min-width:240px;max-width:90vw;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);padding:18px;border-radius:16px;z-index:4000}.pop-title{font-weight:800;margin:0 0 14px;font-size:14px}.seg{display:flex;gap:4px;padding:4px;background:#f0f3ed;border-radius:11px}.seg button{flex:1;border:0;background:transparent;border-radius:8px;color:#596b5f;padding:9px 7px;font-size:12px;font-weight:700}.seg button.active{background:#fff;color:var(--forest);box-shadow:0 2px 7px #22392318}.check-row{display:flex;align-items:center;gap:9px;font-size:13px;margin-top:14px;cursor:pointer}.check-row input{width:17px;height:17px;accent-color:var(--forest)}.clear-button{border:0;background:transparent;font-size:12px;color:var(--forest);font-weight:800;margin-top:16px;padding:0}
.main{height:calc(100dvh - var(--header) - var(--toolbar));display:flex;overflow:hidden;position:relative}.pane{background:white;width:clamp(390px,43vw,650px);height:100%;overflow:auto;scrollbar-width:thin;flex:none;border-right:1px solid var(--border);z-index:1000;position:relative}.pane::-webkit-scrollbar{width:6px}.pane::-webkit-scrollbar-thumb{background:#d7e0d7;border-radius:10px}.map-wrap{position:relative;flex:1;min-width:0;background:#e9ede4}.map{height:100%;width:100%;z-index:1;background:#e7ece7}.leaflet-container{font-family:inherit!important;background:#e5ebe4!important}.leaflet-control-attribution{font-size:9px!important;background:#fffc!important}.leaflet-control-zoom a{color:var(--forest)!important}.leaflet-top.leaflet-left{top:55px;left:11px}
.map-overlay{position:absolute;z-index:700;left:19px;top:19px;background:white;border:1px solid #dce4d8;box-shadow:0 7px 24px #223f2320;border-radius:100px;padding:11px 15px;font-weight:750;font-size:12px;display:flex;gap:8px;align-items:center;color:#334b3a}.map-overlay svg{width:15px;height:15px}.map-reset{position:absolute;right:20px;top:18px;z-index:700;border:1px solid #dce4d8;border-radius:10px;padding:10px 13px;font-weight:700;font-size:12px;background:#fff;box-shadow:0 4px 10px #253a2315}.no-tiles{display:none;position:absolute;z-index:3;inset:0;background:#e6ece2;overflow:hidden}.no-tiles.show{display:block}.offline-grid{position:absolute;inset:0;background-image:linear-gradient(90deg,#cbd7c77a 1px,transparent 1px),linear-gradient(#cbd7c77a 1px,transparent 1px);background-size:58px 58px}.offline-title{position:absolute;top:56px;left:30px;font-family:Georgia,serif;font-size:38px;opacity:.11;font-weight:bold;letter-spacing:.02em}.offline-note{position:absolute;bottom:35px;left:25px;right:25px;text-align:center;background:#ffffffeb;border:1px solid #d9e1d7;padding:12px;border-radius:9px;font-size:12px;color:#5b6b60}.fallback-marker{position:absolute;transform:translate(-50%,-50%);z-index:4;border:1px solid #d5e2d6;border-radius:13px;background:#fff;padding:9px 12px;box-shadow:0 4px 11px #203b292c;text-align:left;font-weight:700;color:#244535;white-space:nowrap}.fallback-marker.active{background:var(--forest);color:white}.fallback-marker small{display:block;opacity:.74;font-weight:600;font-size:10px;margin-top:3px}.leaf-pin-wrap{background:transparent;border:0}.site-marker{position:relative;border-radius:11px;background:#fff;border:1px solid #cfddd1;padding:9px 13px;box-shadow:0 5px 19px #18342532;color:#263e30;font-size:12px;white-space:nowrap;font-weight:800;display:inline-flex;gap:9px;align-items:center;transform:translate(-50%,-50%);transition:background .15s}.site-marker:after{content:"";position:absolute;left:calc(50% - 6px);bottom:-7px;width:11px;height:11px;transform:rotate(45deg);background:inherit;border-right:1px solid #cfddd1;border-bottom:1px solid #cfddd1}.site-marker b{font-size:11px;font-weight:750;color:#547c56}.site-marker.is-active{background:var(--forest);color:#fff;border-color:#2d5144}.site-marker.is-active:after{border-color:#2d5144}.site-marker.is-active b{color:#d9ebd6}.pin-dot{width:8px;height:8px;border-radius:50%;background:#a3b5a5}.site-marker.is-active .pin-dot{background:#e1ead3}
.intro{padding:28px 31px 44px}.eyebrow{text-transform:uppercase;color:#839086;font-size:11px;letter-spacing:.13em;font-weight:800}.bighead{font-family:Georgia,serif;font-size:32px;font-weight:500;line-height:1.15;margin:12px 0 9px;color:#253b30}.subtext{font-size:13px;color:#6b786c;line-height:1.65;margin:0 0 23px}.counter-bar{display:flex;align-items:center;justify-content:space-between;margin:18px 0 15px;font-weight:750;font-size:12px;color:#506154}.result-card{display:flex;gap:15px;background:#fff;border:1px solid #e1e7e1;border-radius:16px;padding:10px;margin-bottom:12px;cursor:pointer;text-align:left;width:100%;color:inherit;transition:box-shadow .2s,border .2s}.result-card:hover{box-shadow:0 9px 26px #1b3a2215;border-color:#acbfb2}.result-card.photo-unavailable:before{content:"Photo unavailable";width:130px;height:115px;background:#e6ebe3;border-radius:10px;display:grid;place-items:center;text-align:center;padding:8px;color:#67786b;font-size:12px;flex:none}.result-photo{width:130px;height:115px;border-radius:10px;background:#e7ece6;object-fit:cover;flex:none}.result-info{min-width:0;display:flex;flex-direction:column;gap:7px;justify-content:center}.result-name{font-family:Georgia,serif;font-size:18px;line-height:1.15;font-weight:700}.result-location{color:#728073;font-size:11px}.result-footer{display:flex;gap:8px;align-items:center;color:#52685b;font-size:11px;font-weight:750}.mini-dot{background:#dae5d7;width:4px;height:4px;border-radius:50%}.empty{padding:25px 0;text-align:center;color:#718073;font-size:14px;line-height:1.5}.empty button{border:1px solid #9db49f;border-radius:9px;padding:10px 15px;background:#fff;color:var(--forest);font-weight:750}
.detail{display:none}.detail.open{display:block}.detail-head{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0ea;background:#fff;position:sticky;top:0;z-index:35}.back{display:flex;gap:8px;align-items:center;border:0;background:transparent;color:#59715f;font-size:12px;font-weight:800;padding:8px}.head-actions{display:flex;gap:8px}.iconbutton{width:37px;height:37px;display:grid;place-items:center;border:1px solid #e0e6df;background:#fff;border-radius:100px;color:#4a6252}.iconbutton svg,.back svg{width:18px;height:18px}.iconbutton.saved{background:#f1e9e2;color:#9b5c48;border-color:#ecd0c2}
.photohero{height:287px;position:relative;background:#e2e9df;overflow:hidden}.photohero img{width:100%;height:100%;object-fit:cover;display:block}.photohero img.fit-cover{object-fit:cover}.photobadges{position:absolute;left:17px;top:17px;display:flex;gap:7px}.photo-pill{background:#18392ece;color:#fff;border-radius:50px;padding:7px 11px;font-size:11px;font-weight:750;backdrop-filter:blur(5px)}.photoarrows{position:absolute;left:13px;right:13px;top:47%;display:flex;justify-content:space-between;pointer-events:none}.photoarrows button{pointer-events:auto;width:33px;height:33px;background:#ffffffdc;border:1px solid #f0f0f0;border-radius:50%;font-size:22px;color:var(--ink);display:grid;place-items:center;line-height:1}.photo-bottom{position:absolute;bottom:13px;left:0;right:0;display:flex;justify-content:center;gap:7px}.photo-bottom button{width:7px;height:7px;border:0;padding:0;background:#ffffff91;border-radius:99px}.photo-bottom button.active{width:19px;background:white}.photo-credit-open{position:absolute;right:15px;bottom:13px;color:white;text-decoration:underline;text-underline-offset:2px;border:0;background:#19382d80;border-radius:7px;font-size:10px;padding:6px 8px}.photo-placeholder{display:none;position:absolute;inset:0;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#789084;background:linear-gradient(135deg,#dde9df,#f0f1e7);font-size:12px;text-align:center;padding:30px}.photo-placeholder.show{display:flex}.detail-body{padding:27px 31px 46px}.detail-title{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.detail-title h1{font-family:Georgia,serif;line-height:1.12;font-size:29px;font-weight:500;letter-spacing:-.02em;margin:4px 0 7px}.detail-location{font-size:12px;color:#7a877e;display:flex;align-items:center;gap:5px}.price-badge{background:#eaf3e8;color:#35634d;border:1px solid #d8ead8;white-space:nowrap;padding:8px 10px;border-radius:100px;font-size:11px;font-weight:800;margin-top:3px}.price-badge.paid{background:#f7f2e9;border-color:#eae0d1;color:#745f44}.summary{margin:17px 0 21px;line-height:1.65;font-size:14px;color:#536257}.tags-label{font-size:11px;color:#859187;text-transform:uppercase;letter-spacing:.13em;font-weight:800;margin:0 0 11px}.period-tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:23px}.period-tag{font-size:11px;font-weight:700;color:#476452;border-radius:7px;background:#edf2ea;padding:8px 10px}.rule{height:1px;background:#e6ebe4;margin:23px 0}.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fact{border:1px solid #e7ede7;background:#fbfcfa;border-radius:12px;padding:13px 12px;display:flex;align-items:flex-start;gap:9px;min-height:72px}.fact svg{width:17px;height:17px;color:#759079;flex-shrink:0;margin-top:2px}.fact strong{display:block;font-weight:800;font-size:12px;color:#293e33;margin-bottom:5px}.fact span{font-size:12px;color:#718071;line-height:1.3}.notice{border-radius:11px;border:1px solid #e9e1ca;background:#fffcf4;color:#74623d;padding:12px 14px;font-size:12px;line-height:1.55;margin:22px 0;display:flex;align-items:flex-start;gap:9px}.notice svg{width:17px;height:17px;flex:none;margin-top:1px}.section-h{font-family:Georgia,serif;font-size:23px;line-height:1.2;font-weight:500;margin:0 0 15px}.info-row{padding:12px 0;display:grid;grid-template-columns:92px 1fr;gap:12px;border-bottom:1px solid #edf0eb;font-size:12px}.info-row:last-child{border:0}.info-key{font-weight:800;color:#506959}.info-value{line-height:1.6;color:#607064}.history-text{font-size:13px;line-height:1.8;color:#59685e}.timeline{border-left:1px solid #c8d9c7;margin:20px 0 0 7px;padding-left:18px}.time-item{margin:0 0 18px;position:relative}.time-item:before{content:"";position:absolute;left:-24px;top:6px;width:10px;height:10px;background:#6c9575;border:3px solid #f5f8f2;border-radius:50%}.time-item strong{font-size:12px;color:#46634e}.time-item p{font-size:12px;line-height:1.5;color:#758274;margin:5px 0}.source{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.source a{font-size:11px;background:#f0f4ed;padding:9px 10px;border-radius:7px;font-weight:800}.primary-link{display:flex;justify-content:center;align-items:center;gap:9px;padding:15px 18px;border-radius:12px;background:var(--forest);color:#fff;font-weight:800;font-size:13px;width:100%;margin-top:25px}.primary-link:hover{background:#234d3b;text-decoration:none}.source-footer{margin:18px 0 5px;color:#9aa69c;font-size:11px;line-height:1.5}.credits-modal{position:fixed;inset:0;background:#11281dd9;display:none;align-items:center;justify-content:center;z-index:6000;padding:20px}.credits-modal.show{display:flex}.credits-box{background:#fff;border-radius:18px;max-width:565px;width:100%;max-height:85vh;overflow-y:auto;padding:27px}.credits-head{display:flex;align-items:center;justify-content:space-between}.credits-head h2{font-family:Georgia,serif;font-size:26px;font-weight:500;margin:0}.credits-item{padding:17px 0;border-bottom:1px solid var(--border)}.credits-item:last-child{border-bottom:0}.credits-item b{display:block;font-size:13px;margin-bottom:7px}.credits-item p{color:#718071;font-size:12px;margin:0 0 7px}.credits-item a{font-size:12px;font-weight:750;margin-right:12px}.credits-note{color:#68766a;font-size:12px;line-height:1.6}.mobile-sheet-handle{display:none}.mobile-show-list{display:none}
@media(max-width:970px){.pane{width:46vw}.detail-body{padding:22px 22px 35px}.intro{padding:24px 21px}.search{flex-basis:215px}.filter-label{display:none}.top-link{display:none}.toolbar{gap:8px;padding:9px 13px}}
@media(max-width:720px){:root{--header:60px;--toolbar:61px}.topbar{padding:0 15px}.brand-icon{width:34px;height:34px;font-size:21px;border-radius:10px}.brand-main{font-size:19px}.brand-sub{font-size:9px}.prototype-pill{font-size:10px;padding:7px 9px}.toolbar{padding:8px 11px}.search{flex:0 0 132px;height:41px;padding:0 8px}.search input{font-size:11px}.chips{gap:5px}.chip{padding:9px 10px;font-size:11px}.menu-button{height:41px;padding:0 10px;font-size:11px}.menu-button span{display:none}.filters-popover{right:0;top:45px}.main{display:block}.map-wrap{position:absolute;inset:0}.pane{position:absolute;z-index:850;bottom:0;top:auto;width:100%;height:auto;max-height:67%;border-right:0;border-top:1px solid #dce4d9;border-radius:20px 20px 0 0;box-shadow:0 -8px 37px #1a3b2724;overflow-y:auto}.pane.no-selection{max-height:0;border:0;box-shadow:none;overflow:hidden}.mobile-show-list{display:flex;position:absolute;left:17px;bottom:23px;z-index:800;background:#fff;border:1px solid #dce6dc;border-radius:100px;padding:13px 18px;box-shadow:0 4px 22px #19382424;font-size:12px;font-weight:800;color:var(--forest);gap:8px;align-items:center}.mobile-show-list svg{width:16px;height:16px}.map-overlay{left:13px;top:14px;padding:8px 11px;font-size:11px}.map-reset{top:14px;right:14px;padding:8px 10px}.detail-head{padding:7px 18px}.mobile-sheet-handle{display:block;position:sticky;top:0;z-index:40;background:#fff;padding-top:7px;margin:0 auto;width:48px;height:11px;border-radius:99px}.mobile-sheet-handle:before{content:"";display:block;height:4px;border-radius:99px;background:#c7d4c9}.detail-body{padding:20px 22px 32px}.detail-title h1{font-size:25px}.photohero{height:240px}.intro{padding:15px 20px 30px}.bighead{font-size:27px;margin-top:8px}.subtext{margin-bottom:8px}.result-card.photo-unavailable:before{content:"Photo unavailable";width:130px;height:115px;background:#e6ebe3;border-radius:10px;display:grid;place-items:center;text-align:center;padding:8px;color:#67786b;font-size:12px;flex:none}.result-photo{height:100px;width:112px}.result-name{font-size:17px}.leaflet-top.leaflet-left{top:55px}.leaflet-control-attribution{font-size:8px!important}.offline-title{font-size:24px}}
@media(max-width:370px){.brand-sub{display:none}.brand-main{font-size:18px}.search{flex-basis:106px}.search input::placeholder{font-size:10px}.chip{padding:9px 8px}.detail-body{padding-left:16px;padding-right:16px}.fact-grid{gap:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:720px){.topbar{gap:8px}.brand{gap:7px;min-width:0}.brand-main{font-size:18px}.brand-sub{font-size:8px;letter-spacing:.08em;white-space:nowrap}.prototype-pill{font-size:9px;white-space:nowrap;padding:7px}.divider-v{display:none}.search{width:132px;min-width:0;flex:0 0 132px}.search input{width:0;min-width:0}.more-filters{width:41px;min-width:41px}.menu-button{width:41px;min-width:41px;display:flex;justify-content:center;padding:0;gap:0}.menu-button>span:last-child{display:none}}
@media(max-width:400px){.brand-sub{display:none}.brand-main{font-size:17px}.search{width:121px;flex-basis:121px}.prototype-pill{font-size:8px}}

/* V2: useful map even from a local Windows file or without network access */
.no-tiles{display:block;z-index:650;background:#dcebef;touch-action:none;cursor:grab}
.no-tiles.show{display:block}
.no-tiles:not(.show){display:none}
.no-tiles.dragging{cursor:grabbing}
.offline-map-surface{position:absolute;inset:0;overflow:hidden}
#offlineSvg{width:100%;height:100%;display:block;pointer-events:none}
#fallbackPins{position:absolute;inset:0;pointer-events:none}
.fallback-marker{pointer-events:auto;z-index:7;font-size:12px}
.fallback-marker:hover{background:#e9f2e6}
.fallback-marker.active:hover{background:var(--forest)}
.offline-note{position:absolute;bottom:10px;left:10px;right:10px;max-width:500px;pointer-events:none;padding:9px 11px;font-size:10px;z-index:15;text-align:left}
.offline-indicator{position:absolute;top:63px;right:14px;font-size:10px;background:#fffffff0;border:1px solid #dce4d8;padding:6px 10px;border-radius:99px;color:#556e62;font-weight:750;z-index:15}
.offline-controls{position:absolute;top:110px;right:14px;z-index:15;display:flex;flex-direction:column;border:1px solid #dce4d8;border-radius:9px;overflow:hidden;box-shadow:0 3px 9px #23362b18}
.offline-controls button{background:#fff;color:#315343;border:0;width:35px;height:34px;font-size:23px;line-height:1}
.offline-controls button+button{border-top:1px solid #dce4d8}
.maplibregl-map{font-family:inherit!important}
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib{font-size:10px!important}
.maplibregl-marker .site-marker{transform:none;cursor:pointer}
.maplibregl-ctrl-top-left{top:51px;left:11px}
@media(max-width:720px){.offline-indicator{top:54px;right:10px;font-size:9px}.offline-controls{top:90px;right:10px}.offline-note{bottom:45px}}

/* V3: period-focused history on the cards */
.history-lens{background:#f6f8f2;border:1px solid #dce5d9;border-radius:15px;padding:16px 16px 18px;margin:14px 0 24px}
.history-lens-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.history-lens-eyebrow{font-size:11px;font-weight:850;letter-spacing:.11em;color:#54735a;text-transform:uppercase}
.history-lens-context{font-size:11px;color:#6c806f;text-align:right}
.history-lens-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;padding-bottom:7px;margin-bottom:9px;scrollbar-width:thin}
.history-lens-tabs button{background:white;white-space:nowrap;border:1px solid #dbe5d8;border-radius:99px;font-size:11px;font-weight:750;padding:8px 11px;color:#567062}
.history-lens-tabs button.active{background:#214d3a;border-color:#214d3a;color:white}
.history-lens-copy h3{font-family:Georgia,serif;font-weight:500;font-size:21px;line-height:1.2;margin:12px 0 6px;color:#263d30}
.history-lens-copy .history-dates{font-weight:750;color:#708574;font-size:11px}
.history-lens-copy p{font-size:13px;line-height:1.7;color:#4e6053;margin:7px 0 0}
.history-lens-notice{border-left:3px solid #c1cfb8;padding:8px 11px;margin-top:12px;font-size:11px;line-height:1.55;color:#657867;background:#fff}
.history-lens-copy .related-source{font-size:11px;display:inline-flex;gap:4px;margin-top:10px;color:#456e54;text-decoration:underline}
@media(max-width:720px){.history-lens{padding:13px;margin:12px 0 20px}.history-lens-copy h3{font-size:19px}.history-lens-tabs button{font-size:11px}}

/* V4 · secondary history navigation within a period */
.history-subchapter-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:#718679;margin:2px 0 6px}
.history-subchapter-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.history-subchapter-tabs button{font-size:12px;font-weight:700;padding:8px 11px;border-radius:9px;border:1px solid #d2ded3;background:#fff;color:#456659}
.history-subchapter-tabs button.active{color:#fff;background:#2f5649;border-color:#2f5649}

/* Clusters represent nearby locations without moving either geographic pin */
.fallback-cluster{pointer-events:auto;position:absolute;transform:translate(-50%,-100%);z-index:35;white-space:nowrap}
.fallback-cluster>button,.online-cluster .cluster-main{border:1px solid #b1c5b7;background:#2f5649;color:white;font-size:12px;font-weight:850;border-radius:12px;padding:8px 12px;box-shadow:0 4px 14px #17382c38;white-space:nowrap}
.fallback-cluster>button small{display:block;color:#d8e9d7;font-size:10px;font-weight:500;margin-top:2px}
.cluster-choices{position:absolute;z-index:100;top:calc(100% + 5px);left:0;background:#fff;min-width:170px;padding:5px;border:1px solid #d7e1d8;border-radius:10px;box-shadow:0 10px 20px #1d3d3038;display:flex;flex-direction:column;gap:3px}
.cluster-choices button{border:0;text-align:left;border-radius:7px;padding:9px 10px;background:#f7f9f6;color:#23483a;font-weight:700;font-size:12px;white-space:nowrap}
.cluster-choices button:hover{background:#e8f1e8}
.online-cluster{position:relative;z-index:500}
.online-cluster .cluster-choices{top:calc(100% + 7px);z-index:999}

/* V4.1: one genuine map pin per historical site. No labels, group bubbles or marker clustering. */
.site-marker,.fallback-marker,.fallback-cluster,.online-cluster{display:none!important}
.history-pin{position:relative;display:block;width:calc(42px * var(--pin-scale,1));height:calc(48px * var(--pin-scale,1));padding:0;border:0;background:transparent;cursor:pointer;color:#285445;z-index:2;outline-offset:0;isolation:isolate}
.history-pin .pin-art{display:block;width:calc(30px * var(--pin-scale,1));height:calc(39px * var(--pin-scale,1));margin:0 auto;filter:drop-shadow(0 2px 3px #182b2670);transition:transform .15s ease,filter .15s ease;transform-origin:50% 100%}
.history-pin .pin-art path{fill:#295446;stroke:#fff;stroke-width:2;stroke-linejoin:round}
.history-pin .pin-art circle{fill:#fff;stroke:none}
.history-pin:is(:hover,:focus-visible) .pin-art{transform:scale(1.18);filter:drop-shadow(0 4px 6px #182b2680)}
.history-pin.is-active .pin-art path{fill:#b17832;stroke:#fff}
.history-pin.is-active .pin-art{transform:scale(1.2)}
.history-pin .pin-tip-label{position:absolute;left:50%;bottom:calc(47px * var(--pin-scale,1));transform:translate(-50%,2px);border:1px solid #dce3d6;border-radius:7px;padding:7px 10px;background:white;box-shadow:0 5px 16px #182b2644;color:#24473a;white-space:nowrap;font-size:12px;font-weight:750;line-height:1.25;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .13s ease,transform .13s ease;max-width:240px}
.history-pin:is(:hover,:focus-visible) .pin-tip-label{opacity:1;visibility:visible;transform:translate(-50%,-3px)}
.history-pin:focus-visible{outline:3px solid #a7cdb3;border-radius:12px}
.fallback-pin{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;z-index:7}
.fallback-pin.is-selected{z-index:20}
#fallbackPins{pointer-events:none}
.maplibregl-marker .history-pin{cursor:pointer}
.maplibregl-marker:has(.history-pin.is-active){z-index:100!important}
@media(max-width:720px){.history-pin .pin-tip-label{font-size:11px}}
