/* City autocomplete dropdown (hero + header search) */

.city-ac-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.city-ac-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1200;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  max-height: 280px;
  overflow-y: auto;
}

.city-ac-option,
.city-ac-empty {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
}

.city-ac-empty {
  color: #94a3b8;
  cursor: default;
}

.city-ac-option:hover,
.city-ac-option.is-active {
  background: #00afa9;
  color: #fff;
}

/* Keep hero "Where" field layout intact when wrap is injected */
.hero-search__field .city-ac-wrap {
  flex: 1;
  min-width: 0;
}

.hero-search__section--where .city-ac-dropdown {
  min-width: 260px;
  width: max(100%, 280px);
}

/* Header search dropdown sits under the pill input */
.header-search-form .city-ac-wrap {
  display: block;
  width: 100%;
}

.header-search-form .city-ac-dropdown {
  top: calc(100% + 6px);
  min-width: 280px;
}
