*{box-sizing:border-box}body{margin:0;background:#f4f7f7;color:#263238;font:16px/1.5 Arial,sans-serif}header{background:#303030;color:white;padding:20px max(20px,calc((100vw - 1200px)/2))}header a{color:#fff}h1{font-size:28px;margin:10px 0 0}header p{margin:4px 0;font-size:13px}main{max-width:1240px;margin:auto;padding:20px}a{color:#005968}button{cursor:pointer;color:#005968;border:1px solid #bdd4d5;border-radius:20px;background:white;padding:8px 15px;font:inherit}.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}fieldset{border:0;padding:0;margin:0;display:flex;gap:18px;flex-wrap:wrap}legend{font-weight:bold;margin-bottom:8px}label{white-space:nowrap}#participant-map{height:min(68vh,720px);min-height:380px;border-radius:10px;border:1px solid #bdcccc;z-index:0}#map-status,#map-privacy{font-size:14px}#map-list{list-style:none;display:flex;flex-wrap:wrap;gap:10px;padding:0}.leaflet-popup-content strong{font-size:16px}.leaflet-popup-content p{margin:8px 0}.leaflet-popup-content ul{padding-left:18px}@media(max-width:600px){main{padding:14px}.map-toolbar{align-items:flex-start;flex-direction:column}h1{font-size:23px}#participant-map{height:60vh;min-height:360px}fieldset{gap:12px}header{padding:15px}}
.map-toolbar label{display:inline-flex;align-items:center;gap:5px}
.map-swatch{width:12px;height:12px;border-radius:50%;display:inline-block}
.map-swatch-school{background:#176a99}
.map-swatch-company{background:#7845a2}
.map-swatch-volunteer{background:#167746}
.map-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#map-notice{font-size:14px}
.map-search{position:relative;display:grid;gap:5px;font-weight:bold;width:min(100%,480px);z-index:2}
#map-suggestions{position:absolute;top:100%;left:0;right:0;max-height:min(40vh,320px);overflow:auto;list-style:none;margin:4px 0 0;padding:4px;border:1px solid #aebfc1;border-radius:8px;background:#fff;box-shadow:0 6px 18px #0002;font-weight:normal}
#map-search-feedback{margin:0;color:#52615a;font-size:13px;font-weight:normal}
#map-editor label{min-width:0}
#map-suggestions li{padding:8px 10px;border-radius:5px;cursor:pointer}
#map-suggestions li:hover,#map-suggestions [aria-selected=true]{background:#e7f3f2}
.map-search input,#map-editor input,#map-editor select{display:block;width:100%;padding:9px 12px;border:1px solid #aebfc1;border-radius:6px;background:#fff;color:#243036;font:inherit}
.map-layers{display:flex;flex-wrap:wrap;gap:18px 30px;padding:14px 0 2px}
.map-layers label{display:inline-flex;align-items:center;gap:4px}
.map-filter-label{display:inline-block}
.map-filter-label small:not([hidden]){display:block;color:#52615a;font-size:12px;line-height:1.2}
.map-layers fieldset:has([data-participant-total]) label{align-items:flex-start}
.map-layers fieldset:has([data-participant-total]) .map-swatch{margin-top:6px}
#map-location-status{font-size:14px}
.map-layers .area-swatch{border-radius:3px;opacity:.75;transform:rotate(15deg)}
#map-editor{display:grid;grid-template-columns:minmax(150px,2fr) minmax(130px,1fr);gap:10px;margin-top:14px;padding:14px;border:1px solid #a8c4c5;border-radius:10px;background:#fff}
#map-editor[hidden]{display:none}
#map-editor p,#map-editor .map-tools{grid-column:1/-1;margin:0}
#map-draw,#area-save{background:#005968;color:#fff;border-color:#005968;font-weight:bold}
button:disabled{cursor:default;opacity:.5}
.is-drawing,.is-drawing .leaflet-interactive{cursor:crosshair}
.area-corner{border:2px solid #005968;border-radius:50%;background:#fff;cursor:grab}
.area-corner:active{cursor:grabbing}
.map-description{white-space:pre-wrap}
.google-map-logo{background:#fff;padding:5px 10px;border-radius:4px}
.google-map-logo img{display:block;height:16px;width:auto}
.google-map-credits{max-width:min(65vw,500px);padding:2px 4px;background:#fff;color:#222;font-size:11px;line-height:1.25;text-align:right;overflow-wrap:anywhere}
.leaflet-bottom .google-map-credits{margin-bottom:20px}
.map-results{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.map-results ul{list-style:none;display:flex;gap:8px;flex-wrap:wrap;padding:0}
@media(max-width:600px){.map-results{grid-template-columns:1fr;gap:4px}.map-layers{gap:12px}#map-editor{grid-template-columns:1fr}}

.map-viewer{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.map-viewer header{display:flex;align-items:center;gap:8px 18px;padding:8px 16px;flex-wrap:wrap}
.map-viewer header a{font-size:14px}
.map-viewer h1{margin:0;font-size:19px;overflow-wrap:anywhere}
.map-viewer .map-embedded-header h1{font-size:16px}
.map-viewer main{display:flex;flex-direction:column;flex:1;width:100%;max-width:none;margin:0;padding:0}
.map-viewer .map-toolbar{padding:8px 16px 0}
.map-viewer .map-search{width:min(100%,440px)}
.map-viewer .map-layers{gap:8px 24px;padding:8px 16px 0}
.map-viewer fieldset{gap:4px 12px;min-width:0;font-size:14px}
.map-viewer legend{font-size:13px;margin:0 0 1px}
.map-viewer .map-filter-label small{font-size:11px}
.map-viewer .map-info{display:flex;flex-wrap:wrap;gap:0 12px;padding:3px 16px}
.map-viewer .map-info p{margin:0;font-size:12px}
.map-viewer #participant-map{order:1;flex:1 0 240px;min-height:240px;height:auto;border:0;border-radius:0}
.map-management main{max-width:none}
.map-management #participant-map{height:76vh}
@media(max-width:600px){
 .map-viewer header{gap:8px;flex-wrap:nowrap}
 .map-viewer header a{white-space:nowrap;font-size:12px}
 .map-viewer h1{font-size:15px;line-height:1.25}
 .map-viewer .map-toolbar{align-items:flex-end;flex-direction:row;gap:8px}
 .map-viewer .map-search{min-width:0;font-size:14px}
 .map-viewer .map-search input{font-size:16px}
 .map-viewer #map-center{font-size:12px;min-height:44px;border-radius:8px;padding:6px 8px}
 .map-viewer .map-layers{gap:4px 16px}
 .map-viewer fieldset{font-size:13px}
 .map-management #participant-map{height:68vh}
}
