/**
 * Autocomplete Dropdown Styles
 * Ergonomic suggestions list with >=44px touch targets and fluid hover/active feedback.
 */

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--color-ash-grey, #BECEBA);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  animation: dropdownFadeIn 0.18s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text-main, #1a252f);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.item-selected {
  background-color: rgba(159, 211, 221, 0.35);
  color: #0b4950;
}

.autocomplete-item:active {
  background-color: rgba(51, 190, 203, 0.3);
  transform: scale(0.98);
}

.autocomplete-icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.autocomplete-text {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  background-color: var(--color-almond-cream, #F0D9BE);
  color: #5c3b1e;
  border-radius: 6px;
  flex-shrink: 0;
}
