/* ===== Seasonal 3D Christmas decorations (xmas-decor.js) ===== */
.xd-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 35; pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(110,75,40,.75)) drop-shadow(0 1px 2px rgba(110,75,40,.35)); }
.xd-baubles { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 4; pointer-events: none; perspective: 600px; }
.xd-b { position: absolute; top: 34px; transform-origin: 50% 0; animation: xd-swing 3.6s ease-in-out infinite alternate; animation-delay: var(--dl); transform-style: preserve-3d; }
.xd-r { animation-direction: alternate-reverse; }
.xd-str { display: block; width: 1px; height: var(--len); margin: 0 auto; background: linear-gradient(#f2c58a, rgba(242,197,138,.45)); }
.xd-ball { position: relative; display: block; width: 38px; height: 38px; margin-left: calc(50% - 19px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 6%, transparent 22%),
              radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, #000) 100%);
  box-shadow: inset -6px -8px 14px rgba(0,0,0,.45), 0 10px 22px rgba(0,0,0,.45), 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.xd-sm .xd-ball { width: 28px; height: 28px; margin-left: calc(50% - 14px); }
.xd-cap { position: absolute; left: 50%; top: -6px; width: 10px; height: 8px; margin-left: -5px; border-radius: 2px 2px 3px 3px;
  background: linear-gradient(90deg, #8a5a1e, #f6dc9c 45%, #a8742a); }
.xd-glint { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.xd-glint::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: xd-glint 5s ease-in-out infinite; animation-delay: var(--dl); }
.xd-star { width: 46px; height: 46px; margin: 0 auto .4rem; animation: xd-star 6s linear infinite; filter: drop-shadow(0 0 10px rgba(242,197,138,.75)); transform-style: preserve-3d; }
.xd-star svg { width: 100%; height: 100%; }
@keyframes xd-swing { from { transform: rotateZ(-7deg) rotateX(6deg); } to { transform: rotateZ(7deg) rotateX(-6deg); } }
@keyframes xd-glint { 0%, 60% { left: -40%; } 85%, 100% { left: 120%; } }
@keyframes xd-star { to { transform: perspective(300px) rotateY(360deg); } }
@media (max-width: 640px) {
  .xd-in-xmas .xd-b:nth-child(3), .xd-in-xmas .xd-b:nth-child(6) { display: none; }
  .xd-in-xmas .xd-l { left: 3% !important; } .xd-in-xmas .xd-b:nth-child(2) { left: 13% !important; }
  .xd-in-xmas .xd-r { right: 3% !important; } .xd-in-xmas .xd-b:nth-child(5) { right: 13% !important; }
  .xd-in-xmas .xd-ball { width: 28px; height: 28px; margin-left: calc(50% - 14px); }
  .xd-in-xmas .xd-str { height: calc(var(--len) * .45) !important; }
}
@media (prefers-reduced-motion: reduce) { .xd-b, .xd-star, .xd-glint::after { animation: none; } }

/* site-wide placement */
.xd-host { position: relative; }
header.sticky.xd-host { position: sticky; }
.xd-in-sec .xd-b { top: 0; }
.xd-in-header { top: 100%; }
.xd-in-header .xd-b { top: 4px; }
.xd-in-header .xd-ball { width: 24px; height: 24px; margin-left: calc(50% - 12px); }
.xd-in-header .xd-sm .xd-ball { width: 18px; height: 18px; margin-left: calc(50% - 9px); }
.xd-in-sec .xd-ball { width: 34px; height: 34px; margin-left: calc(50% - 17px); }
.xd-in-sec .xd-sm .xd-ball { width: 25px; height: 25px; margin-left: calc(50% - 12.5px); }
.xd-lights { position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; display: flex; justify-content: space-around; pointer-events: none; z-index: 2; }
.xd-lights::before { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 1px; background: rgba(40,80,55,.55); }
.xd-lights i { position: relative; top: 2px; width: 7px; height: 10px; border-radius: 50% 50% 45% 45%; background: var(--b);
  box-shadow: 0 0 8px var(--b), 0 0 14px var(--b); animation: xd-twinkle 2.2s ease-in-out infinite; animation-delay: var(--t); }
.xd-lights i::before { content: ''; position: absolute; top: -3px; left: 1.5px; width: 4px; height: 4px; background: #3b4a3f; border-radius: 1px; }
.xd-corner-star { position: absolute; top: 1.4rem; pointer-events: none; z-index: 3; opacity: .9; }
.xd-corner-star.xd-l { left: 3%; } .xd-corner-star.xd-r { right: 3%; }
.xd-corner-star .xd-star { width: 30px; height: 30px; margin: 0; }
@keyframes xd-twinkle { 0%, 100% { opacity: 1; filter: brightness(1.15); } 50% { opacity: .35; filter: brightness(.7); } }
@media (max-width: 640px) {
  .xd-in-sec .xd-b:nth-child(2) { display: none; }
  .xd-in-sec .xd-str { height: 14px !important; }
  .xd-in-sec .xd-l { left: 1.5% !important; } .xd-in-sec .xd-r { right: 1.5% !important; }
  .xd-corner-star { top: .6rem; }
  .xd-in-sec .xd-ball { width: 24px; height: 24px; margin-left: calc(50% - 12px); }
  .xd-in-header .xd-b:nth-child(2), .xd-in-header .xd-b:nth-child(4) { display: none; }
  .xd-corner-star .xd-star { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .xd-lights i { animation: none; } }

/* booking page: keep the heading clear */
.booking-page .xd-in-header .xd-b:nth-child(2), .booking-page .xd-in-header .xd-b:nth-child(4) { display: none; }
.booking-page .xd-corner-star.xd-r { right: 1%; }
@media (max-width: 640px) { .booking-page .xd-in-header .xd-str { height: 6px !important; } .booking-page .xd-in-header .xd-l { left: .5% !important; } .booking-page .xd-in-header .xd-r { right: .5% !important; } }

/* ===== more red ===== */
.xd-lights::before { display: none; }
.xd-ribbon { position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; pointer-events: none; z-index: 1;
  background: linear-gradient(#ef3b52, #c8102e 55%, #7d0a1c); box-shadow: 0 2px 6px rgba(125,10,28,.35); }
.xd-lights { bottom: -11px; }
.xd-bow { position: absolute; left: 50%; bottom: -30px; width: 64px; margin-left: -32px; z-index: 3; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(90,10,20,.35)); transform-origin: 50% 30%; animation: xd-bow 4s ease-in-out infinite; }
.xd-bow svg { display: block; width: 100%; }
.xd-holly { width: 70px; animation: xd-holly 5s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(0,0,0,.18)); transform-origin: 50% 60%; }
.xd-holly svg { display: block; width: 100%; }
@keyframes xd-bow { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.04); } }
@keyframes xd-holly { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-2px); } }
.xd-snow { filter: drop-shadow(0 0 1px rgba(125,30,35,.6)) drop-shadow(0 1px 2px rgba(125,30,35,.3)); }
@media (max-width: 640px) { .xd-bow { width: 46px; margin-left: -23px; bottom: -24px; } .xd-holly { width: 46px; } }
@media (prefers-reduced-motion: reduce) { .xd-bow, .xd-holly { animation: none; } }

/* ===== scroll-reactive garland ===== */
.xd-garland { position: absolute !important; left: 0; right: 0; top: 100%; height: 0; z-index: 3; pointer-events: none; }
.xd-garland.xd-fixed { position: fixed !important; top: 8px; z-index: 45; }
.xd-garland .xd-ribbon { position: absolute; left: 0; top: -12px; width: 100%; height: 44px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(125,10,28,.3)); }
.xd-garland .xd-lights { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: 0; display: block; }
.xd-garland .xd-lights i { position: absolute; top: 0; will-change: transform; }
.xd-garland .xd-bow { position: absolute; top: -10px; bottom: auto; left: 50%; will-change: transform; animation: none; }
.xd-garland .xd-in-header { top: 0; }
.xd-garland .xd-in-header .xd-b { top: 2px; }
@media (max-width: 640px) { .xd-garland .xd-bow { top: -8px; } }
.xd-garland .xd-ribbon { background: none; box-shadow: none; bottom: auto; right: auto; }

/* ===== pine garland swags ===== */
.xd-swag { position: absolute; left: 0; right: 0; top: -14px; height: 0; z-index: 4; pointer-events: none; }
.xd-swag svg { position: absolute; left: 0; top: 0; display: block; overflow: visible; filter: drop-shadow(0 6px 6px rgba(40,25,10,.22));
  transform-origin: 50% 0; animation: xd-sway 6s ease-in-out infinite; }
.xd-swag-bow { position: absolute; top: -6px; width: 46px; margin-left: -23px; z-index: 2; filter: drop-shadow(0 3px 4px rgba(90,10,20,.35));
  transform-origin: 50% 30%; animation: xd-bow 4s ease-in-out infinite; }
.xd-swag-bow:nth-child(odd) { animation-delay: -1.7s; }
.xd-swag-bow svg { display: block; width: 100%; }
.xd-swag .xd-swag-drop { position: absolute; margin-left: 0; translate: -50% 0; rotate: calc(var(--xd-amp, 0) * 1.4deg); transition: rotate .2s; }
.xd-swag .xd-ball { width: 30px; height: 30px; margin-left: calc(50% - 15px); }
.xd-swag .xd-sm .xd-ball { width: 22px; height: 22px; margin-left: calc(50% - 11px); }
@keyframes xd-sway { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.06) translateY(1px); } }
footer.xd-host, .booking-page main.xd-host { position: relative; }
.booking-page main > .xd-swag { top: -26px; }
@media (max-width: 640px) { .xd-swag-bow { width: 34px; margin-left: -17px; } .xd-swag .xd-ball { width: 22px; height: 22px; margin-left: calc(50% - 11px); } .xd-swag .xd-sm .xd-ball { width: 17px; height: 17px; margin-left: calc(50% - 8.5px); } }

