/* ============================================
   FILTER PANEL CSS
   ============================================ */

/* IMPORTANTE: El botón flotante de filtros está DESHABILITADO
   Se usa un botón inline en su lugar (ver index.php) */

/* Ocultar botón flotante de filtros SIEMPRE */
#filter-toggle-btn {
    display: none !important;
}

/* Ocultar sidebar de filtros siempre - usar panel deslizable */
.filters-sidebar {
    display: none !important;
}

/* Filter Overlay */
#filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filter Panel */
#filter-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

#filter-panel.active {
    right: 0;
}

.filter-panel-header {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Krona One', sans-serif;
}

#close-filters {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

#close-filters:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-panel-content {
    padding: 20px;
}

/* Responsive adjustments para el panel */
@media (max-width: 768px) {
    #filter-panel {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .filter-panel-header {
        padding: 15px;
    }

    .filter-panel-header h3 {
        font-size: 1.25rem;
    }

    .filter-panel-content {
        padding: 15px;
    }
}
