/* ==========================================================
   Seasonal decorations · Sitges Lounge Apartments
   Christmas (until 27 Dec 2026) · New Year (28 Dec 2026 – 6 Jan 2027)
   All elements are created by /seasonal.js; nothing here
   affects the page unless a seasonal theme is active.
   ========================================================== */

.sla-s-layer, .sla-s-lights, .sla-s-hang { pointer-events: none; }

/* ---------- Particle canvas (snow / confetti) ---------- */
.sla-s-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 998;               /* below nav (1000), modal & splash (9999) */
}

/* ---------- Top string of lights (Christmas) ---------- */
.sla-s-lights {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 26px;
  z-index: 1002;
  overflow: hidden;
}
.sla-s-lights svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sla-s-lights .wire { fill: none; stroke: rgba(30, 48, 38, .85); stroke-width: 1.3; }
.sla-s-lights .bulb { transform-box: fill-box; transform-origin: 50% 0; animation: sla-s-twinkle 3.2s ease-in-out infinite; }
.sla-s-lights .cap  { fill: #2b3a30; }
@keyframes sla-s-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ---------- Top gold ribbon (New Year) ---------- */
.sla-s-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1002;
  pointer-events: none;
  background: linear-gradient(90deg, #b8893b, #f3dfa2 20%, #d4a574 40%, #fff3cf 50%, #d4a574 60%, #f3dfa2 80%, #b8893b);
  background-size: 200% 100%;
  animation: sla-s-shimmer 6s linear infinite;
  box-shadow: 0 0 10px rgba(243, 223, 162, .55);
}
@keyframes sla-s-shimmer { to { background-position: -200% 0; } }

/* ---------- Hanging 3D ornaments in the hero (desktop) ---------- */
.sla-s-hang {
  position: absolute;
  top: 78px;                  /* hang from just below the navigation bar */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: sla-s-sway 6s ease-in-out infinite;
  pointer-events: none;
}
.sla-s-hang::before {
  content: "";
  width: 1.5px;
  height: var(--len, 160px);
  background: linear-gradient(to bottom, rgba(243, 223, 162, 0), rgba(243, 223, 162, .9));
}
.sla-s-hang img { display: block; width: var(--size, 64px); height: auto; margin-top: -4px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.sla-s-hang--l1 { left: 3%;   --len: 60px; --size: 66px; animation-delay: -1s; }
.sla-s-hang--l2 { left: 8.2%; --len: 135px; --size: 46px; animation-delay: -3.5s; }
.sla-s-hang--r1 { right: 3.2%; --len: 95px; --size: 66px; animation-delay: -2.2s; }
.sla-s-hang--r2 { right: 8.4%; --len: 30px; --size: 46px; animation-delay: -4.6s; }
@keyframes sla-s-sway {
  0%, 100% { transform: rotate(2.2deg); }
  50%      { transform: rotate(-2.2deg); }
}

/* New Year: floating "2027" balloons + firework in the hero (desktop) */
.sla-s-float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: sla-s-bob 5.5s ease-in-out infinite;
}
.sla-s-float img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.sla-s-float--balloons { right: 3%; top: 105px; width: 190px; }
.sla-s-float--balloons::after {
  content: ""; position: absolute; left: 50%; top: 92%; width: 1.5px; height: 120px;
  background: linear-gradient(to bottom, rgba(243, 223, 162, .9), rgba(243, 223, 162, 0));
}
.sla-s-float--fw { left: 4%; top: 120px; width: 96px; animation: sla-s-pop 4.5s ease-in-out infinite; }
@keyframes sla-s-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes sla-s-pop { 0%, 100% { transform: scale(.94) rotate(-4deg); } 50% { transform: scale(1.04) rotate(4deg); } }
@media (max-width: 1099px) { .sla-s-float--balloons { width: 150px; } .sla-s-float--fw { width: 80px; } }
@media (max-width: 899px) {
  .sla-s-hang, .sla-s-float--fw { display: none; }
  /* small "2027" balloons centred in the empty space under the hero icons */
  .sla-s-float--balloons { top: auto; right: auto; left: 50%; bottom: 42px; width: 118px; margin-left: -59px; }
  .sla-s-float--balloons::after { display: none; }
}
@media (min-width: 540px) and (max-width: 899px) { .sla-s-float--balloons { display: none; } }

/* ---------- Seasonal 3D icons next to the site's own icons ---------- */
.hero__icons img.sla-s-icon { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.28)); }
@media (max-width: 767px) { .hero__icons img.sla-s-icon { width: 44px; height: 44px; } }
.sla-s-hatwrap { position: relative; display: inline-block; line-height: 0; vertical-align: inherit; }
.sla-s-hatwrap > img.sla-s-hat,
.hero__icons .sla-s-hatwrap > img.sla-s-hat {
  position: absolute;
  width: 72%;
  height: auto;
  top: -38%;
  left: 34%;
  transform: rotate(22deg);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25));
  pointer-events: none;
}
.sla-s-accent { display: inline-block; height: 1.05em; width: auto; vertical-align: -0.12em; margin-left: .35em; transform: rotate(14deg); filter: drop-shadow(0 3px 6px rgba(0,0,0,.2)); }

/* ---------- Greeting banner ---------- */
.sla-s-banner {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 990;               /* below nav / mobile menu / modals */
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s ease;
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: calc(100vw - 24px);
  padding: .7rem .7rem .7rem 1.15rem;
  border-radius: 999px;
  background: rgba(13, 27, 42, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 165, 116, .55);
  box-shadow: 0 14px 36px rgba(13, 27, 42, .35);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: auto;
  box-sizing: border-box;
}
.sla-s-banner--in { transform: translate(-50%, 0); opacity: 1; }
.sla-s-banner__icon { flex: 0 0 auto; width: 38px; height: 38px; object-fit: contain; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.sla-s-banner__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sla-s-banner__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: .2px;
  color: #fff;
}
.sla-s-banner__title b { font-style: normal; font-weight: 700; color: #f3dfa2; }
.sla-s-banner__sub {
  margin-top: .2rem;
  font-size: .72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #e9cf9b;
  font-variant-numeric: tabular-nums;
}
.sla-s-banner__close {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  margin-left: .2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.sla-s-banner__close:hover, .sla-s-banner__close:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }

.sla-s-nye .sla-s-banner {
  background: linear-gradient(135deg, rgba(13, 27, 42, .9), rgba(27, 40, 56, .9));
  border-color: rgba(243, 223, 162, .7);
}

@media (max-width: 600px) {
  .sla-s-banner { gap: .6rem; padding: .55rem .55rem .55rem .9rem; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); border-radius: 18px; }
  .sla-s-banner__title { font-size: 1.08rem; }
  .sla-s-banner__sub { font-size: .64rem; letter-spacing: 1.2px; }
  .sla-s-banner__text { flex: 1 1 auto; }
  .sla-s-lights { height: 20px; }
}

/* Rotating banner text (EN · NL · ES · FR) */
.sla-s-banner .sla-s-fade { transition: opacity .45s ease; }
.sla-s-banner--fading .sla-s-fade { opacity: 0; }

/* ---------- Reduced motion: keep it static ---------- */
@media (prefers-reduced-motion: reduce) {
  .sla-s-lights .bulb, .sla-s-hang, .sla-s-float, .sla-s-ribbon { animation: none !important; }
  .sla-s-banner { transition: opacity .3s ease; }
  .sla-s-banner .sla-s-fade { transition: none; }
}

@media print {
  .sla-s-layer, .sla-s-lights, .sla-s-ribbon, .sla-s-hang, .sla-s-float, .sla-s-banner { display: none !important; }
}
