.serp-map {
    position: relative;
    width: min(100%, 1116px);
    aspect-ratio: 1116 / 888;
    flex: 0 1 auto;
    min-width: 0;
}

.serp-map__image {
    display: block;
    width: 100%;
    height: 100%;
}

.serp-map__pin {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.serp-map__pin::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1px solid #e9fbff;
    border-radius: 50%;
    background: #7fe0ff;
    box-shadow: 0 0 0 5px rgba(95, 210, 255, .22), 0 0 14px rgba(127, 224, 255, .75);
    transition: transform .15s ease;
}

.serp-map__pin:hover::before,
.serp-map__pin[aria-expanded="true"]::before {
    transform: scale(1.3);
}

.serp-map__pin[aria-expanded="true"] { z-index: 3; }

.serp-map__pin:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.serp-map__tooltip {
    position: absolute;
    z-index: 4;
    width: min(320px, calc(100% - 24px));
    padding: 15px 17px;
    border: 1px solid #5fd2ff;
    border-radius: 8px;
    background: #0b2a56;
    color: #eff8ff;
    box-shadow: 0 12px 30px rgba(4, 26, 61, .5);
    text-align: left;
}

.serp-map__tooltip[hidden] { display: none; }

.serp-map__tooltip::after {
    position: absolute;
    left: var(--serp-map-arrow-x);
    width: 12px;
    height: 12px;
    border-right: 1px solid #5fd2ff;
    border-bottom: 1px solid #5fd2ff;
    background: #0b2a56;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.serp-map__tooltip[data-placement="above"]::after { bottom: -7px; }
.serp-map__tooltip[data-placement="below"]::after {
    top: -7px;
    transform: translateX(-50%) rotate(225deg);
}

.serp-map__place {
    margin: 0 0 8px;
    color: #9be6ff;
    font-size: 13px;
    font-weight: 700;
}

.serp-map__list {
    max-height: 280px;
    margin: 0;
    padding: 0 8px 0 18px;
    overflow-y: auto;
    scrollbar-color: #82b5df transparent;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.serp-map__list li + li { margin-top: 6px; }
.serp-map__list::-webkit-scrollbar { width: 10px; }
.serp-map__list::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.serp-map__list::-webkit-scrollbar-thumb { background: #82b5df; border-radius: 5px; }
.serp-map__list::-webkit-scrollbar-thumb:hover { background: #9be6ff; }
.serp-map__list::-webkit-scrollbar-corner { background: transparent; }

.serp-map__more {
    margin: 10px 0 0;
    color: #cfe9ff;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .serp-map__pin { width: 32px; height: 32px; }
    .serp-map__pin::before {
        width: 9px;
        height: 9px;
        box-shadow: 0 0 0 4px rgba(95, 210, 255, .25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .serp-map__pin::before { transition: none; }
}
