/* ==========================================
   SEGULEX PROPERTIES
========================================== */

:root{
    --primary:#f59e0b;
    --dark:#111827;
    --light:#f8f8f8;
    --border:#e5e7eb;
    --radius:16px;
}

.single-propiedad .ct-container{
    max-width:1400px;
}

/* ==========================================
   HERO
========================================== */

.seg-property__hero{
    position:relative;
    height:85vh;
    min-height:650px;
    overflow:hidden;
    border-radius:20px;
    margin-bottom:60px;
}

.seg-property__hero-image,
.seg-property__hero-image img{
    width:100%;
    height:100%;
}

.seg-property__hero-image img{
    object-fit:cover;
    display:block;
}

.seg-property__hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.80) 0%,
        rgba(0,0,0,.40) 45%,
        rgba(0,0,0,.10) 100%
    );
}

.seg-property__hero-content{
    position:absolute;
    left:60px;
    right:60px;
    bottom:60px;
    z-index:5;
    color:#fff;
}

.seg-property__badges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.seg-property__badge{
    padding:10px 18px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:600;
    color:#fff;
}

.seg-property__badge--featured{
    background:#f59e0b;
}

.seg-property__badge--dark{
    background:#1f2937;
}

.seg-property__badge--blue{
    background:#2563eb;
}

.seg-property__title{
    margin:0;
    font-size:3.5rem;
    line-height:1.1;
    color:#fff;
}

.seg-property__location{
    margin-top:15px;
    font-size:1.1rem;
    opacity:.9;
}

.seg-property__price{
    margin-top:25px;
    font-size:3rem;
    font-weight:700;
    color:#fff;
}

/* ==========================================
   CONTENIDO
========================================== */

.property-container{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    margin:60px auto;
}

.property-gallery img{
    width:100%;
    border-radius:12px;
    display:block;
}

.property-section{
    margin-top:60px;
}

.property-section h2{
    font-size:28px;
    margin-bottom:25px;
    border-left:5px solid var(--primary);
    padding-left:15px;
}

.property-description{
    line-height:1.9;
    font-size:16px;
}

.property-features{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.property-features div{
    background:#fafafa;
    border:1px solid var(--border);
    border-radius:12px;
    padding:18px;
}

/* ==========================================
   SIDEBAR
========================================== */

.property-sidebar{
    position:sticky;
    top:40px;
    height:max-content;
}

.property-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:30px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.property-price{
    font-size:36px;
    font-weight:700;
    color:var(--primary);
    margin-bottom:25px;
}

.property-data{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.property-item{
    background:#fafafa;
    border:1px solid var(--border);
    border-radius:12px;
    padding:16px;
    text-align:center;
}

.property-item strong{
    display:block;
    font-size:22px;
    color:#111;
}

.property-item span{
    display:block;
    margin-top:5px;
    color:#777;
    font-size:13px;
}

.property-agent{
    margin-top:35px;
    border-top:1px solid var(--border);
    padding-top:30px;
}

.property-agent h3{
    margin-bottom:12px;
}

.property-whatsapp{
    display:block;
    width:100%;
    text-align:center;
    background:#25D366;
    color:#fff;
    padding:15px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    margin-top:20px;
    transition:.3s;
}

.property-whatsapp:hover{
    opacity:.9;
}

/* ==========================================
   VIDEO
========================================== */

.property-video{
    margin-top:50px;
}

.property-video iframe,
.property-map iframe{
    width:100%;
    aspect-ratio:16/9;
    border:0;
    border-radius:16px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:991px){

    .seg-property__hero{
        height:70vh;
        min-height:500px;
    }

    .seg-property__hero-content{
        left:30px;
        right:30px;
        bottom:30px;
    }

    .seg-property__title{
        font-size:2.4rem;
    }

    .seg-property__price{
        font-size:2.3rem;
    }

    .property-container{
        grid-template-columns:1fr;
    }

    .property-sidebar{
        position:relative;
        top:auto;
    }

    .property-features{
        grid-template-columns:1fr;
    }

}

@media(max-width:600px){

    .seg-property__hero{
        height:60vh;
        min-height:420px;
        border-radius:0;
    }

    .seg-property__hero-content{
        left:20px;
        right:20px;
        bottom:20px;
    }

    .seg-property__title{
        font-size:2rem;
    }

    .seg-property__price{
        font-size:2rem;
    }

    .property-data{
        grid-template-columns:1fr;
    }

    .property-price{
        font-size:30px;
    }

}