/* Public landing map only. */
/* BUTTON BACKGROUND SIZES: edit these separately from the icon sizes below. */
html body.public-map-page{--landing-background-desktop:52px;--landing-background-mobile:48px;--landing-background-compact:44px}
html body.public-map-page{--landing-teal:#008b83;--landing-teal-dark:#007d78;--landing-red:#c8102e;--landing-control:var(--landing-background-desktop);--landing-gap:12px;--landing-edge:20px;--landing-status-height:34px;--landing-bottom-space:82px;--landing-stack-bottom:clamp(110px,16dvh,180px);--landing-panel-top:clamp(170px,33dvh,330px)}
html body.public-map-page .landing-status-strip{position:fixed;inset:0 0 auto;z-index:650;min-height:var(--landing-status-height);padding-top:env(safe-area-inset-top,0px);background:linear-gradient(120deg,#00988c,#007e79);color:#fff}
html body.public-map-page #connectionStatus{position:static;display:flex;align-items:center;gap:12px;min-height:var(--landing-status-height);padding:4px 22px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#fff;font-size:16px;font-weight:750}
html body.public-map-page #connectionStatus::before{content:"";display:block;flex:none;width:11px;height:11px;margin:0;border-radius:50%;background:#d4dce0}
html body.public-map-page #connectionStatus.live::before{background:#00e65c;box-shadow:0 0 10px #00e65c44;animation:ecoguard-live-pulse 1.8s ease-out infinite}
@keyframes ecoguard-live-pulse{
 0%{box-shadow:0 0 0 0 #00e65c99;transform:scale(1)}
 50%{transform:scale(1.12)}
 100%{box-shadow:0 0 0 9px #00e65c00;transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
 html body.public-map-page #connectionStatus.live::before{animation:none}
}
html body.public-map-page .map-header{top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 16px);left:var(--landing-edge);right:var(--landing-edge);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html body.public-map-page .map-brand{min-height:70px;gap:10px;padding:8px 16px 8px 10px;border:1px solid #ffffff66;border-radius:16px;background:linear-gradient(135deg,#009b90,#007d78);box-shadow:0 5px 14px #123c4233;color:#fff}
html body.public-map-page .map-brand img{width:54px;height:54px}
html body.public-map-page .map-brand strong{color:#fff;font-size:27px;line-height:1.15;font-weight:800}
html body.public-map-page .map-brand small{display:block;margin-top:4px;color:#fff;font-size:12px;letter-spacing:.2px}
html body.public-map-page .map-header-actions{display:flex;gap:10px;align-items:flex-start}
html body.public-map-page .hotline-button{min-height:var(--landing-control);padding:0 18px;gap:10px;background:var(--landing-red);border:1px solid #ffffff55;border-radius:15px;color:#fff;font-size:18px;white-space:nowrap;box-shadow:0 5px 14px #3f1b2533}
html body.public-map-page .hotline-button i{font-size:25px}
html body.public-map-page :is(.map-header .icon-button,.map-tools .icon-button,.public-map-controls .ecoguard-legend__toggle){display:flex;justify-content:center;align-items:center;width:var(--landing-control);min-width:var(--landing-control);height:var(--landing-control);min-height:44px;padding:0;border:1px solid #ffffff88;border-radius:16px;background:linear-gradient(140deg,#009b90,#007d78);color:#fff;box-shadow:0 5px 14px #123c4233;font-size:28px;cursor:pointer}
html body.public-map-page :is(.map-header,.map-tools,.public-map-controls) .bi::before{background-color:currentColor}
html body.public-map-page :is(.map-header .icon-button,.map-tools .icon-button,.ecoguard-legend__toggle):hover{filter:brightness(1.08)}
html body.public-map-page :is(button,a,input):focus-visible{outline:3px solid #073d41;outline-offset:3px}
html body.public-map-page .map-header-search{position:fixed;right:var(--landing-edge);top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 26px + var(--landing-control));width:var(--landing-control);grid-column:auto;grid-row:auto}
html body.public-map-page .map-header-search .header-search-button{justify-content:center;font-size:28px}
html body.public-map-page .map-header-search .header-search-button[aria-expanded=true]{color:#fff;border-color:#fff}
html body.public-map-page .map-header-search .search-panel{position:fixed;top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 26px + var(--landing-control));left:auto;right:calc(var(--landing-edge) + var(--landing-control) + 12px);transform:none;width:330px;max-width:calc(100vw - var(--landing-control) - 44px);max-height:calc(100dvh - 230px);overflow:auto}
html body.public-map-page .map-tools{top:auto;right:var(--landing-edge);bottom:calc(var(--landing-stack-bottom) + env(safe-area-inset-bottom,0px));gap:var(--landing-gap);overflow:visible}
html body.public-map-page .map-tools #myLocation{margin-top:12px}
html body.public-map-page .map-zoom-group{display:flex;flex-direction:column;width:var(--landing-control);border:1px solid #ffffff88;border-radius:16px;overflow:hidden;background:linear-gradient(140deg,#009b90,#007d78);box-shadow:0 5px 14px #123c4233}
html body.public-map-page .map-zoom-group .icon-button{background:transparent;border:0;border-radius:0;box-shadow:none;width:calc(var(--landing-control) - 2px);min-width:0;height:var(--landing-control);flex:none}
html body.public-map-page .map-zoom-group #zoomIn::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:1px;background:#ffffffaa}
html body.public-map-page .map-zoom-group #zoomIn{position:relative}
html body.public-map-page #toggleClosedIncidents{position:relative;gap:7px}
html body.public-map-page #toggleClosedIncidents .bi{font-size:28px}
html body.public-map-page .closed-visibility-dot{width:10px;height:10px;background:#009bff;border-radius:50%;flex:none}
html body.public-map-page #toggleClosedIncidents[aria-pressed=false] .closed-visibility-dot{visibility:hidden}
html body.public-map-page .layer-panel{top:var(--landing-panel-top);right:calc(var(--landing-edge) + var(--landing-control) + 12px);bottom:auto;width:310px;max-width:calc(100vw - var(--landing-control) - 44px);max-height:calc(100dvh - var(--landing-panel-top) - var(--landing-bottom-space) - 20px);overflow:auto;overscroll-behavior:contain;border-radius:14px;animation:landing-panel-enter 180ms ease-out}
html body.public-map-page .layer-panel h2{color:#007d78;font-size:17px}
html body.public-map-page .layer-panel .layer-choice{min-height:46px;font-size:13px;gap:8px}
html body.public-map-page .layer-panel .layer-choice input{accent-color:var(--landing-teal)}
html body.public-map-page .search-panel:not([hidden]){animation:landing-panel-enter 180ms ease-out}
html body.public-map-page .public-map-controls{left:var(--landing-edge);right:auto;bottom:calc(20px + env(safe-area-inset-bottom,0px));width:var(--landing-control);max-width:none;z-index:560}
html body.public-map-page .public-map-controls .ecoguard-legend{width:var(--landing-control);margin:0;max-width:none}
html body.public-map-page .public-map-controls .ecoguard-legend__toggle{font-size:28px;border-radius:16px}
html body.public-map-page .public-map-controls .ecoguard-legend__toggle[aria-expanded=true] .bi{transform:none}
html body.public-map-page .public-map-controls .ecoguard-legend__panel{left:0;right:auto;bottom:calc(100% + 12px);max-height:calc(100dvh - 200px);animation:landing-legend-enter 180ms ease-out}
html body.public-map-page .map-bottom-actions{left:50%;right:auto;bottom:calc(32px + env(safe-area-inset-bottom,0px));display:flex;gap:12px;width:max-content;max-width:calc(100vw - 24px);transform:translateX(-50%);background:none;padding:0}
html body.public-map-page .map-bottom-actions :is(a,button){display:flex;align-items:center;justify-content:center;gap:9px;width:auto;flex:0 0 auto;min-width:max-content;height:48px;padding:0 18px;border:1px solid #ffffff77;border-radius:12px;font-size:16px;font-weight:750;text-decoration:none;white-space:nowrap;box-shadow:0 5px 14px #123c4233}
html body.public-map-page .map-bottom-actions .map-secondary:not(.live-report-button){background:#fff;color:#111}
html body.public-map-page .map-bottom-actions .map-secondary:not(.live-report-button) i{color:#008b83}
html body.public-map-page .map-bottom-actions .report-button{background:var(--landing-red);border-color:#ffffff77;color:#fff;flex:0 0 auto}
html body.public-map-page .map-bottom-actions .live-report-button{background:linear-gradient(135deg,#009b90,#007d78);border-color:#ffffff77;color:#fff}
html body.public-map-page .map-bottom-actions i{font-size:23px}
html body.public-map-page .leaflet-control-attribution{margin:0 10px 6px 0!important;border-radius:3px;max-width:calc(100vw - 20px);font-size:11px}
html body.public-map-page .map-alert{top:calc(var(--landing-status-height) + 95px)}
html body.public-map-page .landing-help-links :is(a,button){display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px 12px;border:1px solid #c8dfdd;border-radius:9px;background:#f3faf9;color:#006f69;font:inherit;font-size:14px;text-decoration:none;text-align:left;cursor:pointer}
@keyframes landing-panel-enter{from{opacity:0;translate:8px 0}to{opacity:1;translate:0 0}}
@keyframes landing-legend-enter{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(max-width:700px){
 html body.public-map-page{--landing-control:var(--landing-background-mobile);--landing-gap:8px;--landing-edge:12px;--landing-status-height:30px;--landing-bottom-space:150px;--landing-stack-bottom:calc(var(--landing-bottom-space) + 18px);--landing-panel-top:clamp(155px,32dvh,280px)}
 html body.public-map-page #connectionStatus{padding:4px 14px;font-size:14px;gap:9px}
 html body.public-map-page .map-header{top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 12px);gap:6px;align-items:flex-start}
 html body.public-map-page .map-brand{width:clamp(122px,39vw,180px);min-height:60px;padding:8px 6px;gap:6px;border-radius:13px}
 html body.public-map-page .map-brand img{width:clamp(32px,9vw,44px);height:clamp(32px,9vw,44px)}
 html body.public-map-page .map-brand strong{font-size:clamp(16px,4.6vw,21px)}
 html body.public-map-page .map-brand small{display:block;font-size:clamp(8px,2.2vw,10px);letter-spacing:0;margin-top:3px;white-space:nowrap}
 html body.public-map-page .map-header-actions{gap:6px}
 html body.public-map-page .hotline-button{min-height:48px;padding:0 8px;gap:5px;font-size:clamp(11px,3.2vw,15px);border-radius:13px}
 html body.public-map-page .hotline-button i{font-size:19px}
 html body.public-map-page .map-header-actions>.icon-button{width:48px;height:48px;font-size:25px;border-radius:13px}
 html body.public-map-page .map-header-search{top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 70px);width:48px}
 html body.public-map-page .map-header-search .header-search-button{width:48px;height:48px;min-width:48px;font-size:25px;border-radius:13px}
 html body.public-map-page .map-header-search .search-panel{top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 90px);right:72px;left:12px;width:auto;max-width:none;max-height:calc(100dvh - 290px)}
 html body.public-map-page .map-tools{gap:8px}
 html body.public-map-page .map-tools #myLocation{margin-top:8px}
 html body.public-map-page .map-tools .icon-button{font-size:25px;border-radius:13px}
 html body.public-map-page #toggleClosedIncidents{gap:5px}
 html body.public-map-page #toggleClosedIncidents .bi{font-size:24px}
 html body.public-map-page .closed-visibility-dot{width:8px;height:8px}
 html body.public-map-page .public-map-controls{bottom:calc(var(--landing-stack-bottom) + env(safe-area-inset-bottom,0px));width:var(--landing-control);max-width:none}
 html body.public-map-page .public-map-controls .ecoguard-legend__panel{max-height:calc(100dvh - var(--landing-stack-bottom) - 170px);max-width:calc(100vw - 24px)}
 html body.public-map-page .map-bottom-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;left:12px;right:12px;bottom:calc(28px + env(safe-area-inset-bottom,0px));width:auto;transform:none}
 html body.public-map-page .map-bottom-actions>a:first-child{grid-column:1/-1}
 html body.public-map-page .map-bottom-actions :is(a,button){width:100%;min-width:0;height:48px;padding:0 6px;font-size:clamp(11px,3.3vw,16px);gap:5px;white-space:nowrap;border-radius:12px}
 html body.public-map-page .map-bottom-actions i{font-size:20px}
 html body.public-map-page .leaflet-control-attribution{margin:0 12px calc(4px + env(safe-area-inset-bottom,0px)) 0!important;font-size:9px}
 html body.public-map-page .layer-panel{right:72px;max-width:calc(100vw - 84px);padding:14px}
 html body.public-map-page .layer-panel .layer-choice{font-size:12px}
}
@media(max-height:620px){
 html body.public-map-page{--landing-control:var(--landing-background-compact);--landing-gap:6px;--landing-stack-bottom:94px;--landing-panel-top:145px}
 html body.public-map-page .map-tools .icon-button{width:44px;min-width:44px;height:44px;border-radius:11px;font-size:23px}
 html body.public-map-page .map-zoom-group .icon-button{width:42px;min-width:0;border-radius:0}
 html body.public-map-page .map-tools{gap:6px}
 html body.public-map-page .map-tools #myLocation{margin-top:4px}
 html body.public-map-page .layer-panel{max-height:calc(100dvh - 235px)}
}
@media(max-height:620px) and (max-width:700px){
 html body.public-map-page{--landing-stack-bottom:156px}
 html body.public-map-page .map-header-actions>.icon-button,html body.public-map-page .map-header-search .header-search-button{width:44px;min-width:44px;height:44px}
 html body.public-map-page .map-header-search{width:44px;top:calc(var(--landing-status-height) + env(safe-area-inset-top,0px) + 66px)}
 html body.public-map-page .map-header{left:8px;right:8px}
 html body.public-map-page .hotline-button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){
 html body.public-map-page :is(.search-panel,.layer-panel,.ecoguard-legend__panel){animation:none!important;transition:none!important}
 html body.public-map-page .public-map-controls .ecoguard-legend__toggle{transition:none;transform:none}
}

html body.public-map-page #myLocation .bi::before,html body.public-map-page .map-bottom-actions .bi::before{background-color:currentColor}
/* EDIT ICON SIZES HERE. Button sizes and touch targets stay unchanged. */
html body.public-map-page{
 --landing-icon-top:24px;
 --landing-icon-control:22px;
 --landing-icon-info:20px;
 --landing-icon-marker:22px;
 --landing-icon-action:24px;
 --landing-icon-action-mobile:22px;
}
html body.public-map-page .map-header .bi{font-size:var(--landing-icon-top)}
html body.public-map-page .map-tools .bi{font-size:var(--landing-icon-control)}
html body.public-map-page #toggleClosedIncidents .bi{font-size:var(--landing-icon-control)}
html body.public-map-page .public-map-controls .ecoguard-legend__toggle .bi{font-size:var(--landing-icon-info)}
html body.public-map-page .public-pin .bi{font-size:var(--landing-icon-marker)}
html body.public-map-page .public-pin img{width:var(--landing-icon-marker);height:var(--landing-icon-marker)}
html body.public-map-page .map-bottom-actions .bi{font-size:var(--landing-icon-action)}
@media(max-width:700px){
 html body.public-map-page .map-bottom-actions .bi{font-size:var(--landing-icon-action-mobile)}
}
@media(max-height:620px) and (min-width:701px){
 html body.public-map-page .map-tools{top:calc(var(--landing-status-height) + 124px);bottom:auto;display:grid;grid-template-columns:44px 44px;gap:6px}
 html body.public-map-page .map-zoom-group{grid-column:1;grid-row:2/span 2}
 html body.public-map-page .map-tools #myLocation{grid-column:2;grid-row:2;margin:0}
 html body.public-map-page .layer-panel{right:calc(var(--landing-edge) + 112px)}
}
