/* Service area map (Leaflet): map + legend live inside one card */
.service-map-card {
    max-width: min(100%, 880px);
    margin: clamp(20px, 4vw, 36px) auto 0;
    padding: clamp(14px, 2.5vw, 22px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(8, 12, 20, 0.72);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.12);
    box-sizing: border-box;
}

.it-service-map-wrap {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

.it-service-map {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(50vh, 400px);
    height: auto;
    min-height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    background: #0f1419;
    z-index: 1;
    box-sizing: border-box;
}

.it-service-map.it-service-map--ready {
    min-height: 220px;
}

.it-service-map .leaflet-container {
    font-family: inherit;
    background: #111827;
}

.service-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 2vw, 20px);
    justify-content: center;
    align-items: flex-start;
    margin-top: clamp(18px, 3vw, 28px);
    padding: clamp(14px, 2vw, 20px);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(17, 17, 17, 0.6);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-map-legend__title {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #facc15);
    margin-bottom: 4px;
    font-weight: 600;
}

.service-map-legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ddd;
    max-width: 100%;
}

.service-map-legend__swatch {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.service-map-legend__text strong {
    color: #fff;
    font-weight: 600;
}

.service-map-legend__tier {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
}

.service-map-intro {
    max-width: 720px;
    margin: 0 auto clamp(16px, 3vw, 24px);
    color: #bbb;
    line-height: 1.65;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

@media (max-width: 600px) {
    .service-map-card {
        padding: 12px;
        margin-top: 16px;
    }

    .it-service-map {
        aspect-ratio: 4 / 3;
        max-height: min(58vh, 360px);
        min-height: 200px;
    }

    .service-map-legend {
        flex-direction: column;
        align-items: stretch;
    }

    .service-map-legend__item {
        font-size: 0.85rem;
    }
}
