/* Mapa: núcleo de MapLibre, marcadores y racimos. */
/* ---------- MapLibre núcleo ---------- */
#mapa { position: fixed; inset: 0; z-index: 0; background: var(--tierra); }
.maplibregl-map { overflow: hidden; position: relative; -webkit-tap-highlight-color: transparent; }
.maplibregl-canvas { position: absolute; left: 0; top: 0; }
.maplibregl-canvas:focus { outline: none; }
.maplibregl-canvas-container.maplibregl-interactive { cursor: grab; }
.maplibregl-canvas-container.maplibregl-interactive:active { cursor: grabbing; }
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas { touch-action: pan-x pan-y; }
.maplibregl-canvas-container.maplibregl-touch-drag-pan,
.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas { touch-action: pinch-zoom; }
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas { touch-action: none; }
.maplibregl-marker { position: absolute; top: 0; left: 0; will-change: transform; transition: opacity .25s; }

/* ---------- Marcadores ---------- */
.marca {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 6px;
  transform-origin: 12px 50%;
}
.marca .forma {
  width: 11px; height: 11px; flex: none;
  background: var(--tinta);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--tierra), 0 1px 4px rgba(42,35,30,.35);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.marca[data-tipo="nuestro"] .forma { background: var(--rojo); border-radius: 1px; transform: rotate(45deg) scale(.92); }
.marca[data-tipo="concierto"] .forma { background: var(--oliva); }
.marca[data-tipo="restaurante"] .forma { background: var(--terracota); border-radius: 3px; }
.marca[data-estado="proximo"] .forma { background: var(--tierra); box-shadow: 0 0 0 1.5px var(--tinta), 0 0 0 4px var(--tierra); outline: 1.5px dashed var(--tinta); outline-offset: 3px; }
.marca[data-estado="oculto"], .marca[data-estado="secreto"] { opacity: .45; }
body.ficha-completa .cabecera, body.ficha-completa .filtros { opacity: 0; pointer-events: none; }
.marca .nombre {
  font-family: var(--serif); font-style: italic; font-size: .95rem; line-height: 1;
  color: var(--tinta);
  white-space: nowrap;
  text-shadow: 0 0 3px var(--tierra), 0 0 3px var(--tierra), 0 0 6px var(--tierra), 0 0 8px var(--tierra);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.con-etiquetas .marca:not(.sin-nombre) .nombre, .marca:hover .nombre, .marca:focus-visible .nombre, .marca.activa .nombre { opacity: 1; transform: none; }
.marca:hover .forma, .marca:focus-visible .forma { transform: scale(1.3); }
.marca[data-tipo="nuestro"]:hover .forma { transform: rotate(45deg) scale(1.2); }
.marca.activa .forma { transform: scale(1.45); box-shadow: 0 0 0 3px var(--tierra), 0 0 0 4.5px var(--tinta), 0 2px 8px rgba(42,35,30,.4); }
.marca[data-tipo="nuestro"].activa .forma { transform: rotate(45deg) scale(1.3); }
.marca.activa { gap: 12px; z-index: 2; }
.marca.activa .nombre { font-size: 1.1rem; }
.marca.atenuada { opacity: .25; }

.racimo {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--papel);
  border: 1px solid var(--tinta);
  box-shadow: 0 0 0 4px rgba(247,242,231,.85), 0 2px 10px rgba(42,35,30,.2);
  font-family: var(--serif); font-size: 1rem; color: var(--tinta);
  padding: 0;
  transition: transform .2s;
}
.racimo:hover { transform: scale(1.1); }
.racimo.grande { width: 42px; height: 42px; font-size: 1.05rem; }
.aparece { animation: aparece .45s ease both; }
@keyframes aparece { from { opacity: 0; transform: scale(.6); } }

