/*
 * Search-UX additions: sidebar Bundesland dropdown, IP-suggestion hint and
 * the city/postcode suggestion combobox. Kept separate from assets/style.css
 * (shared base chrome, owned alongside it) so this file only ever needs to
 * change together with app.js / index.php / ortsvorschlaege.php.
 */

.state-select {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.state-select select {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.state-select__submit {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #f3f3f3;
  font: inherit;
  cursor: pointer;
}

.state-select__submit:hover,
.state-select__submit:focus-visible {
  background: #e4e4e4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.geo-hint {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.geo-hint a {
  color: inherit;
}

/* --- City/postcode suggestion combobox --- */

.suggest {
  position: relative;
}

.suggest__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  max-height: 15rem;
  overflow-y: auto;
}

.suggest__option {
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.suggest__option.is-active,
.suggest__option:hover {
  background: #eef4ff;
}
