.geo-summary-map-status {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    color: #334155;
    display: flex;
    gap: .7rem;
    left: 1rem;
    max-width: 390px;
    padding: .7rem .85rem;
    position: absolute;
    top: 1rem;
    z-index: 890;
}

.geo-summary-map-status > i {
    align-items: center;
    background: #e8f2ee;
    border-radius: 9px;
    color: #315f54;
    display: flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.geo-summary-map-status strong,
.geo-summary-map-status span {
    display: block;
}

.geo-summary-map-status strong {
    font-size: .82rem;
}

.geo-summary-map-status span {
    color: #64748b;
    font-size: .72rem;
    margin-top: .15rem;
}

.geo-summary-map-status.error > i {
    background: #fee2e2;
    color: #b91c1c;
}

.geo-summary-map-status.empty > i {
    background: #e2e8f0;
    color: #475569;
}

.geo-summary-map-legend {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    color: #334155;
    display: grid;
    gap: .28rem;
    min-width: 150px;
    padding: .65rem .75rem;
}

.geo-summary-map-legend strong {
    font-size: .76rem;
    margin-bottom: .15rem;
}

.geo-summary-map-legend span {
    align-items: center;
    display: flex;
    font-size: .7rem;
    gap: .42rem;
}

.geo-summary-map-legend span i {
    background: var(--legend);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .12);
    height: 9px;
    width: 9px;
}

.geo-summary-map-legend small {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .66rem;
    margin-top: .2rem;
    padding-top: .35rem;
}

.geo-summary-map-tooltip {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 130px;
}

.geo-summary-map-tooltip strong {
    color: #1e293b;
}

.geo-summary-map-tooltip span {
    color: #475569;
    font-size: .75rem;
}

.geo-summary-map-tooltip b {
    color: #315f54;
    font-size: .74rem;
}

.geo-summary-map-tooltip small {
    color: #64748b;
    font-size: .68rem;
}

.geo-summary-map-tooltip.empty span {
    color: #94a3b8;
}

.geo-summary-map-popup {
    color: #334155;
    min-width: 320px;
}

.geo-summary-map-popup header {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: .7rem;
    padding-bottom: .65rem;
}

.geo-summary-map-popup header > span {
    color: #64748b;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.geo-summary-map-popup header h3 {
    color: #1f3f37;
    font-size: 1.05rem;
    margin: .15rem 0 .35rem;
}

.geo-summary-map-popup header b {
    align-items: center;
    color: var(--summary-color);
    display: inline-flex;
    font-size: .74rem;
    gap: .35rem;
}

.geo-summary-map-popup header b::before {
    background: var(--summary-color);
    border-radius: 50%;
    content: "";
    height: 8px;
    width: 8px;
}

.geo-summary-main-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.geo-summary-main-grid > span,
.geo-summary-soil-grid > span {
    background: #f6f9f8;
    border-radius: 8px;
    padding: .5rem .55rem;
}

.geo-summary-main-grid small,
.geo-summary-main-grid strong,
.geo-summary-soil-grid small,
.geo-summary-soil-grid strong {
    display: block;
}

.geo-summary-main-grid small,
.geo-summary-soil-grid small {
    color: #64748b;
    font-size: .66rem;
}

.geo-summary-main-grid strong,
.geo-summary-soil-grid strong {
    color: #294c44;
    font-size: .84rem;
    margin-top: .12rem;
}

.geo-summary-coverage {
    display: grid;
    gap: .32rem;
    margin: .7rem 0;
}

.geo-summary-coverage span {
    background: #eef2f1;
    border-radius: 999px;
    color: #475569;
    font-size: .66rem;
    overflow: hidden;
    padding: .25rem .45rem;
    position: relative;
}

.geo-summary-coverage span i {
    background: rgba(59, 101, 91, .16);
    bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
}

.geo-summary-coverage span:nth-child(2) i {
    background: rgba(245, 158, 11, .2);
}

.geo-summary-coverage span:nth-child(3) i {
    background: rgba(220, 38, 38, .18);
}

.geo-summary-coverage span:nth-child(4) i {
    background: rgba(100, 116, 139, .18);
}

.geo-summary-soil-grid {
    display: grid;
    gap: .42rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geo-summary-deficiencies {
    border-top: 1px solid #e2e8f0;
    margin-top: .7rem;
    padding-top: .65rem;
}

.geo-summary-deficiencies > strong {
    color: #334155;
    font-size: .76rem;
}

.geo-summary-deficiencies > div {
    display: grid;
    gap: .35rem;
    margin-top: .4rem;
}

.geo-summary-deficiency {
    align-items: center;
    background: #fff7ed;
    border-radius: 8px;
    display: grid;
    gap: .35rem;
    grid-template-columns: 42px 70px 1fr;
    padding: .38rem .5rem;
}

.geo-summary-deficiency b {
    color: #9a3412;
}

.geo-summary-deficiency em {
    color: #c2410c;
    font-size: .68rem;
    font-style: normal;
    font-weight: 700;
}

.geo-summary-deficiency small {
    color: #78716c;
    font-size: .66rem;
    text-align: right;
}

.geo-summary-no-deficiency {
    color: #64748b;
    font-size: .7rem;
    padding: .35rem 0;
}

.geo-summary-sample-warning {
    align-items: flex-start;
    background: #fff7ed;
    border-radius: 8px;
    color: #9a3412;
    display: flex;
    font-size: .68rem;
    gap: .4rem;
    margin-top: .65rem;
    padding: .5rem;
}

.geo-summary-map-popup footer {
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .67rem;
    margin-top: .7rem;
    padding-top: .55rem;
}

.geo-summary-map-popup footer small {
    display: block;
    margin-top: .2rem;
}

.leaflet-pane.leaflet-geoTerritorialSummaryPane-pane {
    pointer-events: auto;
}

@media (max-width: 680px) {
    .geo-summary-map-status {
        left: .65rem;
        max-width: calc(100% - 1.3rem);
        right: .65rem;
        top: .65rem;
    }

    .geo-summary-map-popup {
        min-width: 250px;
    }

    .geo-summary-soil-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
