:root{color-scheme:light;font:15px system-ui,sans-serif;color:#173a33;--paper:#fff;--edge:#d6e1db;--shadow:0 2px 12px #10261d30}
*{box-sizing:border-box}body{margin:0}#map{position:absolute;inset:0;background:#a5cbd7}
button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{background:white;border:0}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #118b72;outline-offset:1px}
header,#options,#open-options,#density{position:absolute;z-index:2;background:var(--paper);box-shadow:var(--shadow)}
header{left:14px;top:14px;width:min(355px,70%);border-radius:16px}#search{display:flex;align-items:center;height:50px;padding:0 5px 0 15px;gap:12px}.brand{font-weight:850;font-size:24px;color:#0d735c}input{min-width:0;flex:1;border:0;background:transparent;height:40px;font-size:16px}.icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.search span{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;position:relative}.search span:after{content:"";position:absolute;width:8px;height:2px;transform:rotate(45deg);background:currentColor;right:-6px;bottom:-3px}
#results:not(:empty){border-top:1px solid var(--edge);padding:6px;max-height:35dvh;overflow:auto}#results button{display:block;text-align:left;width:100%;padding:10px;border-radius:6px}#results button:hover{background:#eff7f3}
#options{right:54px;top:14px;width:230px;border-radius:14px;padding:16px;display:grid;gap:12px;max-height:calc(100% - 32px);overflow:auto}
h2,h3,p{margin:0}h2{font-size:17px}h3{font-size:14px}.sheet-head,.modes{display:flex;align-items:center;justify-content:space-between}.modes{background:#eef3f0;padding:3px;border-radius:10px}.modes button{flex:1;border-radius:8px;background:transparent;padding:9px 0}.modes button[aria-pressed=true]{color:#fff;background:#175b4d;font-weight:650}
label{display:grid;gap:5px;font-size:13px;font-weight:600}select{width:100%;border:1px solid var(--edge);border-radius:8px;background:#fff;padding:8px}select:disabled{color:#71807b;background:#f2f4f3}
.info{border-top:1px solid var(--edge);padding-top:10px}.info p{margin:3px 0}.info small,#status{color:#51675e;font-size:12px}
#density{left:10px;bottom:52px;padding:6px 11px;border-radius:20px;font-size:12px;pointer-events:none;font-variant-numeric:tabular-nums}
#open-options,#close-options,#camera-tools{display:none}.maplibregl-ctrl-scale{background:#fffffff0}.maplibregl-ctrl-bottom-left{bottom:12px}
@media(max-width:900px),(pointer:coarse){
 header{top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));width:min(450px,calc(100% - 83px - env(safe-area-inset-left) - env(safe-area-inset-right)));border-radius:17px}
 #open-options{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:52px;height:50px;border-radius:15px;font-size:11px;font-weight:650}
 .layers{display:grid;place-items:center;width:24px;height:20px}.layers:before{content:"";width:14px;height:14px;border-radius:2px;background:#176650;transform:rotate(30deg) skew(-30deg) scaleY(.86);box-shadow:2px 3px white,3px 5px #56a18d}
 #options{display:none;top:auto;right:0;left:0;bottom:0;margin:auto;width:min(100%,480px);border-radius:20px 20px 0 0;z-index:5;gap:10px;padding:12px 18px max(14px,env(safe-area-inset-bottom));max-height:78dvh;overscroll-behavior:contain}
 #options[data-open]{display:grid}#options:before{content:"";width:34px;height:4px;border-radius:3px;background:#c4d0ca;justify-self:center}#close-options{display:block;font:24px/1 system-ui;border-radius:50%;width:44px;height:44px}
 #camera-tools{display:block}#camera-tools .maplibregl-ctrl{display:flex;float:none;margin:0;width:fit-content}#camera-tools .maplibregl-ctrl button{width:44px;height:40px;border:0}
 #density{left:max(10px,env(safe-area-inset-left));bottom:calc(42px + var(--credit-height,0px) + env(safe-area-inset-bottom))}
 .maplibregl-ctrl-top-right{top:calc(max(10px,env(safe-area-inset-top)) + 60px);right:env(safe-area-inset-right)}.maplibregl-ctrl-group{border-radius:14px;overflow:hidden}.maplibregl-ctrl-group button{width:44px;height:44px}
 .maplibregl-ctrl-bottom-right{bottom:env(safe-area-inset-bottom);right:env(safe-area-inset-right)}.maplibregl-ctrl-bottom-left{bottom:calc(6px + var(--credit-height,0px) + env(safe-area-inset-bottom))}
}
