.maps-container {
    display: flex;
    align-items: center;
    gap: 160px;
}

.maps-container .maps-content {
    flex: 1 1 33.5%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.maps-container .maps-map {
    flex: 1 1 66.5%;
    position: relative;
    overflow: hidden;
}

.maps-container .maps-map::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg, #F1F4F4 1.7%, rgba(241, 244, 244, 0.95) 4.04%, rgba(241, 244, 244, 0.05) 22.39%, rgba(241, 244, 244, 0) 24.69%);
}

.maps-container .maps-map .maps-background {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    position: relative;
    z-index: 0;
}

.maps-container .maps-map .maps-marker {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 30px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.maps-container .maps-map .maps-marker img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.maps-container .maps-map .maps-marker.active {
    width: 44px;
    height: 58px;
}

.maps-container .maps-map .maps-marker .maps-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -8px);
    background: #fff;
    color: var(--e-global-color-primary);
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
    text-align: left;
}

.maps-container .maps-map .maps-marker .maps-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* Put hovered/focused/active marker above other markers */
.maps-container .maps-map .maps-marker:hover,
.maps-container .maps-map .maps-marker:focus-within,
.maps-container .maps-map .maps-marker.active {
  z-index: 100;
}

/* Ensure the tooltip itself sits above its own marker */
.maps-container .maps-map .maps-marker .maps-tooltip {
  z-index: 101; /* keeps it over the green pin */
}


.maps-container .maps-map .maps-marker .maps-tooltip .maps-tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.maps-container .maps-map .maps-marker .maps-tooltip .maps-tooltip-desc {
    font-size: 0.95rem;
    line-height: 1.35;
}

.maps-container .maps-map .maps-marker:hover .maps-tooltip,
.maps-container .maps-map .maps-marker:focus-within .maps-tooltip {
    opacity: 1;
    transform: translate(-50%, -12px);
}

.maps-container.maps-tooltips-anchored .maps-map .maps-marker .maps-tooltip {
    display: none;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-tooltip-anchored {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #fff;
    color: var(--e-global-color-primary);
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 6;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-tooltip-anchored.active {
    opacity: 1;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-tooltip-anchored .maps-tooltip-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-tooltip-anchored .maps-tooltip-desc {
    font-size: 0.95rem;
    line-height: 1.35;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-marker .maps-tooltip {
    top: 30px;
    left: 30px;
    bottom: auto;
    right: auto;
    transform: none;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-marker:hover .maps-tooltip,
.maps-container.maps-tooltips-anchored .maps-map .maps-marker:focus-within .maps-tooltip {
    transform: none;
}

.maps-container.maps-tooltips-anchored .maps-map .maps-marker .maps-tooltip::after {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .maps-container .maps-map .maps-marker .maps-tooltip {
        transition: none;
    }
}

@media screen and (max-width: 768px) {
    .maps-container .maps-map .maps-marker .maps-tooltip {
        min-width: 180px;
        max-width: 240px;
        padding: 10px 12px;
    }
}

.maps-container .maps-content .block-title {
    color: var(--e-global-color-primary);
    margin: 0;
}

.maps-container .maps-content .block-description {
    color: var(--e-global-color-primary);
    margin-block-end: 0;
}

.maps-container .maps-content .maps-locations {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.maps-container .maps-content .maps-locations .maps-location {
    background-color: var(--e-global-color-primary);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.maps-container .maps-content .maps-locations .maps-location.active {
    background: var(--tertiary-color);
}

.maps-container .maps-content .maps-locations .maps-location .maps-title {
    font-weight: 700;
    position: relative;
    padding-right: 30px;
}

.maps-container .maps-content .maps-locations .maps-location .maps-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url('../../icons/plus-white.svg') no-repeat center;
    background-size: contain;
    transition: all 0.3s ease;
}

.maps-container .maps-content .maps-locations .maps-location.active .maps-title::after {
    background-image: url('../../icons/minus-white.svg');
}

.maps-container .maps-content .maps-locations .maps-location .maps-description {
    display: none;
    margin-top: 16px;
    margin-block-end: 0;
}

.maps-container .maps-content .maps-locations .maps-location.active .maps-description {
    display: block;
}

@media screen and (max-width: 1024px) {
    .maps-container {
        gap: 40px;
        flex-direction: column;
    }

    .maps-container .maps-map::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1;
        background: linear-gradient(180deg, #F1F4F4 1.7%, rgba(241, 244, 244, 0.95) 4.04%, rgba(241, 244, 244, 0.05) 22.39%, rgba(241, 244, 244, 0) 24.69%, rgba(241, 244, 244, 0) 75.31%, rgba(241, 244, 244, 0.05) 77.61%, rgba(241, 244, 244, 0.95) 95.96%, #F1F4F4 98.3%);
    }

    .maps-container .maps-map {
        margin: 0 -40px;
    }
}

@media screen and (max-width: 768px) {
    .maps-container .maps-map {
        margin: 0 -20px;
    }

    .maps-container .maps-map .maps-marker {
        width: 15px;
        height: 20px;
    }

    .maps-container .maps-map .maps-marker.active {
        width: 22px;
        height: 29px;
    }
}
