.map__detail[hidden] {
    display: none;
}

.map__detail {
    z-index: 11;
}

.map__detail-item-area {
    position: relative;
}

.map__detail-svg {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 80%;
}

.map__detail_kaliningradskaya .map__detail-svg {
    left: 25%;
    width: 50%;
}

.map__detail-close {
    z-index: 12;
}

.map__item {
    cursor: pointer;
}

.map__svg text,
.map__detail-svg text {
    paint-order: stroke fill;
    stroke-width: 1px;
}

.map__item:hover .map__area {
    filter: grayscale(0);
    opacity: 1;
}

.map__svg:hover #other {
    filter: grayscale(100%);
    opacity: 0.5;
}

.map__item:focus-visible .map__area {
    filter: grayscale(0);
    opacity: 1;
    stroke: #000;
    stroke-width: 1.5;
}

.map__loading,
.map__error {
    margin: 0;
    text-align: center;
}

.map__error {
    color: #a00;
}

.map__detail-close:focus-visible,
.map__detail-back:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media (max-width: 1149px) {
    .map__inner {
        padding: 0;
        aspect-ratio: 1202.32 / 640.22;
    }

    .map__svg {
        top: 0;
        height: auto;
    }

    .map__detail-close {
        display: block;
    }
}
