.hsm-map {
    width: 100%;
    max-width: 100%;
    --hsm-active: #136074;
    --hsm-inactive: #e7e7e8;
    --hsm-hover: #21849a;
}

.hsm-map-stage {
    position: relative;
    width: 100%;
    min-height: 240px;
}

.hsm-map svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hsm-map .hsm-state {
    fill: var(--hsm-inactive);
    stroke: #ffffff;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    transition: fill 180ms ease, transform 180ms ease, filter 180ms ease;
    transform-box: fill-box;
    transform-origin: center;
}

.hsm-map .hsm-state.is-active {
    fill: var(--hsm-active);
    cursor: default;
    pointer-events: all;
}

@media (hover: hover) and (pointer: fine) {
    .hsm-map .hsm-state.is-active:hover {
        fill: var(--hsm-hover);
        transform: scale(1.035);
        filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.18));
    }
}

.hsm-map .hsm-state.is-active:focus-visible {
    fill: var(--hsm-hover);
    transform: scale(1.035);
    outline: none;
    filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.18));
}

.hsm-map-loading,
.hsm-map-error {
    margin: 0;
    padding: 16px 0;
    color: #666;
    font-size: 14px;
}

.hsm-map.is-ready .hsm-map-stage {
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hsm-map .hsm-state {
        transition: none;
    }

    .hsm-map .hsm-state.is-active:hover,
    .hsm-map .hsm-state.is-active:focus-visible {
        transform: none;
    }
}
