.map-page{--map-bg:#242f33}.map-page [hidden]{display:none!important}
.atlas{background:var(--panel);border:1px solid var(--edge);border-radius:20px;overflow:hidden}
.atlas-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,26%)}.map-frame{position:relative;min-width:0;isolation:isolate;border-radius:19px;overflow:hidden}.map-frame,#atlas-map{height:clamp(350px,58vh,660px);min-height:0}#atlas-map{width:100%;background:var(--map-bg);direction:ltr;font:inherit}.leaflet-control-container{display:none}
.zoom-stack,.map-compass,.map-credit{position:absolute;z-index:500;direction:ltr}.zoom-stack{top:12px;left:12px;display:grid;border:1px solid #596362;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #12171c80}.zoom-stack button{width:34px;height:34px;background:#242c2c;color:#fff;font:500 21px/1 system-ui}.zoom-stack button+button{border-top:1px solid #485251}.zoom-stack button:hover{background:#394445}.zoom-stack button:disabled{color:#859091}.map-compass{top:12px;right:13px;display:grid;justify-items:center;color:#dbd8c9;line-height:1;font-size:.92rem;pointer-events:none}.map-compass small{font:700 9px/1.2 system-ui}.map-credit{bottom:0;right:0;background:#172124ed;color:#c4cdcc;padding:2px 16px 2px 6px;font:10px/1.25 system-ui}.map-credit a:hover{text-decoration:underline}
.atlas-label{color:#c7cecb;text-shadow:0 1px 3px #132125,1px 0 2px #132125,-1px 0 2px #132125;font:600 10px/14px system-ui;white-space:nowrap;text-align:center;pointer-events:none!important}.water-label{color:#8fbcc8;font-style:italic;font-weight:500;letter-spacing:.03em}
.atlas-dot,.pin-index{display:grid;place-items:center;--pin:var(--category-accent,#a79986);border-radius:50%;font:700 11px/1 system-ui;font-variant-numeric:tabular-nums}.atlas-dot{width:23px;height:23px;margin:3.5px;color:#121916;background:var(--pin);border:2px solid color-mix(in srgb,var(--pin) 85%,white);box-shadow:0 0 0 4px color-mix(in srgb,var(--pin) 22%,transparent),0 0 16px 4px color-mix(in srgb,var(--pin) 67%,transparent),0 2px 4px #101918a8}.light-pin:focus-visible .atlas-dot,.light-pin:hover .atlas-dot{outline:2px solid #fff;outline-offset:3px}.atlas-dot.pin-started{--pin:#94999a;box-shadow:none;opacity:var(--past-opacity)}
.leaflet-tooltip.venue-tip{background:#1d282a;color:#eeede7;border:1px solid #566368;box-shadow:0 2px 5px #0005}
.venue-rail{min-width:0;overflow:auto;max-height:clamp(350px,58vh,660px);border-inline-start:1px solid var(--edge)}.venue-choice{width:100%;text-align:start;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:6px;align-items:center;padding:8px 10px;border-top:1px solid var(--edge)}.venue-choice:hover,.venue-choice:focus-visible{background:var(--raised)}.pin-index{width:20px;height:20px;color:var(--pin);border:1px solid var(--pin)}.venue-lines strong,.venue-lines small{display:block;overflow-wrap:anywhere}.venue-lines strong{font-size:.84rem;line-height:1.35}.venue-lines small,.choice-edge{font-size:.7rem;color:var(--muted)}.choice-edge{max-width:5.3rem;text-align:end}.venue-choice.pin-started{opacity:var(--past-opacity);filter:grayscale(1)}.venue-choice.pin-started:focus-visible,.light-pin:focus-visible .atlas-dot.pin-started{opacity:var(--past-focus)}#map-status{font-size:.8rem;color:var(--muted);padding:0 10px}#map-status:not(:empty){padding-block:10px}
@media(max-width:720px){.atlas-grid{grid-template-columns:minmax(0,1fr)}.map-frame,#atlas-map{height:clamp(285px,48dvh,480px)}.venue-rail{border-inline-start:0;border-top:1px solid var(--edge);max-height:45dvh;margin-top:var(--card-gap)}.venue-choice{min-height:43px}}

.zoom-stack button{display:grid;place-items:center;padding:0}.zoom-stack .icon{width:16px;height:16px}.venue-choice:first-child{border-top:0}

.venue-choice:not(.pin-started) .choice-edge{color:var(--time-ink);font-weight:650}

[data-theme=light] .map-page{--map-bg:#e4e7de}
[data-theme=light] .zoom-stack{border-color:#acb6b1;box-shadow:0 2px 8px #344d3b29}
[data-theme=light] .zoom-stack button{background:var(--panel);color:var(--text);border-color:var(--edge)}
[data-theme=light] .zoom-stack button:hover{background:var(--raised)}
[data-theme=light] .zoom-stack button:disabled{color:var(--muted)}
[data-theme=light] .map-credit{background:#f5f6f2ed;color:#46554e}
[data-theme=light] .map-credit a{color:#345d63}
[data-theme=light] .map-compass,[data-theme=light] .atlas-label{color:#405348;text-shadow:0 1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff}
[data-theme=light] .water-label{color:#355b6b}
[data-theme=light] .atlas-dot{color:#111912;box-shadow:0 0 0 3px color-mix(in srgb,var(--pin) 32%,transparent),0 1px 5px #3240355c}
[data-theme=light] .atlas-dot.pin-started{box-shadow:none}
[data-theme=light] .pin-index{color:var(--text);background:color-mix(in srgb,var(--pin) 22%,var(--panel))}
[data-theme=light] .leaflet-tooltip.venue-tip{background:var(--panel);color:var(--text);border-color:var(--edge)}
[data-theme=light] .leaflet-tooltip-top.venue-tip:before{border-top-color:var(--edge)}
[data-theme=light] .leaflet-tooltip-bottom.venue-tip:before{border-bottom-color:var(--edge)}

.atlas-dot.pin-started, .venue-choice.pin-started .pin-index {
  --pin: var(--muted);
  background: transparent;
  border: 2px solid var(--pin);
  color: var(--text);
  box-shadow: none;
  opacity: 1;
}
.atlas + .past-section { margin-block-start: var(--section-space); }

#map-started > summary { cursor: pointer; padding: 8px 10px; border-top: 1px solid var(--edge); color: var(--muted); font-size: .8rem; font-weight: 600; }
