.form_wrapper {
  /* Полупрозрачный фон для формы над героическим изображением */
  background: rgba(31, 41, 55, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(55, 65, 81, 0.7);
  padding: 20px;
  display: flex;
  justify-content: center;
  column-gap: 3px;
  row-gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.search_form_item {
  width: 160px;
  flex-grow: 1;
}

.search_form_item.year {
  width: 130px;
  flex-grow: 0;
}

.search_form_item.button {
  width: 130px;
  display: flex;
  align-items: end;
  flex-grow: 0;
}

.search_form_item.button > * {
  width: 100%;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 15px;
  padding-right: 15px;
}

.form_button_search {
  background-color: #2563eb;
}

.form_button_search:hover {
  background-color: #1d4ed8;
}

.form_button_clear {
  background-color: #6b7280;
}

.form_button_clear:hover {
  background-color: #525866;
}

.search_form_item_label {
  font-size: 14px;
  font-weight: 400;
  color: #d1d5db;
  margin-bottom: 2px;
  display: block;
}

.custom-select {
  position: relative;
  z-index: 100;
}

.custom-select.open {
  z-index: 1000;
}

.select-button {
  width: 100%;
  height: 50px;
  background-color: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(107, 114, 128, 0.7);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0px; /* Базовый стиль, будет переопределен классами body */
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.select-button:hover {
  background-color: #1f2937;
  border-color: #9ca3af;
}

.select-text {
  text-align: left;
  flex: 1;
  line-height: 1.1;
}

.select-search-input {
  background: transparent;
  border: none;
  color: white;
  flex: 1;
  outline: none;
  font-size: inherit;
  font-family: inherit;
  width: 100%;
}

.select-search-input::placeholder {
  color: #9ca3af;
}

.select-search-input.hidden {
  display: none;
}

.select-arrow {
  transition: transform 0.2s;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(107, 114, 128, 0.7);
  border-radius: 0px; /* Базовый стиль, будет переопределен классами body */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-height: 15rem;
  overflow-y: auto;
  z-index: 50;
  margin-top: 2px;
}

.select-option {
  padding: 0.75rem 1rem;
  color: white;
  cursor: pointer;
  border-bottom: 1px solid #374151;
}

.select-option:last-child {
  border-bottom: 0;
}

.select-option:hover {
  background-color: #2563eb;
}

.select-option.hidden {
  display: none;
}

.mobile_button_add_listing {
  display: none;
  padding: 8px 30px;
  margin-top: 15px;
  max-width: fit-content;
  margin: 0 auto 15px;
}

@media (max-width: 1200px) {

}

@media (max-width: 1024px) {

}

@media (max-width: 768px) {

  .mobile_button_add_listing {
    display: flex;    
  }

  .form_wrapper {
    padding: 12px;
    row-gap: 8px;
    column-gap: 8px;
  }

  .content_wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }

  .search_form_item.year {
    width: 160px;
    flex-grow: 1;
  }

  .search_form_item.button {
    flex-grow: 0;
  }
}

@media (max-width: 480px) {
  .search_form_item {
    width: 100%;
  }

  .search_form_item.button {
    flex-grow: 1;
  }
}