```css
/* ==========================================================
   MAP CONTAINER
========================================================== */

.churches-module {
    width: 100%;
}

.churches-map {
    width: 100%;
    height: 500px;
}

.churches-map-wrapper {
    position: relative;
}

.leaflet-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.leaflet-interactive:focus {
    outline: none !important;
}


/* ==========================================================
   REGION GEOJSON
========================================================== */

.region-tooltip {

    background: rgba(44,123,229,.9);
    color:#fff;

    border:none;
    padding:4px 8px;

    border-radius:4px;

    font-size:13px;
    font-weight:500;

    box-shadow:
        0 2px 6px rgba(0,0,0,.2);
}


#map-region-title {

    position:absolute;

    top:50px;
    left:50%;

    transform:translateX(-50%);

    z-index:1000;

    display:none;

    padding:10px 22px;

    border-radius:24px;

    background:#fff;

    color:#2c7be5;

    font-size:18px;
    font-weight:600;

    box-shadow:
        0 4px 12px rgba(0,0,0,.18);

    pointer-events:none;

    white-space:nowrap;
}

.region-title-city {
    margin-top: 2px;
    font-size: 0.9em;
    font-style: italic;
    opacity: .9;
}


/* ==========================================================
   REGION CLUSTER MARKERS
========================================================== */

.region-cluster-icon {

    background:none !important;
    border:none !important;

}


.region-cluster-svg {

    width:30px;
    height:42px;

    overflow:visible;

}


.region-cluster-icon:hover .region-cluster-svg {

    animation:
        markerBounce
        1.5s
        cubic-bezier(.34,1.56,.64,1)
        infinite;

}


@keyframes markerBounce {

    0%,100% {
        transform:translateY(0);
    }

    30% {
        transform:translateY(-7px);
    }

    60% {
        transform:translateY(-2px);
    }

}


/* уход кластеров */

.region-cluster-svg.fly-out {

    animation:
        regionMarkerFlyOut
        .45s
        ease
        forwards;

}


@keyframes regionMarkerFlyOut {

    from {

        transform:
            translateY(0)
            scale(1);

        opacity:1;

    }

    to {

        transform:
            translateY(-80px)
            scale(.2);

        opacity:0;

    }

}


/* ==========================================================
   CHURCH MARKERS
========================================================== */


/* контейнер создаётся bounce-плагином Leaflet */

.church-hover-wrapper {

    transform-origin:center bottom;

    transition:
        transform .25s cubic-bezier(.34,1.56,.64,1);

}


.church-hover-wrapper.church-hover {

    transform:scale(1.18);

}


/* появление церквей */

.leaflet-marker-icon.church-marker-drop {

    animation:
        churchMarkerDrop
        .75s
        cubic-bezier(.22,1,.36,1);

}


@keyframes churchMarkerDrop {

    0% {

        opacity:0;

        transform:
            translateY(-70px)
            scale(.2);

    }

    55% {

        opacity:1;

        transform:
            translateY(10px)
            scale(1.08);

    }

    75% {

        transform:
            translateY(-4px)
            scale(.98);

    }

    100% {

        opacity:1;

        transform:
            translateY(0)
            scale(1);

    }

}

/* ==========================================================
   CHURCH INFO
========================================================== */

.church-info-region {

    padding:22px;

}

.church-info-region-title {

    font-size:22px;

    font-weight:700;

    margin-bottom:18px;

    color:#2f3a45;

}

.church-info-region-count {

    margin-bottom:18px;

    color:#666;

}

.church-info-region-cities {

    display:flex;

    flex-direction:column;

    gap:8px;

}

.church-info-region-city {

    padding:8px 12px;

    border-radius:8px;

    background:#f8fafc;

    border:1px solid #eef2f6;

}

.church-info-region-empty {

    margin-top:16px;

    line-height:1.5;

    color:#666;

}


/* ==========================================================
   CHURCH CARD
========================================================== */

.church-popup {

    min-width:270px;
    max-width:350px;
     padding:22px;

}

.church-popup-title{

    font-size:22px;

    font-weight:700;

    line-height:1.3;

    color:#333;

    margin-bottom:18px;

    padding-bottom:14px;

    border-bottom:1px solid #ececec;

}


.church-popup-row {

    display:flex;

    align-items:flex-start;

    gap:10px;

    margin-bottom:10px;

}

.church-popup-icon {

    width:20px;
    min-width:20px;
    margin-top:2px;
    display:flex;

    align-items:center;
    justify-content:center;

}


.church-popup-icon svg {

    width:20px;
    height:20px;

}


.church-popup-text {

    flex:1;

    line-height:1.55;

    word-break:break-word;

}

.church-popup-section{

    margin-top:14px;

    border-top:1px solid #ececec;

    padding-top:12px;

}

.church-popup-section-title{

    display:flex;

    align-items:center;

    gap:8px;

    margin-bottom:10px;

    font-weight:600;

    color:#2c7be5;

}

.church-popup-services{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.church-popup-service{

    padding:8px 10px;

    border-radius:8px;

    
}

.church-popup-service-title{

    font-weight:600;

    margin-bottom:3px;

}

.church-popup-service-time{

    font-size:13px;

    color:#666;

}


/* ==========================================================
    CHURCH CARD BUTTONS
========================================================== */

.church-popup-buttons {

    margin-top:22px;

    padding-top:18px;

    border-top:1px solid #ececec;

    display:flex;

    gap:10px;

}


.church-popup-button {

    height:40px;

    display:flex;

    align-items:center;

    border-radius:20px;

    overflow:hidden;

    text-decoration:none;

    transition:
        transform .18s ease,
        box-shadow .18s ease;

}


.church-popup-button-logo {

    width:38px;
    height:38px;

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:19px;

}


.church-popup-button-logo svg {

    width:20px;
    height:20px;

}


.church-popup-button-text {

    padding:0 16px;

    font-size:15px;
    font-weight:600;

}


.church-popup-button:hover {

    transform:scale(1.02);

    box-shadow:
        0 3px 10px rgba(0,0,0,.12);

}


.church-popup-button-yandex {

    border:1px solid #ff0000;

}


.church-popup-button-yandex .church-popup-button-text {

    color:#ff0000;

}


.church-popup-button-google {

    border:1px solid #4285F4;

}


.church-popup-button-google .church-popup-button-text {

    color:#4285F4;

}


.church-popup-button-route{

    border:1px solid #2c7be5;

}

.church-popup-button-route .church-popup-button-logo{

    box-shadow:0 0 0 1px #2c7be5;

}

.church-popup-button-route .church-popup-button-text{

    color:#2c7be5;

}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.churches-layout{

    display:flex;

    gap:20px;

    align-items:stretch;

}

.churches-map-wrapper{

    flex:1;

    min-width:0;

}

.church-info-panel{

    width:340px;

    flex-shrink:0;

    background:#fff;

    border:1px solid #ddd;

    border-radius:10px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    overflow:hidden;
    
    display:flex;

    flex-direction:column;

}

.church-info-placeholder{

    display:flex;

    align-items:center;

    justify-content:center;

    height:100%;

    min-height:500px;

    padding:20px;

    color:#888;

    text-align:center;

    font-size:15px;

}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width:991px){

    .churches-layout{

        display:block;

    }

    .church-info-panel{

        display:none;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:768px){

    .churches-map {

        height:50vh;

    }
    
    .leaflet-popup-content{

        margin:12px 12px;

    }


    .leaflet-control-zoom a {

        width:38px;
        height:38px;

        line-height:38px;

        font-size:22px;

    }


    #map-region-title {

        top:35px;

        font-size:16px;

    }


    .church-popup-mobile{

    min-width:230px;
    max-width:260px;

}

.church-popup-address{

    display:flex;

    align-items:flex-start;

    gap:8px;

    margin-top:10px;

}

.church-popup-address-text{

    line-height:1.3;

    font-size:13px;

}

.church-popup-mobile-services{

    margin-top:14px;

    padding-top:10px;

    border-top:1px solid #ececec;

}

.church-popup-mobile-services-title{

    font-weight:600;

    color:#2c7be5;

    margin-bottom:8px;

}

.church-popup-mobile-service{

    display:flex;

    justify-content:space-between;

    padding:5px 0;
    
    align-items:center;

}

.church-popup-mobile-day{

    font-weight:500;

}

.church-popup-mobile-time{

    color:#666;
    
    font-weight:600;

}

    .church-popup-buttons {

        gap:8px;
        justify-content:center;
        margin-top:8px;
        padding-top:8px;

    }
    
    .church-popup-button{

        height:36px;
    
    }


    .church-popup-button-text {

        padding:0 12px;

    }
    
    .church-popup-buttons{

    justify-content:center;

}


.church-popup-button-route{

    width:auto;
    height:36px;

    border:1px solid #2c7be5;

    box-shadow:0 3px 10px rgba(0,0,0,.12);

    transform:none !important;

}


.church-popup-button-route:hover{

    transform:none !important;
    box-shadow:0 3px 10px rgba(0,0,0,.12);

}


.church-popup-button-route .church-popup-button-logo{

    width:34px;
    height:34px;

    border-radius:17px;

    box-shadow:0 0 0 1px #2c7be5;

}


.church-popup-button-route .church-popup-button-logo svg{

    width:18px;
    height:18px;

}


.church-popup-button-route .church-popup-button-text{

    padding:0 14px;

    color:#2c7be5;

    font-size:14px;

}


}

