.contact-location-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: url('../img/icon-pin.png') center / 13px 18px no-repeat;
    vertical-align: middle;
}

.contact-location-icon:hover {
    background-color: #fff1dd;
}

.contacts-box__address + .contacts-box__address {
    margin-top: 0.45em;
}

.map-block.map-block--preview::after {
    content: none;
}

.static-page-view .contacts-map-block {
    height: auto;
}

.contact-map-preview {
    display: flow-root;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: clamp(240px, 40vw, 450px);
    background: #f0efec;
}

.contact-map-preview__link,
.contact-map-preview__link img,
.contact-map-preview__interactive {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-map-preview__link img {
    object-fit: cover;
}

.contact-map-preview [hidden] {
    display: none;
}

.contact-map-preview__interactive.leaflet-container {
    background: #f0efec;
}

.contact-map-base {
    filter: grayscale(1);
}

.contact-map-preview__error {
    position: absolute;
    z-index: 1000;
    top: 0;
    right: 0;
    max-width: 80%;
    margin: 0;
    padding: 0.5em;
    background: #fff;
    color: #854800;
}

.contact-map-preview .leaflet-popup-content {
    font-size: 14px;
    line-height: 1.4;
}

.contact-map-preview .leaflet-popup-content small {
    display: block;
    margin-top: 0.35em;
}

.contact-map-preview__credit {
    position: absolute;
    z-index: 1000;
    right: 12px;
    bottom: 0;
    padding: 0.2em 0.55em;
    background: rgba(255, 255, 255, 0.9);
    color: #434343;
    font-size: 11px;
    text-decoration: none;
}

.contact-map-preview .contact-map-preview__external {
    position: absolute;
    z-index: 1000;
    left: 8px;
    bottom: 8px;
    padding: 5px 9px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
    color: #434343;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

@media (min-width: 768px) and (max-width: 1200px) {
    .map-block--preview .contact-map-preview__external {
        right: 72px;
        left: auto;
    }
}

.contact-map-preview__credit:hover,
.contact-map-preview .contact-map-preview__external:hover {
    text-decoration: underline;
}

.contact-location-icon:focus-visible,
.contact-map-preview a:focus-visible {
    outline: 2px solid #854800;
    outline-offset: 2px;
}
