/* Photo locations are the map's navigation, with the journal's existing field-note palette. */
.entry-intro{display:block}.entry-intro .story{max-width:78ch}
.walk-map{margin-top:32px;border:1px solid #c6d0c5;border-radius:12px;background:var(--white);overflow:hidden;isolation:isolate}
.map-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px}
.map-heading .eyebrow{font-size:9px;color:var(--fern);letter-spacing:.12em}
.map-heading h3{font-size:20px;line-height:1.35;letter-spacing:-.035em;font-weight:600;margin-top:5px}
.map-heading p:last-child{font-size:11px;color:var(--muted);margin-top:5px}
.map-expand{display:flex;align-items:center;gap:8px;padding:0 14px;min-height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;background:var(--white);font-size:11px;font-weight:600}
.map-expand svg,.map-tools svg,.map-dialog-tools svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;border-block:1px solid var(--line);min-height:0}
.walk-map:not(.is-ready) .map-layout{grid-template-columns:1fr}
.map-canvas{position:relative;min-width:0;min-height:0;background:#dde5d6;isolation:isolate}
.walk-map .field-map{height:430px;width:100%;font-family:var(--body);background:#dfe6d9;z-index:0}
.map-tools{position:absolute;top:14px;right:14px;display:grid;border-radius:9px;background:var(--white);box-shadow:0 2px 12px #203d3224;overflow:hidden;border:1px solid #b7c5b5;z-index:2}
.map-tools button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border:0;font-size:25px;line-height:1}
.map-tools button+button{border-top:1px solid var(--line)}
.map-tools button:hover,.map-expand:hover,.map-step button:hover,.map-dialog-tools button:hover{background:#e6ede3}
.map-tools button:disabled{opacity:.35;cursor:default}
.map-selection{display:flex;flex-direction:column;min-width:0;background:var(--white);border-left:1px solid var(--line)}
.map-selected-photo{display:block;position:relative;height:185px;flex-shrink:0;overflow:hidden;background-position:center;background-size:cover}
.map-selected-photo img{width:100%;height:100%;object-fit:cover}
.map-selected-photo::after{content:'↗';position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:30px;height:30px;background:#fbfcf9ed;border-radius:50%;font-size:18px;color:var(--ink)}
.map-selection-copy{padding:16px 17px 10px;min-width:0}
.map-selected-meta{font-size:10px;letter-spacing:.04em;color:var(--copper);font-variant-numeric:tabular-nums}
.map-selected-caption{font:600 13px/1.5 var(--display);margin:7px 0 0;letter-spacing:-.015em}
.map-selected-coordinates{font-size:9px;color:var(--muted);margin-top:9px;font-variant-numeric:tabular-nums}
.map-selection-links{display:flex;flex-wrap:wrap;gap:3px 14px;margin-top:5px;font-size:10px}
.map-selection-links a{display:flex;align-items:center;min-height:36px;text-decoration:underline;text-underline-offset:3px}
.map-step{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding:8px 14px;border-top:1px solid var(--line)}
.map-step button{width:42px;height:40px;border:1px solid var(--line);border-radius:7px;background:var(--white);font-size:20px}
.map-counter{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}
.map-filmstrip{position:relative;display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#bbc8b7 transparent;padding:14px 18px 12px;min-height:84px}
.map-filmstrip button{position:relative;flex:0 0 48px;width:48px;height:58px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background-size:cover;background-position:center;opacity:.65;transition:opacity .18s,border-color .18s}
.map-filmstrip img{width:100%;height:100%;object-fit:cover}.map-filmstrip button>span{position:absolute;bottom:0;left:0;min-width:18px;padding:0 3px;background:#203d32df;color:white;font-size:9px;line-height:17px}
.map-filmstrip button[aria-current]{opacity:1;border-color:var(--copper);box-shadow:0 0 0 1px var(--copper)}.map-filmstrip button:hover{opacity:1}
.map-footer{display:flex;align-items:center;gap:16px;padding:8px 20px 14px;font-size:10px;line-height:1.5;color:var(--muted)}
.map-footer>span{margin-left:auto}.map-footer a{white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.map-footer p{margin:0}
.map-notice{position:absolute;bottom:30px;left:12px;right:68px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 14px;background:#fbfcf9f5;border:1px solid var(--line);border-radius:7px;font-size:11px;z-index:3;box-shadow:0 2px 10px #203d3210}
.map-notice button{border:0;background:none;text-decoration:underline;min-height:32px;font-size:11px}
.walk-map [hidden],.map-dialog-tools [hidden]{display:none}
.walk-map button:focus-visible,.walk-map a:focus-visible,.map-dialog-tools button:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
.walk-map .leaflet-control-attribution{font-size:9px!important;background:#fbfcf9e8;padding:2px 5px}
.walk-map .leaflet-control-scale-line{font-size:10px;line-height:1.4;border-color:#435b46;background:#fbfcf9d9;color:var(--ink)}
.walk-map .leaflet-container:focus-visible{outline:3px solid var(--copper);outline-offset:-3px}
.photo-pin,.photo-cluster{border:0;background:none;filter:drop-shadow(0 2px 3px #14291f50)}
.map-pin-face{position:relative;display:block;width:44px;height:44px;border:3px solid var(--white);border-radius:8px;background:#203d32;box-shadow:0 0 0 1px #203d3233}
.map-pin-face::after{content:'';position:absolute;bottom:-8px;left:13px;border:5px solid transparent;border-top-color:var(--white);border-bottom:0}
.map-pin-face img{width:100%;height:100%;object-fit:cover;border-radius:4px}
.map-pin-face>span{position:absolute;bottom:-1px;left:-1px;min-width:18px;border-radius:0 4px 0 3px;background:#203d32e8;color:white;text-align:center;font-size:9px;line-height:17px}
.photo-pin.is-selected .map-pin-face{border-color:var(--copper);box-shadow:0 0 0 3px #ffffffbd}
.photo-pin.is-selected .map-pin-face::after{border-top-color:var(--copper)}
.map-cluster-face{position:relative;display:block;width:52px;height:52px;border:3px solid var(--white);border-radius:50%;background:var(--ink);box-shadow:0 0 0 4px #54735c55;overflow:visible}
.map-cluster-face img{width:100%;height:100%;object-fit:cover;border-radius:50%;opacity:.8}
.map-cluster-face>strong{position:absolute;right:-7px;bottom:-5px;border:2px solid var(--white);border-radius:20px;min-width:25px;height:25px;padding:0 5px;background:var(--ink);color:white;font:600 11px/21px var(--body);text-align:center}
.photo-cluster.is-selected .map-cluster-face{box-shadow:0 0 0 4px #9b562e80}
.photo-pin:focus-visible,.photo-cluster:focus-visible{outline:3px solid var(--copper);outline-offset:5px}
.map-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#map-dialog{padding:0;width:min(1400px,calc(100vw - 48px));height:min(940px,calc(100dvh - 48px));max-width:none;max-height:none;border:1px solid var(--line);border-radius:14px;background:var(--white);color:var(--ink);overflow:hidden}
#map-dialog[open]{display:flex;flex-direction:column;animation:gallery-enter .2s ease-out}
#map-dialog::backdrop{background:#10231ddc;backdrop-filter:blur(8px)}
.map-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 22px;border-bottom:1px solid var(--line);flex-shrink:0}
.map-dialog-header>div:first-child{min-width:0}.map-dialog-header .eyebrow{font-size:8px;color:var(--muted)}
#map-dialog-title{font-size:14px;font-weight:600;letter-spacing:-.02em;line-height:1.4;margin-top:4px}
.map-dialog-tools{display:flex;gap:8px;flex-shrink:0}.map-dialog-tools button{display:grid;place-items:center;width:44px;height:44px;background:var(--white);border:1px solid var(--line);border-radius:50%}
.map-dialog-body{flex:1;min-height:0}
.map-dialog-body .walk-map{display:flex;flex-direction:column;height:100%;margin:0;border:0;border-radius:0}
.map-dialog-body .map-heading{display:none}
.map-dialog-body .map-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 280px;border-top:0}
.map-dialog-body .field-map{height:100%}
.map-dialog-body .map-selection{overflow-y:auto}
.map-dialog-body .map-selected-photo{height:clamp(140px,26vh,280px)}
.map-dialog-body .map-filmstrip,.map-dialog-body .map-footer{flex-shrink:0}
.map-dialog-body .map-footer>a{display:none}
@media(max-width:900px){
 .walk-map{margin-top:26px;border-radius:10px}.map-heading{padding:17px 15px;gap:12px;align-items:flex-start}.map-heading h3{font-size:17px}.map-heading p:last-child{font-size:10px}.map-heading .eyebrow{font-size:8px}
 .map-expand{padding:0;width:44px;justify-content:center}.map-expand span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .map-layout{display:flex;flex-direction:column}.walk-map .field-map{height:320px}
 .map-selection{display:grid;grid-template-columns:86px minmax(0,1fr);border-left:0;border-top:1px solid var(--line)}
 .map-selected-photo{height:100%;min-height:125px;grid-row:1 / 3}.map-selected-photo::after{width:26px;height:26px;bottom:10px;right:8px}
 .map-selection-copy{padding:11px 13px 3px}.map-selected-caption{font-size:12px;line-height:1.45;margin-top:4px}.map-selected-meta{font-size:10px}.map-selected-coordinates{font-size:9px;margin-top:5px}
 .map-selection-links{font-size:10px;gap:0 12px;margin-top:0}.map-selection-links a{min-height:36px}
 .map-step{grid-column:2;padding:4px 12px 9px;border:0;margin:0}.map-step button{height:44px;width:44px;font-size:18px}.map-counter{font-size:11px}
 .map-tools{top:12px;right:12px}.map-filmstrip{padding:12px 13px 10px;min-height:80px}
 .map-footer{padding:7px 13px 12px;gap:12px;font-size:9px;align-items:flex-start}.map-footer>span{display:none}.map-footer a{margin-left:auto}
 #map-dialog{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .map-dialog-header{padding:calc(9px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 9px max(14px,env(safe-area-inset-left));gap:9px}
 #map-dialog-title{font-size:11px}.map-dialog-tools{gap:5px}.map-dialog-tools button{width:42px;height:42px}
 .map-dialog-body .map-layout{display:flex}.map-dialog-body .map-canvas{flex:1;min-height:160px}.map-dialog-body .field-map{height:100%}
 .map-dialog-body .map-selection{flex-shrink:0;overflow:visible}.map-dialog-body .map-selected-photo{height:100%;min-height:0}
 .map-dialog-body .map-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}
@media(max-height:500px) and (orientation:landscape){
 #map-dialog{inset:0;margin:0;width:100%;height:100dvh;border:0;border-radius:0}
 .map-dialog-header{padding:5px 14px}.map-dialog-header .eyebrow{display:none}
 .map-dialog-body .map-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px}
 .map-dialog-body .map-selection{display:flex;overflow:auto;border-top:0;border-left:1px solid var(--line)}
 .map-dialog-body .map-selected-photo{height:95px;min-height:95px}.map-dialog-body .map-selection-copy{padding:8px 12px 3px}
 .map-dialog-body .map-filmstrip{display:none}.map-dialog-body .map-footer{padding:5px 14px}
}
@media(max-width:900px) and (max-height:650px) and (orientation:portrait){
 .map-dialog-body .map-filmstrip{min-height:62px;padding-block:8px}
 .map-dialog-body .map-filmstrip button{width:44px;height:46px;flex-basis:44px}
 .map-dialog-body .map-selected-coordinates{display:none}
 .map-dialog-body .map-selection-copy{padding:8px 12px 0}
 .map-dialog-body .map-step{padding-block:0 6px}
 .map-dialog-body .map-footer{padding-block:5px calc(6px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){#map-dialog[open]{animation:none}.map-filmstrip button{transition:none}}

/* Locations remain available without displacing the photographs. */
.map-disclosure{margin:22px 0 26px;border-block:1px solid var(--line)}
.map-disclosure>summary{display:flex;align-items:center;gap:12px;min-height:74px;padding:14px 0;list-style:none;cursor:pointer;font-size:13px;font-weight:600}
.map-disclosure>summary::-webkit-details-marker{display:none}
.map-disclosure>summary>svg{width:22px;height:22px;flex:none;fill:none;stroke:var(--fern);stroke-width:1.5}
.map-disclosure>summary>span:not(.map-disclosure-action){flex:1;min-width:0}
.map-disclosure small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:400;line-height:1.5}
.map-disclosure-action{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:500;color:var(--fern);white-space:nowrap}
.map-disclosure-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .25s ease}
.map-disclosure .map-hide-label,.map-disclosure[open] .map-show-label{display:none}
.map-disclosure[open] .map-hide-label{display:inline}
.map-disclosure[open] .map-disclosure-action svg{transform:rotate(180deg)}
.map-disclosure>summary:hover{color:var(--copper)}
.map-disclosure>summary:focus-visible{outline:2px solid var(--copper);outline-offset:5px;border-radius:4px}
.map-disclosure .walk-map{margin:0 0 20px}
@media(max-width:600px){.map-disclosure{margin:18px 0 22px}.map-disclosure>summary{gap:10px;min-height:72px}.map-disclosure-action{font-size:10px;gap:3px}.map-disclosure small{max-width:190px}}
@media(prefers-reduced-motion:reduce){.map-disclosure-action svg{transition:none}}
