/* Horizontal Filter Section */
.horizontal-filter-section {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

.horizontal-filter-form {
    width: 100%;
}

.horizontal-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Individual Filter Dropdown */
.horizontal-filter-dropdown {
    flex: 1 1 0;
    position: relative;
}

.filter-dropdown-toggle {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.11);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.filter-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.filter-dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.2);
}

.filter-label {
    text-align: center;
    color: white;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 24px;
}

.filter-dropdown-toggle i {
    color: #D1D1D1;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.filter-dropdown-menu.show {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
}

.filter-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

/* Custom Scrollbar */
.filter-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-dropdown-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.filter-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Filter Options */
.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 3px;
    margin-bottom: 4px;
}

.filter-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #BE123B;
}

.option-text {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-weight: 500;
}

/* Submit Button */
.horizontal-filter-submit {
    flex: 1 1 0;
    padding: 22px 32px;
    background: linear-gradient(0deg, white 0%, #ECECEC 50%, white 50%, #ECECEC 100%);
    border: 4px solid #C1C1C1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.horizontal-filter-submit:hover {
    background: linear-gradient(0deg, #ECECEC 0%, white 50%, #ECECEC 50%, white 100%);
    border-color: #A1A1A1;
}

.horizontal-filter-submit:active {
    transform: scale(0.98);
}

.submit-text {
    color: #6D6D6D;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 22px;
    letter-spacing: 0.5px;
}

/* Responsive Design */

/* Tablet - Medium screens */
@media (max-width: 991px) {
    .horizontal-filter-container {
        gap: 8px;
    }

    .filter-label {
        font-size: 18px;
    }

    .filter-dropdown-toggle {
        padding: 14px 16px;
    }

    .horizontal-filter-submit {
        padding: 18px 24px;
    }

    .submit-text {
        font-size: 18px;
    }
}

/* Tablet - Small tablets */
@media (max-width: 768px) {
    .horizontal-filter-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .horizontal-filter-dropdown {
        flex: 1 1 calc(50% - 5px);
        min-width: calc(50% - 5px);
    }

    .horizontal-filter-submit {
        flex: 1 1 100%;
        width: 100%;
    }

    .filter-label {
        font-size: 16px;
    }

    .filter-dropdown-toggle {
        padding: 12px 14px;
    }

    .horizontal-filter-submit {
        padding: 16px 24px;
    }

    .submit-text {
        font-size: 16px;
    }
}

/* Mobile - Small screens */
@media (max-width: 576px) {
    .horizontal-filter-section {
        padding: 8px;
    }

    .horizontal-filter-container {
        flex-direction: column;
        gap: 8px;
    }

    .horizontal-filter-dropdown {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
    }

    .horizontal-filter-submit {
        width: 100%;
    }

    .filter-label {
        font-size: 16px;
        line-height: 20px;
    }

    .filter-dropdown-toggle {
        padding: 12px 16px;
    }

    .horizontal-filter-submit {
        padding: 14px 20px;
    }

    .submit-text {
        font-size: 16px;
        line-height: 20px;
    }

    .option-text {
        font-size: 13px;
    }

    .filter-dropdown-content {
        max-height: 300px;
    }

    .filter-dropdown-menu.show {
        max-height: 300px;
    }
}

/* Extra small mobile */
@media (max-width: 375px) {
    .filter-label {
        font-size: 14px;
    }

    .submit-text {
        font-size: 14px;
    }

    .filter-dropdown-toggle {
        padding: 10px 12px;
    }

    .horizontal-filter-submit {
        padding: 12px 16px;
    }
}

/* Close dropdown when clicking outside */
.horizontal-filter-section.dropdown-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}
