/* Address Autocomplete (Nominatim/OSM) */
.aa-wrap {
  position: relative;
}

.aa-dropdown {
  position: absolute;
  z-index: 2000;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.aa-dropdown.aa-open {
  display: block;
}

.aa-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.3;
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

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

.aa-item:hover,
.aa-item.aa-active {
  background: #eef4ff;
}

.aa-item-pin {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #6c757d;
}

.aa-item-text {
  flex: 1;
  min-width: 0;
}

.aa-item-primary {
  font-weight: 600;
  color: #1f2328;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-item-secondary {
  color: #6c757d;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-status {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
}

.aa-attribution {
  padding: 6px 12px;
  font-size: 0.7rem;
  color: #8a93a0;
  border-top: 1px solid #f1f3f5;
  background: #fafbfc;
  text-align: right;
}

.aa-attribution a {
  color: #8a93a0;
  text-decoration: none;
}

.aa-attribution a:hover {
  text-decoration: underline;
}
