/* ==================== FILTER SHEET OVERLAY ==================== */

.filter-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== FILTER SHEET ==================== */

.filter-sheet {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Header */
.filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
}

.filter-sheet-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #22221F;
    margin: 0;
}

.filter-sheet-close-btn {
    background-color: transparent;
    cursor: pointer;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.filter-sheet-close-btn:hover {
    opacity: 0.7;
}

.filter-sheet-close-btn img {
    width: 18px;
    height: 18px;
}

/* Content */
.filter-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0rem 1rem;
}

.filter-sheet-content::-webkit-scrollbar {
    width: 6px;
}

.filter-sheet-content::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.filter-sheet-content::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.filter-sheet-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Footer */
.filter-sheet-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: #FFFFFF;
    box-shadow: 0 -4px 12px 0 rgba(119, 61, 76, 0.1);
}

.filter-reset-btn{
    display: flex;
    width: 100%;
}

.filter-reset-btn button {
    border: none;
    background-color: transparent;
    color: #EF4444;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    justify-content: center;
}

.filter-apply-btn{
    display: flex;
    width: 100%;
}

.filter-apply-btn button{
    display: flex;
    flex: 1;
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #FFB3C1;
    background-color: #FFB3C1;
    cursor: pointer;
    align-items: center;
    color: #FFFFFF;
    justify-content: center;
}



.filter-reset-btn:hover {
    background-color: #FEF2F2;
}

.filter-apply-btn:hover {
    background-color: #FF9AB0;
}

/* ==================== FILTER TILE ==================== */

.filter-tile {
    border-bottom: 1px solid #F3F4F6;
}

.filter-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-tile-header:hover {
    background-color: #F9FAFB;
}

.filter-tile-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #3D3D3D;
}

.filter-tile-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.filter-tile-icon.expand {
    transform: rotate(180deg);
}

/* Expanded Content */
.filter-tile-content {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 0.75rem 1.5rem;
    gap: 0.5rem;
}

/* Filter Item with Checkbox */
.filter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.filter-item:hover {
    background-color: #F9FAFB;
}

.filter-item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FF0000;
    flex-shrink: 0;
}

.filter-item-title {
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    font-family: 'PlusJakartaSans', sans-serif;
    cursor: pointer;
    user-select: none;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 991px) {
    .filter-sheet {
        width: 280px !important;
    }

    .filter-sheet-header {
        padding: 1rem 1.25rem;
    }

    .filter-sheet-title {
        font-size: 1rem;
    }

    .filter-tile-header {
        padding: 0.875rem 1.25rem;
    }

    .filter-tile-content {
        padding: 0 1.25rem 0.625rem 1.25rem;
    }

    .filter-item {
        padding: 0.4375rem;
    }

    .filter-item-checkbox {
        width: 16px;
        height: 16px;
    }

    .filter-item-title {
        font-size: 0.8125rem;
    }

   .filter-sheet-footer {
        padding: 0.875rem 1.25rem;
        box-shadow: 0 -3px 10px 0 rgba(119, 61, 76, 0.1);
    }

    
    .filter-reset-btn,
    .filter-apply-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .filter-sheet {
        width: 100% !important;
        max-width: 320px !important;
    }

    .filter-sheet-header {
        padding: 0.875rem 1rem;
    }

    .filter-sheet-title {
        font-size: 0.9375rem;
    }

    .filter-tile-header {
        padding: 0.75rem 1rem;
    }

    .filter-tile-title {
        font-size: 0.875rem;
    }

    .filter-tile-content {
        padding: 0 1rem 0.625rem 1rem;
        gap: 0.375rem;
    }

    .filter-item {
        padding: 0.375rem;
        gap: 0.625rem;
    }

    .filter-item-checkbox {
        width: 16px;
        height: 16px;
    }

    .filter-item-title {
        font-size: 0.8125rem;
    }

    .filter-sheet-footer {
        padding: 0.75rem 1rem;
        gap: 0.625rem;
        box-shadow: 0 -2px 8px 0 rgba(119, 61, 76, 0.1);
    }

    .filter-reset-btn,
    .filter-apply-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        border-radius: 6px;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .filter-sheet-header {
        padding: 0.75rem 0.875rem;
    }

    .filter-sheet-title {
        font-size: 0.875rem;
    }

    .filter-tile-header {
        padding: 0.625rem 0.875rem;
    }

    .filter-tile-content {
        padding: 0 0.875rem 0.5rem 0.875rem;
    }

    .filter-item {
        padding: 0.3125rem;
    }

    .filter-item-checkbox {
        width: 14px;
        height: 14px;
    }

    .filter-item-title {
        font-size: 0.75rem;
    }

    .filter-sheet-footer {
        padding: 0.625rem 0.875rem;
        gap: 0.5rem;
    }

    .filter-reset-btn,
    .filter-apply-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}
