/* --- ESTILOS GENERALES --- */
body { background-color: #f0f2f5; }
body > .navbar, body > footer { display: none; }
body > main { padding: 0; padding-bottom: 80px; background-color: #f0f2f5; }

/* --- CABECERA DE BÚSQUEDA --- */
.search-header-inmo {
    background-color: #4fc3f7; /* Azul claro de la maqueta */
    color: white;
    padding: 0.5rem 1rem 1rem 1rem;
    position: sticky; top: 0; z-index: 1020;
}
.status-bar-placeholder { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 0.25rem 0; font-weight: 500; }
.top-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.back-arrow-inmo { font-size: 1.8rem; color: white; }
.search-box-inmo { flex-grow: 1; position: relative; }
.search-box-inmo .bi-search { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #555; }
.search-box-inmo .form-control { border-radius: 10px; padding-left: 40px; background-color: white; border: none; color: #333; }
.map-button { color: white; text-decoration: none; text-align: center; }
.map-button i { font-size: 1.5rem; display: block; }
.map-button span { font-size: 0.7rem; font-weight: 500; }
.filter-pills { display: flex; gap: 0.5rem; overflow-x: auto; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pills { -ms-overflow-style: none; scrollbar-width: none; }
.btn-pill {
    border-radius: 20px; font-size: 0.8rem; background: #00A6D2; border: 1px solid #62d4f8;
    color: white; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 0.3rem;
}
.btn-pill.active { background: #0079A3; }
.btn-pill i { font-size: 1.1rem; }

/* --- "HOJA" DE CONTENIDO --- */
.content-sheet {
    background: white;
    padding: 1rem;
    border-radius: 24px 24px 0 0;
    margin-top: -20px; /* Sube la hoja para el efecto de solapamiento */
    position: relative; z-index: 1;
}
.listing-title-container { margin-bottom: 1.5rem; }
.listing-title-container h3 { font-weight: bold; font-size: 1.5rem; }
.listing-title-container p { color: #6c757d; font-size: 0.9rem; margin: 0; }

a.listing-card-link {
    text-decoration: none;
    color: inherit;
}

/* --- TARJETAS DE ANUNCIOS --- */
.listing-card {
    background: white; border: none; overflow: hidden;
    /* Las tarjetas en la maqueta no tienen bordes ni sombra, son parte de la hoja */
}
.listing-image-container {
    position: relative;
    height: 250px; /* ALTURA FIJA PARA LA IMAGEN */
    border-radius: 16px;
    overflow: hidden; /* ESTO RECORTA LA IMAGEN */
    margin-bottom: 1rem;
}
.listing-image-container img {
    width: 100%; height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin distorsionarse */
}
.image-counter {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white; padding: 3px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 500;
}
.favorite-btn {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0, 0, 0, 0.3);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: white; font-size: 1.2rem;
}

.listing-details .price { font-size: 1.7rem; font-weight: bold; color: #333; }
.listing-details .title { font-size: 1.5rem; font-weight: normal; color: #333; margin-bottom: 0.25rem; }
.listing-details .title strong { font-weight: bold; }
.listing-details .location { font-size: 1rem; color: #555; margin-bottom: 0.25rem; }
.listing-details .specs { font-size: 1rem; color: #555; }
.listing-details .specs span { color: #ccc; } /* Color del punto separador */

/* --- BOTÓN FLOTANTE Y NAVEGACIÓN INFERIOR --- */
.fab-container { position: fixed; bottom: 90px; right: 20px; z-index: 1020; display: flex; align-items: flex-end; gap: 0.5rem; }
.fab-speech-bubble {
    background-color: #0079A3; color: white; padding: 8px 12px;
    border-radius: 16px; font-size: 0.8rem; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fab {
    background: transparent; border: none; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
}
.fab img { width: 100%; height: 100%; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #4fc3f7; /* Mismo color azul claro que la cabecera */
    display: flex; justify-content: space-around;
    padding: 0.5rem 0; box-shadow: 0 -2px 5px rgba(0,0,0,0.08); z-index: 1010;
}
.nav-item {
    text-decoration: none; color: #dcf5ff; /* Color de iconos inactivos */
    text-align: center; font-size: 0.75rem; flex-grow: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nav-item i { font-size: 1.5rem; display: block; margin-bottom: 2px; }
.nav-item.active { color: white; font-weight: bold; } /* Icono activo */

/* EN static/css/inmobiliaria_redesign.css */

.listing-image-container img.fallback-logo {
    object-fit: scale-down; /* En lugar de 'cover', hace que el logo se vea completo sin estirarse */
    padding: 2rem; /* Añade un poco de espacio alrededor del logo */
    background-color: #f8f9fa; /* Un fondo claro para que el logo destaque */
}


/* --- Estilos para el Formulario de Filtros Mejorado --- */
.filters-area .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}
.filters-area .filter-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.filters-area .form-switch .form-check-label {
    cursor: pointer;
}
.more-options-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}