/* Shared typeahead / picked chips for hit-list name + address search */

.loc-search-wrap {
  position: relative;
}

.loc-suggest {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 1px solid rgba(176, 155, 135, 0.45);
  border-radius: 6px;
  background: #fff;
  max-height: 14rem;
  overflow: auto;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.08);
  z-index: 20;
  position: absolute;
  left: 0;
  right: 0;
}

.loc-suggest li {
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(176, 155, 135, 0.2);
}

.loc-suggest li:last-child {
  border-bottom: none;
}

.loc-suggest li:hover,
.loc-suggest li.is-active {
  background: rgba(85, 255, 225, 0.18);
}

.loc-suggest li.loc-suggest-empty {
  cursor: default;
  color: #5c534b;
  font-size: 0.84rem;
  line-height: 1.4;
  background: rgba(176, 155, 135, 0.08);
}

.loc-suggest li.loc-suggest-empty:hover {
  background: rgba(176, 155, 135, 0.08);
}

.loc-suggest-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-weight: 600;
}

.loc-suggest-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #8a7b6c;
  font-weight: 400;
}

.loc-suggest-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  flex-shrink: 0;
}

.loc-suggest-badge-list {
  background: #1a1a1a;
  color: #fff;
}

.loc-suggest-badge-new {
  background: #0f766e;
  color: #fff;
}

.loc-suggest li.is-hitlist {
  border-left: 3px solid #1a1a1a;
  background: rgba(26, 26, 26, 0.03);
}

.loc-suggest li.is-osm {
  border-left: 3px solid #0f766e;
}

.loc-match-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #5c534b;
}

.loc-picked {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.loc-picked li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(176, 155, 135, 0.4);
  border-radius: 999px;
  background: rgba(85, 255, 225, 0.12);
  font-size: 0.82rem;
  max-width: 100%;
}

.loc-picked .loc-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.loc-picked button {
  appearance: none;
  border: none;
  background: transparent;
  color: #5c534b;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.1rem;
}

.loc-picked button:hover {
  color: #1a1a1a;
}
