.pf-nearby-map-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    padding: 10px;
}

.pf-nearby-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.pf-nearby-list-panel {
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
}

.pf-nearby-map {
    width: 100%;
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
}

.pf-nearby-map-note {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #5b6776;
}

.pf-nearby-map-legend {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: #475569;
}

.pf-nearby-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pf-nearby-map-legend i {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid #cbd5e1;
}

.pf-nearby-map-legend .lvl1 { background: #93c5fd; }
.pf-nearby-map-legend .lvl2 { background: #60a5fa; }
.pf-nearby-map-legend .lvl3 { background: #3b82f6; }
.pf-nearby-map-legend .lvl4 { background: #2563eb; }

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.pf-map-popup-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.pf-map-popup-meta {
    font-size: 0.86rem;
    color: #4a5565;
}

.pf-choropleth-count {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: none;
}

@media (min-width: 992px) {
    .pf-nearby-list-panel .list-group {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .pf-nearby-map {
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: 340px;
    }
}

@media (max-width: 576px) {
    .pf-nearby-map {
        height: 280px;
    }
}
