/* Seasonal campaign popup and hero badge. Each campaign sets its palette on the
   variables below; layout is shared. */

.seasonal-popup {
  --sc-bg: #fdf6e3;
  --sc-text: #1a3c4e;
  --sc-muted: #5b6b73;
  --sc-accent: #e67e22;
  --sc-cta-bg: #e67e22;
  --sc-cta-text: #fff;
  --sc-cta-hover: #c96a14;

  position: fixed;
  left: 24px;
  bottom: 24px;
  /* Above the top bar and action bar; the booking sheet is a dialog in the
     top layer, so it always covers this. */
  z-index: 60;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 22px 22px 20px;
  background: var(--sc-bg);
  color: var(--sc-text);
  border-top: 3px solid var(--sc-accent);
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  animation: seasonal-popup-in 0.45s ease-out;
}

@keyframes seasonal-popup-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.seasonal-popup__kicker {
  margin-bottom: 8px;
  color: var(--sc-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.seasonal-popup__title {
  margin: 0 28px 8px 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.seasonal-popup__desc {
  margin-bottom: 18px;
  color: var(--sc-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.seasonal-popup__cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--sc-cta-bg);
  color: var(--sc-cta-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.seasonal-popup__cta:hover,
.seasonal-popup__cta:focus-visible {
  background: var(--sc-cta-hover);
}

.seasonal-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--sc-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.seasonal-popup__close:hover,
.seasonal-popup__close:focus-visible {
  color: var(--sc-text);
}

/* Black Friday: black and gold */
.seasonal-popup--blackfriday {
  --sc-bg: #111;
  --sc-text: #f5f1e8;
  --sc-muted: #b9b3a6;
  --sc-accent: #c9a45c;
  --sc-cta-bg: #c9a45c;
  --sc-cta-text: #111;
  --sc-cta-hover: #dcbb78;
}

/* Christmas: pine green, cranberry button */
.seasonal-popup--christmas {
  --sc-bg: #16362b;
  --sc-text: #f7f2e7;
  --sc-muted: #c3d0c8;
  --sc-accent: #e3c27a;
  --sc-cta-bg: #b3262e;
  --sc-cta-text: #fff;
  --sc-cta-hover: #c9333b;
}

/* New Year: the site's navy with gold */
.seasonal-popup--newyear {
  --sc-bg: #1a3c4e;
  --sc-text: #f7f2e7;
  --sc-muted: #c2d0d7;
  --sc-accent: #e3c27a;
  --sc-cta-bg: #e3c27a;
  --sc-cta-text: #1a3c4e;
  --sc-cta-hover: #efd398;
}

/* Hero badge, inside the isolated hero stacking context */
.seasonal-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.88);
  color: #e3c27a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.seasonal-hero--christmas .seasonal-badge {
  background: rgba(22, 54, 43, 0.9);
}

.seasonal-hero--newyear .seasonal-badge {
  background: rgba(26, 60, 78, 0.9);
}

/* Light snowfall over the hero photo */
.seasonal-snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 120px 80px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(3px 3px at 200px 150px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(2px 2px at 280px 40px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(3px 3px at 60px 200px, rgba(255, 255, 255, 0.7), transparent);
  background-size: 320px 240px;
  animation: seasonal-snow-fall 14s linear infinite;
  opacity: 0.75;
}

@keyframes seasonal-snow-fall {
  from { background-position: 0 0; }
  to { background-position: 40px 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .seasonal-popup { animation: none; }
  .seasonal-snow { animation: none; }
}

@media (max-width: 600px) {
  .seasonal-popup {
    left: 12px;
    right: 12px;
    bottom: calc(var(--actionbar, 0px) + 12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    padding: 18px 16px 16px;
  }

  .seasonal-popup__title {
    font-size: 1.15rem;
  }

  .seasonal-popup__desc {
    margin-bottom: 14px;
    font-size: 0.9rem;
  }

  .seasonal-badge {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    font-size: 0.7rem;
  }
}

/* Inside the hero text block the badge flows above the name. */
[data-seasonal-slot] .seasonal-badge {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}

/* Below 1024px the sticky booking bar is shown, so the popup sits above it. */
@media (max-width: 1023px) {
  .seasonal-popup {
    bottom: calc(var(--actionbar, 0px) + 12px + env(safe-area-inset-bottom));
  }
}