/* ===== floating side ornaments ===== */
.xd-float-layer { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; pointer-events: none; z-index: 30; }
.xd-float { position: absolute; width: 56px; animation: xd-bob 6s ease-in-out infinite; animation-delay: var(--dl); will-change: translate; }
.xd-fl { left: max(10px, calc((100vw - 1280px) / 4 - 28px)); }
.xd-fr { right: max(10px, calc((100vw - 1280px) / 4 - 28px)); }
.xd-float > * { margin: 0 auto; }
.xd-float .xd-star { width: 40px; height: 40px; }
.xd-float .xd-holly { width: 60px; }
.xd-float .xd-solo { position: relative; top: 0; display: block; animation: xd-spin3d 7s linear infinite; }
.xd-float .xd-solo .xd-ball { width: 40px; height: 40px; margin-left: calc(50% - 20px); }
.xd-cane { display: block; width: 30px; height: 68px; animation: xd-spin3d 8s linear infinite; filter: drop-shadow(0 6px 6px rgba(80,20,20,.25)); }
.xd-gift { position: relative; width: 34px; height: 34px; transform-style: preserve-3d; animation: xd-cube 9s linear infinite; }
.xd-gf { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 42%, var(--r) 42% 58%, transparent 58%), var(--g); box-shadow: inset 0 0 10px rgba(0,0,0,.28); }
.xd-gf.xd-t, .xd-gf.xd-bt { background: linear-gradient(90deg, transparent 42%, var(--r) 42% 58%, transparent 58%), linear-gradient(transparent 42%, var(--r) 42% 58%, transparent 58%), var(--g); }
.xd-f { transform: translateZ(17px); } .xd-bk { transform: rotateY(180deg) translateZ(17px); }
.xd-l { } .xd-gf.xd-l { transform: rotateY(-90deg) translateZ(17px); } .xd-rt { transform: rotateY(90deg) translateZ(17px); }
.xd-t { transform: rotateX(90deg) translateZ(17px); } .xd-bt { transform: rotateX(-90deg) translateZ(17px); }
.xd-t::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50% 0 50% 0;
  border: 4px solid var(--r); transform: rotate(45deg); }
