/* Standalone maps: fixed viewport at left, independently scrolling controls at right. */
main.standard-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"map sidebar";gap:0;align-items:stretch;max-width:none;margin:0;padding:0;height:calc(100dvh - var(--header-height,88px));min-height:0;background:var(--paper)}
.standard-map-layout>.standard-map-sidebar{grid-area:sidebar;min-width:0;min-height:0;height:100%;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:22px;border-left:1px solid var(--line);background:#fffdf9;scroll-padding-block:18px}
.standard-map-layout>.standard-map-panel{grid-area:map;position:relative;top:auto;min-width:0;min-height:0;height:100%;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
.standard-map-layout .standard-map-panel :is(#health-map,#metro-map,#tourism-map){height:100%;min-height:0;width:100%;border-radius:0}
.standard-map-layout .standard-map-panel :is(.map-frame,.tourism-map-frame){height:100%;min-height:0;margin:0}
.standard-map-layout .standard-map-tools{display:grid;gap:8px;margin:16px 0}
.standard-map-layout .standard-map-tools .map-actions{position:static;display:flex;gap:8px;flex-wrap:wrap;max-width:none;margin:0;padding:0}
.standard-map-layout .standard-map-tools .map-actions button{flex:1;min-height:44px;font-size:12px;padding:10px;box-shadow:none}
.standard-map-layout .standard-map-tools :is(#map-status,#archaeology-status,#cofopri-status,#tourism-map-status){position:static;font-size:12px;line-height:1.5;margin:0;padding:9px;background:#edf3eb;border-radius:5px}
.standard-map-layout .standard-map-sidebar .map-info{margin:16px 0 0;padding:0;font-size:12px}
.standard-map-layout .standard-map-sidebar .map-info-body{padding-top:8px}
.standard-map-layout .standard-map-sidebar :is(.boundary-toggle,.boundary-status){margin:12px 0;font-size:12px}
.standard-map-layout .standard-map-sidebar .boundary-toggle{display:flex;flex-direction:row;align-items:center;gap:8px}
.standard-map-layout .standard-map-sidebar .boundary-toggle input{width:16px;height:16px;min-height:0;flex:none;margin:0}
.standard-map-layout .standard-map-sidebar #nearby-panel{padding:16px 0;grid-column:auto}
.standard-map-layout .standard-map-sidebar #nearby-panel h2{font-size:18px}
.standard-map-layout .standard-map-sidebar #nearby-results{grid-template-columns:minmax(0,1fr);gap:12px}
.standard-map-layout .standard-map-sidebar #nearby-results .card{padding:15px;overflow-wrap:anywhere}
.standard-map-layout .standard-map-sidebar .filters{padding:12px 0;background:transparent}
.standard-map-layout .standard-map-sidebar :is(.filters input,.filters select){min-height:44px}
.standard-map-layout .standard-map-sidebar .filters input[type=checkbox]{min-height:0}
.standard-map-layout .metro-legend{bottom:12px;max-width:calc(100% - 24px);flex-wrap:wrap}
.standard-map-layout .emergency-legend{bottom:12px}
@media(max-width:800px){
 main.standard-map-layout{height:auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"map" "sidebar"}
 .standard-map-layout>.standard-map-panel{height:52dvh;min-height:330px;overflow:hidden}
 .standard-map-layout>.standard-map-sidebar{height:auto;max-height:none;overflow:visible;scrollbar-gutter:auto;border-left:0;border-top:1px solid var(--line);padding:20px}
 .standard-map-layout .standard-map-sidebar .filters{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .standard-map-layout .standard-map-sidebar .filters label{width:100%}
 .standard-map-layout .standard-map-panel .leaflet-control-layers-expanded{max-width:calc(100vw - 80px);font-size:12px}
 .standard-map-layout .standard-map-panel .leaflet-control-layers{padding:5px 8px}
}
