/* Mesón El Tamborilero · marcadores del mapa (web y panel) */
.tm-icon { background: none; border: 0; }
.tm-pin { display: block; filter: drop-shadow(0 4px 6px rgba(30, 20, 5, .4)); }
.tm-svg { width: 100%; height: 100%; overflow: visible; }
.tm-logo { position: relative; width: 54px; height: 54px; border-radius: 50%; background: #FBF7EE; border: 3px solid #A88B57; display: grid; place-items: center; }
.tm-logo img { height: 40px; width: auto; display: block; }
.tm-logo::after { content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -8px; border: 8px solid transparent; border-top: 10px solid #A88B57; border-bottom: 0; }
.tm-dot { position: relative; width: 26px; height: 26px; }
.tm-dot i { position: absolute; inset: 5px; border-radius: 50%; background: #806136; border: 3px solid #fff; z-index: 1; }
/* Contenedor que ocupa todo el icono: se escala con el zoom desde el punto de anclaje */
.tm-in { position: relative; width: 100%; height: 100%; transform: scale(var(--tm-s, 1)); transition: transform .25s ease; }
.tm-in > .tm-pin { position: relative; z-index: 1; }
/* Halo que late detrás del marcador, para que resalte */
.tm-pulse { position: absolute; z-index: 0; border-radius: 50%; background: rgba(168, 139, 87, .45); box-shadow: 0 0 0 2px rgba(168, 139, 87, .35); pointer-events: none; animation: tm-pulse 2.2s ease-out infinite; }
.tm-k-punto .tm-pulse { background: rgba(128, 97, 54, .38); }
.tm-k-cubiertos .tm-pulse { background: rgba(216, 191, 138, .45); }
@keyframes tm-pulse { 0% { transform: scale(.7); opacity: .95; } 70% { opacity: .25; } 100% { transform: scale(2.3); opacity: 0; } }
/* Halo desactivado en Panel → Mapa */
.tm-nohalo .tm-pulse { display: none; }
@media (prefers-reduced-motion: reduce) { .tm-pulse { animation: none; opacity: .35; transform: scale(1.3); } .tm-in { transition: none; } }
.leaflet-marker-draggable { cursor: grab; }
.leaflet-dragging .leaflet-marker-draggable { cursor: grabbing; }
.tm-popup { display: flex; flex-direction: column; gap: 3px; font: 400 .95rem/1.35 "Source Sans 3", system-ui, sans-serif; }
.tm-popup strong { font-weight: 600; }
.tm-popup a { margin-top: 4px; font-weight: 600; }

/* Crédito de OpenStreetMap (obligatorio por su licencia): mínimo y discreto */
.leaflet-container .leaflet-control-attribution { background: rgba(255, 255, 255, .7) !important; color: #4a453d; box-shadow: none; padding: 0 6px 2px; font-size: 10px; line-height: 1.4; opacity: .5; transition: opacity .2s; text-shadow: 0 0 3px rgba(255, 255, 255, .9); }
.leaflet-container .leaflet-control-attribution:hover { opacity: 1; }
.leaflet-container .leaflet-control-attribution a { color: inherit !important; text-decoration: none; }
/* Aviso para ampliar con la rueda */
.tm-hint { position: absolute; z-index: 1000; left: 50%; top: 14px; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: rgba(30, 26, 20, .82); color: #fff; font: 600 .92rem/1.3 "Source Sans 3", system-ui, sans-serif; text-align: center; pointer-events: none; max-width: 80%; }
.tm-hint[hidden] { display: none; }

/* v031 · Estilos de color del mapa (Panel → Mapa). En la web, el modo nocturno los oscurece solos. */
.map-st-suave .leaflet-tile-pane, .map-st-suave iframe { filter: grayscale(.6) sepia(.2) contrast(.92) brightness(1.03); }
.map-st-sepia .leaflet-tile-pane, .map-st-sepia iframe { filter: grayscale(1) sepia(.5) hue-rotate(-12deg) saturate(1.35) contrast(.92) brightness(1.02); }
.map-st-claro .leaflet-tile-pane, .map-st-claro iframe { filter: grayscale(.92) contrast(.9) brightness(1.08); }
:root[data-theme="dark"] body:not(.panel) .map-st-suave .leaflet-tile-pane, :root[data-theme="dark"] body:not(.panel) .map-st-suave iframe { filter: invert(1) hue-rotate(180deg) grayscale(.55) sepia(.18) brightness(1.15) contrast(.8); }
:root[data-theme="dark"] body:not(.panel) .map-st-sepia .leaflet-tile-pane, :root[data-theme="dark"] body:not(.panel) .map-st-sepia iframe { filter: invert(1) grayscale(1) sepia(.5) hue-rotate(-12deg) saturate(1.4) brightness(1.1) contrast(.8); }
:root[data-theme="dark"] body:not(.panel) .map-st-claro .leaflet-tile-pane, :root[data-theme="dark"] body:not(.panel) .map-st-claro iframe { filter: invert(1) hue-rotate(180deg) grayscale(.9) brightness(1.15) contrast(.8); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body:not(.panel) .map-st-suave .leaflet-tile-pane, :root:not([data-theme="light"]) body:not(.panel) .map-st-suave iframe { filter: invert(1) hue-rotate(180deg) grayscale(.55) sepia(.18) brightness(1.15) contrast(.8); }
  :root:not([data-theme="light"]) body:not(.panel) .map-st-sepia .leaflet-tile-pane, :root:not([data-theme="light"]) body:not(.panel) .map-st-sepia iframe { filter: invert(1) grayscale(1) sepia(.5) hue-rotate(-12deg) saturate(1.4) brightness(1.1) contrast(.8); }
  :root:not([data-theme="light"]) body:not(.panel) .map-st-claro .leaflet-tile-pane, :root:not([data-theme="light"]) body:not(.panel) .map-st-claro iframe { filter: invert(1) hue-rotate(180deg) grayscale(.9) brightness(1.15) contrast(.8); }
}
