@charset "utf-8";
/* CSS Document */

/*---------------- DESPLEGAR PROPIEDAD -------------------- */

/* --- Contenedor Principal --- */
.property-details-container {
    max-width: 1100px;
    margin: 0 auto 40px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #334155;
}

/* --- Encabezado --- */
.property-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.property-badge {
    display: inline-block;
    background-color: var(--brand-color, #006d00);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.property-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.property-price {
    font-size: 1.4rem;
    color: #16a34a; /* Verde para precio */
    margin: 0;
    font-weight: 700;
}

/* --- Grid de 2 Columnas --- */
.property-details-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Columna izq de 350px, Columna der usa el resto */
    gap: 30px;
    align-items: start;
}

/* --- Tarjetas de Información --- */
.info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-title {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.card-text {
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* --- Imágenes --- */
.main-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    transition: transform 0.2s ease;
}

.main-image-container img:hover {
    transform: scale(1.02);
}

/* --- Galería (CSS Grid) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.gallery-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    transition: opacity 0.2s;
}

.gallery-item img:hover {
    opacity: 0.8;
}

.help-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: -10px;
    margin-bottom: 16px;
}

/* --- Mapa Responsivo --- */
.map-responsive {
    position: relative;
    padding-bottom: 60%; /* Relación de aspecto del mapa */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-link {
    display: block;
    margin-top: 10px;
}

/* --- Contacto / Agencia --- */
.agent-details p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.agent-name {
    font-size: 1.15rem;
    margin: 0 0 12px 0;
    color: #0f172a;
}

.agency-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 16px;
}

/* --- Botón de Regreso --- */
.property-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.btn-back {
    display: inline-block;
    padding: 10px 24px;
    background-color: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #e2e8f0;
}

/* --- Adaptabilidad Móvil --- */
@media (max-width: 768px) {
   .property-details-grid {
        grid-template-columns: 1fr; /* Colapsa todo en 1 sola columna hacia abajo */
    }
    
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.25rem;
    }
}
/* ------------------------------ */

/* --- Contenedor general del fragmento --- */
.dynamic-features-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Cuadrícula de Estadísticas (Gris clarito, cajas ordenadas) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    background-color: #c9f0bc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
}

.highlight-stat {
    border-left: 3px solid var(--brand-color, #0056b3);
    padding-left: 12px;
}

.stat-subtext {
    font-size: 0.8rem;
    color: #16a34a; /* Verde sutil */
    font-weight: normal;
}

/* --- Secciones Generales --- */
.feature-section {
    margin-top: 10px;
}

.section-title {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

/* --- Píldoras de Vistas Destacadas --- */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- El secreto de las Listas Hermosas --- */
.modern-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Distribuye las listas en varias columnas */
    gap: 12px 24px;
    list-style: none; /* Quitamos los bullets feos por defecto */
    padding: 0;
    margin: 0;
}

.modern-list li {
    display: flex;
    align-items: flex-start; /* Alinea el ícono arriba por si el texto tiene 2 líneas */
    gap: 8px;
}

.list-icon {
    color: #16a34a; /* Paloma verde */
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 2px;
}

.list-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

.text-en {
    color: #64748b; /* El texto en inglés va un poco más tenue */
    font-style: italic;
}

/* --- Caja de Info Adicional --- */
.additional-info-box {
    background-color: #c9f0bc;
    border-left: 4px solid #468b3e;
    padding: 16px;
    border-radius: 0 8px 8px 0;
}

.additional-info-box p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.additional-info-box p:last-child {
    margin-bottom: 0;
}

.empty-text {
    color: #94a3b8;
    font-style: italic;
}

/* listados */

/* --- Contenedor Principal del Listado --- */
.property-list-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #334155;
}

.list-heading {
    font-size: 1.5rem;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 24px;
    text-align: center;
}

/* --- Wrapper de las Tarjetas --- */
.property-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

/* --- Estructura de la Tarjeta Individual (Flexbox) --- */
.list-card {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* --- Imagen de la Tarjeta --- */
.list-card-image {
    width: 250px; /* Ancho fijo para la imagen en escritorio */
    flex-shrink: 0;
}

.list-card-image a {
    display: block;
    height: 100%;
}

.list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que las fotos se deformen */
    min-height: 160px;
}

/* --- Información de la Tarjeta --- */
.list-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.list-card-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
}

.list-card-title a {
    color: var(--brand-color, #0056b3);
    text-decoration: none;
}

.list-card-title a:hover {
    text-decoration: underline;
}

.list-card-location {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* --- Amenidades rápidas --- */
.list-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #475569;
}

/* --- Precio --- */
.list-card-price {
    margin-top: auto; /* Empuja el precio al fondo si la tarjeta crece */
}

.price-tag {
    display: inline-block;
    background-color: #dcfce7;
    color: #166534;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.1rem;
    margin-right: 10px;
}

/* --- Paginación --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.current-page {
    background-color: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.page-link {
    background-color: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: 1px solid #cbd5e1;
}

.page-link:hover {
    background-color: #e2e8f0;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-style: italic;
}

/* --- ADAPTABILIDAD MÓVIL --- */
@media (max-width: 640px) {
    .list-card {
        flex-direction: column; /* Apila la imagen arriba y el texto abajo */
    }
    
    .list-card-image {
        width: 100%;
        height: 200px;
    }
    
    .list-card-info {
        padding: 16px;
    }
}

/* Large Pictures ---------------------------------- */

.gallery-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.main-photo {
    width: 100%;
    max-height: 600px;
    object-fit: contain; /* Ajusta la foto sin deformarla */
    background: #f1f5f9;
    border-radius: 12px;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.thumb-link img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
}

.thumb-link.active-thumb img {
    border-color: var(--brand-color, #0056b3);
}

.price-highlight {
    font-size: 1.5rem;
    font-weight: bold;
    color: #166534;
    margin: 10px 0;
}

.nav-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}