.pf-home-map-card {
    border-radius: 14px;
}

.pf-home-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.pf-home-map-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pf-home-map-breadcrumb {
    font-size: 0.9rem;
    color: #475569;
}

.pf-home-map-stage {
    position: relative;
    margin-top: 0.75rem;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.pf-home-drilldown-map {
    width: 100%;
    height: 100%;
}

.pf-home-map-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.66);
    z-index: 800;
}

.pf-home-map-loading.is-visible {
    display: flex;
}

.pf-home-map-note {
    margin-top: 0.65rem;
    color: #556274;
    font-size: 0.88rem;
}

.pf-home-choropleth-count {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
}

@media (max-width: 576px) {
    .gp-home-map-section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .gp-home-map-section > .container-xl.js-home-map-root {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .gp-home-map-card.pf-home-map-card {
        border-radius: 0 !important;
        box-shadow: none !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    .gp-home-map-card.pf-home-map-card > .card-body {
        padding: 1rem 0 0 !important;
    }

    .pf-home-map-toolbar {
        padding: 0 1rem;
        align-items: flex-end;
    }

    .pf-home-map-toolbar > div {
        flex: 1 1 13rem;
        min-width: 0;
    }

    .pf-home-map-toolbar .h4 {
        font-size: 1.15rem;
        line-height: 1.28;
    }

    .pf-home-map-context {
        gap: 0.4rem;
    }

    .pf-home-map-stage {
        width: 100%;
        height: min(68svh, 660px);
        min-height: 520px;
        aspect-ratio: auto;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-top: 0.85rem;
    }

    .pf-home-map-breadcrumb {
        width: auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pf-home-drilldown-map .leaflet-control-zoom a {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 1.35rem;
    }

    .pf-home-drilldown-map .leaflet-control-attribution {
        max-width: calc(100vw - 12px);
        padding: 2px 4px;
        font-size: 9px;
        line-height: 1.25;
        white-space: normal;
    }
}
