/* =========================================================
   FICHA DE PROPIEDAD
   Gustavo Behrens Propiedades
   ========================================================= */

.detalle-propiedad {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 25px;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 45px;
    align-items: start;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.detalle-imagen {
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 14px;

    background: #111827;

    border: 1px solid var(--gold-border);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.detalle-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

.detalle-imagen:hover img {
    transform: scale(1.02);
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.detalle-info {
    padding: 15px 5px;
}


.detalle-tipo {
    display: inline-block;

    background: var(--gold-gradient);
    color: #000;

    padding: 7px 15px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.detalle-info h1 {
    margin: 18px 0 15px;

    font-size: 38px;
    line-height: 1.15;

    color: #ffffff;
}


.detalle-precio {
    font-size: 32px;
    font-weight: bold;

    color: var(--text-gold);

    margin-bottom: 20px;
}


.detalle-ubicacion {
    font-size: 17px;
    color: #b8bec8;

    margin-bottom: 30px;
}

.detalle-ubicacion i {
    margin-right: 8px;
    color: var(--text-gold);
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.detalle-descripcion {
    border-top: 1px solid rgba(212, 175, 55, 0.3);

    padding-top: 25px;
    margin-top: 10px;
}

.detalle-descripcion h2 {
    font-size: 21px;
    margin-bottom: 12px;

    color: var(--text-gold);
}

.detalle-descripcion p {
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.detalle-contacto {
    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.detalle-contacto h2 {
    font-size: 20px;
    margin-bottom: 18px;

    color: #ffffff;
}


.detalle-contacto .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #25D366;
    color: white;

    padding: 14px 22px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    transition: 0.2s;
}

.detalle-contacto .btn-whatsapp:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* =========================================================
   PROPIEDAD NO ENCONTRADA
   ========================================================= */

.propiedad-no-encontrada {
    max-width: 700px;
    margin: 100px auto;
    padding: 40px;

    text-align: center;
}

.propiedad-no-encontrada h1 {
    color: #ffffff;
    margin-bottom: 15px;
}

.propiedad-no-encontrada p {
    color: #b8bec8;
    margin-bottom: 25px;
}

.propiedad-no-encontrada a {
    color: var(--text-gold);
    font-weight: bold;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .detalle-propiedad {
        grid-template-columns: 1fr;
        gap: 30px;

        margin-top: 30px;
    }

    .detalle-imagen {
        height: 400px;
    }

    .detalle-info h1 {
        font-size: 30px;
    }

    .detalle-precio {
        font-size: 27px;
    }
}


@media (max-width: 500px) {

    .detalle-propiedad {
        padding: 0 15px;
    }

    .detalle-imagen {
        height: 280px;
        border-radius: 10px;
    }

    .detalle-info {
        padding: 5px 0;
    }

    .detalle-info h1 {
        font-size: 27px;
    }

    .detalle-precio {
        font-size: 25px;
    }

    .detalle-ubicacion {
        font-size: 15px;
    }

    .detalle-contacto .btn-whatsapp {
        width: 100%;
    }
}

/* =========================================================
   GALERÍA DE FOTOS
   ========================================================= */

.galeria-propiedad {
    width: 100%;
    min-width: 0;
}

.galeria-propiedad .detalle-imagen {
    width: 100%;
}

.miniaturas-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.miniatura-foto {
    width: 100px;
    height: 75px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #111827;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}

.miniatura-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.miniatura-foto:hover,
.miniatura-foto.seleccionada {
    opacity: 1;
    border-color: var(--text-gold);
}

@media (max-width: 500px) {
    .miniatura-foto {
        width: 80px;
        height: 60px;
    }
}
/* =========================================================
   UBICACION Y MAPA DE GOOGLE MAPS
   ========================================================= */

.mapa-propiedad {
    margin: 20px 0 30px;
    width: 100%;
}

.mapa-propiedad h2 {
    color: var(--text-gold);
    font-size: 21px;
    margin-bottom: 15px;
}

.mapa-contenedor {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--gold-border);
    background: #111827;
}

.mapa-contenedor iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-google-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--text-gold);
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn-google-maps:hover {
    background: var(--gold-gradient);
    color: #000;
}

@media (max-width: 500px) {
    .mapa-contenedor {
        height: 230px;
    }

    .btn-google-maps {
        width: 100%;
    }
}
