* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
}

.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 340px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px;
    overflow-y: auto;
}

.sidebar h1 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.sidebar h2 {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
}

.filter-group {
    margin-top: 16px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
}

button#applyFilters {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

button#applyFilters:hover {
    background: #1e293b;
}

.legend,
.summary {
    margin-top: 22px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red { background: #dc2626; }
.orange { background: #f97316; }
.yellow { background: #eab308; }

.map-wrap {
    flex: 1;
}

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

@media (max-width: 900px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    #map {
        height: 70vh;
    }
}