/* Festive touches for Little Outings Australia, 1 Nov to 25 Dec 2026.
   Turned on by the xmas class on <html>, set by xmas.js.
   Remove xmas.js and this file, or use ?theme=normal, to disable.
   Use ?theme=xmas to preview. */

html.xmas .xmas-decor { display: block; pointer-events: none; }
html.xmas .xmas-hat { display: block; }

.xmas-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* A little Santa hat perched on the wagon illustration. */
.xmas-hat {
  position: absolute;
  top: -6px;
  right: 6px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(47, 111, 106, 0.25));
}

/* Fairy lights along the hill band. */
.xmas-lights {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 18px;
  height: 14px;
  background-image: radial-gradient(circle, #F4C542 0 2.5px, transparent 3px),
    radial-gradient(circle, #E85A4F 0 2.5px, transparent 3px),
    radial-gradient(circle, #FFFAF0 0 2.2px, transparent 2.8px),
    radial-gradient(circle, #7FB49A 0 2.5px, transparent 3px);
  background-size: 48px 14px, 48px 14px, 48px 14px, 48px 14px;
  background-position: 0 4px, 12px 1px, 24px 5px, 36px 2px;
  background-repeat: repeat-x;
  opacity: 0.9;
}
html.motion.xmas .xmas-lights {
  animation: xmas-twinkle 2.8s ease-in-out infinite;
}

@keyframes xmas-twinkle {
  0%, 100% { opacity: 0.55; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.25); }
}

/* A few soft snowflakes in the hero sky. */
.xmas-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.xmas-flake {
  position: absolute;
  top: -16px;
  width: 7px;
  height: 7px;
  background: #FFFAF0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.4);
  opacity: 0.85;
  pointer-events: none;
}
html.motion.xmas .xmas-flake {
  animation: xmas-fall linear infinite;
}
@keyframes xmas-fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0.9; }
  100% { transform: translate3d(18px, 110vh, 0); opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
  html.xmas .xmas-lights,
  html.motion.xmas .xmas-lights,
  html.motion.xmas .xmas-flake {
    animation: none !important;
    filter: none;
    opacity: 0.85;
  }
  html.xmas .xmas-flake {
    top: 12%;
  }
}
