.wbn-locations-map__map {
    position: relative;
}

.wbn-locations-map__image {
    display: block;
    width: 100%;
    height: auto;
}

.wbn-locations-map__marker {
    --transition-duration: .2s;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    padding: 0;
    border: 4px solid var(--bs-white);
    border-radius: 50%;
    background-color: var(--bs-primary);
    box-shadow: 0 0 10px 0 rgba(11, 14, 17, 0.10);
    cursor: pointer;

    &:after {
        content: '';
        pointer-events: none;
        position: absolute;
        border-radius: 50%;
        width: 100%;
        aspect-ratio: 1;
        background-color: var(--bs-primary);
        opacity: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity var(--transition-duration) ease-in-out, width var(--transition-duration) ease-in-out;
    }

    &[aria-describedby] {
        &:after {
            opacity: 0.5;
            width: 200%;
        }
    }
}

.wbn-locations-map__marker:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}

.wbn-locations-map__header {
    display: flex;
    flex-direction: column;
}

.wbn-locations-map__card {
    padding: 1rem 1.5rem;
    border: 0;
    border-left: 2px solid transparent;
    box-shadow: 0 8px 32px 0 rgba(11, 14, 17, 0.10);
    cursor: pointer;
}

.wbn-locations-map__card.is-active {
    border-left-color: var(--bs-primary);
}

.wbn-locations-map__card:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.wbn-locations-map__head, .wbn-locations-map__popover .popover-header {
    display: flex;
    align-items: center;
    font-size: calc(11 / 16 * 1rem);
    font-weight: 600;
    text-transform: uppercase;
    gap: 0.5rem;
    color: var(--bs-primary);
}

.wbn-locations-map__address {
    margin: 0.5rem 0 0;
    font-size: calc(13 / 16 * 1rem);
}

.wbn-locations-map__popover {
    --bs-popover-border-radius: 0;
    --bs-popover-border-width: 0;
    --bs-popover-body-padding-y: 0;
    --bs-popover-zindex: 1;
    max-width: min(var(--bs-popover-max-width), calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-wrap: anywhere;
    overflow-y: auto;

    &.wbn-locations-map__popover--left {
        border-right: 2px solid var(--bs-primary);
    }

    &.wbn-locations-map__popover--right {
        border-left: 2px solid var(--bs-primary);
    }

    .popover-header {
        border-radius: 0;
        --bs-popover-header-bg: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wbn-locations-map__marker {
        --transition-duration: 0;
    }
}
