
.ccv-map-home-card{
    --ccv-purple:#9b7593;
    --ccv-ink:#20272b;
    position:relative;
    isolation:isolate;
    width:100%;
    min-height:620px;
    overflow:hidden;
    border:1px solid #ece7e3;
    border-radius:26px;
    background:#f7f6f3;
    box-shadow:0 12px 40px rgba(30,39,43,.04);
    font-family:"Helvetica Neue",Arial,sans-serif;
}

.ccv-map-home-source{
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    overflow:hidden;
}

/* El JS detecta el Leaflet real y oculta únicamente
   los bloques hermanos que no contienen el mapa. */
.ccv-map-home-source .ccv-home-hide{
    display:none !important;
}

.ccv-map-home-source .ccv-home-map-path{
    width:100% !important;
    max-width:none !important;
    flex:1 1 100% !important;
    grid-column:1 / -1 !important;
}

.ccv-map-home-source .ccv-home-map-root{
    position:absolute !important;
    inset:0 !important;
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:100% !important;
    min-height:620px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
}

.ccv-map-home-source .leaflet-container{
    width:100% !important;
    max-width:none !important;
    height:620px !important;
    min-height:620px !important;
    margin:0 !important;
    border-radius:0 !important;
}

.ccv-map-home-copy{
    position:absolute;
    z-index:30;
    top:0;
    left:0;
    bottom:0;
    width:44%;
    max-width:470px;
    padding:44px 44px 40px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    pointer-events:none;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.99) 62%,
            rgba(255,255,255,.88) 80%,
            rgba(255,255,255,0) 100%);
}

.ccv-map-home-copy h2{
    max-width:350px;
    margin:0 0 18px;
    color:var(--ccv-ink);
    font-family:"Ivy Presto","Times New Roman",serif;
    font-size:clamp(30px,3vw,43px);
    font-weight:400;
    line-height:1.05;
}

.ccv-map-home-copy p{
    max-width:310px;
    margin:0 0 25px;
    color:#62686c;
    font-size:15px;
    line-height:1.55;
}

.ccv-map-home-button{
    pointer-events:auto;
    display:inline-flex;
    min-height:48px;
    align-items:center;
    gap:18px;
    padding:0 24px;
    border-radius:999px;
    background:var(--ccv-purple);
    color:#fff !important;
    font-size:13px;
    font-weight:700;
    text-decoration:none !important;
    transition:.2s ease;
}

.ccv-map-home-button:hover{
    transform:translateY(-2px);
    background:#88667f;
    box-shadow:0 9px 25px rgba(155,117,147,.25);
}

.ccv-map-home-error{
    padding:18px 20px;
    border:1px solid #dfcbd8;
    border-radius:12px;
    background:#fff7fb;
    color:#76536e;
    font:14px/1.5 Arial,sans-serif;
}

@media(max-width:1024px){
    .ccv-map-home-card{
        min-height:570px;
    }

    .ccv-map-home-source .leaflet-container,
    .ccv-map-home-source .ccv-home-map-root{
        min-height:570px !important;
        height:570px !important;
    }

    .ccv-map-home-copy{
        width:48%;
        padding:36px 34px;
    }
}

@media(max-width:767px){
    .ccv-map-home-card{
        min-height:760px;
        border-radius:20px;
    }

    .ccv-map-home-copy{
        position:relative;
        width:100%;
        max-width:none;
        height:250px;
        padding:26px 24px;
        background:#fff;
    }

    .ccv-map-home-copy h2{
        max-width:none;
        margin-bottom:12px;
        font-size:30px;
    }

    .ccv-map-home-copy p{
        max-width:none;
        margin-bottom:18px;
        font-size:14px;
    }

    .ccv-map-home-source{
        top:250px;
        height:510px;
    }

    .ccv-map-home-source .leaflet-container,
    .ccv-map-home-source .ccv-home-map-root{
        min-height:510px !important;
        height:510px !important;
    }
}
