.sts-service-map {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.sts-map-title {
    margin: 0 0 16px;
    color: #0f172a;
    line-height: 1.1;
}

.sts-map-stage {
    position: relative;
    height: var(--sts-map-height, 620px);
    min-height: 360px;
    background: linear-gradient(180deg, #f6f9fc 0%, #eef3f8 100%);
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    overflow: hidden;
}

.sts-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.sts-map-svg.is-dragging {
    cursor: grabbing;
}

.sts-state {
    fill: #dce4ee;
    stroke: #bcc7d5;
    stroke-width: 1.3;
    vector-effect: non-scaling-stroke;
    transition: fill 0.18s ease, opacity 0.18s ease, stroke 0.18s ease;
}

.sts-state.is-service {
    fill: #0d66c2;
    stroke: #ffffff;
    stroke-width: 2.4;
}

.sts-state.is-secondary {
    fill: #7fb4ea;
    stroke: #ffffff;
    stroke-width: 2.2;
}

.sts-state:hover {
    opacity: 0.94;
}


.sts-state-label {
    fill: #0f172a;
    font-size: 12px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.96);
    stroke-width: 3px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.sts-marker {
    cursor: pointer;
    outline: none;
}

.sts-marker-halo {
    fill: rgba(255,255,255,0.22);
    pointer-events: none;
}

.sts-marker-dot {
    stroke: #ffffff;
    stroke-width: 2.6;
    vector-effect: non-scaling-stroke;
}

.sts-marker--office .sts-marker-dot {
    fill: #ef4444;
}

.sts-marker--rep .sts-marker-dot {
    fill: #f59e0b;
}

.sts-marker:focus .sts-marker-dot,
.sts-marker:hover .sts-marker-dot {
    stroke: #0f172a;
}


.sts-marker-city-label {
    fill: #0f172a;
    font-size: 15px;
    font-weight: 700;
    paint-order: stroke;
    stroke: rgba(255,255,255,0.95);
    stroke-width: 4px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

.sts-map-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

.sts-map-btn {
    appearance: none;
    border: 1px solid #c9d5e3;
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    border-radius: 10px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.sts-map-btn:hover,
.sts-map-btn:focus {
    border-color: #0d66c2;
}

.sts-map-btn-reset {
    min-width: 68px;
}

.sts-map-popup {
    position: absolute;
    z-index: 7;
    width: min(320px, calc(100% - 24px));
    background: #ffffff;
    border: 1px solid #d6dfe9;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    padding: 14px 16px;
    transform: translate(-50%, calc(-100% - 14px));
}

.sts-map-popup.is-below {
    transform: translate(-50%, 14px);
}

.sts-map-popup[hidden] {
    display: none;
}

.sts-popup-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0d66c2;
}

.sts-popup-title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.15;
    color: #0f172a;
}

.sts-popup-city {
    margin: 0 0 10px;
    font-weight: 700;
    color: #334155;
}

.sts-popup-copy {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.45;
}

.sts-popup-copy:last-child {
    margin-bottom: 0;
}

.sts-map-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    text-align: center;
}

.sts-map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    color: #0f172a;
    font-size: 14px;
}

.sts-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sts-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.sts-swatch-service {
    background: #0d66c2;
}

.sts-swatch-secondary {
    background: #7fb4ea;
}

.sts-swatch-office,
.sts-swatch-rep {
    border-radius: 999px;
}

.sts-swatch-office {
    background: #ef4444;
}

.sts-swatch-rep {
    background: #f59e0b;
}

.sts-map-help {
    color: #475569;
    font-size: 14px;
}

@media (max-width: 900px) {
    .sts-map-stage {
        height: min(78vw, var(--sts-map-height, 620px));
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .sts-map-stage {
        min-height: 340px;
        border-radius: 12px;
    }

    .sts-map-controls {
        top: 10px;
        right: 10px;
    }

    .sts-map-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }

    .sts-map-popup {
        width: min(280px, calc(100% - 20px));
    }
}
