/* ========== MAPA ========== */
#map {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,.15);
  margin-top: 10px;
}

/* ========== BUSCADOR SOBRE EL MAPA ========== */
.map-search {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
  align-items: center;
}

.map-search input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.map-search button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.map-search button:hover {
  filter: brightness(1.05);
}

/* ========== MARCADORES CON FOTO ========== */
.photo-marker {
  border-radius: 999px;
  overflow: visible;
}

.marker-thumb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #2563eb55;
}

/* Efecto de agrandar al pasar el mouse */
.marker-thumb:hover {
  transform: scale(2);
  box-shadow: 0 0 0 3px #facc15;
  z-index: 9999;
}

.marker-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
}

.popup-photo {
  margin-top: 6px;
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
/* Mini-mapa para elegir coordenadas en el formulario */
/* Mini-mapa para elegir coordenadas en el formulario */
.map-picker-wrap {
  margin-top: 10px;
}

.map-picker-help {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 6px;
}

#map-picker {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
}

