.geo-frame { position:relative; isolation:isolate; container-type:inline-size; width:100%; aspect-ratio:var(--map-ratio); overflow:hidden; border:1px solid #aab6a1; border-radius:3px; background:#eee7d2; }
.geo-layer { position:absolute; inset:0; height:100%; width:100%; pointer-events:none; }
.geo-compass,.geo-scale { position:absolute; z-index:2; pointer-events:none; color:#2e4039; font:650 11px/1.1 var(--sans); text-shadow:0 0 4px #fff,0 0 2px #fff; }
.geo-compass { top:3.5%; right:3.7%; display:grid; justify-items:center; gap:2px; }
.geo-compass i { width:9px; height:16px; background:linear-gradient(90deg,#314b3d 50%,#a1a794 50%); clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%); }
.geo-scale { left:4%; bottom:4%; width:var(--scale-width); min-height:13px; border-bottom:2px solid; text-align:center; white-space:nowrap; padding-bottom:3px; }
.geo-scale::before,.geo-scale::after { content:""; position:absolute; bottom:-1px; height:5px; border-left:1px solid; }
.geo-scale::before { left:0; }.geo-scale::after { right:0; }
.geo-extent { stroke:#9a4c2f; fill:#fff6d7; fill-opacity:.3; stroke-width:1.6; stroke-dasharray:5 2; }
.geo-rivers { stroke:#39808b; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.geo-west,.geo-peak { --map-ink:#70462c; }
.geo-north { --map-ink:#194d3d; }
.geo-rural { --map-ink:#41603a; }
.geo-river { --map-ink:#236975; }
.geo-temple,.geo-zoom { --map-ink:#92482e; }
.geo-town { --map-ink:#4b544e; }
.geo-icon { width:1.55rem; height:1.55rem; flex:none; color:var(--map-ink,#365744); }
.geo-lead { stroke:var(--map-ink,#384c3c); stroke-width:1.15px; opacity:.9; }
.geo-point { display:block; position:absolute; width:10px; height:10px; border-radius:50%; transform:translate(-50%,-50%); background:var(--map-ink,#355943); border:1.5px solid #fffbea; box-shadow:0 0 0 1px var(--map-ink,#355943); }
.geo-label { position:absolute; z-index:2; width:max-content; max-width:49%; display:flex; align-items:center; gap:.42rem; border:1px solid #a7b09f; border-left:3px solid var(--map-ink,#365744); border-radius:3px; padding:.38rem .5rem; text-decoration:none; background:#fffdf4f5; color:#243e33; box-shadow:0 2px 4px #233d2b20; text-align:start; }
.geo-label.edge-start { transform:translateY(-50%); }.geo-label.edge-end { transform:translate(-100%,-50%); }
.geo-label strong,.geo-label small { display:block; }
.geo-label strong { font:650 clamp(.82rem,3.2cqw,1.16rem)/1.14 var(--serif); }
.geo-label small { color:var(--map-ink); font:500 clamp(.7rem,2.25cqw,.84rem)/1.2 var(--sans); margin-top:.18rem; }
.geo-arrow { font:500 .85rem/1 var(--sans); color:var(--map-ink); }
a.geo-label { min-height:44px; }
a.geo-label:hover,a.geo-label:focus-visible { z-index:4; background:white; border-color:var(--map-ink); box-shadow:0 3px 10px #2037283d; }
.geo-label:not(a) { border:0; box-shadow:none; background:#f8f4e6e6; padding:.22rem .35rem; gap:.22rem; }
.geo-label:not(a) strong { font:600 clamp(.71rem,2.8cqw,.88rem)/1.15 var(--sans); }
.geo-label:not(a) .geo-icon { width:16px; height:16px; }
@container(max-width:420px) {
 .geo-label { gap:.22rem; padding:.24rem .32rem; }
 .geo-label .geo-icon { width:17px; height:17px; }
 .geo-label .geo-arrow { display:none; }
 .geo-compass { font-size:9px; }
 .geo-compass i { height:12px; }
 .geo-locator .geo-label.geo-rural .geo-icon { display:none; }
}
