 /* Обертка для нашего кастомного селекта */
.custom-select {
  position: relative;
  width: 100%;
  font-family: inherit;
  border: 1px solid #E1E1E1;
  border-radius: 12px;
}

/* Скрываем стандартный селект, но оставляем его в DOM для формы */
.custom-select select {
  display: none;
}

/* Главная кнопка (Триггер) */
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  /* background-color: #f2f2f2; */
  border-radius: 8px;
  cursor: pointer;
  color: #747373;
  font-size: 14px;
  transition: background-color 0.2s;
  user-select: none;
}

.custom-select__trigger:hover {
  background-color: #e8e8e8;
}

/* Стрелочка CSS (уголок) */
.custom-select__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #545454;
  border-bottom: 2px solid #545454;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.3s ease;
  opacity: 0.5;
}

/* Состояние, когда селект открыт */
.custom-select.open .custom-select__trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
    background: #EAEAEE;
}

.custom-select.open .custom-select__arrow {
  opacity: 1;
}

.custom-select.open .custom-select__arrow {
  transform: translateY(25%) rotate(-135deg); /* Стрелка смотрит вверх */
}

/* Выпадающий список */
.custom-select__options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  max-height: 260px; /* Ограничиваем высоту, чтобы появился скролл */
  overflow-y: auto;
  z-index: 99;
  
  /* Скрываем по умолчанию */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-select.open .custom-select__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Отдельные пункты списка */
.custom-select__option {
  padding: 14px 20px;
  color: #545454;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.custom-select__option:last-child {
  border-bottom: none;
}

/* Ховер на пунктах меню (как на скрине "Самара") */
.custom-select__option:hover {
  background-color: #f2f2f2;
}

.custom-select__option.selected {
  font-weight: 500;
  color: #141414; /* Темный цвет для выбранного */
}

/* Кастомный скроллбар для списка */
.custom-select__options::-webkit-scrollbar {
  width: 6px;
}
.custom-select__options::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 8px;
}
.custom-select__options::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 8px;
}