.locations-swiper {
    position: absolute;
    bottom: 22px;
    left: var(--gutter);
    width: 100%;
    max-width: 459px;
    height: auto !important;
}

.locations-swiper .swiper-wrapper {
    align-items: flex-end;
}

.locations-swiper .swiper-slide {
    height: auto;
}

.map-block .title {
    margin-bottom: 12px;
}

.map-block .box {
    margin-bottom: 8px;
    padding: 24px;
    backdrop-filter: blur(25px);
}

.map-block .box.primary {
    background: rgba(250, 250, 247, 0.10) !important;
}

.map-block .box.has-dark-blue-background-color {
    background: #2c3349;
    backdrop-filter: blur(25px);
    color: #FAFAF7;
    font-size: 14px;
}

.stat-members {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-members::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    background: #4D45F5;
}

.stat-research {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-research::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 100%;
    background: #99B0F2;
}

.map-block .stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-block .box p:last-child .map-block-wrapper {
    position: relative;
}

.location-button span {
    display: block;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #2c3349;
    color: #fafaf7;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.location-button span::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #2c3349 transparent transparent transparent;
}

.location-button {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    color: #6E6EE8;
    border: 0;
    padding: 0;
    margin: 0;

    cursor: pointer;
    z-index: 1000;
    outline: 0;
    transition: all 0.3s ease;
}

.location-button::before,
.location-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: -1;
}

.location-button::before {
    width: 24px;
    height: 24px;
    animation: pulse 2s infinite;
    animation-delay: var(--marker-delay, 0s);
    pointer-events: none
}

.location-button::after {
    width: 62px;
    height: 62px;
    animation: pulse2 2s infinite;
    animation-delay: calc(var(--marker-delay, 0s) + 0.3s);
    pointer-events: none;
}

.location-button.open,
.location-button:hover {
    color: var(--color-primary);
    z-index: 1000;
}

.location-button.open span,
.location-button:hover span {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulse2 {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.map-block {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.map-block-wrapper {
    position: relative;
    background: transparent;
    width: 100%;
    line-height: 0;
}

#leaflet-map {
    width: 100%;
    aspect-ratio: 2 / 1;
    height: auto;
    outline: none;
    z-index: 1;
    display: block;
}

.custom-leaflet-marker {
    background: none !important;
    border: none !important;
    pointer-events: none;
}

.custom-leaflet-marker .location-button {
    pointer-events: auto;
}

.location-item .wp-block-buttons {
    margin-top: 8px;
}

.locations-group .dropdown-mob {
    position: relative;
}

.locations-group .dropdown-title-mob {
    padding: 10px 0;
}

.locations-group .dropdown-list-mob {
    position: absolute;
    top: 100%;
    overflow: hidden;
    width: 100%;
    padding: 0 20px;
    background: #2c3349;
}

@media(min-width: 768px) {
    .map-block .box.has-dark-blue-background-color {
        display: flex;
        gap: 16px;
    }

    .map-block .box.has-dark-blue-background-color>* {
        flex: 1;
    }
}

@media(min-width: 769px) {

    .locations-group .dropdown-mob,
    .map-block .mob-dropdown {
        display: none !important;
    }

    .locations-group .dropdown-title-mob {
        cursor: default;
    }
}

@media(max-width: 768px) {
    .locations-group .dropdown-mob {
        display: block !important;
        z-index: 10;
    }



    .locations-group .swiper-pagination {
        overflow-y: auto;
    }

    .locations-group .dropdown-mob button.dropdown-title-mob:before,
    .locations-group .dropdown-mob button.dropdown-title-mob::after {
        display: none;
    }

    .dropdown-list-mob .swiper-pagination-bullet {
        display: block;
        color: white;
        width: auto;
        height: auto;
        background: transparent;
        border: 0;
        text-align: left;
        padding: 10px 0;
    }

    .dropdown-list-mob .swiper-pagination-bullet:hover,
    .dropdown-list-mob .swiper-pagination-bullet.swiper-pagination-bullet-active {
        color: var(--color-primary);
        background: transparent;
        border: 0;
    }

    .locations-group .dropdown-mob button.dropdown-title-mob {
        position: static;
        width: 100%;
        height: auto;
        border: 0;
        padding: 17px 16px;
        border-radius: 4px;
        background-color: #99B0F280;
        margin-bottom: 24px;
        font-size: 18px;
        font-style: normal;
        font-weight: 300;
        line-height: 22px;
        background-image: url(../../../assets/images/ui/select-dark.svg);
        background-repeat: no-repeat;
        background-position: right 16px center;
    }

    .locations-swiper .swiper-wrapper {
        align-items: flex-start;
    }

    .map-block {
        padding: 0 !important;
        overflow: hidden;
        position: relative;
        z-index: 10;
    }

    .locations-group .dropdown-list-mob .swiper-pagination {
        max-height: 243px;
        overflow-y: auto;
    }

    .locations-swiper {
        overflow: visible !important;
    }

    .map-block {
        overflow-y: visible !important;
    }

    .map-block .box.has-dark-blue-background-color {
        color: var(--color-text) !important;
        background: rgba(21, 29, 53, 0.10) !important;
    }

    .map-block .wp-block-buttons {
        flex-flow: row wrap;
    }

    .map-block .wp-block-button {
        width: 100%;
    }

    .map-block .box {
        background: #4D45F5;
    }

    .map-block .stats {
        margin-top: 24px;
    }

    .map-block .box p {
        margin: 0;
    }



    .locations-group {
        background: white;
        padding: 24px 20px;
    }

    .locations-swiper {
        position: static;
        color: var(--color-text);
        max-width: none;
    }
}