/* Estilos generales */
body {
    font-family: 'Rubik', sans-serif;
}

/* Estilos para el contenedor de la propiedad */
.detalle-propiedad {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Título de la propiedad */
.property-title {
    font-size: 32px;
    line-height: 1.3em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Dirección de la propiedad */
.property-address {
    font-size: 15px;
    color: #777;
    margin-bottom: 15px;
}

/* Estilos para los precios */
.property-sale {
    color: #8E988D;
    font-weight: bold;
    font-size: 20px;
}

.property-rent {
    color: #A1877B;
    font-weight: bold;
    font-size: 20px;
}

/* Estilo para las imágenes y el Swiper */
.product-image-slider .swiper-slide {
    margin-right: 5px;
    cursor: pointer;
    width: 100%;
}

.product-image-thumb .swiper-slide {
    height: 80px;
    object-fit: cover;
}

.img-fluid {
    object-fit: cover;
    height: 500px;
    width: 100%;
}

/* Estilos para el botón "Leer más" */
#leer-mas-btn {
    background-color: #8E988D;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#leer-mas-btn:hover {
    background-color: #6d7c6e;
}

/* Descripción de la propiedad */
.description {
    text-align: justify;
    margin-top: 30px;
    column-count: 2;
    column-gap: 30px;
    column-width: 300px;
}

.description p {
    margin-bottom: 20px;
}

/* Detalles de la propiedad */
.property-details {
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.property-details h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.property-attributes li {
    margin-bottom: 10px;
    list-style: none;
    font-size: 16px;
}

.property-attributes li svg {
    margin-right: 8px;
}

/* Flechas para navegar en las imágenes ampliadas */
.arrow {
    display: inline-block;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    margin: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.arrow.prev {
    left: 20px;
}

.arrow.next {
    right: 20px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 1);
}

/* Estilos del overlay de imágenes ampliadas */
.cerrar-imagen {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.imagen-ampliada {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Responsividad */
@media (max-width: 768px) {
    .property-title {
        font-size: 28px;
    }

    .product-image-slider .swiper-slide {
        height: 350px;
    }

    .img-fluid {
        height: 350px;
    }

    .description {
        column-count: 1;
    }
}

/* CSS para asegurar que las imágenes mantengan una relación de aspecto fija */
.img-fixed-size {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}


/* Evita que las imágenes se desborden del contenedor */
.swiper-container {
    width: 100%;
    overflow: hidden;
}

.swiper-slide img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Ajusta el contenedor de imágenes ampliadas para que no se desborden */
.imagen-ampliada {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
