/* destination-search (#1072 D2): one grouped search bar. Self-contained
   tokens (--hfds-*) with plain-light defaults; sites theme via Custom CSS.
   The bar is a small standalone surface — it deliberately does not import the
   explorer's SBP token cascade. */

/* Cancel common.css's host paint: the bar sits on the customer's page and
   must not paint var(--color-background) behind itself (host-background
   contract test). */
:host {
  background: transparent;
}

.hfds-root {
  position: relative;
  max-width: 480px;
  font-family: inherit;
  color: var(--hfds-foreground, #222);
}

.hfds-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 16px;
  font-size: var(--hfds-input-size, 15px);
  color: var(--hfds-foreground, #222);
  background: var(--hfds-input-bg, #fff);
  border: 1px solid var(--hfds-border, #d9d9d9);
  border-radius: var(--hfds-radius, 10px);
  outline: none;
}
.hfds-input:focus {
  border-color: var(--hfds-accent, #222);
}

.hfds-listbox {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0;
  background: var(--hfds-bg, #fff);
  border: 1px solid var(--hfds-border, #e5e5e5);
  border-radius: var(--hfds-radius, 10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.hfds-group-heading {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hfds-muted, #767676);
}

.hfds-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  font-size: var(--hfds-item-size, 14px);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.hfds-item:hover,
.hfds-item-active {
  background: var(--hfds-hover-bg, #f4f4f4);
}

.hfds-item-count {
  font-size: 12px;
  color: var(--hfds-muted, #767676);
}

/* #1650: the source word on same-name Cities rows ("Kaanapali area" /
   "Kaanapali town"). Same size as the name, because it is the only thing that
   tells the two rows apart. Its fallback grey is darker than the count's so
   it keeps AA contrast on the hover/active row too (#666 on #f4f4f4 = 5.2:1). */
.hfds-item-hint {
  color: var(--hfds-muted, #666);
}

.hfds-empty {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--hfds-muted, #767676);
}
