/* Address Autocomplete & Map */
.address-wrapper {
  position: relative;
}

#autocomplete-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

#autocomplete-results.show {
  display: block;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: background 0.15s;
}

.ac-item:hover,
.ac-item.active {
  background: rgba(255,255,255,0.08);
}

.ac-item.ac-empty {
  color: rgba(255,255,255,0.4);
  cursor: default;
}

.ac-item + .ac-item {
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Map */
#map-container {
  display: none;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

#map-container.show {
  display: block;
}

#address-map {
  height: 220px;
  width: 100%;
  border-radius: 12px;
}

/* Leaflet overrides for dark theme */
.leaflet-control-attribution {
  font-size: 10px !important;
  opacity: 0.6;
}

.custom-marker {
  background: transparent !important;
  border: none !important;
}
