/* Holiday decoration. Layout is shared. Each theme only changes the wash, the ground, and its own pieces.
   The map and controls are not restyled. Art never sits under text. */

html.theme-holiday {
  --holiday-scene-h: 176px;
  --holiday-ground: #241833;
}

html.theme-new-year {
  --holiday-ground: #10182e;
}
html.theme-mlk {
  --holiday-ground: #243044;
}
html.theme-valentines {
  --holiday-ground: #2a1520;
}
html.theme-presidents {
  --holiday-ground: #14243c;
}
html.theme-st-patricks {
  --holiday-ground: #123224;
}
html.theme-easter {
  --holiday-ground: #2a2030;
}
html.theme-memorial {
  --holiday-ground: #1a2744;
}
html.theme-independence {
  --holiday-ground: #10182e;
}
html.theme-labor {
  --holiday-ground: #1c2834;
}
html.theme-halloween {
  --holiday-ground: #241833;
}
html.theme-veterans {
  --holiday-ground: #1a2744;
}
html.theme-thanksgiving {
  --holiday-ground: #2a1810;
}
html.theme-christmas {
  --holiday-ground: #162028;
}

html.theme-new-year .header {
  background-color: #0e1428 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(242, 193, 78, 0.28), transparent 62%),
    linear-gradient(180deg, #0e1428 0%, #14110e 100%) !important;
}
html.theme-mlk .header {
  background-color: #1a2744 !important;
  background-image:
    radial-gradient(55% 130% at 82% 120%, rgba(242, 193, 78, 0.22), transparent 60%),
    linear-gradient(180deg, #1a2744 0%, #14110e 100%) !important;
}
html.theme-valentines .header {
  background-color: #1c1016 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(255, 122, 162, 0.28), transparent 62%),
    linear-gradient(180deg, #1c1016 0%, #14110e 100%) !important;
}
html.theme-presidents .header {
  background-color: #0e1a33 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(192, 57, 43, 0.22), transparent 62%),
    linear-gradient(180deg, #0e1a33 0%, #14110e 100%) !important;
}
html.theme-st-patricks .header {
  background-color: #0c1a12 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(61, 190, 106, 0.28), transparent 62%),
    linear-gradient(180deg, #0c1a12 0%, #14110e 100%) !important;
}
html.theme-easter .header {
  background-color: #1a1420 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(255, 183, 200, 0.22), transparent 62%),
    linear-gradient(180deg, #1a1420 0%, #14110e 100%) !important;
}
html.theme-memorial .header {
  background-color: #1a2744 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(192, 57, 43, 0.2), transparent 62%),
    linear-gradient(180deg, #1a2744 0%, #14110e 100%) !important;
}
html.theme-independence .header {
  background-color: #0e1428 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(126, 182, 255, 0.28), transparent 62%),
    linear-gradient(180deg, #0e1428 0%, #14110e 100%) !important;
}
html.theme-labor .header {
  background-color: #141c28 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(255, 176, 32, 0.18), transparent 62%),
    linear-gradient(180deg, #141c28 0%, #14110e 100%) !important;
}
html.theme-halloween .header {
  background-color: #16111c !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(140, 80, 200, 0.28), transparent 62%),
    linear-gradient(180deg, #1c1428 0%, #14110e 100%) !important;
}
html.theme-veterans .header {
  background-color: #1a2744 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(242, 193, 78, 0.2), transparent 62%),
    linear-gradient(180deg, #1a2744 0%, #14110e 100%) !important;
}
html.theme-thanksgiving .header {
  background-color: #24160f !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(224, 122, 47, 0.28), transparent 62%),
    linear-gradient(180deg, #24160f 0%, #14110e 100%) !important;
}
html.theme-christmas .header {
  background-color: #141c22 !important;
  background-image:
    radial-gradient(60% 140% at 78% -40%, rgba(31, 122, 77, 0.28), transparent 62%),
    linear-gradient(180deg, #141c22 0%, #14110e 100%) !important;
}

html.theme-holiday .holiday-header-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto;
  right: 120px;
  width: 280px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

html.theme-holiday .brand,
html.theme-holiday .header-right {
  position: relative;
  z-index: 2;
}

html.theme-holiday .holiday-header-art,
html.theme-holiday .holiday-header-art *,
html.theme-holiday .holiday-list-scene,
html.theme-holiday .holiday-list-scene * {
  pointer-events: none !important;
}

html.theme-holiday .list-section {
  position: relative;
}

html.theme-holiday .list-section:not(:has(.place-card)) {
  padding-bottom: calc(var(--holiday-scene-h) + var(--safe-bottom)) !important;
}

html.theme-holiday .list-header,
html.theme-holiday .place-list,
html.theme-holiday .first-search-notice,
html.theme-holiday .deal-note,
html.theme-holiday .name-search,
html.theme-holiday .deal-rail-wrap {
  position: relative;
  z-index: 1;
}

html.theme-holiday .holiday-list-scene {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: var(--safe-bottom);
  height: var(--holiday-scene-h);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
}

html.theme-holiday .list-section:has(.place-card) .holiday-list-scene {
  display: none;
}

html.theme-holiday .holiday-list-scene::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: var(--holiday-ground);
  pointer-events: none;
}

html.theme-holiday .hh-a {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
}
html.theme-holiday .hh-b {
  position: absolute;
  top: 8px;
  left: 52px;
  width: 48px;
  height: 32px;
}
html.theme-holiday .hh-c {
  position: absolute;
  top: 2px;
  left: 108px;
  width: 40px;
  height: 40px;
}
html.theme-holiday .hh-d {
  position: absolute;
  bottom: -2px;
  left: 156px;
  width: 52px;
  height: 50px;
}
html.theme-holiday .hh-e {
  position: absolute;
  bottom: 2px;
  left: 214px;
  width: 46px;
  height: 44px;
}
html.theme-holiday .hh-f {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
html.theme-holiday .hh-g {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 18px;
}

html.theme-holiday .hl-a {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 72px;
  height: 72px;
}
html.theme-holiday .hl-b {
  position: absolute;
  left: 100px;
  top: 16px;
  width: 88px;
  height: 56px;
}
html.theme-holiday .hl-c {
  position: absolute;
  left: 42%;
  bottom: 22px;
  width: 78px;
  height: 70px;
}
html.theme-holiday .hl-d {
  position: absolute;
  right: 86px;
  bottom: 8px;
  width: 92px;
  height: 84px;
}
html.theme-holiday .hl-e {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 68px;
  height: 64px;
}
html.theme-holiday .hl-f {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

html.theme-halloween .hh-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
html.theme-halloween .hh-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 16px;
}
html.theme-halloween .hh-moon {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
}
html.theme-halloween .hh-bat-a {
  position: absolute;
  top: 10px;
  left: 48px;
  width: 44px;
  height: 18px;
}
html.theme-halloween .hh-bat-b {
  position: absolute;
  top: 4px;
  left: 96px;
  width: 30px;
  height: 14px;
}
html.theme-halloween .hh-ghost {
  position: absolute;
  bottom: 8px;
  left: 132px;
  width: 28px;
  height: 34px;
}
html.theme-halloween .hh-pumpkin-a {
  position: absolute;
  bottom: -4px;
  left: 164px;
  width: 52px;
  height: 50px;
}
html.theme-halloween .hh-pumpkin-b {
  position: absolute;
  bottom: 2px;
  left: 218px;
  width: 40px;
  height: 38px;
}
html.theme-halloween .hh-glow {
  opacity: 0.4;
}

html.theme-halloween .hl-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  width: 100%;
  height: 42px;
}
html.theme-halloween .hl-moon {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 64px;
  height: 64px;
}
html.theme-halloween .hl-bat-a {
  position: absolute;
  left: 84px;
  top: 22px;
  width: 52px;
  height: 22px;
}
html.theme-halloween .hl-bat-b {
  position: absolute;
  left: 148px;
  top: 8px;
  width: 36px;
  height: 16px;
}
html.theme-halloween .hl-ghost {
  position: absolute;
  left: 46%;
  bottom: 28px;
  width: 42px;
  height: 52px;
}
html.theme-halloween .hl-pumpkin-a {
  position: absolute;
  right: 72px;
  bottom: 4px;
  width: 74px;
  height: 70px;
}
html.theme-halloween .hl-pumpkin-b {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 54px;
  height: 50px;
}

html.theme-holiday .is-float {
  animation: rb-float 3.6s ease-in-out infinite;
}
html.theme-holiday .is-burst {
  animation: rb-burst 2.2s ease-in-out infinite;
  transform-origin: center;
}
html.theme-holiday .is-snow {
  animation: rb-snow 7s linear infinite;
}
html.theme-holiday .is-d2 {
  animation-delay: -1.5s;
}
html.theme-holiday .is-d3 {
  animation-delay: -2.8s;
}
html.theme-halloween .hh-bat,
html.theme-halloween .hl-bat {
  animation: rb-bat-float 3.8s ease-in-out infinite;
}
html.theme-halloween .hh-bat-b,
html.theme-halloween .hl-bat-b {
  animation-duration: 4.6s;
  animation-delay: -1.1s;
}
html.theme-halloween .hh-glow {
  animation: rb-pumpkin-glow 2.8s ease-in-out infinite;
}

@keyframes rb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}
@keyframes rb-burst {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes rb-snow {
  0% {
    transform: translate3d(0, -8px, 0);
  }
  100% {
    transform: translate3d(0, 18px, 0);
  }
}
@keyframes rb-bat-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}
@keyframes rb-pumpkin-glow {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.62;
  }
}

@media (max-width: 767px) {
  html.theme-holiday {
    --holiday-scene-h: 48px;
  }
  html.theme-holiday .holiday-list-scene {
    opacity: 0.4;
  }
  html.theme-holiday .hl-b,
  html.theme-holiday .hl-c,
  html.theme-holiday .hl-e {
    display: none;
  }
  html.theme-holiday .hl-a {
    left: auto;
    right: 4px;
    top: 2px;
    width: 32px;
    height: 32px;
  }
  html.theme-holiday .hl-d {
    right: auto;
    left: 8px;
    bottom: 0;
    width: 44px;
    height: 40px;
  }
  html.theme-holiday .holiday-header-art {
    right: 92px;
    width: 104px;
  }
  html.theme-holiday .hh-c,
  html.theme-holiday .hh-e,
  html.theme-holiday .hh-g {
    display: none;
  }
  html.theme-holiday .hh-a {
    left: auto;
    right: 0;
    top: 2px;
    width: 30px;
    height: 30px;
  }
  html.theme-holiday .hh-b {
    left: 0;
    top: 8px;
    width: 34px;
    height: 22px;
  }
  html.theme-holiday .hh-d {
    left: 36px;
    bottom: 0;
    width: 34px;
    height: 32px;
  }

  html.theme-halloween .hl-bat-b,
  html.theme-halloween .hl-ghost,
  html.theme-halloween .hl-skyline,
  html.theme-halloween .hl-pumpkin-b {
    display: none;
  }
  html.theme-halloween .hl-moon {
    left: auto;
    right: 4px;
    top: 2px;
    width: 32px;
    height: 32px;
  }
  html.theme-halloween .hl-bat-a {
    left: 4px;
    top: 8px;
    width: 36px;
    height: 16px;
  }
  html.theme-halloween .hl-pumpkin-a {
    right: auto;
    left: 48px;
    bottom: 0;
    width: 40px;
    height: 38px;
  }
  html.theme-halloween .hh-bat-b,
  html.theme-halloween .hh-ghost,
  html.theme-halloween .hh-pumpkin-b {
    display: none;
  }
  html.theme-halloween .hh-moon {
    left: auto;
    right: 0;
    top: 2px;
    width: 30px;
    height: 30px;
  }
  html.theme-halloween .hh-bat-a {
    left: 0;
    top: 6px;
    width: 32px;
    height: 14px;
  }
  html.theme-halloween .hh-pumpkin-a {
    left: 28px;
    bottom: 0;
    width: 36px;
    height: 34px;
  }
  html.theme-halloween .hh-skyline {
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.theme-holiday .is-float,
  html.theme-holiday .is-burst,
  html.theme-holiday .is-snow,
  html.theme-holiday .is-glow,
  html.theme-halloween .hh-bat,
  html.theme-halloween .hh-bat-b,
  html.theme-halloween .hl-bat,
  html.theme-halloween .hl-bat-b,
  html.theme-halloween .hh-glow {
    animation: none !important;
  }
  html.theme-halloween .hh-glow {
    opacity: 0.4;
  }
}

/* 20261016e: on phones the header art only fills the free gap between brand and About (never overlaps) */
@media (max-width: 767px) {
  html.theme-holiday .header { display: flex; align-items: center; }
  html.theme-holiday .brand { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 96px); }
  html.theme-holiday .holiday-header-art { min-width: 0; }
  html.theme-holiday .holiday-header-art { position: relative !important; top: auto; bottom: auto; right: auto !important; left: auto !important; width: auto !important; flex: 1 1 0; min-width: 0; align-self: stretch; order: 1; }
  html.theme-holiday .header-right { order: 2; flex: none; }
}
@media (max-width: 480px) {
  html.theme-holiday .holiday-header-art { display: none !important; }
}