@keyframes xd-cube { from { transform: perspective(400px) rotateX(-22deg) rotateY(0); } to { transform: perspective(400px) rotateX(-22deg) rotateY(360deg); } }
@keyframes xd-spin3d { 0%,100% { transform: perspective(300px) rotateY(-35deg) rotateZ(-6deg); } 50% { transform: perspective(300px) rotateY(35deg) rotateZ(6deg); } }
@keyframes xd-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 640px) {
  .xd-float { width: 40px; opacity: .95; } .xd-fl { left: -4px; } .xd-fr { right: -4px; }
  .xd-float .xd-solo .xd-ball { width: 28px; height: 28px; margin-left: calc(50% - 14px); }
  .xd-gift { width: 24px; height: 24px; } .xd-f, .xd-gf.xd-l, .xd-rt, .xd-t, .xd-bt, .xd-bk { --z: 12px; }
  .xd-f { transform: translateZ(12px); } .xd-bk { transform: rotateY(180deg) translateZ(12px); } .xd-gf.xd-l { transform: rotateY(-90deg) translateZ(12px); }
  .xd-rt { transform: rotateY(90deg) translateZ(12px); } .xd-t { transform: rotateX(90deg) translateZ(12px); } .xd-bt { transform: rotateX(-90deg) translateZ(12px); }
  .xd-t::after { width: 14px; height: 14px; margin: -7px; border-width: 3px; }
  .xd-cane { width: 22px; height: 50px; } .xd-float .xd-star { width: 28px; height: 28px; } .xd-float .xd-holly { width: 42px; }
}
@media (prefers-reduced-motion: reduce) { .xd-swag svg, .xd-swag-bow, .xd-float, .xd-gift, .xd-cane, .xd-float .xd-solo { animation: none; } }
