/* ==========================================================
   LUUPIGO - MARCADORES PREMIUM MAPA
   Archivo: /srv/apps/luupigo/frontend/public/assets/css/marcadores.css

   CORRECCIÓN:
   - CSS separado para marcadores Leaflet
   - Evita cargar/ensuciar mapa.css
   - Da diseño real a los marcadores generados por marcadores.js
   - Corrige texto suelto "Perdido/Encontrado"
   ========================================================== */

.leaflet-marker-icon.luupigo-marker-icon {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.luupigo-marker-shell {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: auto;
}

.luupigo-marker-pin {
  position: relative;
  width: 62px;
  height: 76px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.32));
  transition: transform 160ms ease, filter 160ms ease;
}

.luupigo-marker-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 4px;
  z-index: 0;
}

.luupigo-marker-core {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.luupigo-marker-media {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.luupigo-marker-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
}

.luupigo-marker-badge {
  position: absolute;
  left: 50%;
  top: 54px;
  z-index: 4;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
}

.luupigo-marker-shell.is-perdido .luupigo-marker-core,
.luupigo-marker-shell.is-perdido .luupigo-marker-pin::after,
.luupigo-marker-shell.is-perdido .luupigo-marker-badge {
  background: linear-gradient(135deg, #ef4444, #fb7185);
}

.luupigo-marker-shell.is-encontrado .luupigo-marker-core,
.luupigo-marker-shell.is-encontrado .luupigo-marker-pin::after,
.luupigo-marker-shell.is-encontrado .luupigo-marker-badge {
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
}

.luupigo-marker-shell.is-adopcion .luupigo-marker-core,
.luupigo-marker-shell.is-adopcion .luupigo-marker-pin::after,
.luupigo-marker-shell.is-adopcion .luupigo-marker-badge {
  background: linear-gradient(135deg, #f59e0b, #facc15);
}

.luupigo-marker-icon:hover {
  z-index: 9999 !important;
}

.luupigo-marker-icon:hover .luupigo-marker-pin {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.42));
}

.luupigo-marker-icon:hover .luupigo-marker-badge {
  transform: translateX(-50%) scale(1.04);
}

.leaflet-marker-icon {
  overflow: visible !important;
}
