html,
body {
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100vh;
}

header {
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

header h1 {
    font-size: 16px;
    font-weight: 600;
}

header span {
    font-size: 13px;
    color: #64748b;
}

#map {
    height: calc(100vh - 50px);
}

.legend {
    font-size: 14px;
}

.leaflet-popup-content {
    font-size: 14px;
}

.leaflet-interactive {
    cursor: pointer;
}

.leaflet-control-layers {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#searchBox:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 4px rgba(37, 99, 235, 0.5);
}
input, button {
    font-size: 16px; /* prevents iOS zoom */
}
/* =========================
   MOBILE RESPONSIVE
========================= */

/* Shared UI box style */
.ui-box {
    position: absolute;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Desktop default */
#searchBox {
    top: 70px;
    left: 50px;
    width: 200px;
}

#filterBox {
    top: 120px;
    left: 50px;
    width: 220px;
}

/* 📱 MOBILE */
@media (max-width: 768px) {

    #searchBox {
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto; /* full width */
    }

    #filterBox {
        top: 110px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    header h1 {
        font-size: 14px;
    }
}