/* Filter Modal - Flutter Style */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.filter-modal.visible {
    display: flex;
}

.filter-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
    position: relative;
    background: white;
    border-radius: 24px 24px 0 0;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
}

.filter-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.filter-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #E0E0E0;
}

.filter-btn-secondary,
.filter-btn-primary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.filter-btn-secondary {
    background: #F5F5F5;
    color: #1A1A1A;
}

.filter-btn-primary {
    background: #51149F;
    color: white;
}
/* Drag Handle */
.filter-modal-handle {
    width: 44px;
    height: 5px;
    background: #CCCCCC;
    border-radius: 10px;
    margin: 8px auto 10px;
}

.filter-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 22px 24px;
}

/* Title */
.filter-title {
    font-size: 16px;
    font-weight: 500;
    color: black;
    margin-bottom: 8px;
}

/* Care Toggle */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.toggle-option {
    font-size: 30px;
    font-weight: 800;
    color: #00A76A;
}

/* Section Title */
.filter-section-title {
    font-size: 16px;
    font-weight: 500;
    color: black;
    margin-bottom: 8px;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.filter-chip {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #00A76A;
    background: white;
    color: #00A76A;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: #00A76A;
    color: white;
}

/* Footer */
.filter-modal-footer {
    padding: 16px 22px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.filter-btn-show-result {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #00A76A;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/* Care/Pet color variants */
.toggle-separator {
    font-size: 30px;
    font-weight: 500;
    color: #CCCCCC;
}

.toggle-option:not(.active) {
    color: #CCCCCC;
    cursor: pointer;
}

/* Pet mode - purple chips */
.filter-modal.pet-mode .filter-chip {
    border-color: #51149F;
    color: #51149F;
}

.filter-modal.pet-mode .filter-chip.active {
    background: #51149F;
    color: white;
}

.filter-modal.pet-mode .filter-btn-show-result {
    background: #51149F;
}

.filter-modal.pet-mode #toggle-pet.active {
    color: #51149F;
}

/* Pet mode - темно-фиолетовые активные чипы */
.filter-modal.pet-mode .filter-chip {
    border-color: #51149F;
    color: #51149F;
}

.filter-modal.pet-mode .filter-chip.active {
    background: #51149F;
    color: white;
}

.filter-modal.pet-mode .filter-btn-show-result {
    background: #51149F;
}

/* Pet toggle - светло-фиолетовый (#B9A0FF) */
#toggle-pet.active {
    color: #B9A0FF !important;
}
