/* Autocomplete dropdown component */
.searchbar__field--autocomplete {
  position: relative;
}

/* Hero search autocomplete fields */
.hs__field {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
}

.autocomplete-dropdown.hidden {
  display: none;
}

.autocomplete-item {
  display: block;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s;
  text-decoration: none;
  color: inherit;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
  background-color: #e3f2fd;
  outline: none;
}

.autocomplete-item-title {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.autocomplete-item-type {
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
  font-style: italic;
}

.autocomplete-empty {
  padding: 0.75rem 1rem;
  color: #999;
  text-align: center;
}
  color: #999;
  text-align: center;
}
