[data-office-locations] {
    position: relative;
    width: 100%;
}

.office-locations__map {
    position: relative;
    width: 100%;
    line-height: 0;
}

.office-locations__image {
    display: block;
    width: 100%;
    height: auto;
}

.office-locations__markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.office-locations__marker {
    position: absolute;
    width: 40px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -100%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
    line-height: 1;
}

.office-locations__pin {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 25px;
    height: 52px;
    display: none;
/*
    background: #5fa7ba;
    border: 6px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    transition: transform .2s ease, background .2s ease;
*/
    background: url(../img/ghim.png) center / cover;
}
/*
.office-locations__marker:focus .office-locations__pin{
    background: #2584a0;
    transform: translateX(-50%) rotate(-45deg) scale(1.1);
}
*/

.office-locations__tooltip {
    position: absolute;
    left: 50%;
    bottom: 50px;
    min-width: 180px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .2s ease;
    line-height: 1.4;
}

.office-locations__tooltip strong,
.office-locations__tooltip small {
    display: block;
}

.office-locations__tooltip small {
    margin-top: 3px;
    color: #666;
}

.office-locations__marker:hover .office-locations__tooltip,
.office-locations__marker:focus .office-locations__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.office-locations__popup {
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    width: min(380px, calc(100% - 30px));
    padding: 26px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%);
    line-height: 1.6;
}

.office-locations__popup[hidden] {
    display: none;
}

.office-locations__popup h3 {
    margin: 0 30px 12px 0;
}

.office-locations__popup-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}

.office-locations__popup-content,
.office-locations__popup-phone,
.office-locations__popup-email,
.office-locations__popup-website {
    display: block;
    margin-top: 8px;
}

.office-locations__popup-content {
    color: #555;
}

.office-locations__close {
    position: absolute;
    right: 12px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.office-locations__marker:hover,
.office-locations__marker:focus,
.office-locations__marker.is-active {
    z-index: 30;
}

@media (max-width: 767px) {
    .office-locations__marker {
        transform: translate(-50%, -100%) scale(.8);
        transform-origin: bottom center;
    }

    .office-locations__tooltip {
        display: none;
    }
}
