:root {
    --accent: #d1361b;
    --panel-bg: rgba(255, 255, 255, 0.95);
    --text: #222;
    --muted: #666;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
}

#map {
    position: absolute;
    inset: 0;
    background: #f2f2ef;
}

/* Light grey basemap: desaturate and lighten the OSM tiles (dots are in a separate pane). */
.leaflet-tile-pane {
    filter: grayscale(1) brightness(1.08) contrast(0.85) opacity(0.85);
}

#panel {
    position: absolute;
    top: 12px;
    left: 56px;
    z-index: 1000;
    width: 300px;
    max-width: calc(100vw - 72px);
    padding: 14px 16px;
    background: var(--panel-bg);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#panel h1 {
    margin: 0 0 10px;
    font-size: 17px;
}

#q {
    width: 100%;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

#q:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: transparent;
}

#mode {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

#mode label { cursor: pointer; }

#status {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--muted);
}

#status strong { color: var(--accent); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
