/* Homepage vehicle autocomplete widget — Walkthrough Phase 1 Sub-phase B.
   Sized to harmonize with the surrounding livery-capture section. */

.ew-hvi {
  position: relative;
  max-width: 540px;
  margin-top: 18px;
}

.ew-hvi__combobox {
  position: relative;
  display: flex; align-items: center;
}

.ew-hvi__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ew-aluminum);
  pointer-events: none;
}

.ew-hvi__input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  background: var(--ew-black);
  border: 1px solid var(--ew-steel);
  color: var(--ew-white);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  border-radius: 0;
  transition: border-color var(--ew-dur-fast) var(--ew-ease);
}
.ew-hvi__input::placeholder { color: var(--ew-aluminum); }
.ew-hvi__input:focus {
  outline: none;
  border-color: var(--accent);
}

.ew-hvi__listbox {
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  list-style: none; margin: 0; padding: 0;
  background: var(--ew-black);
  border: 1px solid var(--ew-steel);
  max-height: 320px;
  overflow-y: auto;
  z-index: 20;
}
.ew-hvi__option {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--ew-steel);
  display: flex; flex-direction: column; gap: 2px;
  transition: background-color var(--ew-dur-fast) var(--ew-ease);
}
.ew-hvi__option:last-child { border-bottom: none; }
.ew-hvi__option:hover,
.ew-hvi__option.is-active { background: var(--ew-graphite); }
.ew-hvi__option-line {
  color: var(--ew-white);
  font-size: 14px; font-weight: 500;
}
.ew-hvi__option-meta {
  color: var(--ew-aluminum);
  font-family: var(--ew-font-mono);
  font-size: 11px; letter-spacing: 0.06em;
}

.ew-hvi__popular {
  display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center;
  margin-top: 12px;
}
.ew-hvi__popular-label {
  font-family: var(--ew-font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ew-aluminum);
}
.ew-hvi__chip {
  background: var(--ew-graphite);
  border: 1px solid var(--ew-steel);
  color: var(--ew-paper);
  padding: 6px 12px;
  font-family: var(--ew-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--ew-dur-fast) var(--ew-ease), color var(--ew-dur-fast) var(--ew-ease);
}
.ew-hvi__chip:hover {
  border-color: var(--accent);
  color: var(--ew-white);
}

.ew-hvi__no-match {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ew-aluminum);
}
.ew-hvi__no-match a {
  color: var(--accent-text);
  text-decoration: underline;
}
.ew-hvi__no-match a:hover { color: var(--ew-white); }

@media (max-width: 560px) {
  .ew-hvi__input { font-size: 16px; /* prevent iOS zoom */ }
}
