/* ===================================================
   1. ESTRUCTURA GLOBAL (ZILLOW PRO SPLIT-SCREEN)
   =================================================== */
#zillow-pro {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    height: 100vh !important; 
    width: 100% !important;
    overflow: hidden !important; 
    background: #ffffff !important;
    position: relative !important;
}

/* Barra lateral con scroll independiente */
#sidebar {
    width: 420px !important; 
    min-width: 420px !important;
    height: 100% !important; 
    padding: 0 !important;
    background: #ffffff !important;
    overflow-y: auto !important; 
    box-shadow: -2px 0 10px rgba(0,0,0,0.1) !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Contenedor del Mapa fijo */
#map {
    flex-grow: 1 !important; 
    height: 100% !important; 
}

/* ===================================================
   2. BUSCADOR (ARREGLO DEFINITIVO DE CASILLAS)
   =================================================== */
#zillow-filters {
    padding: 20px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.filter-row {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

/* Forzar tamaño de inputs para que no se vean pequeños */
#zillow-filters input[type="number"],
#zillow-filters input[type="text"],
#zillow-filters select {
    width: 100% !important;
    max-width: 100% !important; 
    height: 45px !important;
    padding: 0 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    display: block !important;
    flex: 1 !important; 
}

/* Botón de búsqueda Azul */
#zillow-filters button {
    background-color: #006aff !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.3s !important;
    margin-top: 5px !important;
}

#zillow-filters button:hover {
    background-color: #0056d2 !important;
}

/* ===================================================
   3. TARJETAS DE PROPIEDADES (SOMBRAS Y 2 COLUMNAS)
   =================================================== */
#property-list {
    padding: 15px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 15px !important;
    flex-grow: 1 !important;
}

/* Aplicamos la sombra con máxima prioridad */
#zillow-pro #sidebar #property-list .property-card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    
    /* SOMBRA SOFT VISIBLE: Estilo Zillow */
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.1) !important;
    
    /* Efecto suave */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
}

/* EFECTO HOVER: La tarjeta se eleva y la sombra crece */
#zillow-pro #sidebar #property-list .property-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 8px 8px rgba(0,0,0,0.1) !important;
    transform: translateY(-5px) !important;
    border-color: #006aff !important;
}

.property-card img {
    width: 100% !important;
    height: 135px !important; 
    object-fit: cover !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.card-info {
    padding: 12px !important;
}

/* Precio en Azul y Negrita */
.property-card .price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #006aff !important; 
    margin-bottom: 4px !important;
    display: block !important;
}

/* Título / Dirección */
.property-card h4 {
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: normal !important;
    color: #757575 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Estilo del link "Más detalles" que te gusta */
.ver-mas-link {
    color: #006aff !important;
    font-size: 11px !important;
    margin-top: 8px !important;
    font-weight: bold !important;
    display: block !important;
}

/* ===================================================
   4. RESPONSIVO (ADAPTACIÓN A MÓVILES)
   =================================================== */
@media (max-width: 768px) {
    #zillow-pro { flex-direction: column !important; height: auto !important; overflow: visible !important; }
    #sidebar { width: 100% !important; min-width: 100% !important; height: auto !important; }
    #map { height: 350px !important; order: -1 !important; }
    #property-list { grid-template-columns: 1fr !important; }
    .filter-row { flex-direction: column !important; }
}

/* ===================================================
   5. AJUSTES PARA HELLO ELEMENTOR (ANCHO COMPLETO)
   =================================================== */

/* Forzar que el body ocupe todo el ancho */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Contenedor principal de Hello Elementor */
#page {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* El contenido del sitio */
.site-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Contenedores adicionales de Hello */
.entry-content,
.entry-header,
.site-main,
.inside-article,
.hentry {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Para la ficha de propiedad individual */
.wasi-property-single {
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
}

/* Asegurar que el split-screen ocupe todo el ancho en Hello */
#zillow-pro {
    max-width: 100% !important;
    width: 100% !important;
}

/* ===================================================
   OCULTAR TEXTOS FEOs SIN DAÑAR SEO
   =================================================== */

/* Ocultar el título del sitio "PORTAL INMOBILIARIO" */
.site-title {
    display: none !important;
}

/* Ocultar la descripción del sitio "VENTA Y ALQUILER DE INMUEBLES" */
.site-description {
    display: none !important;
}

/* Ocultar el título "Buscador de Inmuebles" si es un H1 feo */
.entry-header h1.entry-title,
.page-header h1,
h1.entry-title {
    display: none !important;
}

/* Si el "Buscador de Inmuebles" está dentro del contenido de la página */
.entry-content h1:first-child,
.entry-content h2:first-child {
    display: none !important;
}