/* Asegurar que la página ocupe toda la anchura */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Main Container Ajustes */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50% Galería y 50% Detalles */
    gap: 30px;
    /* Espacio entre columnas */
    margin: 20px auto;
    max-width: 1200px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    /* Sombra elegante */
}
/* Configuración global para el contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto; /* Centrar todas las secciones */
    padding: 20px;
}
/* Línea divisoria */
.divider {
    border: none;
    height: 4px;
    background-color: #1B5E20;
    margin: 30px auto;
    border-radius: 2px;
    max-width: 90%;
    /* Reduce el ancho máximo */
}

/* Galería de imágenes */
.image-gallery {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-image {
    width: 600px;
    /* Ajuste de ancho fijo */
    height: 600px;
    /* Ajuste de alto fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ajuste proporcional sin deformación */
    display: block;
}

/* Miniaturas */
.thumbnails {
    display: flex;
    flex-direction: column;
    /* Miniaturas en columna */
    gap: 10px;
    /* Espacio entre miniaturas */
    max-height: 400px;
    /* Limita la altura máxima del contenedor */
    overflow-y: auto;
    /* Agrega scroll vertical si hay más miniaturas */
    padding-right: 5px;
    /* Espacio para el scroll */
    scrollbar-width: thin;
    /* Para navegadores modernos */
    scrollbar-color: #1B5E20 #f1f1f1;
    /* Color del scroll */
}

/* Personaliza el scroll en navegadores basados en Webkit (Chrome, Edge, Safari) */
.thumbnails::-webkit-scrollbar {
    width: 8px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background-color: #1B5E20;
    /* Color del thumb */
    border-radius: 4px;
}

.thumbnails::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    /* Color del track */
}

.thumbnails img {
    width: 50px;
    /* Ajusta el tamaño de las miniaturas */
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, transform 0.3s ease-in-out;
}

.thumbnails img.active {
    border-color: #1B5E20;
    transform: scale(1.15);
    /* Leve zoom al seleccionado */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.thumbnails img:hover {
    border-color: #E68A00;
    /* Cambiar a naranja */
    transform: scale(1.15);
    /* Aumentar el zoom */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    /* Sombra más intensa */
}


/* Detalles */
.details {
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.details h1 {
    color: #1B5E20;
    font-size: 2rem;
}

.details .price {
    font-size: 1.5rem;
    color: #1B5E20;
    margin-bottom: 15px;
    font-weight: bold;
}

.details button {
    background: linear-gradient(135deg, #1B5E20, #E68A00);
    /* Verde a naranja */
    color: white;
    border: none;
}

.details button:hover {
    background: linear-gradient(135deg, #E68A00, #1B5E20);
    transform: scale(1.1);
}


.details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.details ul ul {
    margin-top: 5px;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 0.9rem;
    color: #555;
}

.details .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 5px 0;
    font-weight: 500;
}

.details .price {
    font-size: 1.5rem;
    color: #1B5E20;
    margin: 10px 0;
    font-weight: bold;
}


/* Additional Section */
.additional-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dividimos en dos columnas */
    gap: 20px;
    max-width: 1200px;
    /* Limita el ancho total de esta sección */
    margin: 20px auto;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    /* Empuja el contenido hacia abajo */
}

.additional-section>div {
    min-height: 300px;
    /* Asegura una altura consistente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    /* Alineación del texto uniforme */
}

.description,
.map {}


.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-button:hover {
    color: #000;
}

.badges {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-block;
    background-color: #1B5E20;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge:first-of-type {
    background-color: #388e3c;
    /* Diferente color para el primer badge */
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.action-button {
    background: linear-gradient(135deg, #1B5E20, #388E3C);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-button:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #388E3C, #1B5E20);
}


.action-button:hover {
    background: linear-gradient(135deg, #388E3C, #1B5E20);
    transform: scale(1.1);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Fondo y sombra homogénea para todas las secciones */
.section {
    background-color: #ffffff; /* Mismo fondo que el header y main-container */
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1); /* Sombra uniforme */
    margin-bottom: 20px; /* Espaciado entre secciones */
    padding: 20px;
}

/* Ajustes de título para secciones */
.section h3, .section h2 {
    font-size: 1.5rem;
    color: #1B5E20;
    margin-bottom: 15px;
}

/* Homogeneizar el espaciado de listas y párrafos */
.section p, .section ul {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.6;
}

/* Listas internas */
.section ul li {
    margin-bottom: 10px;
}

.section ul li strong {
    color: #333;
}

/* Ajustes adicionales */
.property-details {}

/* Mejoras en la estructura visual */
.property-structure {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.property-details .card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #1B5E20;
    /* Línea decorativa */
    margin-bottom: 20px;
}

.property-structure h3 {
    font-size: 1.4rem;
    color: #1B5E20;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #388E3C;
}

/* Estructura detallada */
.property-structure ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.property-structure ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* Ajuste de color y márgenes */
.property-structure ul li strong {
    color: #222;
}

/* Ajustes visuales específicos */
.detail-section {
    margin-bottom: 20px;
}

/* Detalle de secciones */
.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1B5E20;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Listas dentro de las secciones */
.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #444;
}

.detail-section ul li strong {
    color: #1B5E20;
}

/* Sub-listas */
.detail-section ul li ul {
    margin: 10px 0 0 20px;
}

.detail-section ul li ul li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Íconos decorativos */
.detail-section h3 i {
    font-size: 1.4rem;
    color: #E68A00;
}

/* Botones */
.details button,
.action-button {
    background: linear-gradient(135deg, #1B5E20, #E68A00);
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.details button:hover,
.action-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}


/* Ubicación */
.location {
    grid-column: 1 / span 2;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.location h2 {
    color: #1B5E20;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.location p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.location iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: none;
}

/* Espaciado adicional */
.section {
    margin-top: 10px;
    margin-bottom: 10px;
}