/* ==========================================================================
   Frontend Styles for Obra Nueva (Inspired by target URL)
   ========================================================================== */

/* --- General & Container --- */
._ficha-obra-nueva {
    background-color: #f7f7f7;
    font-family: "Open Sans", Arial, sans-serif;
    color: #444;
}

.ficha-obra-nueva {
    padding-top: 0;
    padding-bottom: 50px;
}

.ficha-obra-nueva .container {
    max-width: 1170px;
    margin: 0 auto;
}

/* --- Breadcrumbs --- */
.back-miga {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 0;
    color: #fff;
    font-size: 13px;
}

.back-miga .bread {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.back-miga .bread li a {
    color: #fff;
    text-decoration: none;
}

.back-miga .bread li a:hover {
    color: #ccc;
}

/* --- Intro Section --- */
.ficha-obra-nueva .intro {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #eee;
    margin-bottom: -1px;
    position: relative;
}

.ficha-obra-nueva .intro .nombre {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.ficha-obra-nueva .intro .situacion {
    color: #666;
    font-size: 15px;
}

.ficha-obra-nueva .btn-volver {
    position: absolute;
    right: 30px;
    top: 30px;
    background: #f1f1f1;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.ficha-obra-nueva .btn-volver:hover {
    background: #e2e2e2;
}

/* --- Contact Bar --- */
.ficha-obra-nueva .contactar {
    background: #10263f;
    /* Dark blue from target */
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 8px 8px;
    margin-bottom: 30px;
}

.ficha-obra-nueva .contactar span {
    font-size: 16px;
    font-weight: 600;
}

.ficha-obra-nueva .contactar a {
    background: #cc9933;
    /* Gold/Yellow accent */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.ficha-obra-nueva .contactar a:hover {
    background: #449f2061;
}

/* --- Slider / Gallery --- */
.slider-inmueble {
    position: relative;
    margin-bottom: 30px;
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.slider-inmueble .slides {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slider-inmueble .slides img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    background-color: #f7f7f7;
    border-radius: 4px;
}

.slider-inmueble .precio {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(16, 38, 63, 0.9);
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
}

.slider-inmueble .precio small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* --- Content Boxes --- */
.ficha-obra-nueva .box {
    background: #fff;
    border: 0px solid #eee;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.ficha-obra-nueva .box .titulo {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #10263f;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 0px solid #f1f1f1;
}

/* --- Description --- */
.ficha-obra-nueva .descripcion {
    line-height: 1.8;
    color: #555;
}

.ficha-obra-nueva .video-promo-wrapper {
    margin-top: 25px;
    text-align: center;
}

.ficha-obra-nueva .btn-video-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #40ac18;
    color: #fff;
    padding: 12px 28px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ficha-obra-nueva .btn-video-promo:hover {
    background: #368f14;
    color: #fff;
}

.ficha-obra-nueva .btn-video-promo i {
    font-size: 18px;
}

/* --- Features (Características) --- */
.ficha-obra-nueva .datos ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.ficha-obra-nueva .datos ul li {
    background: #c9e9bc30;
    padding: 12px 15px;
    border: 0px solid #eee;
    border-radius: 4px;
    font-size: 14px;
}

.item-ficha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: #c9e9bc30;
    padding: 12px;
    border: 0px solid #eee;
    border-radius: 4px;
}

.ficha-obra-nueva .datos ul li i {
    color: #cc9933;
    margin-right: 10px;
}

/* --- Pricing Table (Tipos de Vivienda) --- */
.tipos-vivienda .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.tipos-vivienda .table th {
    background: #449f2061 !important;
    backdrop-filter: blur(44px);
    color: #000 !important;
    padding: 15px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.tipos-vivienda .table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.tipos-vivienda .table tr:nth-child(even) td {
    background: #fcfcfc;
}

.tipos-vivienda .table tr:hover td {
    background: #f6f9fc;
}

.tipos-vivienda .precio {
    font-weight: bold;
    color: #4baf25;
    font-size: 16px;
}

.tipos-vivienda a {
    color: #10263f;
    text-decoration: underline;
    font-weight: 600;
}

/* --- Lower Galleries (Instalaciones) --- */
.galeria-instalaciones {
    padding: 50px 0;
    background-size: cover;
    position: relative;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.galeria-instalaciones .titulo-seccion {
    margin-bottom: 40px;
    text-align: center;
}

.galeria-instalaciones .titulo {
    font-size: 28px;
    font-weight: 700;
    color: #10263f;
    display: inline-block;
    background: #fff;
    padding: 10px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.instalacion {
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.instalacion:hover {
    transform: translateY(-5px);
}

.instalacion .img {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.instalacion img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.instalacion span {
    display: block;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #444;
}

/* --- Map & Form --- */
.localizacion,
.form-contacto {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 0px solid #eee;
    margin-top: 30px;
}

.localizacion .titulo-seccion,
.form-contacto .titulo-seccion {
    margin-bottom: 25px;
}

.localizacion .titulo,
.form-contacto .titulo {
    font-size: 22px;
    font-weight: 700;
    color: #10263f;
}

/* Responsive Table Scroll */
@media (max-width: 991px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Estilos de Listado (.promo) para Archive o Plantilla
   ========================================================================== */
.obra-nueva-home {
    padding-top: 50px;
    padding-bottom: 50px;
}

.obra-nueva-home .box {
    background: transparent;
    border: none;
    padding: 0;
}

.obra-nueva-home .box .promo {
    display: inline-block;
    width: 100%;
    float: left;
    margin-bottom: 60px;
}

.obra-nueva-home .box .promo .img {
    width: 497px;
    /* Desktop */
    height: 400px;
    overflow: hidden;
    position: relative;
    float: left;
    border-radius: var(--wp-estate-border-radius-corner-option, var(--wp_estate_border_radius_corner)) 10px;
}


.obra-nueva-home .box .promo .img img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    -webkit-transform: translate(-50%, -50%) scale(1);
    width: auto;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* Efecto Hover: Zoom y Oscurecimiento */
.obra-nueva-home .box .promo:hover .img img {
    transform: translate(-50%, -50%) scale(1.06);
    -webkit-transform: translate(-50%, -50%) scale(1.06);
}


.obra-nueva-home .box .promo .img .precio {
    position: absolute;
    background: #fff;
    border: 2px solid #ccc;
    bottom: 45px;
    left: 45px;
    padding: 10px 32px;
    z-index: 10;
}

.obra-nueva-home .box .promo .img .precio span {
    font-size: 22px;
    line-height: 22px;
    margin-bottom: 0px;
    color: #000;
    font-weight: bold;
}

.obra-nueva-home .box .promo .img .precio span small {
    font-size: 16px;
    font-weight: normal;
}

.obra-nueva-home .box .promo:nth-of-type(2n) .img {
    float: right;
}

.obra-nueva-home .box .promo:nth-of-type(2n) .texto-promo {
    float: left;
}

.obra-nueva-home .box .promo .texto-promo {
    display: inline-block;
    width: calc(100% - 497px);
    min-height: 400px;
    float: left;
    background: #fff;
    padding: 30px;
    border: 0px solid #dbdbdb;
    box-sizing: border-box;
}

.obra-nueva-home .box .promo .texto-promo .nombre {
    font-size: 34px;
    line-height: 38px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000;
    font-weight: bold;
}

.obra-nueva-home .box .promo .texto-promo .nombre a {
    color: #000;
    text-decoration: none;
    transition: 0.3s ease all;
}

.obra-nueva-home .box .promo .texto-promo .nombre a:hover {
    color: #40ac18;
}

.obra-nueva-home .box .promo .texto-promo p,
.obra-nueva-home .box .promo .texto-promo .descripcion-breve {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
    color: #333;
}

.obra-nueva-home .box .promo .texto-promo .situacion {
    font-size: 13px;
    line-height: 15px;
    margin-bottom: 15px;
    color: #10263f;
    /* Color del tema */
    display: block;
    text-transform: uppercase;
    font-weight: bold;
}

.obra-nueva-home .box .promo .texto-promo .datos {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.obra-nueva-home .box .promo .texto-promo .datos .item {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 0px;
}

.obra-nueva-home .box .promo .texto-promo .datos .item .icono {
    background: #fff;
    width: 50px;
    height: 50px;
    margin: auto;
    position: relative;
    z-index: 9;
    padding-top: 12px;
}

.obra-nueva-home .box .promo .texto-promo .datos .item .icono img {
    max-width: 25px;
}

.obra-nueva-home .box .promo .texto-promo .datos .item .texto {
    padding: 26px 5px 20px;
    border: 0px solid #d1d1d1;
    margin-top: -24px;
}

.obra-nueva-home .box .promo .texto-promo .datos .item .texto .fijo {
    font-size: 11px;
    line-height: 15px;
    margin-bottom: 2px;
    color: #000;
    display: block;
    text-transform: uppercase;
    font-weight: bold;
}

.obra-nueva-home .box .promo .texto-promo .datos .item .texto .variable {
    font-size: 12px;
    line-height: 15px;
    color: #333;
    display: block;
}

.obra-nueva-home .box .promo .texto-promo .verFicha {
    background: #40ac18;
    backdrop-filter: blur(44px);
    display: inline-block;
    padding: 10px;
    border-radius: 20px;
    font-weight: 500;
    width: 100%;
    text-transform: uppercase;
    color: #fff;
    font-size: 15px;
    transition: 0.3s ease all;
    text-align: center;
    text-decoration: none;
}

.obra-nueva-home .box .promo .texto-promo .verFicha:hover {
    background: #449f2061;
}

/* Responsiveness for promos */
@media (max-width: 1200px) {
    .obra-nueva-home .box .promo .img {
        width: 360px;
    }

    .obra-nueva-home .box .promo .texto-promo {
        width: calc(100% - 360px);
        padding: 25px;
    }

    .obra-nueva-home .box .promo .texto-promo .nombre {
        font-size: 28px;
        line-height: 32px;
    }
}

@media (max-width: 991px) {
    .obra-nueva-home .box .promo .img {
        width: 100%;
        height: 330px;
        float: none;
    }

    .obra-nueva-home .box .promo:nth-of-type(2n) .img,
    .obra-nueva-home .box .promo:nth-of-type(2n) .texto-promo {
        float: none;
    }

    .obra-nueva-home .box .promo .texto-promo {
        width: 100%;
        height: auto;
        float: none;
    }
}

/* --- Elementor-like Header Section --- */
.elementor-element-3947b622 {
    /* background-image: url('https://desarrollo33.com/websclientes/futurcasa/wp-content/uploads/2026/02/elche.jpg'); */
    background-position: 0px -296px;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 250px 0px;
    margin-top: -95px;
    position: relative;
    overflow: hidden;
}

.elementor-element-3947b622 .elementor-background-overlay {
    background-image: linear-gradient(200deg, #282C1C 0%, #01070E 100%);
    opacity: 0.67;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.elementor-element-3947b622 .elementor-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.elementor-element-3947b622 .elementor-heading-title {
    color: #FFFFFF;
    text-align: center;
    width: 100%;
}

.elementor-element-3947b622 h2.elementor-heading-title {
    font-family: "Merriweather", Sans-serif;
    font-size: 52px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.elementor-element-3947b622 .subtitulo-header {
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    margin-top: 15px;
}

/* Green Divider Pattern */
.elementor-element-3947b622 .elementor-divider-separator {
    display: block;
    width: 100px;
    height: 4px;
    background-color: #40ac18;
    margin: 0 auto 20px;
}

@media (max-width: 767px) {
    .elementor-element-3947b622 {
        padding: 150px 0px;
        background-position: center;
    }

    .elementor-element-3947b622 h2.elementor-heading-title {
        font-size: 32px;
    }

    .elementor-element-3947b622 .subtitulo-header {
        font-size: 18px;
    }
}

/* ==========================================================================
   Masonry Gallery Styles (Single Property)
   ========================================================================== */
.gallery_wrapper {
    float: none !important;
    margin-top: 0 !important;
}

.property_header_gallery_wrapper {
    margin-bottom: 30px;
}

.property_header_gallery_wrapper .image_gallery {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
}

@media (min-width: 992px) {
    .property_header_gallery_wrapper .col-md-6.image_gallery {
        height: 600px;
    }

    .property_header_gallery_wrapper .gallery-left-column {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .property_header_gallery_wrapper .gallery-left-column .col-md-6.image_gallery {
        height: 300px !important;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.property_header_gallery_wrapper .img_listings_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.property_header_gallery_wrapper .image_gallery:hover .img_listings_overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.property_header_gallery_wrapper .img_listings_overlay_last {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.property_header_gallery_wrapper .img_listings_mes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 10;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.property_header_gallery_wrapper .special_border {
    border: 3px solid #fff;
}

.property_header_gallery_wrapper .special_border_top {
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    border-left: 0;
}

/* Small adjustments to ensure borders don't double up or leave gaps */
@media (max-width: 991px) {
    .property_header_gallery_wrapper .image_gallery {
        height: 300px;
        border: 2px solid #fff;
    }
}

/* Iconos SVG Sincronizados */
.on-svg-icon svg,
.on-svg-icon-listing svg {
    width: 100%;
    height: 100%;
    display: block;
}

.on-svg-icon {
    width: 30px;
    height: 30px;
}

.on-svg-icon-listing {
    width: 25px;
    height: 25px;
    display: inline-block;
}

.on-svg-icon svg path,
.on-svg-icon-listing svg path {
    fill: #10263f !important;
    /* Color corporativo azul oscuro para que resalte más que el gris default */
}

.on-fa-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* ==========================================================================
   Corrección de Solapamiento de Navegación de Post y Destaque de Flechas en Lightbox
   ========================================================================== */

/* Ocultar botones de navegación de posts cuando el lightbox (fancybox o personalizado) está abierto */
.fancybox-lock .navigational_links,
.fancybox-lock .nav-prev-wrapper,
.fancybox-lock .nav-next-wrapper,
body:has(.fancybox-overlay) .navigational_links,
body:has(.fancybox-overlay) .nav-prev-wrapper,
body:has(.fancybox-overlay) .nav-next-wrapper,
body.lightbox_property_open .navigational_links,
body.lightbox_property_open .nav-prev-wrapper,
body.lightbox_property_open .nav-next-wrapper {
    display: none !important;
}

/* Hacer que las flechas de la galería de fotos (Fancybox) sean siempre visibles y contrasten sobre fondos claros */
.fancybox-nav span {
    visibility: visible !important;
    background-color: rgba(0, 0, 0, 0.5) !important; /* Círculo oscuro semi-transparente */
    border-radius: 50% !important; /* Forma circular */
    width: 36px !important;
    height: 36px !important;
    margin-top: -18px !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
    opacity: 0.85 !important;
}

.fancybox-nav:hover span {
    background-color: rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
}

/* Estructura para el contenedor de navegación del lightbox de Owl Carousel */
.lightbox_property_wrapper .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10001;
}

/* Estilo para los botones anterior y siguiente del carrusel de la galería */
.lightbox_property_wrapper .owl-prev,
.lightbox_property_wrapper .owl-next {
    position: absolute !important;
    pointer-events: auto !important;
    background-color: rgba(0, 0, 0, 0.5) !important; /* Fondo circular oscuro semi-transparente */
    color: #fff !important;
    border-radius: 50% !important; /* Forma circular */
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, opacity 0.2s ease !important;
    opacity: 0.85 !important;
    cursor: pointer !important;
}

/* Posicionamiento en los laterales de la pantalla */
.lightbox_property_wrapper .owl-prev {
    left: 20px !important;
}

.lightbox_property_wrapper .owl-next {
    right: 20px !important;
}

/* Variación al pasar el ratón en escritorio */
.lightbox_property_wrapper .owl-prev:hover,
.lightbox_property_wrapper .owl-next:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
    opacity: 1 !important;
}

/* Iconos de las flechas */
.lightbox_property_wrapper .owl-prev i,
.lightbox_property_wrapper .owl-next i {
    font-size: 24px !important;
    color: #fff !important;
    line-height: 1 !important;
}