.basic-filters {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 31px;
    gap: 16px;
    border-radius: 12px;
    box-shadow: 0px 1px 7px 0px rgba(0, 0, 0, 0.2);
}

.basic-filters .manufactureYear-value {
        display: flex;
        justify-content: space-between;
        margin-top: 7px;
    }

.basic-filters form {
        width: 100%;
        display: flex;
        align-items: center;
    }

.basic-filters form select {
            position: relative;
            flex: 1;
            border: none;
            height: 40px;
            outline: none;
            -webkit-appearance: none;
               -moz-appearance: none;
                    appearance: none;
            background: url(../svg/grey-chevron-down.svg) no-repeat calc(100% - 20px);
        }

.basic-filters form select:not(:last-child) {
            border-right: 1px solid var(--grey);
            padding-right: 16px;
        }

.basic-filters form select:not(:first-child) {
            padding-left: 16px;
        }

.basic-filters button {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 177px;
        padding: 8px;
        background-color: var(--grey);
        border-radius: 10px;
        border: none;
    }

.advance-filters {
    display: none;
    width: 100%;
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 12px;
    box-shadow: 0px 1px 7px 0px rgba(0, 0, 0, 0.2);
}

.advance-filters form {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-column-gap: 24px;
        grid-row-gap: 24px;
    }

.advance-filters .filter-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

.advance-filters .filter-wrapper label {
            font-size: 14px;
            font-weight: 500;
        }

.advance-filters .filter-wrapper select {
            display: flex;
            padding: 10px 14px;
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
            -webkit-appearance: none;
               -moz-appearance: none;
                    appearance: none;
            background: url(../svg/grey-chevron-down.svg) no-repeat calc(100% - 10px);
            overflow: hidden;
            color: var(--dark-grey);
            text-overflow: ellipsis;
            font-size: 16px;
            line-height: 24px;
        }

.advance-filters .filter-wrapper .price-value,
        .advance-filters .filter-wrapper .km-value,
        .advance-filters .filter-wrapper .year-value {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 20px;
        }

.advance-filters .filter-wrapper .price-value input, .advance-filters .filter-wrapper .km-value input, .advance-filters .filter-wrapper .year-value input {
                width: -moz-fit-content;
                width: fit-content;
                display: inline-block;
                box-sizing: content-box;
                align-items: center;
                justify-content: center;
                padding: 10px 14px;
                border-radius: 8px;
                border: 1px solid var(--grey);
            }

.advance-filters .filter-wrapper .year-value input {
            -webkit-appearance: none;
            -moz-appearance: textfield;
            appearance: none;
            -webkit-user-select: none;
               -moz-user-select: none;
                    user-select: none;
            pointer-events: none;
        }

.advance-filters .filter-wrapper .year-value input::-webkit-outer-spin-button,
        .advance-filters .filter-wrapper .year-value input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.advance-filters .filter-wrapper .year-value input[type=number] {
            -moz-appearance: textfield;
        }

.advance-filters .filter-wrapper input[type="number"] {
            max-width: 100%;
            width: 80px;
        }

.advance-filters .filter-wrapper .slider-wrapper {
            position: relative;
            width: 100%;
            margin-top: 14px;
        }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"] {
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                width: 100%;
                outline: none;
                position: absolute;
                margin: auto;
                top: 0;
                bottom: 0;
                background-color: transparent;
                pointer-events: none;
            }

.advance-filters .filter-wrapper .slider-wrapper .slider-track {
                display: flex;
                width: 100%;
                height: 5px;
                position: absolute;
                margin: auto;
                top: 0;
                bottom: 0;
                border-radius: 5px;
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
                -webkit-appearance: none;
                height: 5px;
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]::-moz-range-track {
                -moz-appearance: none;
                height: 5px;
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]::-ms-track {
                appearance: none;
                height: 5px;
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]::-webkit-slider-thumb {
                -webkit-appearance: none;
                height: 24px;
                width: 24px;
                background-color: var(--white);
                cursor: pointer;
                margin-top: -2.2%;
                pointer-events: auto;
                border-radius: 50%;
                border: 1px solid var(--red);
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]::-moz-range-thumb {
                -webkit-appearance: none;
                height: 24px;
                width: 24px;
                cursor: pointer;
                border-radius: 50%;
                background-color: var(--red);
                pointer-events: auto;
                border: none;
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]::-ms-thumb {
                appearance: none;
                height: 24px;
                width: 24px;
                cursor: pointer;
                border-radius: 50%;
                background-color: var(--white);
                pointer-events: auto;
                border: 1px solid var(--red);
            }

