/* Layout Container */
.scf-container { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start; 
    flex-wrap: nowrap; /* Forces side-by-side */
    width: 100%;
}

.scf-sidebar { 
    width: 300px !important; 
    flex: 0 0 300px !important; 
    background: #f8f9fa; 
    padding: 25px; 
    border-radius: 8px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.scf-results-wrapper { 
    flex: 1; 
    min-width: 0; 
}

/* Grid & Cards */
.scf-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.scf-card { 
    border: 1px solid #eee; 
    padding: 15px; 
    border-radius: 8px; 
    background: #fff; 
    height: 100%; 
    box-sizing: border-box; 
}

.scf-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 4px; 
    margin-bottom: 10px; 
}

.scf-card h4 { margin: 0 0 10px 0; color: #0073aa; font-size: 16px; line-height: 1.4; }

/* Pagination Styling */
.scf-pagination-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.scf-pagination-container a, 
.scf-pagination-container span {
    padding: 10px 18px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.scf-pagination-container .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Sidebar Details */
.scf-filter-group { margin-bottom: 25px; }
.scf-filter-group strong { display: block; margin-bottom: 10px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
#scf-search-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.scf-checkbox-label { display: block; font-size: 13px; margin: 6px 0; cursor: pointer; }
#scf-reset { width: 100%; padding: 10px; background: #666; color: #fff; border: none; border-radius: 4px; cursor: pointer; }

/* Mobile Toggle */
#scf-mobile-toggle {
    display: none;
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
    .scf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .scf-container { flex-direction: column; }
    #scf-mobile-toggle { display: block; position: sticky; top: 0; z-index: 10; }
    .scf-sidebar { width: 100% !important; flex: 0 0 auto !important; display: none; }
    .scf-sidebar.active { display: block; }
    .scf-grid { grid-template-columns: 1fr; }
}