.vehicle-filters-component {
  width: 100%;
}

.vehicle-filters-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 34px 28px 34px;
  box-shadow: none;
}

.vehicle-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.vehicle-filters-head-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vehicle-filters-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #111111;
}

.vehicle-filters-count {
  font-size: 18px;
  line-height: 1.4;
  color: #8a93a3;
}

.vehicle-filters-count strong {
  color: #111111;
  font-weight: 700;
}

.vehicle-filter-reset {
  background: transparent;
  border: 0;
  color: #ef4444;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  margin: 4px 0 0;
  box-shadow: none;
}

.vehicle-filter-reset:hover,
.vehicle-filter-reset:focus {
  background: transparent;
  color: #dc2626;
  outline: none;
}

.vehicle-filters-separator {
  height: 1px;
  background: #ececec;
  margin: 24px 0 28px;
}

.vehicle-filter-field {
  margin-bottom: 24px;
}

.vehicle-filter-field:last-child {
  margin-bottom: 0;
}

.vehicle-filter-field label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #344054;
}

.vehicle-filter-field select,
.vehicle-filter-field input[type="number"],
.vehicle-filter-field input[type="text"] {
  width: 100%;
  min-height: 64px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 20px;
  font-size: 18px;
  line-height: 1.2;
  color: #1f2937;
  box-shadow: none;
  outline: none;
}

.vehicle-filter-field select:focus,
.vehicle-filter-field input[type="number"]:focus,
.vehicle-filter-field input[type="text"]:focus {
  border-color: #d1d5db;
  box-shadow: none;
  outline: none;
}

.vehicle-filter-field select:disabled {
  background: #fafafa;
  color: #b9c0ca;
  cursor: not-allowed;
}

.vehicle-filter-checkbox {
  margin-top: 6px;
}

.vehicle-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  border: 1px solid #f0f1f3;
  border-radius: 14px;
  background: #f8f8f9;
  padding: 0 18px;
  margin: 0 !important;
  cursor: pointer;
}

.vehicle-checkbox-label input[type="checkbox"] {
  width: 30px;
  height: 30px;
  margin: 0;
  accent-color: #e42d2d;
  flex: 0 0 auto;
}

.vehicle-checkbox-label span {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #4b5563;
}

/* ==========================================================
   SLIDER
   ========================================================== */

.vehicle-slider-field {
  margin-bottom: 18px;
}

.vehicle-slider-field label {
  margin-bottom: 18px;
}

.vehicle-double-range {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

/* barra base grigia */
.vehicle-double-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: #d7dbe1;
  border-radius: 999px;
  z-index: 1;
}

/* barra rossa attiva */
.vehicle-range-progress {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: #e42d2d;
  border-radius: 999px;
  z-index: 2;
  left: 0;
  width: 0;
  pointer-events: none;
}

/* input range sopra */
.vehicle-double-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 3;
}

/* WebKit track completamente trasparente */
.vehicle-double-range input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
}

/* Firefox track trasparente */
.vehicle-double-range input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
}

/* Firefox progress trasparente */
.vehicle-double-range input[type="range"]::-moz-range-progress {
  height: 6px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* WebKit thumb */
.vehicle-double-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 4px solid #e42d2d !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  margin-top: -12px;
  position: relative;
  z-index: 4;
}

/* Firefox thumb */
.vehicle-double-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 4px solid #e42d2d !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  position: relative;
  z-index: 4;
}

/* Edge / compat */
.vehicle-double-range input[type="range"]::-ms-track {
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.vehicle-double-range input[type="range"]::-ms-fill-lower,
.vehicle-double-range input[type="range"]::-ms-fill-upper {
  background: transparent;
  border: 0;
}

.vehicle-double-range input[type="range"]::-ms-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #e42d2d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

.vehicle-double-range input[type="range"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

.vehicle-slider-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.vehicle-slider-values span {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111111;
}

.vehicle-slider-values .vehicle-slider-dash {
  font-weight: 400;
  color: #8c94a3;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 767px) {
  .vehicle-filters-card {
    padding: 26px 20px 28px;
    border-radius: 18px;
  }

  .vehicle-filters-head {
    gap: 14px;
  }

  .vehicle-filters-title {
    font-size: 22px;
  }

  .vehicle-filters-count {
    font-size: 16px;
  }

  .vehicle-filter-field {
    margin-bottom: 22px;
  }

  .vehicle-filter-field select,
  .vehicle-filter-field input[type="number"],
  .vehicle-filter-field input[type="text"] {
    min-height: 58px;
    font-size: 17px;
    padding: 0 16px;
  }

  .vehicle-checkbox-label {
    min-height: 68px;
    padding: 0 16px;
  }

  .vehicle-checkbox-label span {
    font-size: 17px;
  }

  .vehicle-double-range input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -11px;
  }

  .vehicle-double-range input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }

  .vehicle-slider-values span {
    font-size: 18px;
  }
}