.advance-filters .filter-wrapper .slider-wrapper input[type="range"]:active::-webkit-slider-thumb {
                background-color: #ffffff;
                border: 1px solid var(--red);
            }

.advance-filters .filter-buttons {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        grid-column: 3/4;
    }

.advance-filters .filter-buttons button {
            height: 50px;
            text-align: center;
            padding: 0 4px;
            border-radius: 8px;
            border: 1px solid var(--dark-grey);
            font-size: 16px;
            font-weight: 600;
            flex: 1;
        }

.advance-filters .filter-buttons button:first-child {
            background-color: var(--white);
            color: var(--black);
        }

.advance-filters .filter-buttons button:last-child {
            background-color: var(--black);
            color: var(--white);
        }

.show-filters {
    display: block !important;
}

.active-filters {
    background-color: var(--light-red) !important;
    color: var(--red);
}

.active-filters img {
        filter: invert(27%) sepia(92%) saturate(7394%) hue-rotate(357deg) brightness(94%) contrast(89%);
    }

.sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sort-section span {
        color: var(--black);
        font-size: 36px;
        font-weight: 700;
    }

.sort-section .actions-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 24px;
    }

.sort-section .actions-wrapper button {
            display: flex;
            padding: 8px 18px;
            justify-content: center;
            align-items: center;
            gap: 8px;
            border-radius: 10px;
            background-color: var(--red);
            color: var(--white);
            font-size: 16px;
            font-weight: 600;
            line-height: 24px;
            border: none;
            height: 41px;
        }

.sort-section .actions-wrapper label {
            display: flex;
            color: var(--black);
            font-size: 14px;
            font-weight: 500;
            line-height: 20px;
            margin-bottom: 8px;
        }

.sort-section .actions-wrapper select {
            display: flex;
            padding: 0px 14px;
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
            -webkit-appearance: none;
               -moz-appearance: none;
                    appearance: none;
            background: url(../svg/grey-chevron-down.svg) no-repeat calc(100% - 10px);
            overflow: hidden;
            color: var(--dark-grey);
            text-overflow: ellipsis;
            font-size: 16px;
            line-height: 24px;
            height: 41px;
            min-width: 200px;
        }

.search-modal {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.search-modal .modal-content {
        max-width: 1284px;
        width: 100%;
        background-color: var(--white);
        padding: 16px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 20px;
    }

.search-modal .modal-content button {
            display: flex;
            padding: 8px 18px;
            justify-content: center;
            align-items: center;
            gap: 8px;
            border-radius: 10px;
            background-color: var(--red);
            color: var(--white);
            font-size: 16px;
            font-weight: 600;
            line-height: 24px;
            border: none;
            height: 41px;
            white-space: nowrap;
        }

.search-modal .modal-content input {
            width: 100%;
            border: none;
            padding: 10px;
            outline: none;
        }

@media (max-width: 768px) {
    .basic-filters {
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0px;
    }

        .basic-filters form {
            display: none;
        }

        .basic-filters .advance-filters-btn {
            width: 100%;
            font-size: 16px;
            font-weight: 600;
            line-height: 24px;
            color: var(--black);
        }
        .advance-filters form {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
        }

        .advance-filters .filter-buttons {
            grid-column: auto;
        }

    .sort-section {
        flex-wrap: wrap-reverse;
    }

        .sort-section .actions-wrapper {
            width: 100%;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

            .sort-section .actions-wrapper button,
            .sort-section .actions-wrapper .filter-wrapper,
            .sort-section .actions-wrapper select {
                width: 100%;
            }
        .search-modal button span {
            display: none;
        }
}