/* Keep the buyer's next choice in focus; reveal map controls on demand. */
.scene-shade{background:linear-gradient(90deg,#061a21f7 0%,#061a21df 20%,#061a2166 37%,transparent 57%,transparent 80%,#061a214d 100%),linear-gradient(0deg,#061a21ed,transparent 24%),linear-gradient(180deg,#061a21cf,transparent 23%)}
.map-heading,.map-status,.compass,.atlas-survey,.atlas-editorial,#mapHint{display:none!important}
.map-dock{position:absolute;right:var(--pad);top:126px;display:flex;align-items:stretch;z-index:13;pointer-events:auto;border:1px solid #d8d1b33b;background:linear-gradient(120deg,#102c30dd,#0b2329c9);backdrop-filter:blur(22px);box-shadow:0 8px 30px #00182025;border-radius:4px}
.map-dock button{min-height:46px;display:flex;align-items:center;gap:10px;color:#e5e3cd;font-size:11px;padding:0 16px;letter-spacing:.2px}
.map-dock button:hover,.map-dock button[aria-expanded=true]{background:#dccb9c18;color:#fff2cc}
.map-dock svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.2}
.map-dock #mapOptions{border-left:1px solid #d8d1b326;color:#c5cfbe;padding:0 13px}
.map-dock #exploreMap{display:flex!important}.map-dock #exploreMap span{display:inline!important}
#mapPanel{position:fixed;inset:183px var(--pad) auto auto;margin:0;width:306px;max-height:calc(100dvh - 230px);overflow:auto;border:1px solid #c7c3a94a;border-radius:6px;padding:20px;background:linear-gradient(145deg,#183434f5,#0a242aef);backdrop-filter:blur(28px);color:#eeead8;box-shadow:0 18px 80px #00131e66;pointer-events:auto;font-family:var(--sans);z-index:30}
#mapPanel::backdrop{background:transparent}
.map-panel-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px;letter-spacing:.2px}
.panel-close{width:36px;height:36px;display:grid;place-items:center;font-size:25px;font-weight:300;color:#c6d0bd;border-radius:3px;line-height:1}
.panel-close:hover{color:#fff2cf;background:#dbceaa17}
.map-panel-caption{font-size:10px;letter-spacing:.6px;color:#aebfae;margin:20px 0 10px}
#mapPanel .atlas-controls{position:static;transform:none;display:flex;flex-direction:column;align-items:stretch;gap:10px;opacity:1;visibility:visible;pointer-events:auto;white-space:normal}
#mapPanel .atlas-style{display:grid;grid-template-columns:1fr 1fr;padding:3px;background:#061a2159;box-shadow:none;border:1px solid #adbfab30;border-radius:3px;backdrop-filter:none}
#mapPanel .atlas-style button{justify-content:center;padding:12px 8px;font-size:11px;min-height:44px;border-radius:2px}
#mapPanel .atlas-style button[aria-pressed=true]{background:#cbb78630;color:#fff1c9}
#mapPanel #coastFlight{display:flex;min-height:44px;padding:12px;font-size:11px;backdrop-filter:none;box-shadow:none;border-radius:3px;background:#c8b9860b}
#mapPanel #mapTools{position:static;display:grid;grid-template-columns:1fr 1fr;gap:8px;opacity:1;visibility:visible;pointer-events:auto}
#mapPanel .map-tool{display:flex;align-items:center;gap:9px;padding:12px;min-height:44px;font-size:11px;background:#09242a66;border:1px solid #c7c3a92b;border-radius:3px;backdrop-filter:none}
#mapPanel #drawButton{grid-column:1/-1;width:100%}#mapPanel #tiltMap{width:auto;justify-content:center}
#mapPanel .map-tool svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.2}
.map-panel-tip{font-size:11px;line-height:1.7;color:#adbeb3;margin:18px 0 0;border-top:1px solid #b4c2ab24;padding-top:14px}
.map-credits-bar{position:absolute;right:var(--pad);bottom:96px;display:flex;align-items:center;gap:10px;z-index:12;pointer-events:auto}
.map-credits-bar .map-credit{position:static;transform:none;display:block;max-width:none;font-size:8px;line-height:1.6;letter-spacing:0;white-space:normal;color:#c0ccba;text-shadow:0 1px 5px #001820,0 0 12px #001820}
#mapInfo{flex-shrink:0;width:32px;height:32px;border:1px solid #b9c8b457;border-radius:50%;background:#09252bc7;backdrop-filter:blur(10px);color:#e6e3ce;font-family:var(--serif);font-size:18px}
#mapInfo:hover{background:#244039;color:#fff1cb}
#mapInfoDialog{width:min(510px,calc(100vw - 40px));padding:42px;background:linear-gradient(145deg,#193633,#0a2429);border:1px solid #cfc19c5c;color:#eae7d8;border-radius:6px;max-height:85dvh;overflow:auto;box-shadow:0 30px 120px #00121b99}
#mapInfoDialog::backdrop{background:#03171dbb;backdrop-filter:blur(8px)}
#mapInfoDialog .panel-close{position:absolute;right:12px;top:12px}
#mapInfoDialog h2{font-family:var(--serif);font-size:42px;font-weight:400;margin:18px 0;line-height:1.1}
#mapInfoDialog h3{font-size:12px;font-weight:500;letter-spacing:.3px;margin:26px 0 10px;color:#decda7}
#mapInfoDialog p{font-size:12px;line-height:1.85;color:#c1cec0;margin:0}
.source-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:20px}.source-links a{font-size:10px;color:#ddcda7;text-underline-offset:4px}
.flight-pause{position:absolute;top:184px;right:var(--pad);display:none;align-items:center;gap:10px;z-index:13;pointer-events:auto;min-height:44px;padding:10px 17px;background:#102d30e6;border:1px solid #c6b78966;border-radius:4px;font-size:11px;color:#f1dfb5;backdrop-filter:blur(18px)}
.coast-flight .flight-pause{display:flex}.flight-pause>span:first-child{font-size:15px}
body.map-explore .scene-shade{opacity:.85;background:linear-gradient(90deg,#061a214d,transparent 19%,transparent 80%,#061a2155),linear-gradient(0deg,#061a21cc,transparent 18%),linear-gradient(180deg,#061a2199,transparent 24%)}
body.map-explore .map-credits-bar{bottom:28px}
body.drawing .map-dock{opacity:.75}.map-note{top:190px;right:var(--pad);left:auto;max-width:330px;text-align:right;padding:12px 14px;background:#0a252ce8;backdrop-filter:blur(15px);border-radius:3px;z-index:12}.map-note:empty{display:none}
body.results-mode .map-dock,body.results-mode .map-credits-bar,body.tour-mode .map-dock,body.tour-mode .map-credits-bar{display:none}
body.map-explore .map-dock,body.map-explore .map-credits-bar{display:flex}
button:focus-visible,a:focus-visible{outline:2px solid #eed4a0;outline-offset:4px}
@media(min-width:1800px){.map-dock{top:145px}.map-dock button{min-height:52px;font-size:13px}#mapPanel{top:210px;width:330px}.map-credits-bar{bottom:110px}.map-credits-bar .map-credit{font-size:9px}.flight-pause{top:210px}}
@media(max-height:790px) and (min-width:901px){.map-dock{top:102px}#mapPanel{top:156px;max-height:calc(100dvh - 185px)}.map-credits-bar{bottom:78px}.flight-pause{top:158px}.map-note{top:160px}}
@media(max-width:900px){
 .scene-shade{background:linear-gradient(0deg,#061a21fc 6%,#061a21f0 35%,#061a2188 54%,transparent 78%),linear-gradient(180deg,#061a2199,transparent 28%),linear-gradient(270deg,#061a214d,transparent 35%)}
 .map-dock{right:24px;top:100px}.map-dock button{font-size:10px;min-height:42px;padding:0 12px}.map-dock #mapOptions{padding:0 10px}.map-dock svg{width:15px;height:15px}
 #mapPanel{top:151px;right:24px;width:min(306px,calc(100vw - 48px));max-height:calc(100dvh - 175px);padding:17px}
 .map-credits-bar{right:24px;bottom:78px;gap:8px}.map-credits-bar .map-credit{font-size:6px;max-width:235px}#mapInfo{width:28px;height:28px;font-size:16px}
 body.map-explore .map-credits-bar{bottom:22px}.flight-pause{top:151px;right:24px;font-size:10px}.map-note{top:155px;right:24px;max-width:280px;font-size:10px}
 #mapInfoDialog{padding:32px 25px}#mapInfoDialog h2{font-size:36px}
}
@media print{.map-dock,.map-credits-bar,.flight-pause,#mapPanel,#mapInfoDialog{display:none!important}}
/* Geographic anchors and leaders share one lower SVG layer. Every card is above it. */
#mapLabels{isolation:isolate;mask-image:none}
#markerLines{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;pointer-events:none}
.marker-leader{fill:none;stroke:#e0c997;stroke-width:1;stroke-opacity:.7;vector-effect:non-scaling-stroke}
.marker-anchor{fill:#f8e4ad;stroke:#29433b;stroke-width:2;vector-effect:non-scaling-stroke}
.marker-edge-arrow{fill:none;stroke:#dfd1ad;stroke-width:1.5;vector-effect:non-scaling-stroke}
#markerLines .dimmed{opacity:.45}#markerLines .selected .marker-leader{stroke-opacity:1;stroke-width:1.5}
#markerLines .approx .marker-leader{stroke-dasharray:4 4}
#mapLabels .place-label{z-index:1}
#mapLabels .map-marker{position:absolute;display:block;transform:none;z-index:2;opacity:1;filter:none;padding:0;margin:0;white-space:normal;pointer-events:auto;transition:opacity .25s}
#mapLabels .map-marker.selected,#mapLabels .map-marker:hover,#mapLabels .map-marker:focus-visible{z-index:3}
#mapLabels .map-marker.dimmed{opacity:.68;filter:none}
#mapLabels .map-marker.dimmed:hover,#mapLabels .map-marker.dimmed:focus-visible{opacity:1}
#mapLabels .map-marker .marker-text{position:relative;left:auto;bottom:auto;transform:none;display:flex;align-items:center;gap:10px;width:202px;min-width:0;max-width:none;min-height:68px;padding:10px 12px;white-space:normal;background:#102d30;border:1px solid #9eac9259;border-left:2px solid #a9ba9a;border-radius:3px;box-shadow:0 5px 22px #00151b40;backdrop-filter:none;transition:background .2s,border-color .2s}
#mapLabels .map-marker.selected .marker-text{width:246px;min-width:0;min-height:86px;border-color:#d9c295;background:#254038;box-shadow:0 6px 28px #00151b66}
#mapLabels .map-marker .marker-caption{display:block;min-width:0;flex:1}
#mapLabels .map-marker .marker-text strong{font-size:12px;line-height:1.4;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:#f3efdb}
#mapLabels .map-marker .marker-text small{font-size:10px;line-height:1.4;margin-top:3px;color:#c9d2bb;letter-spacing:0}
#mapLabels .map-marker .marker-category{font-size:7px;margin-bottom:5px;letter-spacing:1px}
#mapLabels .map-marker .marker-arrow{font-size:18px;margin-left:0;align-self:center}
#mapLabels .map-marker .marker-text img{width:43px;height:57px;flex-shrink:0;border-radius:1px}
#mapLabels .map-marker .marker-edge-tag{display:block;visibility:hidden;height:10px;line-height:10px;margin-top:2px;font-size:7px;letter-spacing:.3px;color:#d0be96}
#mapLabels .map-marker.offscreen .marker-edge-tag{visibility:visible}
#mapLabels .map-marker.offscreen .marker-text{border-left-style:dashed}
#mapLabels .map-marker:hover .marker-text,#mapLabels .map-marker:focus-visible .marker-text{background:#2d4940;border-color:#f0d49f;transform:none}
#mapLabels .marker-stem{display:none}
#mapLabels.compact-markers .map-marker .marker-text,#mapLabels.compact-markers .map-marker.selected .marker-text{width:154px;min-height:52px;padding:6px 9px;gap:6px}
#mapLabels.compact-markers .map-marker .marker-text strong{font-size:10px}
#mapLabels.compact-markers .map-marker .marker-text small{font-size:8px;margin-top:1px}
#mapLabels.compact-markers .marker-category,#mapLabels.compact-markers .marker-text img,#mapLabels.compact-markers .marker-arrow{display:none!important}
#mapLabels.marker-rail{left:var(--rail-left);top:var(--rail-top);width:var(--rail-width);height:var(--rail-height);display:grid;grid-template-columns:repeat(auto-fit,minmax(154px,1fr));align-content:start;gap:6px;overflow:auto;padding:2px;pointer-events:auto}
#mapLabels.marker-rail .map-marker{position:static}#mapLabels.marker-rail #markerLines,#mapLabels.marker-rail .place-label{display:none}
@media(max-width:900px){#mapLabels.compact-markers .map-marker .marker-text,#mapLabels.compact-markers .map-marker.selected .marker-text{width:140px;min-height:48px;padding:5px 8px}#mapLabels.compact-markers .map-marker .marker-text strong{font-size:9px}#mapLabels.compact-markers .map-marker .marker-text small{font-size:7px}}
@media(prefers-reduced-motion:reduce){#mapLabels .map-marker,#mapLabels .map-marker .marker-text{transition:none}}
@media(min-width:1800px){#mapLabels .map-marker .marker-text{width:220px}#mapLabels .map-marker.selected .marker-text{width:270px;min-height:90px}#mapLabels .map-marker .marker-text strong{font-size:14px}#mapLabels .map-marker .marker-text small{font-size:11px}}
/* Muted projects keep an opaque card: no lower leader can show through it. */
#mapLabels .map-marker.dimmed{opacity:1}
#mapLabels .map-marker.dimmed .marker-text{background:#142b2e;border-color:#71877c66;border-left-color:#7d9484}
#mapLabels .map-marker.dimmed .marker-text strong{color:#b1c0b1}
#mapLabels .map-marker.dimmed .marker-text small{color:#95a997}
#mapLabels .map-marker.dimmed:hover .marker-text,#mapLabels .map-marker.dimmed:focus-visible .marker-text{background:#29433b;border-color:#d5c7a5}


/* Fixed geographic targets: clear at every zoom, no pulsating position. */
.marker-anchor-halo{fill:#d9bd7830;stroke:#e3cf9dcc;stroke-width:1.5;vector-effect:non-scaling-stroke}
.marker-anchor{fill:#f1daa3;stroke:#123034;stroke-width:2.5;vector-effect:non-scaling-stroke}
#markerLines .selected .marker-anchor-halo{fill:#e6c68340;stroke:#f6dda6;stroke-width:2}
#markerLines .dimmed{opacity:.65}
.marker-leader{stroke:#e4d1a3;stroke-opacity:.85;stroke-width:1.25}
