/* PAT-009: one catalogue, one search, linked list and map. */
.school-explorer{--explorer-pin:#e33b35;--explorer-line:#dededb;--explorer-muted:#686866;--explorer-panel:#f5f5f3;--explorer-map-filter:grayscale(1) contrast(.88) brightness(1.06);--explorer-height:620px;--explorer-sidebar:360px;padding-top:100px;color:var(--ink)}
.school-explorer-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:38px}.school-explorer h2{font:var(--type-section);letter-spacing:var(--tracking-heading);margin:0;max-width:620px}.school-search{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--ink);width:360px;min-height:52px;flex:none}.school-search>svg{width:22px;height:22px;flex:none}.school-search input{font:var(--type-body);letter-spacing:var(--tracking-body);width:100%;min-width:0;border:0;outline:0;background:transparent;color:inherit;appearance:none}.school-search input::-webkit-search-cancel-button{display:none}.school-search:focus-within{outline:2px solid var(--ink);outline-offset:6px}.school-search button{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;cursor:pointer;flex:none}.school-search button svg{width:20px;height:20px}.school-explorer [hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.school-explorer-body{display:grid;grid-template-columns:var(--explorer-sidebar) minmax(0,1fr);height:var(--explorer-height);border-block:1px solid var(--explorer-line)}.school-sidebar{display:flex;flex-direction:column;min-height:0;background:white;border-right:1px solid var(--explorer-line)}#school-status{font:var(--type-small);color:var(--explorer-muted);padding:18px 26px;margin:0;border-bottom:1px solid var(--explorer-line)}.school-explorer .school-list{display:block;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:0;padding:0 18px 16px;list-style:none;min-height:0}.school-explorer .school-list li{margin:0;border-bottom:1px solid var(--explorer-line)}.school-explorer .school-list a,.school-explorer .school-list button{font:var(--type-body);letter-spacing:var(--tracking-body);display:block;text-align:left;padding:16px 8px;width:100%;min-height:56px;background:transparent;border:0;color:inherit;text-decoration:none;cursor:pointer}.school-list button small{display:block;font:var(--type-small);color:var(--explorer-muted);margin-top:4px}.school-explorer .school-list button:hover,.school-explorer .school-list button[aria-pressed=true]{background:var(--explorer-panel)}.school-explorer button:focus-visible,.school-explorer a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}#school-empty{padding:20px 26px;font:var(--type-body);margin:0}
.school-map-wrap{position:relative;min-width:0;background:var(--explorer-panel)}#school-map{height:100%;width:100%;z-index:0}.school-map-note{position:absolute;bottom:0;right:0;z-index:400;background:#fffffff2;margin:0;padding:6px 12px;font:var(--type-small);font-size:12px}.school-map-note a{color:inherit}#school-map-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:28px;background:var(--explorer-panel);font:var(--type-body);text-align:center;z-index:401;flex-direction:column}#school-map-state[data-warning]{inset:auto 12px 36px;display:flex;padding:14px;background:white;box-shadow:0 2px 10px #0001;font-size:16px}#school-retry{font:inherit;padding:10px 18px;border:1px solid var(--ink);color:inherit;background:white;cursor:pointer;min-height:44px}
.school-dot{display:grid!important;place-items:center}.school-dot span{width:10px;height:10px;display:block;border:2px solid white;border-radius:50%;background:var(--explorer-pin);box-shadow:0 1px 5px #0005;transition:transform 180ms ease}.school-dot:hover span,.school-dot:focus span{transform:scale(1.5)}.school-explorer .leaflet-container{font-family:var(--font-public);background:var(--explorer-panel)}.school-explorer .leaflet-popup-content{margin:20px;line-height:1.45}.school-popup strong{font:var(--type-body);font-weight:500;display:block;margin-bottom:6px}.school-popup p{font:var(--type-small);margin:0 0 12px;color:var(--explorer-muted)}.school-explorer .school-popup a{font:var(--type-body);font-size:17px;font-weight:500;line-height:1.3;color:white;background:var(--ink);border:1px solid var(--ink);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;box-sizing:border-box;transition:background var(--fast) var(--ease),color var(--fast) var(--ease)}.school-explorer .school-popup a:hover{background:white;color:var(--ink)}.school-explorer .school-popup a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}.school-explorer .leaflet-control-zoom a{color:#242423}.school-explorer .leaflet-popup-close-button{width:36px!important;height:36px!important;font-size:24px!important;line-height:36px!important}
@media(min-width:1600px){.school-explorer{--explorer-sidebar:420px;--explorer-height:680px}}
@media(max-width:760px){.school-explorer{padding-top:64px;--explorer-height:auto}.school-explorer-head{display:block;margin-bottom:24px}.school-explorer h2{margin-bottom:24px}.school-search{width:100%}.school-explorer-body{display:flex;flex-direction:column}.school-map-wrap{height:340px;order:-1}.school-sidebar{height:350px;border-right:0;border-top:1px solid var(--explorer-line)}.school-explorer .school-list{padding-inline:14px}.school-explorer .school-list button{padding-block:14px}.school-map-note{font-size:11px}#school-status{padding:14px 22px}.school-explorer-head h2{font-size:38px}}
@media(prefers-reduced-motion:reduce){.school-dot span,.school-explorer .school-popup a{transition:none}}

/* Search stays with results; totals are announced without repeating the heading. */
.school-sidebar>.school-search{width:auto;flex:none;margin:0;padding:10px 20px;border-bottom:1px solid var(--explorer-line);min-height:68px;gap:10px}.school-sidebar>.school-search:focus-within{outline-offset:-3px}.school-sidebar>.school-search input{font-size:17px}#school-status.sr-only{padding:0;border:0}.school-explorer-head{margin-bottom:32px}
@media(max-width:760px){.school-explorer-body{display:grid;grid-template-columns:1fr;grid-template-areas:"map" "search" "list";height:auto}.school-sidebar{display:contents}.school-sidebar>.school-search{grid-area:search;background:white;padding-inline:22px;margin:0;min-height:64px}.school-map-wrap{grid-area:map;height:320px}.school-explorer .school-list{grid-area:list;max-height:340px;border-top:1px solid var(--explorer-line);padding-bottom:22px}#school-empty{grid-area:list}.school-explorer-head h2{margin-bottom:0}}

/* Only the geographic base is muted; school markers and controls keep full contrast. */
.school-explorer .leaflet-tile-pane{filter:var(--explorer-map-filter)}

.school-dot span.school-dot-special{background:#213d34}

/* PAT-009 map-only portfolio view. Last pin lands within five seconds. */
.school-explorer .school-explorer-body{display:block;height:var(--explorer-height)}
.school-explorer .school-map-wrap{height:100%}
.school-dot span{opacity:0;transform:scale(0)}
.pins-visible .school-dot span{animation:school-pin-drop 500ms var(--pin-delay,0ms) both}
@keyframes school-pin-drop{0%{opacity:0;transform:translateY(-12px) scale(.2)}45%{opacity:1;transform:translateY(0) scale(1.65)}72%{transform:translateY(-2px) scale(.88)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){.school-explorer .school-explorer-body{height:420px}}
@media(prefers-reduced-motion:reduce){.school-dot span,.pins-visible .school-dot span{animation:none;opacity:1;transform:none}}

/* Immediate hover/focus labels replace the browser's delayed title tooltip. */
.school-explorer .school-tooltip{background:var(--ink);color:#fff;border:0;border-radius:8px;padding:8px 12px;box-shadow:0 3px 12px #0002;font:var(--type-small);font-size:15px;line-height:1.35;width:max-content;max-width:260px;white-space:normal;pointer-events:none;transition:none!important}
.school-explorer .school-tooltip.leaflet-tooltip-top:before{border-top-color:var(--ink)}

.school-explorer-head .action{flex:none;white-space:nowrap;border-radius:12px}
@media(max-width:760px){.school-explorer-head{display:flex;flex-direction:column;align-items:flex-start;gap:24px}.school-explorer-head h2{margin:0}}

.school-explorer-heading{min-width:0;max-width:760px}.school-development-note{font-size:17px;line-height:1.5;color:var(--muted);margin:18px 0 0;max-width:640px}
