/* Correcciones de visualización y consentimiento. */
header{height:auto;min-height:84px;gap:clamp(10px,1.4vw,20px);padding:12px clamp(18px,5vw,80px)}
header nav{gap:clamp(12px,2vw,30px)}
.cookie-banner{z-index:1100;max-width:520px;padding:18px;gap:18px}.cookie-actions{display:flex;gap:8px;flex-shrink:0}.cookie-banner .cookie-secondary{background:#eaf0f3;color:var(--navy)}
@media(max-width:700px){header{min-height:72px;padding:10px 16px}.credential,.phone-header{display:none}.language-switch{margin-left:auto}.cookie-banner{right:14px;left:14px;align-items:flex-start;flex-direction:column}.cookie-actions{width:100%}.cookie-actions button{flex:1}}
.hero{background-image:linear-gradient(90deg,#032c49ee 0%,#07577bd9 48%,#07577b18 76%),image-set(url('images/villa-castelldefels.avif') type('image/avif'),url('images/villa-castelldefels.webp') type('image/webp'),url('images/villa-castelldefels.jpg') type('image/jpeg'))}
.seo-content{max-width:1100px;margin:0 auto 70px;padding:0 22px;color:var(--ink)}.seo-content h2{font-size:1.65rem;color:var(--navy);margin:0 0 18px}.faq{display:grid;gap:9px}.faq details{background:#fff;border:1px solid var(--line);border-radius:5px;padding:15px 18px}.faq summary{cursor:pointer;font-weight:800;color:var(--navy)}.faq p{margin:11px 0 0;color:var(--muted);line-height:1.6}.town-links{margin-top:30px}.town-links h3{color:var(--navy);font-size:1rem}.town-links a{display:inline-block;margin:0 8px 8px 0;padding:7px 10px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--blue);font-size:.8rem;text-decoration:none}.town-links a:hover{border-color:var(--blue)}
@media(max-width:520px){.hero{background-image:linear-gradient(145deg,#043c5ae6,#07577bc9),image-set(url('images/villa-castelldefels.avif') type('image/avif'),url('images/villa-castelldefels.webp') type('image/webp'),url('images/villa-castelldefels.jpg') type('image/jpeg'))}.seo-content{margin-bottom:45px}.seo-content h2{font-size:1.42rem}}

/* Ajuste v21: los cinco controles del buscador deben compartir una sola fila. */
@media(min-width:821px){.finder{grid-template-columns:1.15fr 1.15fr 1fr 1fr auto;max-width:1160px}.hero h1{max-width:820px}.hero-inner>.hero p:not(.eyebrow){max-width:760px;line-height:1.5}.about h2{max-width:780px;margin-left:auto;margin-right:auto}.about p:last-child{max-width:790px}}

/* Ficha de inmueble: composición específica para móvil. */
.detail-special-badge{position:absolute;z-index:2;top:48px;left:14px;background:#b42318;color:#fff;padding:6px 9px;border-radius:3px;font-size:.6rem;font-weight:800;letter-spacing:.05em}.detail-visual>a{display:block;width:100%;height:100%}.detail-visual img{object-position:center}.detail aside{border-radius:0 0 8px 8px}.detail aside .gold,.detail aside .outline{min-height:46px;display:flex;align-items:center;justify-content:center}.detail .special-notice{margin-top:0}.detail .description{overflow-wrap:anywhere}
@media(max-width:820px){.detail{max-width:680px;padding:16px 0 52px}.detail .crumb{padding:0 16px;margin-bottom:14px}.detail-visual{height:auto;aspect-ratio:4 / 3;border-radius:0}.detail-visual img{object-fit:cover}.gallery-wrap{padding:16px}.detail-layout{display:flex;flex-direction:column;padding:28px 18px 20px;gap:22px}.detail-layout article{min-width:0}.detail h1{font-size:clamp(1.7rem,8vw,2.3rem);line-height:1.13}.detail h2{font-size:1.7rem;margin-bottom:20px}.detail h3{font-size:1.25rem;margin-top:30px}.lead{margin-bottom:16px}.specs{margin-bottom:25px}.specs div{min-width:0;padding:13px 10px}.specs b{font-size:.96rem;overflow-wrap:anywhere}.detail aside{order:-1;padding:17px 16px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.detail aside p{grid-column:1 / -1;font-size:1.1rem;margin:0 0 3px}.detail aside a{margin:0!important;font-size:.78rem;padding:11px 8px}.detail aside .gold{grid-column:1 / -1}.location iframe{height:260px}.gallery-help{font-size:.78rem;margin:2px 0 10px}.photo-gallery{margin-right:-16px;padding-right:16px}.photo-gallery a{min-width:72vw;height:calc(72vw * .66);max-height:255px}.detail-special-badge{top:46px;left:12px}.detail-visual em{right:12px;bottom:12px;padding:7px 9px;background:#061823a8;border-radius:4px;font-size:.72rem}.detail-visual span{top:12px;left:12px}.special-notice{padding:13px 14px;margin:0 0 20px}.special-notice p{font-size:.85rem}.attributes{margin-bottom:22px}.detail li,.detail article>p{font-size:.94rem;line-height:1.6}}
@media(max-width:380px){.detail aside{grid-template-columns:1fr}.detail aside .gold{grid-column:auto}.photo-gallery a{min-width:78vw;height:calc(78vw * .66)}}
/* The desktop layout must never create a secondary horizontal scrollbar. */
html,body{max-width:100%;overflow-x:clip}.hero,.catalog,.valuation,.local-guide,footer,.detail{max-width:100%}.detail-layout,.finder,.section-head,.gallery-head{min-width:0}
/* =========================================================
   FINCAS POAL
   AJUSTE DE CABECERA PARA ESCRITORIO / PORTÁTIL
   ========================================================= */


/* ESCRITORIO GRANDE */
@media (min-width: 1501px){

    header{
        display:flex;
        align-items:center;
        width:100%;
        box-sizing:border-box;
        gap:16px;
        padding-left:28px;
        padding-right:28px;
    }

    header .brand{
        flex:0 0 auto;
        min-width:195px;
    }

    header .brand img{
        width:auto;
        max-height:58px;
        object-fit:contain;
    }

    header .credential{
        flex:0 0 auto;
        min-width:190px;
        font-size:12px;
        line-height:1.3;
        white-space:nowrap;
    }

    header nav{
        flex:1 1 auto;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:27px;
        min-width:0;
    }

    header nav a{
        flex:0 0 auto;
        white-space:nowrap;
        font-size:16px;
    }

    header .language-links,
    header .languages{
        flex:0 0 auto;
        white-space:nowrap;
    }

    header .phone-header{
        flex:0 0 auto;
        min-width:130px;
        white-space:nowrap;
    }

    header .phone-header span{
        white-space:nowrap;
    }

    header .top-cta{
        flex:0 0 auto;
        max-width:190px;
        white-space:nowrap;
        box-sizing:border-box;
        padding-left:20px;
        padding-right:20px;
    }
}


/* PORTÁTILES Y ESCRITORIO MEDIO */
@media (min-width: 1321px) and (max-width: 1500px){

    header{
        display:flex;
        align-items:center;
        width:100%;
        box-sizing:border-box;
        gap:11px;
        padding-left:18px;
        padding-right:18px;
    }

    header .brand{
        flex:0 0 auto;
        min-width:170px;
    }

    header .brand img{
        width:auto;
        max-height:52px;
        object-fit:contain;
    }

    header .credential{
        flex:0 0 auto;
        min-width:150px;
        font-size:10px;
        line-height:1.25;
        white-space:nowrap;
    }

    header nav{
        flex:1 1 auto;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:17px;
        min-width:0;
    }

    header nav a{
        white-space:nowrap;
        font-size:14px;
    }

    header .language-links,
    header .languages{
        flex:0 0 auto;
        white-space:nowrap;
    }

    header .phone-header{
        flex:0 0 auto;
        min-width:105px;
        white-space:nowrap;
        font-size:13px;
    }

    header .top-cta{
        flex:0 0 auto;
        white-space:nowrap;
        max-width:155px;
        padding-left:13px;
        padding-right:13px;
        font-size:14px;
    }
}


/* PORTÁTILES MÁS ESTRECHOS */
@media (min-width: 1100px) and (max-width: 1320px){

    header{
        display:flex;
        align-items:center;
        width:100%;
        box-sizing:border-box;
        gap:10px;
        padding-left:16px;
        padding-right:16px;
    }

    /*
     * La acreditación ya aparece en otras zonas de la web.
     * En este ancho se oculta para evitar que la cabecera desborde.
     */
    header .credential{
        display:none;
    }

    header .brand{
        flex:0 0 auto;
        min-width:165px;
    }

    header .brand img{
        width:auto;
        max-height:50px;
        object-fit:contain;
    }

    header nav{
        flex:1 1 auto;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:15px;
        min-width:0;
    }

    header nav a{
        white-space:nowrap;
        font-size:14px;
    }

    header .language-links,
    header .languages{
        flex:0 0 auto;
        white-space:nowrap;
    }

    header .phone-header{
        flex:0 0 auto;
        min-width:105px;
        white-space:nowrap;
        font-size:13px;
    }

    header .top-cta{
        flex:0 0 auto;
        max-width:150px;
        white-space:nowrap;
        padding-left:12px;
        padding-right:12px;
        font-size:13px;
    }
}


/* PROTECCIÓN GENERAL CONTRA DESBORDAMIENTO */
@media (min-width: 1100px){

    header{
        overflow:visible;
    }

    header > *{
        box-sizing:border-box;
    }

    header nav{
        overflow:visible;
    }

    header nav a,
    header .phone-header,
    header .top-cta{
        text-overflow:ellipsis;
    }

    header .top-cta{
        overflow:hidden;
    }
}
/* =========================================================
   CTA CABECERA - CORRECCIÓN FINAL
   ========================================================= */

@media (min-width:1100px){

    header .top-cta{
        flex:0 0 auto !important;
        width:auto !important;
        min-width:0 !important;
        max-width:none !important;

        padding:16px 18px !important;

        white-space:nowrap !important;
        overflow:visible !important;
        text-overflow:clip !important;

        font-size:15px !important;
        line-height:1.2 !important;

        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        box-sizing:border-box !important;
    }
}


/* Portátiles */
@media (min-width:1100px) and (max-width:1450px){

    header .top-cta{
        padding:15px 14px !important;
        font-size:14px !important;
    }

    header nav{
        gap:16px !important;
    }

    header nav a{
        font-size:14px !important;
    }

    header .phone-header{
        min-width:auto !important;
        padding-left:10px !important;
        padding-right:10px !important;
    }
}

/* Menú móvil: la navegación principal solo se despliega al pulsar la hamburguesa. */
@media (max-width:820px){
  header .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 42px;
    width:42px;
    height:42px;
    margin-left:auto;
    padding:0;
    border:1px solid var(--line);
    border-radius:5px;
    background:#fff;
    color:var(--navy);
    font-size:1.5rem;
    line-height:1;
    cursor:pointer;
  }
  header .nav-toggle:focus-visible{outline:3px solid #f2c400;outline-offset:2px}
  header > nav:not(.language-switch){
    position:absolute;
    top:100%;
    right:0;
    left:0;
    display:none;
    flex-direction:column;
    gap:0;
    margin:0;
    padding:8px 18px 14px;
    background:#fff;
    border-top:1px solid var(--line);
    box-shadow:0 12px 22px #062f4f24;
  }
  header.menu-open > nav:not(.language-switch){display:flex}
  header > nav:not(.language-switch) a{
    display:block;
    padding:13px 4px;
    border-bottom:1px solid var(--line);
    font-size:.95rem;
  }
  header > nav:not(.language-switch) a:last-child{border-bottom:0}
}


/* BRAND BLUE HEADER FOOTER - INICIO */
header{background:#0b425f!important;color:#fff!important;border-bottom:1px solid rgba(255,255,255,.12)!important;box-shadow:0 4px 18px rgba(5,38,55,.18)!important}
header .brand{background:#fff!important;padding:7px 11px!important;border-radius:10px!important;box-shadow:0 2px 10px rgba(0,0,0,.12)!important}
header .brand span,header .brand small{color:#0b425f!important}
header .credential,header .credential b{color:#fff!important}
header nav a,header .language-switch a,header .phone-header{color:#fff!important}
header nav a:hover,header nav a:focus,header .language-switch a:hover,header .language-switch a:focus{color:#fff!important;background:rgba(255,255,255,.13)!important}
header .language-switch a.active{background:#fff!important;color:#0b425f!important}
header .top-cta{background:#fff!important;color:#0b425f!important;border-color:#fff!important;box-shadow:0 3px 12px rgba(0,0,0,.14)!important}
header .top-cta:hover,header .top-cta:focus{background:#edf5f7!important;color:#08364e!important}
header .nav-toggle{color:#fff!important;border-color:rgba(255,255,255,.55)!important;background:rgba(255,255,255,.08)!important}
footer{background:#0b425f!important;color:#fff!important;border-top:1px solid #0b425f!important}
footer .brand{display:inline-flex!important;background:#fff!important;padding:8px 12px!important;border-radius:10px!important;box-shadow:0 3px 14px rgba(0,0,0,.16)!important}
footer .brand span,footer .brand small{color:#0b425f!important}
footer a,footer .legal-links a{color:#fff!important}
footer a:hover,footer a:focus{color:#d6edf3!important}
@media(max-width:900px){header #main-navigation{background:#0b425f!important;border-color:rgba(255,255,255,.16)!important}header #main-navigation a{border-color:rgba(255,255,255,.12)!important}}
/* BRAND BLUE HEADER FOOTER - FIN */


/* STICKY HEADER - INICIO */
html{scroll-padding-top:110px}
header{position:sticky!important;top:0!important;z-index:1000!important}
@media(max-width:900px){html{scroll-padding-top:86px}}
/* STICKY HEADER - FIN */


/* Home property map */
.home-map-section{width:min(1180px,calc(100% - 32px));margin:70px auto 30px;padding:0}
.home-map-heading{max-width:760px;margin-bottom:22px}
.home-map-heading .eyebrow{display:block;color:#b89a00;font-size:.78rem;font-weight:800;letter-spacing:.13em;margin-bottom:8px}
.home-map-heading h2{color:#0b425f;font-size:clamp(1.8rem,3vw,2.7rem);margin:0 0 10px}
.home-map-heading p,.home-map-privacy{color:#526b79;line-height:1.6}
.home-map-shell{position:relative;border:1px solid #d9e3e8;border-radius:18px;overflow:hidden;box-shadow:0 14px 38px rgba(11,66,95,.13);background:#dce8ed}
.home-map-canvas{position:relative;width:100%;height:500px;overflow:hidden;background:#dce8ed}
.home-map-tiles,.home-map-markers{position:absolute;inset:0}
.home-map-tile{position:absolute;width:256px;height:256px;max-width:none;user-select:none}
.home-map-marker{position:absolute;width:30px;height:30px;transform:translate(-50%,-100%);border:3px solid #fff;border-radius:50% 50% 50% 0;background:#f1ca00;box-shadow:0 4px 12px rgba(11,66,95,.4);rotate:-45deg;cursor:pointer}
.home-map-marker::after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#0b425f;left:8px;top:8px}
.home-map-marker:hover,.home-map-marker:focus{background:#fff100;z-index:5;outline:3px solid rgba(11,66,95,.25)}
.home-map-popup{position:absolute;left:18px;bottom:18px;z-index:8;width:min(330px,calc(100% - 36px));padding:18px 20px;background:#fff;border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.22)}
.home-map-popup strong{display:block;color:#0b425f;font-size:1.05rem;margin-bottom:6px}
.home-map-popup span{display:block;color:#526b79;font-size:.9rem;margin-bottom:4px}
.home-map-popup a{display:inline-block;margin-top:10px;padding:9px 14px;border-radius:8px;background:#0b425f;color:#fff!important;text-decoration:none;font-weight:800}
.home-map-controls{position:absolute;right:14px;top:14px;z-index:9;display:grid;gap:6px}
.home-map-controls button{width:40px;height:40px;border:1px solid #cbd8de;background:#fff;color:#0b425f;font-size:1.35rem;font-weight:800;border-radius:8px;box-shadow:0 3px 10px rgba(0,0,0,.14);cursor:pointer}
.home-map-attribution{position:absolute;right:5px;bottom:4px;z-index:6;padding:2px 5px;background:rgba(255,255,255,.86);font-size:10px;color:#345}
.home-map-privacy{font-size:.88rem;margin:10px 3px 0}
@media(max-width:700px){.home-map-section{width:min(100% - 20px,1180px);margin-top:48px}.home-map-canvas{height:390px}.home-map-popup{left:10px;bottom:24px;width:calc(100% - 20px)}}

/* Property marker photos and approximate zone */
.home-map-popup-image{display:block;width:calc(100% + 40px);height:170px;margin:-18px -20px 15px;object-fit:cover;border-radius:14px 14px 0 0;background:#e7eef2}
.approx-zone-map{position:relative;width:100%;overflow:hidden;border-radius:12px}
.approx-zone-map iframe{display:block;width:100%;border:0}
.approx-zone-circle{position:absolute;left:50%;top:50%;width:170px;height:170px;transform:translate(-50%,-50%);border-radius:50%;background:rgba(241,202,0,.22);border:3px solid rgba(11,66,95,.72);box-shadow:0 0 0 9px rgba(241,202,0,.10);pointer-events:none}
@media(max-width:700px){.home-map-popup-image{height:145px}.approx-zone-circle{width:135px;height:135px}}

/* Accessible map popup close button */
.home-map-popup-close{position:absolute;right:8px;top:8px;z-index:4;width:42px;height:42px;border:2px solid rgba(11,66,95,.18);border-radius:50%;background:rgba(255,255,255,.94);color:#0b425f;font-size:30px;line-height:34px;font-weight:500;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.home-map-popup-close:hover,.home-map-popup-close:focus{background:#0b425f;color:#fff;outline:3px solid rgba(241,202,0,.65)}
@media(max-width:700px){.home-map-popup-close{width:46px;height:46px;right:7px;top:7px;font-size:32px}}
