/* Filter Section Styles */
.filter-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-controls {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Noto Sans Thai', sans-serif;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box button {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.search-box button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: #e2e8f0;
    color: #475569;
}

.filter-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Filter Options */
.filter-options {
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.active-filter-tag .remove-filter {
    cursor: pointer;
    font-weight: bold;
    color: #ef4444;
    margin-left: 0.25rem;
}

.active-filter-tag .remove-filter:hover {
    color: #dc2626;
}

/* Clear Filters Button */
.clear-filters {
    padding: 0.5rem 1rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.clear-filters:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Gallery Enhancements */
.gallery-pin {
    transition: all 0.3s ease;
}

.gallery-pin.hidden {
    display: none;
}

.gallery-pin.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Results Counter */
.results-counter {
    text-align: center;
    margin: 1rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls {
        padding: 1.5rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .active-filters {
        justify-content: center;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.no-results h3 {
    color: #475569;
    margin-bottom: 0.5rem;
}

.no-results p {
    margin-bottom: 1rem;
}

.no-results button {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Sans Thai', sans-serif;
    transition: all 0.3s ease;
}

.no-results button:hover {
    background: #2563eb;
}