/**
 * Smart Filter Mobile Styles
 * Styles for mobile offcanvas filter display
 */

/* Filter button styling */
#filterButton {
    white-space: nowrap;
}

/* Offcanvas specific styles */
#filterOffcanvas {
    width: 320px;
    max-width: 85vw;
}

#filterOffcanvas .offcanvas-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#filterOffcanvas .offcanvas-title {
    font-weight: 600;
    color: #212529;
}

#filterOffcanvas .offcanvas-body {
    padding: 1rem;
}

/* Ensure filter module looks good in offcanvas */
#filterOffcanvas .filter-module {
    width: 100%;
}

/* Adjust filter actions for mobile */
#filterOffcanvas .filter-module .d-grid {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Make sure collapsed sections work in offcanvas */
#filterOffcanvas .collapse {
    transition: height 0.35s ease;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    #filterOffcanvas {
        width: 280px;
    }
    
    #filterButton span {
        display: none !important;
    }
}

@media (min-width: 992px) {
    /* Hide offcanvas on desktop */
    #filterOffcanvas {
        display: none !important;
    }
}
