
.input-custom {
  background-color: #f5f5f5;       /* Изначальный цвет фона */
  border: 2px solid #ffffff;
  border-radius: 12px;            /* Закруглённые края */
  transition: filter 0.2s ease;   /* Плавный переход эффекта при ховере */
  max-width: 700px;
  width: 100%;
  min-height: 50px;
  outline: none;  
  padding-left: 10px; /* отступ слева для текста и placeholder */
  margin-bottom: 5px;
}

.input-custom:hover {
  filter: brightness(0.95);       /* Затемнение при наведении */
}


.input-custom:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: none;
    filter: brightness(0.95);
}




  .no-padding {
    padding: 0 !important;  /* Убираем внутренние отступы */
  }

  /* СТИЛИ «кнопок» для радиокнопок */
.option-btns {
    display: flex; /* Располагаем кнопки в строку */
    flex-wrap: wrap;
    gap: 10px;            /* Расстояние между кнопками */
    margin-bottom: 10px;
    width: 100%;
}
.option-btns.option-btns-limited {
    display: flex;
    flex-wrap: wrap;
    max-width: 700px;
}
  .option-btn {
    position: relative;
    cursor: pointer;
  }
  /* Скрываем стандартный кружок radio */
  .option-btn input[type="radio"] {
    display: none;
  }
  /* Внешний вид «псевдо-кнопки» */
  .option-btn span {
    display: inline-block;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  /* При наведении — чуть темнее */
  .option-btn:hover span {
     filter: brightness(0.95);
  }
  /* Активная кнопка (checked) */
  .option-btn input[type="radio"]:checked + span {
    background: #141414;
    color: #ffffff;
  }
  /* Georgian labels: keep option buttons readable in narrow filters */
  html[lang="ka"] #ads-filter-form .option-btns:not(.vertical),
  html[lang="ka"] #ads-filter-form-mobile .option-btns:not(.vertical) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  html[lang="ka"] #ads-filter-form .option-btn,
  html[lang="ka"] #ads-filter-form-mobile .option-btn {
    width: 100%;
  }
  html[lang="ka"] #ads-filter-form .option-btn span,
  html[lang="ka"] #ads-filter-form-mobile .option-btn span {
    display: block;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    padding: 8px 10px;
    overflow-wrap: break-word;
  }
  /* НАЧАЛО -================-================-================-================-================-================-================-================ */
  /* Вертикальная раскладка опций, как на Avito */

  
    /* КОНЕЦ -================-================-================-================-================-================-================-================ */
  /* Родительский контейнер, чтобы располагать чекбоксы в столбик */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Расстояние между пунктами */
}

/* Контейнер для расположения чекбоксов в два столбца */
.checkbox-list.two-column {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  column-gap: 30px;
}

.checkbox-list.two-column > div {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

/* Контейнер для расположения чекбоксов в три столбца */
.checkbox-list.three-column {
  display: grid;
  grid-template-columns: repeat(3, 0.2fr);
  column-gap: 30px;
}

.checkbox-list.three-column > div {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}
.checkbox-list {
  width: 100%;
}

/* Общий класс для каждой строки с чекбоксом */
.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;    /* чтобы не выделялся текст при клике */
  width: 100%;
}

/* Скрываем нативный чекбокс */
.checkbox-option input[type="checkbox"] {
  display: none;
}

/* Кастомный квадрат для "галочки" */
.checkbox-option .custom-box {
  width: 20px;
  height: 20px;
  border: 2px solid #ededed;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  background: #f5f5f5;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

/* Подсветка при наведении (опционально) */
.checkbox-option:hover .custom-box {
  filter: brightness(0.95);
}

/* Когда чекбокс выбран */
.checkbox-option input[type="checkbox"]:checked + .custom-box {
  background: #141414;
  border-color: #141414;
}

/* Галочка при выбранном состоянии */
.checkbox-option input[type="checkbox"]:checked + .custom-box::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: -2px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

/* Обёртка переключателя */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;  /* Ширина переключателя */
  height: 22px; /* Высота переключателя */
  cursor: pointer;
}

/* Скрываем сам чекбокс */
.toggle-switch input[type="checkbox"] {
  display: none; 
}

/* Ползунок */
.slider {
  position: absolute;
  top: 0; 
  left: 0;
  right: 0; 
  bottom: 0;
  background-color: #eee;     /* Цвет фона в положении «выкл» */
  border-radius: 22px;        /* Скругление */
  transition: background 0.2s, transform 0.2s; 
}

/* Круглая кнопка внутри ползунка */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;  /* Диаметр «кнопки» */
  height: 18px; 
  left: 2px;
  top: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

/* Когда чекбокс включён */
.toggle-switch input[type="checkbox"]:checked + .slider {
  background-color: #141414; /* Можно другой цвет */
}

/* Сдвигаем «кнопку» вправо */
.toggle-switch input[type="checkbox"]:checked + .slider::before {
  transform: translateX(18px);
}

/* При наведении (опционально) */
.toggle-switch:hover .slider {
  background-color: #ddd; /* Немного темнее, пока не включено */
}
.toggle-switch input[type="checkbox"]:checked:hover + .slider {
  background-color: #333; /* Если включено, ещё темнее */
}

/* ---------- Clearable input styles ---------- */
form[id$="-filter-form"] input[type="number"]::-webkit-outer-spin-button,
form[id$="-filter-form"] input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

form[id$="-filter-form"] input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.input-clearable {
  position: relative;
  flex: 1 1 auto;
}

.input-clearable input {
  width: 100%;
  padding-right: 24px;
}

.input-clearable .clear-icon {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  cursor: pointer;
  display: none;
}
