/* ====================================================================
   FILTROS EN ALL PROPERTIES - Panel colapsable que reutiliza filtros del mapa
   ==================================================================== */

/* Filtros ocultos por defecto (usado en map.html y all_properties) */
.filtros-ocultos-default {
    display: none !important;
}

/* Premium background sin inline styles */
.premium-background {
    min-height: 100vh;
    padding: 2rem 0;
}

/* Móvil: reducir padding top pero mantener separación del navbar */
@media (max-width: 767px) {
    .premium-background {
        padding: 0.8rem 0.4rem;
    }
}

/* ====================================================================
   HEADER LABEL - ALL PROPERTIES
   ==================================================================== */
.all-props-header-label {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.all-props-header-title {
    font-size: 1.1rem;
    color: #fff !important;
}

.all-props-header-title i,
.all-props-header-title span {
    color: #fff !important;
}

/* Nocturno */
html[data-tema="nocturno"] .all-props-header-title,
html[data-tema="nocturno"] .all-props-header-title i,
html[data-tema="nocturno"] .all-props-header-title span {
    color: #fff !important;
}

/* Futurista */
html[data-tema="futurista"] .all-props-header-title,
html[data-tema="futurista"] .all-props-header-title i,
html[data-tema="futurista"] .all-props-header-title span {
    color: #00f7ff !important;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.4);
}

/* ====================================================================
   TOGGLE CONTADOR (Badge de propiedades inline con toggles)
   ==================================================================== */
.toggle-contador {
    cursor: default;
    pointer-events: none;
}

.toggle-contador #statsPropsCount {
    font-weight: 700;
}

.toggle-contador-label {
    font-size: 0.7rem !important;
}

/* Link perfil sin decoración */
.mapa-toggle-row a.mapa-toggle-btn {
    text-decoration: none;
}

.filtros-wrapper-all {
    display: none;
    position: relative;
    margin-bottom: 1rem;
    animation: filtroSlideDown 0.3s ease-out;
}

.filtros-wrapper-all.activo {
    display: block;
}

@keyframes filtroSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ocultar elementos exclusivos del mapa */
.filtros-wrapper-all .premium-header,
.filtros-wrapper-all .map-container-card,
.filtros-wrapper-all .stat-card,
.filtros-wrapper-all .stats-row,
.filtros-wrapper-all .mapa-header-mobile,
.filtros-wrapper-all .footer-spacer {
    display: none !important;
}

/* Botón cerrar filtros (X) */
.btn-cerrar-filtros-all {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
}

.btn-cerrar-filtros-all:hover {
    background: rgba(0,0,0,0.08);
    color: #333;
}

/* Botón filtros en header */
.btn-filtros-header {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-filtros-header:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    transform: translateY(-1px);
}

.btn-filtros-header.activo {
    background: rgba(255,255,255,0.9);
    color: #333;
}

.btn-filtros-header .badge-filtros {
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.3rem;
    display: none;
}

/* Contador y mensaje sin resultados */
.filtros-resultado-count {
    font-size: 0.78rem;
    color: #6c757d;
    text-align: center;
    padding: 0.3rem 0;
}

.filtros-resultado-count strong {
    color: var(--color-primario, #0d6efd);
}

.no-results-msg {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.no-results-msg i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-results-msg h5 { color: #6c757d; }
.no-results-msg p { color: #adb5bd; }

/* Tema futurista */
html[data-tema="futurista"] .btn-cerrar-filtros-all {
    color: rgba(0, 247, 255, 0.7);
}

html[data-tema="futurista"] .btn-cerrar-filtros-all:hover {
    background: rgba(0, 247, 255, 0.1);
    color: #00f7ff;
}

html[data-tema="futurista"] .btn-filtros-header.activo {
    background: rgba(0, 247, 255, 0.2);
    color: #00f7ff;
    border-color: rgba(0, 247, 255, 0.5);
}
