/* Overlay de mapa OSM para una iglesia individual.
   Se renderiza sobre la app cuando el usuario toca 📍 Ubicación en una tarjeta. */

.mapa-osm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
  animation: mapa-osm-in 200ms ease-out;
}
@keyframes mapa-osm-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.mapa-osm-header {
  flex-shrink: 0;
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 10;
}
.app-frame.dark .mapa-osm-header {
  background: #1F1F1F;
  color: #F0F0F0;
}

.mapa-osm-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F0F0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #3C3C3C;
  flex-shrink: 0;
}
.app-frame.dark .mapa-osm-back {
  background: #333;
  color: #F0F0F0;
}

.mapa-osm-title {
  flex: 1;
  min-width: 0;
  font-weight: 900;
  font-size: 15px;
  color: #3C3C3C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-frame.dark .mapa-osm-title { color: #F0F0F0; }

.mapa-osm-container {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Pin custom de la iglesia */
.osm-pin-wrap { background: transparent !important; border: none !important; }
.osm-pin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563EB;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  animation: osm-pin-drop 400ms cubic-bezier(.2,.9,.3,1.2);
}
@keyframes osm-pin-drop {
  from { transform: translateY(-20px) scale(0.7); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.leaflet-marker-shadow { display: none !important; }

/* Botón cómo llegar flotante */
.mapa-osm-cta {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563EB;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.mapa-osm-cta:active { transform: translateX(-50%) translateY(2px); }
