.ulb-wrapper {
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* ── Filter bar ── */
.ulb-filter-bar {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.ulb-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ulb-filter-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label {
    font-size: 0.93rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    margin: 0;
}

.filter-dropdown {
    min-width: 170px;
    padding: 7px 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    outline: none;
}

.filter-dropdown:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.15);
}

.btn-apply {
    padding: 7px 20px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-apply:hover { background: #3a5ce5; }

.btn-reset {
    padding: 7px 20px;
    background: #3d3d3d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-reset:hover { background: #2a2a2a; }

/* ── Count badge ── */
.ulb-count-badge {
    background: #f57c00;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 5px;
    white-space: nowrap;
}

/* ── Map container ── */
#ulbMap {
    width: 100%;
    height: 540px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ── Legend ── */
.ulb-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 10px;
    background: #fafafa;
    font-size: 0.88rem;
    font-weight: 500;
    color: #444;
    flex-wrap: wrap;
}

.legend-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ── InfoWindow popup ── */
.ulb-popup {
    min-width: 280px;
    max-width: 340px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.popup-ulb-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
}

.popup-class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.popup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.popup-table td {
    padding: 4px 6px;
    vertical-align: top;
    color: #333;
}

.popup-table td:first-child {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    width: 110px;
}