.store-map {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1485px;
    margin: 0 auto 20px;
    overflow: visible;
}

.store-map--footer {
    max-width: 594px;
    margin: 0;
}

.store-map__background-link {
    display: block;
}

#footer .boxes .map .tablet-map {
    background-image: url("../images/map-clean.jpg");
}

.store-map__image {
    display: block;
    width: 100%;
    height: auto;
}

.store-map__markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.store-map__marker {
    position: absolute;
    z-index: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.store-map__marker--active {
    z-index: 10;
}

.store-map__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e31e24;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
    cursor: pointer;
    font: 700 16px/1 "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    touch-action: manipulation;
}

.store-map__button:hover,
.store-map__marker--active .store-map__button {
    background: #a91217;
    transform: scale(1.12);
}

.store-map__button--group,
.store-map__button--group:hover,
.store-map__marker--active .store-map__button--group {
    border: 0;
    background: transparent;
    color: #e31e24;
    box-shadow: none;
    position: relative;
}

.store-map__button--group::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border: 3px solid #e31e24;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
    content: "";
    box-sizing: border-box;
    transform: translate(-50%, -50%);
}

.store-map__count {
    position: relative;
    z-index: 1;
}

.store-map__button:focus {
    outline: 3px solid #134074;
    outline-offset: 3px;
}

.store-map__button--single,
.store-map__button--single:hover,
.store-map__marker--active .store-map__button--single {
    border: 0;
    background: transparent url("../images/map-1.png") no-repeat center / 43px 43px;
    box-shadow: none;
}

.store-map__button--single:hover,
.store-map__marker--active .store-map__button--single {
    background-image: url("../images/map-1-hover.png");
    background-size: 43px 43px;
}

.store-map__popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 5;
    width: 320px;
    max-width: calc(100vw - 30px);
    padding: 18px 20px 16px;
    border: 1px solid #ddd;
    border-top: 3px solid #e31e24;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    color: #222;
    transform: translateX(-50%);
}

.store-map__marker--left .store-map__popup {
    left: 0;
    transform: none;
}

.store-map__marker--right .store-map__popup {
    right: 0;
    left: auto;
    transform: none;
}

.store-map__marker--above .store-map__popup {
    top: auto;
    bottom: calc(100% + 10px);
}

.store-map__popup[hidden] {
    display: none;
}

.store-map__popup-title {
    padding: 0 25px 12px 0;
    color: #222;
    font-size: 20px;
    line-height: 1.25;
}

.store-map__store {
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.store-map__store-title {
    padding-bottom: 5px;
    color: #222;
    font-size: 16px;
    line-height: 1.3;
}

.store-map__info-line {
    padding: 2px 0;
    font-size: 14px;
    line-height: 1.4;
}

.store-map__info-line strong {
    display: inline;
    padding: 0;
}

.store-map__detail-link {
    margin-top: 8px;
    color: #134074;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .store-map {
        margin-bottom: 15px;
    }

    .store-map__marker {
        transform: none;
    }

    .store-map__button {
        width: 40px;
        height: 40px;
        transform: translate(-50%, -50%);
    }

    .store-map__button:hover,
    .store-map__marker--active .store-map__button {
        transform: translate(-50%, -50%) scale(1.12);
    }

    .store-map__popup,
    .store-map__marker--left .store-map__popup,
    .store-map__marker--right .store-map__popup {
        position: fixed;
        top: auto;
        right: 15px;
        bottom: 15px;
        left: 15px;
        width: auto;
        max-width: none;
        transform: none;
    }

    .store-map__marker--above .store-map__popup {
        top: auto;
        bottom: 15px;
    }
}
