/* Runcover Xmas static-site extras (on top of the original app.css). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* mobile menu */
#mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6); }
#mobile-menu .mm-panel { position: absolute; inset-block: 0; right: 0; width: 100%; max-width: 20rem; background: var(--background); display: flex; flex-direction: column; }
#mobile-menu[hidden] { display: none; }

/* events widget santa track */
.santa-track-run { animation: santaTrackRun 9s linear infinite; }
@keyframes santaTrackRun { from { left: 0%; } to { left: 100%; } }
.santa-track-bob { animation: santaTrackBob 0.45s ease-in-out infinite; }
@keyframes santaTrackBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .santa-track-run, .santa-track-bob { animation: none; } }

/* prose whitespace for light descriptions */
.ws-pre { white-space: pre-line; }

/* Leaflet Santa map */
.sr-map { height: 420px; width: 100%; background: #0e2430; z-index: 0; }
@media (max-width: 640px) { .sr-map { height: 320px; } }
.leaflet-container { font: inherit; }
.sr-pin { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 9999px; background: #f4f1e8; color: #0e2430; font-weight: 700; font-size: 11px; border: 2px solid #0e2430; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.sr-pin.done { background: #f6d45a; }
.sr-pin.here { background: #9be564; width: 28px; height: 28px; margin: -2px 0 0 -2px; }
.sr-santa { background: none; border: none; }
.sr-santa svg { filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.leaflet-control-attribution { background: rgba(14,36,48,.8) !important; color: #9fb6bd !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #9be564 !important; }
.leaflet-bar a { background: #14303d !important; color: #eef5f2 !important; border-color: #0e2430 !important; }
@media (prefers-reduced-motion: reduce) { .santa-bob { animation: none; } }
/* dark-filter OSM tiles to match the night theme */
.leaflet-tile-pane .leaflet-tile { filter: invert(0.94) hue-rotate(185deg) brightness(0.82) contrast(0.92) saturate(0.35); }

/* map fills its panel on desktop */
.sr-photo { background: linear-gradient(135deg, #14303d, #0e2430); }
@media (min-width: 1024px) {
  .sr-mapwrap { min-height: 480px; }
  .sr-mapwrap .sr-map { position: absolute; inset: 0; height: auto; }
}
/* marker clusters */
.sr-cluster { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9999px; background: #14303d; color: #9be564; font-weight: 700; font-size: 13px; border: 2px solid #9be564; box-shadow: 0 1px 6px rgba(0,0,0,.5); }
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform 0.25s ease-out, opacity 0.25s ease-in; }
