.participant-map-section {
    background: linear-gradient(180deg, #f7faf8 0%, #ffffff 55%, #ffffff 100%);
    padding: 80px 0;
}

.participant-map-section .section-title p {
    margin-top: 12px;
}

.participant-map-card {
    position: relative;
    margin-top: 28px;
    z-index: 2;
}

.participant-map-shell {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border: 1px solid rgba(3, 34, 27, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 89, 82, 0.08), transparent 36%),
        radial-gradient(circle at 82% 78%, rgba(249, 121, 16, 0.06), transparent 32%),
        linear-gradient(165deg, #eef6f3 0%, #e4efe9 48%, #dceae4 100%);
    box-shadow: 0 18px 40px rgba(3, 34, 27, 0.06);
}

.participant-map-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    border-radius: 20px;
    overflow: hidden;
}

.participant-map-canvas .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: var(--default-font);
    background: transparent;
    z-index: 1;
    border-radius: 20px;
}

.participant-map-canvas .leaflet-popup-pane {
    z-index: 1200 !important;
}

.participant-map-canvas .leaflet-top,
.participant-map-canvas .leaflet-bottom {
    z-index: 900;
}

.participant-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: rgba(247, 250, 248, 0.9);
    color: var(--primary-color);
}

.participant-map-overlay.is-hidden {
    display: none;
}

.participant-map-overlay p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
}

.participant-map-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--divider-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: participant-map-spin 0.8s linear infinite;
}

.participant-map-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--white-color);
    font-family: var(--accent-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.participant-map-retry:hover,
.participant-map-retry:focus-visible {
    background: #003d38;
}

.participant-map-legend {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(3, 34, 27, 0.08);
    box-shadow: 0 8px 20px rgba(3, 34, 27, 0.08);
    pointer-events: none;
}

.participant-map-legend .legend-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.participant-map-legend .legend-scale {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    height: 10px;
}

.participant-map-legend .legend-swatch {
    flex: 1;
    display: block;
}

.participant-map-legend .legend-range {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-color);
}

.participant-map-popup {
    z-index: 1300 !important;
}

.participant-map-popup .leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    background: #fff;
}

.participant-map-popup .leaflet-popup-content {
    margin: 0;
    min-width: 240px;
    width: 260px;
    font-family: var(--default-font);
    font-size: 14px;
    color: #222;
    line-height: 1.35;
}

.participant-map-popup .leaflet-popup-close-button {
    top: 12px !important;
    right: 12px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 18px !important;
    line-height: 22px !important;
    color: #94a3b8 !important;
    z-index: 2;
}

.participant-map-popup .leaflet-popup-tip {
    box-shadow: none;
}

.map-popup-card {
    padding: 12px 14px 12px;
    background: #fff;
}

.map-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eef0;
}

.map-popup-heading {
    min-width: 0;
}

.map-popup-title {
    margin: 0;
    font-family: var(--accent-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}

.map-popup-open {
    flex-shrink: 0;
    min-height: 30px;
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.map-popup-open:hover,
.map-popup-open:focus-visible {
    background: rgba(13, 148, 136, 0.2);
}

.map-field-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-field-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-areas:
        "icon title value"
        ". desc desc";
    column-gap: 8px;
    row-gap: 0;
    align-items: center;
}

.map-field-icon {
    grid-area: icon;
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    align-self: center;
}

.map-field-title {
    grid-area: title;
    display: block;
    margin: 0;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-field-value {
    grid-area: value;
    font-family: var(--accent-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.map-field-desc {
    grid-area: desc;
    display: none !important;
    margin: 2px 0 0 !important;
    max-width: 210px;
    padding: 0 !important;
    background: transparent;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    color: #7a8a84;
    text-align: justify;
    text-justify: inter-word;
}

.map-popup-card.is-expanded .map-field-desc {
    display: block !important;
}

.participant-map-popup .leaflet-popup-tip {
    background: #fff;
    box-shadow: none;
    border: none;
}

.map-popup-footnote {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #0d9488;
}

@keyframes participant-map-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .participant-map-section {
        padding: 60px 0;
    }

    .participant-map-shell {
        height: 340px;
        border-radius: 16px;
    }

    .participant-map-legend {
        left: 12px;
        right: auto;
        bottom: 12px;
        min-width: 140px;
        width: auto;
    }
}
