/* ===== Фильтр автомобилей ===== */
.cfilter {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cfilter * {
    box-sizing: border-box;
}

/* ===== Поле ===== */
.cfilter__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cfilter__label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ===== Инпут / селект ===== */
.cfilter .cfilter__input,
.cfilter .cfilter__select,
.cfilter input.cfilter__input,
.cfilter select.cfilter__select {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 14px !important;
    background: #f1f3f5 !important;
    background-color: #f1f3f5 !important;
    border: 1px solid #f1f3f5 !important;
    border-radius: 8px !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s, background 0.15s !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: auto !important;
}

.cfilter .cfilter__input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-size: 15px !important;
}

.cfilter .cfilter__input:hover,
.cfilter .cfilter__select:hover {
    background: #e9ecef !important;
    background-color: #e9ecef !important;
}

.cfilter .cfilter__input:focus,
.cfilter .cfilter__select:focus {
    background: #fff !important;
    background-color: #fff !important;
    border-color: #1a56db !important;
    outline: none !important;
}

/* Стрелка у select */
/*.cfilter .cfilter__select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M6 8L0 0h12z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px 7px !important;
    padding-right: 36px !important;
    cursor: pointer;
}*/

/*.cfilter .cfilter__select:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M6 8L0 0h12z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

.cfilter .cfilter__select:focus {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a56db' d='M6 8L0 0h12z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}*/

.cfilter .cfilter__select {
    background-image: none !important;
    padding-right: 14px !important;
}

.cfilter .cfilter__select:hover,
.cfilter .cfilter__select:focus {
    background-image: none !important;
}

/* Опции */
.cfilter .cfilter__select option {
    background: #fff !important;
    color: #1a1a1a !important;
    padding: 8px !important;
}

/* Убираем стрелки у number */
.cfilter .cfilter__input[type="number"]::-webkit-outer-spin-button,
.cfilter .cfilter__input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.cfilter .cfilter__input[type="number"] {
    -moz-appearance: textfield !important;
}

/* ===== Range (от-до) ===== */
.cfilter__range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.cfilter__range .cfilter__input--range {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px 10px !important;
    text-align: left;
}

/* ===== Кнопки ===== */
.cfilter__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.cfilter .cfilter__btn,
.cfilter button.cfilter__btn,
.cfilter button[type="submit"].cfilter__btn {
    width: 100% !important;
    padding: 14px 20px !important;
    background: #1a56db !important;
    background-color: #1a56db !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background 0.15s, transform 0.1s !important;
    text-shadow: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.cfilter .cfilter__btn:hover {
    background: #1546b8 !important;
    background-color: #1546b8 !important;
    color: #fff !important;
}

.cfilter .cfilter__btn:active {
    transform: scale(0.98);
}

.cfilter .cfilter__reset {
    display: block !important;
    text-align: center !important;
    color: #1a56db !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 8px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.cfilter .cfilter__reset:hover {
    color: #1546b8 !important;
    text-decoration: underline !important;
}

/* Автозаполнение */
.cfilter .cfilter__input:-webkit-autofill,
.cfilter .cfilter__input:-webkit-autofill:hover,
.cfilter .cfilter__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f1f3f5 inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    transition: background-color 5000s ease-in-out 0s;
}