:root { color-scheme: light; font: 15px/1.4 system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: grid; grid-template-columns: 300px 1fr; }
#map { height: 100dvh; }
#panel { height: 100dvh; overflow: auto; background: #0f172a; color: #e2e8f0; padding: 12px 14px; z-index: 1000; }
#panel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
h1 { font-size: 1.15rem; margin: 0; }
#toggle { display: none; }
.lead, .small { color: #94a3b8; }
.small { font-size: .8rem; }
fieldset { border: 1px solid #334155; border-radius: 8px; margin: 10px 0; padding: 6px 10px 8px; }
legend { padding: 0 4px; font-weight: 600; color: #cbd5e1; }
label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
label .n { margin-left: auto; color: #64748b; font-size: .8rem; }
.sw { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid #fff3; }
button { font: inherit; background: #2563eb; color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.leaflet-popup-content { font-size: 14px; }
.leaflet-popup-content b { display: block; margin-bottom: 2px; }
.pop-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.bgy-label { background: none; border: 0; box-shadow: none; font-size: 11px; color: #1e293b; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
#ios-install { position: fixed; bottom: 12px; left: 50%; translate: -50% 0; background: #0f172a; color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 2000; }
#ios-install button { background: none; padding: 0 0 0 8px; }
@media (max-width: 760px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #map { height: auto; min-height: 60dvh; }
  #panel { height: auto; max-height: 45dvh; }
  #toggle { display: inline-block; }
  #panel.closed #layers { display: none; }
}
