:root {
    --secondary-color: #c9a96e;
    --accent-color: #0066a1;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.08);
}

.filter-toggle-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    font-size: 15px;
}

.filter-toggle-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.filter-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100dvh;
    background: var(--white);
    box-shadow: -8px 0 32px var(--shadow-medium);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 9999999999;
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
}

.filter-sidebar.open {
    left: 0;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

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

.filter-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.filter-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(26, 54, 93, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 300;
}

.close-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* Content */
.filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.filter-content::-webkit-scrollbar {
    width: 6px;
}

.filter-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.filter-group:nth-child(1) {
    animation-delay: 0.1s;
}

.filter-group:nth-child(2) {
    animation-delay: 0.2s;
}

.filter-group:nth-child(3) {
    animation-delay: 0.3s;
}

.filter-group:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.group-header {
    padding: 18px 20px;
    background: var(--white);
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.group-header:hover {
    background: rgba(201, 169, 110, 0.05);
    color: var(--primary-color);
}

.group-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--border-light);
}

.group-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.group-header.active .group-icon {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

.group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
}

.group-content.active {
    max-height: 400px;
}

.group-options {
    padding: 10px 20px 20px;
    display: grid;
    gap: 10px;
}

/* Custom Checkbox */
.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.filter-option:hover {
    background: rgba(201, 169, 110, 0.1);
    transform: translateX(5px);
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option input[type="checkbox"]:checked+.checkbox-custom {
    background: linear-gradient(135deg, var(--secondary-color), #d4af37);
    border-color: var(--secondary-color);
}

.filter-option input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.option-label {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 400;
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.option-count {
    font-size: 14px;
    color: var(--text-light);
    background: rgba(113, 128, 150, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: auto;
    display: inline-block;
}

/* Sort Options */
.sort-group {
    padding: 10px 20px;
    border-top: 1px solid var(--border-light);
    background: rgba(26, 54, 93, 0.02);
}

.sort-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-option {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.sort-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

.sort-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-color: var(--primary-color);
}

.results-counter {
    padding: 10px 20px;
    background: rgba(201, 169, 110, 0.1);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
    text-align: center;
}

.counter-text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.counter-number {
    color: var(--primary-color);
    font-weight: 600;
}

/* Clear Filters Button */
.clear-filters {
    margin: 10px 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.clear-filters:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.make-filter {
    margin: 10px 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.clear-filters:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 100%;
        left: -100%;
    }



}

/* Notification Styles */
.notification {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    font-family: 'Inter', sans-serif;
    animation: slideDown 0.3s ease;
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

.btn-container {
    display: flex;
    justify-content: flex-start;
    padding: 0 15px;
}