/* Map workspace: quiet cartography, readable controls, one visual hierarchy. */
#map-section{--map-surface:#fffefb;--map-ink:#203c32;--map-muted:#5c6c63;--map-line:#dce2da;--map-soft:#f1f4ee;--map-active:#264d3d;padding-top:30px}
#map-section>.wrap>.section-head{margin-bottom:24px}
#map-section>.wrap>.section-head h2{font-size:clamp(27px,3vw,34px);font-weight:750;letter-spacing:-.04em;line-height:1.4}
#map-section>.wrap>.section-head p{color:var(--map-muted);font-size:14px!important}
#map-section .map-panel{border:1px solid var(--map-line);border-radius:20px;background:var(--map-surface);box-shadow:0 12px 40px #203c3207}
#map-section .map-search-toolbar{padding:22px 20px 16px!important;gap:10px 8px;background:var(--map-surface)}
#map-section .map-search-label{grid-column:1/-1;color:var(--map-ink);font-size:15px;font-weight:700;letter-spacing:-.025em}
#map-section #place-search-input{min-height:50px;padding:12px 38px 12px 14px!important;border:1px solid #cbd5cc!important;border-radius:10px!important;background:var(--map-surface)!important;font-size:15px!important;color:var(--map-ink)}
#map-section #place-search-input::placeholder{color:#748178;opacity:1}
#map-section #place-search-btn{min-width:58px;min-height:50px;padding:12px!important;border-radius:10px!important;background:var(--map-active);color:#fffefb;font-weight:650;letter-spacing:-.02em}
#map-section #place-search-btn:disabled{opacity:.65}
#map-section .map-search-clear{top:58px;right:88px;width:36px;height:42px;color:var(--map-muted)}
#map-section .map-search-status{font-size:12px;line-height:1.7;color:var(--map-muted)}
#map-section #place-search-results{left:20px!important;right:20px!important;max-height:360px!important;border:1px solid var(--map-line)!important;border-radius:12px!important;background:var(--map-surface)!important;box-shadow:0 12px 32px #203c321c!important}
#map-section #place-search-results :is(button,a){font-family:inherit;font-size:14px!important;line-height:1.7;min-height:44px}
#map-section #place-search-results small{font-size:12px!important;line-height:1.65;color:var(--map-muted)}
#map-section .map-category-toolbar{padding:0 20px 18px!important;gap:10px;background:var(--map-surface)}
#map-section .map-filter-label{display:block;width:100%;font-size:12px;font-weight:600;color:var(--map-muted)}
#map-section #view-filter-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;background:none;border-radius:0}
#map-section #view-filter-group .chip{min-height:44px;gap:8px;padding:10px;border:1px solid var(--map-line);border-radius:9px;color:var(--map-ink);background:var(--map-surface);font-size:13px;font-weight:550;box-shadow:none;transition:background .15s,border-color .15s}
#map-section #view-filter-group .chip.active{border-color:var(--map-active);background:var(--map-active);color:#fffefb;font-weight:650;box-shadow:none}
#map-section #view-filter-group .dot{width:6px;height:6px;background:currentColor!important;opacity:.6}
#map-section #map-filter-note{font-size:12px!important;color:var(--map-muted)!important;line-height:1.75}
#map-section .map-results-bridge{padding:16px 20px!important;border-top:1px solid var(--map-line);background:var(--map-soft)}
#map-section .map-results-bridge p{color:var(--map-ink);font-size:13px;line-height:1.8}
#map-section .map-results-bridge>div{gap:8px;margin-top:10px}
#map-section .explore-view-button{min-height:44px;padding:9px 12px;border:1px solid #cbd5cc;border-radius:8px;background:var(--map-surface);color:var(--map-ink);font-size:12px;font-weight:650;line-height:1.6}
#map-section .map-wrap-relative{background:#e8eee7;isolation:isolate}
#map-section #map{height:560px;background:#e8eee7;font-family:var(--experience-font)}
#map-section .leaflet-tile-pane{filter:saturate(.72)}
#map-section .marker-cluster{box-sizing:border-box;border:1px solid #8da596;background:#f8fbf5eb;box-shadow:0 2px 8px #233f3320}
#map-section .marker-cluster div{width:32px;height:32px;margin:3px;border-radius:50%;background:#2d5442;color:#fff;font:650 13px/32px var(--experience-font);font-variant-numeric:tabular-nums;box-shadow:none}
#map-section .marker-cluster span{line-height:32px}
#map-section .leaflet-control-zoom{margin:16px;border:1px solid #d3dcd3;border-radius:10px;box-shadow:0 2px 12px #203c3214}
#map-section .leaflet-control-zoom a{width:42px;height:44px;line-height:44px;border-color:var(--map-line);background:var(--map-surface);color:var(--map-ink);font-weight:400}
#map-section .locate-btn{right:16px;bottom:30px;width:46px;height:46px;border:1px solid #d3dcd3;border-radius:10px;background:var(--map-surface);color:var(--map-ink);box-shadow:0 2px 12px #203c3214}
#map-section .leaflet-control-attribution{font:10px/1.5 var(--experience-font);background:#fffefbe8;color:#46594d;max-width:100%}
#map-section .leaflet-control-attribution a{color:#355746}
#map-section .leaflet-popup-content-wrapper{border:1px solid var(--map-line);border-radius:14px;background:var(--map-surface);color:var(--map-ink);box-shadow:0 8px 28px #203c3224}
#map-section .leaflet-popup-content{margin:20px;max-height:320px;overflow-y:auto;overscroll-behavior:contain;font:14px/1.85 var(--experience-font);overflow-wrap:anywhere}
#map-section .leaflet-popup-content strong{display:inline-block;margin:0 22px 6px 0;font-size:17px;line-height:1.5;letter-spacing:-.025em}
#map-section .leaflet-popup-content small{font-size:12px;line-height:1.75;color:var(--map-muted)}
#map-section .leaflet-popup-content a{display:inline-block;min-height:36px;box-sizing:border-box;padding:5px 0;font-weight:650;color:var(--map-active)!important;text-underline-offset:4px}
#map-section .leaflet-container a.leaflet-popup-close-button{width:36px;height:36px;line-height:36px;color:var(--map-muted);font-size:22px}
#map-section .place-map-pin{display:grid;place-items:center;box-sizing:border-box;width:34px;height:38px;border:2px solid #fffefb;border-radius:12px 12px 12px 4px;background:var(--pin-color,#385747);color:#fff;box-shadow:0 3px 8px #203c3229}
#map-section .place-map-pin svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#map-section #registered-place-filters{padding:18px 20px!important;border-color:var(--map-line);gap:12px;background:var(--map-surface)}
#map-section #registered-place-filters :is(input,select){border:1px solid #cbd5cc!important;background:var(--map-surface);color:var(--map-ink);min-height:46px}
#map-section #facility-filter-count{font-size:12px;line-height:1.75;color:var(--map-muted)}
#map-section #facility-search-results{margin:0;padding:16px 20px;max-height:280px;border:0;border-top:1px solid var(--map-line);border-radius:0;background:var(--map-surface);font-size:13px}
#map-section #facility-search-results summary{cursor:pointer;min-height:44px;font-weight:650}
#map-section .map-course-peek{padding:18px;border:1px solid var(--map-line);border-radius:14px;background:var(--map-surface);box-shadow:0 8px 32px #203c3226;color:var(--map-ink)}
#map-section .map-peek-info>strong{font-size:19px;line-height:1.5;letter-spacing:-.03em}
#map-section .map-peek-info p{font-size:13px;line-height:1.75;color:var(--map-muted)}
#map-section .map-peek-condition{padding-top:10px;border-top:1px solid var(--map-line)}
#map-section .map-peek-actions button{font-size:13px;border-color:var(--map-line);border-radius:8px;color:var(--map-ink);background:var(--map-surface)}
#map-section .map-peek-actions [data-peek-detail]{background:var(--map-active);color:#fffefb;border-color:var(--map-active)}
#map-section .map-legend-details{padding:0 20px;background:var(--map-surface);border-color:var(--map-line)}
#map-section .map-legend-details summary{min-height:48px;font-size:12px;font-weight:550;color:var(--map-muted)}
#map-section .map-legend{font-size:12px;line-height:1.85;color:var(--map-muted)}
#map-section .map-recommendations{margin-top:38px}
#map-section .map-recommendations h2{font-size:25px!important;font-weight:700}
#map-section :is(button,input,select,summary,a):focus-visible{outline:3px solid #a4593b;outline-offset:3px}
#map-section [hidden]{display:none!important}
@media(min-width:1000px){#map-section .map-panel{grid-template-columns:330px minmax(0,1fr)}#map-section #map{height:620px}#map-section .map-wrap-relative{border-color:var(--map-line)}}
@media(max-width:999px){#map-section #view-filter-group{grid-template-columns:repeat(4,minmax(0,1fr))}#map-section .map-results-bridge{display:flex;align-items:center;justify-content:space-between;gap:12px}#map-section .map-results-bridge>div{margin:0;flex-shrink:0}}
@media(max-width:700px){#map-section{padding-top:22px}#map-section>.wrap>.section-head{margin-bottom:18px}#map-section>.wrap>.section-head h2{font-size:27px}#map-section>.wrap>.section-head p{font-size:13px!important;line-height:1.8!important}#map-section .map-panel{border-radius:16px}#map-section .map-search-toolbar{padding:16px 14px 14px!important}#map-section .map-search-label{font-size:14px}#map-section #place-search-input{font-size:16px!important}#map-section .map-search-clear{top:50px;right:82px}#map-section #place-search-results{left:14px!important;right:14px!important;max-height:300px!important}#map-section .map-category-toolbar{padding:0 14px 14px!important;gap:8px}#map-section .map-filter-label{display:none}#map-section #view-filter-group{gap:5px}#map-section #view-filter-group .chip{font-size:12px;padding:8px 4px;min-height:44px}#map-section .map-results-bridge{align-items:flex-start;padding:12px 14px!important;gap:8px}#map-section .map-results-bridge p{font-size:12px;line-height:1.75}#map-section .map-results-bridge>div{flex-direction:column;gap:6px}#map-section .explore-view-button{min-height:44px;padding:8px 10px;font-size:11px}#map-section #map{height:clamp(400px,57dvh,560px);min-height:400px}#map-section .leaflet-control-zoom{margin:12px}#map-section .locate-btn{right:12px;bottom:30px}#map-section #registered-place-filters{padding:16px 14px!important}#map-section .map-course-peek{padding:14px;left:10px;right:10px;bottom:10px;max-height:65%;grid-template-columns:76px minmax(0,1fr)}#map-section .map-peek-info>strong{font-size:17px}#map-section .map-peek-actions{gap:6px}#map-section .map-peek-actions button{font-size:12px;min-height:44px;padding:9px}#map-section .map-legend-details{padding:0 14px}#map-section .map-recommendations{margin-top:30px}#map-section .map-recommendations h2{font-size:23px!important}}
@media(max-width:360px){#map-section #view-filter-group .chip{font-size:12px}}
@media(prefers-reduced-motion:reduce){#map-section #view-filter-group .chip{transition:none}}
html[data-theme="dark"] #map-section{--map-surface:#24362d;--map-ink:#edf3eb;--map-muted:#bbc9bc;--map-line:#4c6050;--map-soft:#2e4134;--map-active:#3e674e}

#map-section :is(h2,h3,button,input,select,p,summary){font-family:var(--experience-font)!important}
#map-section .map-peek-info:first-of-type{grid-column:1/-1}
@media(max-width:999px){#map-section .map-results-bridge{flex-wrap:nowrap}#map-section .map-results-bridge p{min-width:0;flex:1}#map-section .map-results-bridge>div{width:auto!important;flex:0 0 auto}}
@media(min-width:361px) and (max-width:700px){#map-section #view-filter-group .chip{font-size:13px}}

#map-section .map-search-label{margin:0!important;line-height:24px}
#map-section #place-search-input{grid-area:2/1}
#map-section #place-search-btn{grid-area:2/2}
#map-section .map-search-clear{position:relative;grid-area:2/1;align-self:center;justify-self:end;top:auto;right:auto;margin-right:3px;width:40px;height:44px;padding:0;z-index:1}
#map-section #registered-place-filters label{display:flex;align-items:center;gap:8px;width:100%;margin:0;font-size:13px}
#map-section #registered-place-filters select{flex:1;min-width:0}
#map-section #facility-filter-query{min-width:0!important}
#map-section #registered-place-filters .chip{min-height:44px;margin:0;padding:9px 12px;border:1px solid var(--map-line);border-radius:8px;background:var(--map-surface);color:var(--map-ink);font-size:12px}

#map-section #facility-filter-count{flex:0 0 100%;width:100%}
#map-section .leaflet-popup-content .map-place-conditions{margin:10px 0;font-size:13px;line-height:1.75;color:var(--map-ink)}
#map-section .leaflet-popup-content .map-place-primary{display:block;padding:10px 12px;border:1px solid var(--map-line);border-radius:8px;background:var(--map-soft);text-align:center;text-decoration:none}
#map-section .leaflet-popup-content .place-photo>img{height:120px!important;max-height:120px!important;object-fit:contain!important}
#map-section .map-popup-details{border-top:1px solid var(--map-line);padding-top:8px;margin-top:12px}
#map-section .map-popup-details>summary{font-size:13px;min-height:44px;cursor:pointer}
/* Map studio: full-width canvas and a compact, predictable control rail. */
#map-section>.wrap{max-width:1280px}
#map-section>.wrap>.section-head{margin-bottom:26px}
#map-section>.wrap>.section-head h2{font-size:clamp(28px,3.2vw,38px);font-weight:700;letter-spacing:-.045em}
#map-section .map-panel{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);grid-template-rows:auto auto auto auto auto auto;border-radius:22px;box-shadow:0 16px 48px #203c320a}
#map-section .map-search-toolbar{grid-column:1;grid-row:1;padding:22px 24px!important;border-bottom:0;align-content:center}
#map-section .map-category-toolbar{grid-column:2;grid-row:1;padding:22px 24px!important;align-content:center;border:0;border-left:1px solid var(--map-line);gap:9px}
#map-section #view-filter-group{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:var(--map-soft);border:1px solid var(--map-line);border-radius:12px;padding:4px}
#map-section #view-filter-group .chip{border:0;border-radius:8px;min-height:44px;background:transparent;font-size:13px;white-space:nowrap;padding:8px}
#map-section #view-filter-group .chip.active{background:var(--map-active);color:#fff;box-shadow:0 2px 5px #203c3215}
#map-section #view-filter-group .dot{display:none}
#map-section .map-filter-label{font-size:13px;color:var(--map-ink);font-weight:650}
#map-section #map-filter-note{margin:0;font-size:12px!important}
#map-section #registered-place-filters{grid-column:1/-1;grid-row:2;padding:0 24px!important;border:0;border-top:1px solid var(--map-line)}
#map-section .map-place-refine{width:100%;min-width:0}
#map-section .map-place-refine>summary{display:flex;gap:16px;align-items:center;min-height:52px;cursor:pointer;font-size:14px;font-weight:650;list-style:none}
#map-section .map-place-refine>summary::-webkit-details-marker{display:none}
#map-section .map-place-refine>summary span{font-size:12px;font-weight:400;color:var(--map-muted)}
#map-section .map-place-refine>summary::after{content:'+';font-size:22px;font-weight:400;margin-left:auto}
#map-section .map-place-refine[open]>summary::after{content:'−'}
#map-section .map-place-refine-fields{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 0 18px}
#map-section #registered-place-filters label{width:auto;flex:1 1 240px}
#map-section #facility-filter-query{flex:2 1 240px;font-size:16px}
#map-section .map-results-bridge{grid-column:1/-1;grid-row:3;display:flex;margin:0;border:0;border-top:1px solid var(--map-line);border-radius:0;padding:12px 24px!important;gap:16px;background:var(--map-surface)}
#map-section .map-results-bridge p{font-size:13px}
#map-section .map-results-bridge>div{margin:0;flex-direction:row;flex-shrink:0}
#map-section .explore-view-button{font-size:13px;min-height:44px;padding:8px 14px}
#map-section .map-wrap-relative{grid-column:1/-1;grid-row:4;border:0;border-top:1px solid var(--map-line)}
#map-section #map{height:clamp(480px,65dvh,720px)}
#map-section #facility-search-results{grid-column:1/-1;grid-row:5;max-height:320px}
#map-section #facility-search-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#map-section #facility-search-list li{background:var(--map-soft);border:0;padding:16px}
#map-section .map-legend-details{grid-column:1/-1;grid-row:6;padding:0 24px}
#map-section .map-course-peek{left:24px;right:auto;bottom:24px;width:min(420px,calc(100% - 48px));box-sizing:border-box;max-height:75%;overflow:auto;padding:20px;border-radius:16px;box-shadow:0 12px 40px #203c3226}
#map-section .map-peek-info>strong{font-size:21px;line-height:1.5}
#map-section .map-peek-actions button{min-height:46px;font-size:14px}
#map-section .leaflet-popup-content{max-height:min(380px,48dvh);font-size:14px;line-height:1.85;margin:22px}
#map-section .leaflet-popup-content .map-place-primary{display:block;min-height:46px;padding:11px 14px;background:var(--map-active);color:#fff!important;border:0;border-radius:10px}
#map-section .leaflet-container a.leaflet-popup-close-button{width:44px;height:44px;line-height:44px}
@media(hover:hover){#map-section #view-filter-group .chip:not(.active):hover{background:var(--map-surface)}#map-section .explore-view-button:hover{border-color:var(--map-active);background:var(--map-soft)}}
@media(max-width:760px){
 #map-section .map-panel{grid-template-columns:minmax(0,1fr);border-radius:16px}
 #map-section .map-search-toolbar{grid-column:1;grid-row:1;padding:16px 16px 12px!important}
 #map-section .map-category-toolbar{grid-column:1;grid-row:2;padding:0 16px 14px!important;border:0}
 #map-section .map-filter-label,#map-section #map-filter-note{display:none}
 #map-section #registered-place-filters{grid-row:3;padding:0 16px!important}
 #map-section .map-place-refine>summary{min-height:48px;font-size:13px;gap:10px}
 #map-section .map-place-refine>summary span{font-size:11px}
 #map-section .map-place-refine-fields{gap:10px}
 #map-section .map-results-bridge{grid-row:4;padding:10px 16px!important;align-items:center;gap:10px}
 #map-section .map-results-bridge p{font-size:12px;line-height:1.7}
 #map-section .map-results-bridge>div{flex-direction:column;gap:6px}
 #map-section .explore-view-button{font-size:12px;padding:8px 10px}
 #map-section .map-wrap-relative{grid-row:5}
 #map-section #map{height:clamp(420px,62dvh,600px)}
 #map-section #facility-search-results{grid-row:6;padding:16px}
 #map-section #facility-search-list{grid-template-columns:minmax(0,1fr)}
 #map-section .map-legend-details{grid-row:7;padding:0 16px}
 #map-section .map-course-peek{left:12px;right:12px;bottom:12px;width:auto;padding:16px;max-height:70%}
 #map-section .map-peek-info>strong{font-size:18px}
 #map-section .map-peek-actions button{font-size:13px}
 #map-section #place-search-results{left:16px!important;right:16px!important}
}
#map-section #facility-filter-query{flex:2 1 240px!important;width:auto}
@media(max-width:760px){#map-section #registered-place-filters label{flex:1 0 100%}#map-section #facility-filter-query{flex:1 1 180px!important;width:100%;min-height:46px}}
/* Keep the selected-course typography vertical despite generic map flex rules. */
#map-section .map-course-peek .map-peek-info{display:block;min-width:0;padding-right:12px}
#map-section .map-course-peek .map-peek-info>p{display:block;margin:8px 0;overflow-wrap:anywhere}
#map-section .map-course-peek .course-address :is(small,span){display:block}
#map-section .map-course-peek .map-peek-credit{display:block;grid-column:1/-1;border-top:1px solid var(--map-line);padding-top:10px;font-size:11px;line-height:1.7}
#map-section .map-course-peek .map-peek-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
#map-section .map-course-peek .map-peek-actions button{width:100%;white-space:normal}
#map-section .map-course-peek .peek-close{width:40px;height:40px;z-index:1}
#map-section .map-course-peek{display:block;max-height:85%}
#map-section .map-course-peek .map-peek-photo{display:block;float:left;width:88px;margin:0 16px 10px 0}
#map-section .map-course-peek .map-peek-photo>img{height:80px;object-fit:cover}
#map-section .map-course-peek .map-peek-info>strong{padding-right:16px;font-size:19px}
#map-section .map-course-peek .map-peek-info>p{clear:both}
#map-section .map-course-peek .map-peek-actions{flex-direction:row}
#map-section .map-course-peek .map-peek-actions button{flex:1;min-width:0;padding:10px 8px;font-size:13px}
#map-section .map-course-peek .map-peek-credit{clear:both;margin-top:12px}
@media(max-width:760px){#map-section .map-course-peek{max-height:85%}#map-section .map-course-peek .map-peek-photo{width:68px;margin-right:12px}#map-section .map-course-peek .map-peek-photo>img{height:68px}#map-section .map-course-peek .map-peek-info>strong{font-size:17px}}
#map-section .map-course-peek{z-index:1001;border-radius:16px;scrollbar-width:thin;scrollbar-color:#a8b8ab transparent}
