/* marcadores.css — Pines del mapa, insignias y marcador de búsqueda */
.pin3 {
  position: relative; width: 40px; height: 50px;
  transition: transform .14s cubic-bezier(.34, 1.56, .64, 1); transform-origin: center bottom;
  animation: pinDrop .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pinDrop { 0% { transform: translateY(-12px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pin-bubble {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px;
  border-radius: 50%; border: 3px solid #fff; background: var(--c, #6b7280); color: #fff;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 6px 14px rgba(22, 48, 36, .28), 0 2px 4px color-mix(in srgb, var(--c, #888) 45%, transparent);
}
.pin-bubble .ico { width: 20px; height: 20px; }
.pin-bubble b { font-weight: 800; }
/* Cola del pin (triángulo blanco con relleno del color) */
.pin-tail {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 13px solid #fff;
}
.pin-tail::after {
  content: ''; position: absolute; left: -6px; top: -13px;
  width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 10px solid var(--c, #888);
}
/* Insignias sobre el pin */
.pin-badge {
  position: absolute; top: -4px; right: -4px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--azul); border: 2px solid #fff; color: #fff;
  display: grid; place-items: center; font-size: 9px; z-index: 2;
}
.pin-badge.gold { background: #f5b301; }
.pin-online {
  position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px;
  border-radius: 50%; background: #22c55e; border: 2px solid #fff; z-index: 2;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulseDot 2s infinite;
}
/* Tu propio marcador: anillo de marca + etiqueta "Tú" */
.pin3.is-me .pin-bubble { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent), 0 6px 14px rgba(22, 48, 36, .3); }
.pin-metag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--lima); color: var(--lima-txt); font-size: 9.5px; font-weight: 800;
  padding: 1px 8px; border-radius: 8px; border: 2px solid #fff; white-space: nowrap; z-index: 3;
  font-family: var(--f-titulo);
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== Marcador del resultado de búsqueda ===== */
.search-pin { position: relative; width: 44px; height: 52px; animation: spDrop .4s var(--ease); }
@keyframes spDrop { 0% { transform: translateY(-14px) scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.search-pin .sp-bubble {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: #e0442b; border: 3px solid #fff;
  display: grid; place-items: center; font-size: 19px; line-height: 1;
  box-shadow: 0 6px 16px rgba(224, 68, 43, .45);
}
.search-pin .sp-bubble .ico { width: 20px; height: 20px; }
.search-pin .sp-bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 11px solid #fff;
}
.search-pin .sp-bubble::before {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); z-index: 1;
  width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 8px solid #e0442b;
}
.search-pin .sp-pulse {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .25);
  animation: spPulse 1.6s ease-in-out infinite;
}
@keyframes spPulse { 0%, 100% { width: 14px; opacity: .35; } 50% { width: 22px; opacity: .15; } }

/* Popups de MapLibre con el estilo de la app */
.maplibregl-popup-content { border-radius: 12px !important; padding: 8px 12px !important; font-family: var(--f-texto); color: #18332b; box-shadow: var(--sh-md) !important; }
