/* Haunted Holiday — a spooky-fun Halloween night: violet sky, big moon, bats, a wrought-iron gate
   between stone pillars (one with a lantern), a glowing lime title on a dark plaque, a green iron
   countdown medallion, parchment day cards with iron corners, a haunted house for home base.
   All art is original (public/img/themes/haunted-holiday/). */
[data-trip-theme="haunted-holiday"] {
  --hh-iron: #0F0919;
  --hh-night: #170A2B;
  --hh-lime: #B4EE78;
  --hh-lime-hi: #E2FFC4;
  --hh-ink: #1D1428;
  --hh-muted: #4D3F5C;
  --hh-cream: #FFF7EA;
  --hh-lav: #F1E8FF;
  --hh-amber: #FFC46B;
  --hh-deep: #5B2A8C;      /* focus ring on light surfaces */
  --hh-parch: radial-gradient(130% 90% at 50% 28%, #FAF5EC 0%, #EEE5D6 52%, #DCCDB6 100%);
  --hh-glow: 0 0 14px rgba(150, 240, 90, .45);

  --t-bg: var(--hh-night);
  --t-ink: var(--hh-ink);
  --t-muted: var(--hh-muted);
  --t-surface: #F7F1E7;
  --t-surface-2: #E6DBEE;
  --t-border: #3A2F44;
  --t-border-w: 3px;
  --t-primary: #6E2FA0;   --t-on-primary: var(--hh-cream);
  --t-secondary: #22663A; --t-on-secondary: var(--hh-cream);
  --t-accent: #251C3D;    --t-on-accent: var(--hh-cream);
  --t-btn-border: var(--hh-lime);
  --t-link: var(--hh-deep);
  --t-focus: var(--hh-lime);
  --t-warn-bg: var(--hh-amber); --t-warn-ink: var(--hh-ink);
  --t-shadow: 0 0 0 1px var(--hh-iron), 0 12px 26px rgba(5, 2, 12, .6);
  --t-shadow-btn: none;
  --t-radius-card: 12px;
  --t-radius-btn: 999px;
  --t-font-display: "Cinzel", Georgia, serif;
  --t-font-body: "Nunito Sans", system-ui, sans-serif;
  --t-font-num: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --t-title-size: clamp(2rem, 3.9cqi + .55rem, 3.45rem);
  --t-title-weight: 900;
  --t-title-ink: var(--hh-lime);
  --t-title-shadow:
    0 2px 0 var(--hh-iron), 2px 0 0 var(--hh-iron), -2px 0 0 var(--hh-iron), 0 -2px 0 var(--hh-iron),
    1.5px 1.5px 0 var(--hh-iron), -1.5px 1.5px 0 var(--hh-iron), 1.5px -1.5px 0 var(--hh-iron), -1.5px -1.5px 0 var(--hh-iron),
    0 5px 0 var(--hh-iron), 0 0 16px rgba(150, 240, 90, .6), 0 0 42px rgba(120, 220, 80, .38);
  --t-hero-bg: radial-gradient(120% 100% at 50% 26%, #301A4C 0%, #1C0E30 55%, #0E0619 100%);
  --t-hero-ink: var(--hh-lav);
  --t-hero-muted: #ECE2FA;
  --t-hero-border: var(--hh-iron);
  --t-eyebrow-ink: var(--hh-amber);
  --t-count-bg: transparent;
  --t-count-ink: #E4FFCC;
  --t-count-border: transparent;
  --t-card-bg: var(--hh-parch);
  --t-card-ink: var(--hh-ink);
  --t-card-muted: var(--hh-muted);
  --t-card-border: #2B2236;
  --t-card-head-bg: transparent;
  --t-card-head-ink: var(--hh-ink);
  --t-home-bg: linear-gradient(135deg, #6C3BA2 0%, #52267F 48%, #391A5F 100%);
  --t-home-ink: var(--hh-lav);
  --t-page-ink: var(--hh-lav);
  --t-page-muted: #DACDEE;
  --t-sheet-bg: var(--hh-parch);
  --t-sheet-ink: var(--hh-ink);
  --field-bg: #FFFDF8;
  --field-border: #6B5A78;
  --choice-on-bg: #EAF7DC;
  --choice-on-border: #2F6B1E;
  --park-mk: #2F5BE0;
  --park-ep: #7A3AD8;
  --park-hs: #C8322B;
  --park-ak: #2B7A2B;
  --kind-travel: #0B7393;
  --kind-event: #D06410;
  --kind-rest: #B83A72;
  --kind-open: #5E6680;
}
/* light surfaces get a dark focus ring; the night sky keeps the lime one */
[data-trip-theme="haunted-holiday"] .day-card,
[data-trip-theme="haunted-holiday"] .info-card:not(.home-card),
[data-trip-theme="haunted-holiday"] .ts-nudge,
[data-trip-theme="haunted-holiday"] .sheet-body { --t-focus: var(--hh-deep); --focus: var(--hh-deep); }

/* ---------- night sky: clouds, haze, distant manor on the hill, gnarled trees, owl ---------- */
[data-trip-theme="haunted-holiday"] .ts-backdrop {
  background:
    url("/img/themes/haunted-holiday/fog.svg") 0 560px / 900px 220px repeat-x,
    url("/img/themes/haunted-holiday/sky.svg") center top / max(100%, 1400px) 560px no-repeat,
    radial-gradient(ellipse 760px 420px at 62% 120px, rgba(170, 120, 240, .32), transparent 70%),
    linear-gradient(180deg, #1B0A35 0, #34186A 200px, #4A2386 420px, #3E1D70 680px, #2A1350 960px, #1D0D38 1400px, #150A28 100%);
}
[data-trip-theme="haunted-holiday"] .ts-backdrop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, 1560px);
  height: 900px;
  transform: translateX(-50%);
  background:
    url("/img/themes/haunted-holiday/scene-left.svg") left top / auto 900px no-repeat,
    url("/img/themes/haunted-holiday/scene-right.svg") right top / auto 900px no-repeat;
}
/* lower page: faint stars and bats, then a low iron fence in the mist */
[data-trip-theme="haunted-holiday"] .ts-backdrop::after {
  content: "";
  position: absolute;
  inset: 860px 0 0;
  background:
    url("/img/themes/haunted-holiday/fog.svg") 0 100% / 800px 120px repeat-x,
    url("/img/themes/haunted-holiday/fence.svg") 0 100% / 26px 70px repeat-x,
    url("/img/themes/haunted-holiday/night.svg") 0 0 / 420px 420px repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 260px);
  mask-image: linear-gradient(transparent, #000 260px);
}
[data-trip-theme="haunted-holiday"] .ts-wrap { padding-bottom: 104px; }

/* ---------- hero: moon + bats behind the gate ---------- */
[data-trip-theme="haunted-holiday"] .ts-hero { position: relative; }
[data-trip-theme="haunted-holiday"] .ts-hero::before,
[data-trip-theme="haunted-holiday"] .ts-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: center / contain no-repeat;
}
[data-trip-theme="haunted-holiday"] .ts-hero::before {
  top: -66px;
  right: 120px;
  width: 230px;
  height: 230px;
  background-image: url("/img/themes/haunted-holiday/moon.svg");
}
[data-trip-theme="haunted-holiday"] .ts-hero::after {
  top: -26px;
  right: 270px;
  width: 200px;
  height: 113px;
  background-image: url("/img/themes/haunted-holiday/bats.svg");
}

/* ---------- masthead: the iron gate between two stone pillars ---------- */
[data-trip-theme="haunted-holiday"] .ts-masthead {
  isolation: isolate;
  margin-top: 4px;
  padding: 136px 118px 36px;
  background:
    linear-gradient(var(--hh-iron), var(--hh-iron)) 0 calc(100% - 48px) / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 11px, var(--hh-iron) 11px 14px, #4A3A63 14px 15px, var(--hh-iron) 15px 16px, transparent 16px 26px)
      0 138px / 100% calc(100% - 162px) no-repeat;
}
/* arch with scrolls, spear tips and a spider web (art stays crisp at every width) */
[data-trip-theme="haunted-holiday"] .ts-masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 86px;
  right: 86px;
  height: 146px;
  pointer-events: none;
  background: url("/img/themes/haunted-holiday/arch.svg") 0 0 / 100% 100% no-repeat;
}
/* mist rolling along the bottom of the gate */
[data-trip-theme="haunted-holiday"] .ts-masthead::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -44px;
  height: 120px;
  pointer-events: none;
  background: url("/img/themes/haunted-holiday/fog.svg") 0 0 / 700px 100% repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  animation: hh-drift 90s linear infinite;
}
/* stone pillars: lantern on the left, spire + jack-o'-lantern on the right */
[data-trip-theme="haunted-holiday"] .ts-deco {
  display: block;
  position: absolute;
  top: -8px;
  bottom: -20px;
  width: 120px;
  background: 0 0 / 100% 100% no-repeat;
}
[data-trip-theme="haunted-holiday"] .ts-deco-1 { left: 0; background-image: url("/img/themes/haunted-holiday/pillar-l.svg"); }
[data-trip-theme="haunted-holiday"] .ts-deco-2 { right: 0; background-image: url("/img/themes/haunted-holiday/pillar-r.svg"); }
[data-trip-theme="haunted-holiday"] .ts-deco-1::after {
  content: "";
  position: absolute;
  left: -36px;
  top: 92px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 100, .38) 0%, rgba(255, 160, 50, .12) 45%, transparent 70%);
  animation: hh-flicker 3.4s ease-in-out infinite;
}

/* title plaque hung in the gate */
[data-trip-theme="haunted-holiday"] .ts-frame {
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 46px 32px;
  border: 5px solid var(--hh-iron);
  border-radius: 150px / 112px;
  box-shadow:
    0 0 0 2px #7C5BAA,
    0 0 0 7px var(--hh-iron),
    inset 0 0 0 2px rgba(180, 238, 120, .3),
    inset 0 0 60px rgba(0, 0, 0, .65),
    0 0 50px rgba(150, 240, 90, .3),
    0 22px 44px rgba(0, 0, 0, .55);
}
[data-trip-theme="haunted-holiday"] .ts-frame::before,
[data-trip-theme="haunted-holiday"] .ts-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: 0 0 / 100% 100% no-repeat;
}
[data-trip-theme="haunted-holiday"] .ts-frame::before {
  top: 0;
  bottom: 0;
  left: -66px;
  right: -66px;
  background-image: url("/img/themes/haunted-holiday/plaque-side.svg");
}
[data-trip-theme="haunted-holiday"] .ts-frame::after {
  left: 50%;
  bottom: -24px;
  width: 300px;
  height: 36px;
  margin-left: -150px;
  background-image: url("/img/themes/haunted-holiday/plaque-pendant.svg");
}
[data-trip-theme="haunted-holiday"] .ts-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--t-font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-shadow: 0 0 10px rgba(255, 180, 70, .55);
}
[data-trip-theme="haunted-holiday"] .ts-eyebrow::before,
[data-trip-theme="haunted-holiday"] .ts-eyebrow::after {
  content: "";
  width: 26px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-31 -17 62 24'%3E%3Cpath fill='%23FFC46B' d='M0 -3C1 -6 2 -8 3 -9L3.6 -5C6 -6 9 -8 12 -12C17 -16 24 -15 30 -10C27 -8 25 -5 25 -2C22 -4 19 -3 17 0C15 -2 11 -2 9 1C7 -1 4 0 3 3L0 6L-3 3C-4 0 -7 -1 -9 1C-11 -2 -15 -2 -17 0C-19 -3 -22 -4 -25 -2C-25 -5 -27 -8 -30 -10C-24 -15 -17 -16 -12 -12C-9 -8 -6 -6 -3.6 -5L-3 -9C-2 -8 -1 -6 0 -3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-trip-theme="haunted-holiday"] .ts-title {
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  line-height: 1.08;
  letter-spacing: .01em;
}
[data-trip-theme="haunted-holiday"] .ts-dates {
  margin-top: 16px;
  font-family: var(--t-font-display);
  font-size: 1.04rem;
  letter-spacing: .04em;
  text-shadow: 0 2px 0 var(--hh-iron);
}
[data-trip-theme="haunted-holiday"] .ts-dot { color: var(--hh-lime); }

/* ---------- countdown: green iron medallion with a glowing number ---------- */
[data-trip-theme="haunted-holiday"] .ts-side { position: relative; width: 204px; }
[data-trip-theme="haunted-holiday"] .ts-count {
  align-self: center;
  width: 204px;
  height: 232px;
  min-height: 0;
  padding: 50px 26px 18px;
  gap: 2px;
  background: url("/img/themes/haunted-holiday/count.svg") center / contain no-repeat;
  border: 0;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5));
}
[data-trip-theme="haunted-holiday"] .ts-count-n {
  font-size: 3.7rem;
  font-weight: 900;
  color: var(--hh-lime);
  text-shadow: 0 3px 0 #0A1C11, 0 0 12px rgba(170, 255, 110, .85), 0 0 30px rgba(120, 230, 80, .55);
}
[data-trip-theme="haunted-holiday"] .ts-count-l {
  max-width: 8em;
  font-family: var(--t-font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  color: #E4FFCC;
  text-shadow: 0 1px 0 #0A1C11, 0 0 8px rgba(150, 240, 90, .5);
}
[data-trip-theme="haunted-holiday"] .ts-count-pre { margin-bottom: -4px; }

/* ---------- buttons: glowing iron-rimmed pills ---------- */
[data-trip-theme="haunted-holiday"] .ts-btn {
  min-height: 46px;
  padding: 9px 18px;
  font-family: var(--t-font-display);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--hh-cream);
  background: linear-gradient(180deg, #8443B8 0%, #6E2FA0 48%, #4E1C78 100%);
  border: 2px solid var(--hh-lime);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
  box-shadow: 0 0 0 2px var(--hh-iron), var(--hh-glow), inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -4px 8px rgba(0, 0, 0, .28), 0 6px 14px rgba(0, 0, 0, .45);
}
[data-trip-theme="haunted-holiday"] a.ts-btn { color: var(--hh-cream); }
[data-trip-theme="haunted-holiday"] .ts-btn-2 {
  background: linear-gradient(180deg, #2F7D4A 0%, #22663A 50%, #164A29 100%);
  border-color: #D6F59E;
}
[data-trip-theme="haunted-holiday"] .ts-btn-3 {
  background: linear-gradient(180deg, #3A3058 0%, #251C3D 50%, #150F27 100%);
  border-color: #B79AE4;
  box-shadow: 0 0 0 2px var(--hh-iron), 0 0 14px rgba(183, 154, 228, .4), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -4px 8px rgba(0, 0, 0, .28), 0 6px 14px rgba(0, 0, 0, .45);
}
[data-trip-theme="haunted-holiday"] .ts-btn:hover { filter: brightness(1.14); }
[data-trip-theme="haunted-holiday"] .ts-actions { gap: 12px; }

/* ---------- example / notice banner ---------- */
[data-trip-theme="haunted-holiday"] .ts-banner {
  margin-top: 4px;
  background: linear-gradient(180deg, #FFD488, #F7B955);
  border: 2px solid var(--hh-iron);
  box-shadow: 0 0 0 2px rgba(255, 196, 107, .35), 0 0 24px rgba(255, 170, 60, .3);
}

/* ---------- day cards: parchment with iron corners ---------- */
[data-trip-theme="haunted-holiday"] .ts-days { position: relative; }
[data-trip-theme="haunted-holiday"] .ts-days::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -70px;
  height: 180px;
  pointer-events: none;
  background: url("/img/themes/haunted-holiday/fog.svg") 0 0 / 760px 100% repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: hh-drift-r 120s linear infinite;
}
[data-trip-theme="haunted-holiday"] .ts-day-grid { gap: 14px; }
[data-trip-theme="haunted-holiday"] .day-card {
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), inset 0 0 26px rgba(120, 90, 60, .22), 0 0 0 1px var(--hh-iron), 0 12px 24px rgba(5, 2, 12, .6), 0 0 22px rgba(160, 120, 230, .18);
}
[data-trip-theme="haunted-holiday"] .day-card::before {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background: url("/img/themes/haunted-holiday/corners.svg") 0 0 / 100% 100% no-repeat;
}
[data-trip-theme="haunted-holiday"] .day-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), inset 0 0 26px rgba(120, 90, 60, .22), 0 0 0 1px var(--hh-iron), 0 16px 28px rgba(5, 2, 12, .65), 0 0 26px rgba(150, 240, 90, .45);
}
[data-trip-theme="haunted-holiday"] .dc-event {
  background: radial-gradient(130% 90% at 50% 34%, #FFF4DE 0%, #F8DFBA 50%, #E7BE8A 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), inset 0 0 30px rgba(220, 120, 30, .28), 0 0 0 1px var(--hh-iron), 0 12px 24px rgba(5, 2, 12, .6), 0 0 26px rgba(255, 150, 40, .45);
}
[data-trip-theme="haunted-holiday"] .dc-head { gap: 0; padding: 15px 8px 2px; }
[data-trip-theme="haunted-holiday"] .dc-dow {
  font-family: var(--t-font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #3A2D48;
}
[data-trip-theme="haunted-holiday"] .dc-date { font-weight: 700; font-size: 1.14rem; letter-spacing: .02em; }
/* iron rule with a diamond in the day's own color */
[data-trip-theme="haunted-holiday"] .dc-head::after {
  content: "";
  width: 70px;
  height: 12px;
  margin-top: 5px;
  background: linear-gradient(90deg, transparent, #4A3D57 25%, #4A3D57 75%, transparent) center / 100% 1.5px no-repeat;
}
[data-trip-theme="haunted-holiday"] .dc-body { position: relative; gap: 3px; padding: 6px 8px 4px; }
[data-trip-theme="haunted-holiday"] .dc-body::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--accent);
  border: 1.5px solid #2B2236;
  transform: rotate(45deg);
}
[data-trip-theme="haunted-holiday"] .dc-icon { font-size: 2.55rem; filter: drop-shadow(0 3px 2px rgba(40, 20, 60, .35)); }
[data-trip-theme="haunted-holiday"] .dc-title { font-size: 1rem; font-weight: 700; color: var(--hh-ink); }
[data-trip-theme="haunted-holiday"] .dc-sub { color: var(--hh-muted); }
[data-trip-theme="haunted-holiday"] .dc-foot { padding: 6px 14px 16px; }
[data-trip-theme="haunted-holiday"] .wx { color: var(--hh-ink); background: #E3D8EC; border: 1px solid #8C78A0; }
[data-trip-theme="haunted-holiday"] .wx-typical { color: #4A4452; background: #E2DED8; }
[data-trip-theme="haunted-holiday"] .dc-warn { border: 1.5px solid var(--hh-iron); }

/* ---------- info cards ---------- */
[data-trip-theme="haunted-holiday"] .ts-info { margin-top: 64px; gap: 20px; }
[data-trip-theme="haunted-holiday"] .info-card::before {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  border-radius: 9px;
  background: url("/img/themes/haunted-holiday/corners.svg") 0 0 / 100% 100% no-repeat;
}
[data-trip-theme="haunted-holiday"] .info-card {
  padding: 20px 24px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), inset 0 0 30px rgba(120, 90, 60, .2), 0 0 0 1px var(--hh-iron), 0 14px 28px rgba(5, 2, 12, .6);
}
[data-trip-theme="haunted-holiday"] .ic-title { font-weight: 700; color: var(--hh-ink); }
[data-trip-theme="haunted-holiday"] .ic-kicker { font-family: var(--t-font-display); font-weight: 700; letter-spacing: .16em; opacity: 1; }
[data-trip-theme="haunted-holiday"] .leg + .leg { border-top-color: #8A7898; }
[data-trip-theme="haunted-holiday"] .pc-chip { background: #E6DBEE; border: 1.5px solid #8C78A0; }
[data-trip-theme="haunted-holiday"] .pc-emoji { background: #FAF5EC; border: 1.5px solid #8C78A0; }
[data-trip-theme="haunted-holiday"] .reveal { background: #E6DBEE; }

/* home base: a violet panel with the haunted house rising out of it */
[data-trip-theme="haunted-holiday"] .home-card {
  padding: 22px 26px 22px 20px;
  background:
    radial-gradient(40% 130% at 12% 60%, rgba(111, 224, 190, .22), transparent 70%),
    radial-gradient(30% 60% at 70% 20%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(40% 70% at 55% 100%, rgba(20, 8, 40, .35), transparent 70%),
    var(--t-home-bg);
  border: 4px solid var(--hh-iron);
  box-shadow: 0 0 0 2px #8C6BC0, inset 0 0 40px rgba(20, 8, 40, .45), 0 0 34px rgba(150, 240, 90, .2), 0 16px 34px rgba(0, 0, 0, .55);
}
[data-trip-theme="haunted-holiday"] .home-card::before {
  inset: 5px;
  border-radius: 8px;
  background-image: url("/img/themes/haunted-holiday/corners-lav.svg");
  opacity: .8;
}
[data-trip-theme="haunted-holiday"] .home-card .ic-art {
  width: 240px;
  height: 184px;
  margin: -64px -4px -26px -6px;
  font-size: 0;
  border-radius: 0;
  background: url("/img/themes/haunted-holiday/house.svg") center bottom / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}
[data-trip-theme="haunted-holiday"] .home-card .ic-kicker { color: var(--hh-lime); text-shadow: 0 1px 0 var(--hh-iron); }
[data-trip-theme="haunted-holiday"] .home-card .ic-title {
  font-size: 1.75rem;
  color: var(--hh-cream);
  text-shadow: 0 2px 0 var(--hh-iron), 0 0 18px rgba(210, 170, 255, .45);
}
[data-trip-theme="haunted-holiday"] .home-card .ic-line { color: var(--hh-lav); }
[data-trip-theme="haunted-holiday"] .home-card .ic-note { color: #E8DDF8; opacity: 1; }
[data-trip-theme="haunted-holiday"] .home-card .reveal { color: var(--hh-cream); background: rgba(255, 255, 255, .12); border-color: #D9C3FA; }
[data-trip-theme="haunted-holiday"] .ic-links { gap: 12px; }
[data-trip-theme="haunted-holiday"] .ic-links .ts-btn { justify-content: flex-start; min-width: 210px; padding-left: 20px; }
[data-trip-theme="haunted-holiday"] .ic-links .ts-btn:nth-child(1) { background: linear-gradient(180deg, #2F7D4A 0%, #22663A 50%, #164A29 100%); border-color: #D6F59E; }
[data-trip-theme="haunted-holiday"] .ic-links .ts-btn:nth-child(2) {
  background: linear-gradient(180deg, #2E5794 0%, #1F3C6E 50%, #152B52 100%);
  border-color: #8DC0FF;
  box-shadow: 0 0 0 2px var(--hh-iron), 0 0 14px rgba(120, 180, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -4px 8px rgba(0, 0, 0, .28), 0 6px 14px rgba(0, 0, 0, .45);
}
[data-trip-theme="haunted-holiday"] .ic-links .ts-btn:nth-child(3) {
  background: linear-gradient(180deg, #B03E82 0%, #8A2763 50%, #651848 100%);
  border-color: #FFA6D8;
  box-shadow: 0 0 0 2px var(--hh-iron), 0 0 14px rgba(255, 140, 210, .4), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -4px 8px rgba(0, 0, 0, .28), 0 6px 14px rgba(0, 0, 0, .45);
}

[data-trip-theme="haunted-holiday"] .ts-nudge { border: 2px dashed #6B5A78; }
[data-trip-theme="haunted-holiday"] .ts-footer a { color: var(--hh-lime); }

/* ---------- themed dialogs ---------- */
[data-trip-theme="haunted-holiday"] .sheet-inner {
  border: 4px solid var(--hh-iron);
  box-shadow: 0 0 0 2px #8C6BC0, 0 0 50px rgba(150, 240, 90, .28), 0 30px 80px rgba(0, 0, 0, .6);
}
[data-trip-theme="haunted-holiday"] .sheet-head {
  color: var(--hh-lav);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-31 -17 62 24'%3E%3Cpath fill='%230F0919' d='M0 -3C1 -6 2 -8 3 -9L3.6 -5C6 -6 9 -8 12 -12C17 -16 24 -15 30 -10C27 -8 25 -5 25 -2C22 -4 19 -3 17 0C15 -2 11 -2 9 1C7 -1 4 0 3 3L0 6L-3 3C-4 0 -7 -1 -9 1C-11 -2 -15 -2 -17 0C-19 -3 -22 -4 -25 -2C-25 -5 -27 -8 -30 -10C-24 -15 -17 -16 -12 -12C-9 -8 -6 -6 -3.6 -5L-3 -9C-2 -8 -1 -6 0 -3Z'/%3E%3C/svg%3E") right 72px center / 34px 14px no-repeat,
    radial-gradient(60% 140% at 85% 0%, rgba(200, 170, 255, .25), transparent 70%),
    linear-gradient(180deg, #52288A, #2E1450);
  border-bottom: 3px solid var(--hh-iron);
  box-shadow: inset 0 -2px 0 rgba(180, 238, 120, .55);
}
[data-trip-theme="haunted-holiday"] .sheet-title {
  font-weight: 700;
  color: var(--hh-lime);
  text-shadow: 0 2px 0 var(--hh-iron), 0 0 12px rgba(150, 240, 90, .45);
}
[data-trip-theme="haunted-holiday"] .sheet-head .sheet-x { color: var(--hh-lav); }
[data-trip-theme="haunted-holiday"] .sheet-head .sheet-x:hover { background: rgba(255, 255, 255, .12); }
[data-trip-theme="haunted-holiday"] .tl-item {
  background: #FCF8F1;
  border: 1.5px solid #3A2F44;
  border-left: 7px solid var(--accent);
  box-shadow: 0 3px 8px rgba(30, 15, 50, .12);
}
[data-trip-theme="haunted-holiday"] .tl-title { font-family: var(--t-font-display); font-weight: 700; }
[data-trip-theme="haunted-holiday"] .ds-chip,
[data-trip-theme="haunted-holiday"] .day-sheet .wx { background: #E6DBEE; border: 1px solid #8C78A0; }
[data-trip-theme="haunted-holiday"] .ds-empty { background: #EFE7F4; border: 1.5px dashed #8C78A0; }
[data-trip-theme="haunted-holiday"] .ds-add { border-top-color: #8C78A0; }
[data-trip-theme="haunted-holiday"] .ds-add-h { font-family: var(--t-font-display); }
[data-trip-theme="haunted-holiday"] .ds-add-btn { background: #ECE3F3; border: 1.5px solid #6B5A78; }
[data-trip-theme="haunted-holiday"] .ds-add-btn:hover { border-color: #22663A; box-shadow: 0 0 0 2px rgba(34, 102, 58, .25), 0 0 12px rgba(150, 240, 90, .35); }
[data-trip-theme="haunted-holiday"] .tl-edit { background: #ECE3F3; border-color: #6B5A78; }

/* ---------- motion (switched off by prefers-reduced-motion in trip.css) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-trip-theme="haunted-holiday"] .ts-hero::after { animation: hh-bats 7s ease-in-out infinite; }
}
@keyframes hh-drift { to { background-position-x: 700px; } }
@keyframes hh-drift-r { to { background-position-x: -760px; } }
@keyframes hh-flicker {
  0%, 100% { opacity: 1; }
  38% { opacity: .78; }
  44% { opacity: .95; }
  52% { opacity: .7; }
  70% { opacity: .92; }
}
@keyframes hh-bats {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, -7px); }
}

/* ---------- tablet: gate spans the width, side tools sit below ---------- */
@container trip (max-width: 899px) {
  [data-trip-theme="haunted-holiday"] .ts-hero::before { right: -20px; top: -70px; width: 200px; height: 200px; }
  [data-trip-theme="haunted-holiday"] .ts-hero::after { right: 140px; top: -30px; width: 160px; height: 90px; }
  [data-trip-theme="haunted-holiday"] .ts-masthead { padding: 130px 100px 36px; }
  [data-trip-theme="haunted-holiday"] .ts-masthead::before { left: 70px; right: 70px; height: 140px; }
  [data-trip-theme="haunted-holiday"] .ts-deco { width: 104px; }
  [data-trip-theme="haunted-holiday"] .ts-side { width: auto; gap: 18px; }
  [data-trip-theme="haunted-holiday"] .ts-count { width: 170px; height: 194px; padding: 42px 22px 14px; }
  [data-trip-theme="haunted-holiday"] .ts-count-n { font-size: 3rem; }
  [data-trip-theme="haunted-holiday"] .ts-count-l { font-size: .8rem; }
  [data-trip-theme="haunted-holiday"] .home-card .ic-art { width: 180px; height: 138px; margin: -30px -6px -12px -8px; }
  [data-trip-theme="haunted-holiday"] .ic-links .ts-btn { min-width: 0; }
}

/* ---------- phone: smaller scene, no pillars, medallion beside stacked buttons ---------- */
@container trip (max-width: 599px) {
  [data-trip-theme="haunted-holiday"] .ts-backdrop {
    background:
      url("/img/themes/haunted-holiday/fog.svg") 0 640px / 600px 160px repeat-x,
      url("/img/themes/haunted-holiday/sky.svg") center top / 900px 380px no-repeat,
      radial-gradient(ellipse 360px 260px at 80% 60px, rgba(170, 120, 240, .32), transparent 70%),
      linear-gradient(180deg, #1B0A35 0, #34186A 160px, #4A2386 360px, #3E1D70 620px, #2A1350 900px, #1D0D38 1400px, #150A28 100%);
  }
  [data-trip-theme="haunted-holiday"] .ts-backdrop::before {
    left: 0;
    width: 100%;
    height: 520px;
    transform: none;
    background:
      url("/img/themes/haunted-holiday/scene-left.svg") left -150px top -40px / auto 520px no-repeat,
      url("/img/themes/haunted-holiday/scene-right.svg") right -170px top 0 / auto 520px no-repeat;
  }
  [data-trip-theme="haunted-holiday"] .ts-backdrop::after { top: 1200px; }
  [data-trip-theme="haunted-holiday"] .ts-hero::before { right: -24px; top: -40px; width: 130px; height: 130px; }
  [data-trip-theme="haunted-holiday"] .ts-hero::after { right: 84px; top: -14px; width: 110px; height: 62px; }
  [data-trip-theme="haunted-holiday"] .ts-masthead {
    margin-top: 2px;
    padding: 82px 4px 30px;
    background:
      linear-gradient(var(--hh-iron), var(--hh-iron)) 0 calc(100% - 40px) / 100% 5px no-repeat,
      repeating-linear-gradient(90deg, transparent 0 9px, var(--hh-iron) 9px 12px, #4A3A63 12px 13px, transparent 13px 22px)
        0 84px / 100% calc(100% - 104px) no-repeat;
  }
  [data-trip-theme="haunted-holiday"] .ts-masthead::before { left: 0; right: 0; height: 86px; }
  [data-trip-theme="haunted-holiday"] .ts-masthead::after { left: -16px; right: -16px; bottom: -78px; height: 170px; opacity: .75; background-size: 520px 100%; }
  [data-trip-theme="haunted-holiday"] .ts-deco { display: none; }
  [data-trip-theme="haunted-holiday"] .ts-frame {
    padding: 22px 18px 26px;
    border-radius: 80px / 60px;
    box-shadow: 0 0 0 2px #7C5BAA, 0 0 0 6px var(--hh-iron), inset 0 0 0 2px rgba(180, 238, 120, .3), inset 0 0 40px rgba(0, 0, 0, .6), 0 0 34px rgba(150, 240, 90, .3);
  }
  [data-trip-theme="haunted-holiday"] .ts-frame::before { display: none; }
  [data-trip-theme="haunted-holiday"] .ts-frame::after { width: 220px; height: 26px; margin-left: -110px; bottom: -18px; }
  [data-trip-theme="haunted-holiday"] .ts-eyebrow { font-size: .7rem; letter-spacing: .22em; gap: 8px; margin-bottom: 8px; }
  [data-trip-theme="haunted-holiday"] .ts-dates { margin-top: 12px; font-size: .92rem; }
  [data-trip-theme="haunted-holiday"] .ts-side { flex-wrap: nowrap; gap: 12px; justify-content: center; }
  [data-trip-theme="haunted-holiday"] .ts-count {
    flex: none;
    flex-direction: column;
    width: 132px;
    height: 150px;
    padding: 30px 16px 8px;
    gap: 0;
  }
  [data-trip-theme="haunted-holiday"] .ts-count-n { font-size: 2.5rem; }
  [data-trip-theme="haunted-holiday"] .ts-count-l { font-size: .7rem; letter-spacing: .03em; }
  [data-trip-theme="haunted-holiday"] .ts-actions { flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; gap: 10px; max-width: 220px; }
  [data-trip-theme="haunted-holiday"] .ts-actions .ts-btn { width: 100%; font-size: .9rem; }
  [data-trip-theme="haunted-holiday"] .ts-day-grid { gap: 12px; }
  [data-trip-theme="haunted-holiday"] .dc-head { width: 80px; padding: 8px 4px 8px 8px; border-right: 1.5px solid rgba(43, 34, 54, .35); }
  [data-trip-theme="haunted-holiday"] .dc-head::after,
  [data-trip-theme="haunted-holiday"] .dc-body::before { display: none; }
  [data-trip-theme="haunted-holiday"] .dc-date { font-size: .9rem; letter-spacing: 0; white-space: nowrap; }
  [data-trip-theme="haunted-holiday"] .dc-dow { font-size: .74rem; }
  [data-trip-theme="haunted-holiday"] .dc-body { padding: 10px 6px 10px 12px; }
  [data-trip-theme="haunted-holiday"] .dc-foot { padding: 10px 20px 10px 0; }
  [data-trip-theme="haunted-holiday"] .ts-info { margin-top: 56px; }
  [data-trip-theme="haunted-holiday"] .info-card { padding: 18px; }
  [data-trip-theme="haunted-holiday"] .home-card { padding: 16px; }
  [data-trip-theme="haunted-holiday"] .home-card .ic-art { width: 116px; height: 90px; margin: -46px 0 0 -6px; }
  [data-trip-theme="haunted-holiday"] .home-card .ic-title { font-size: 1.35rem; }
  [data-trip-theme="haunted-holiday"] .ic-links .ts-btn { min-width: 0; justify-content: center; padding-left: 14px; }
  [data-trip-theme="haunted-holiday"] .sheet-head { background-position: right 64px center, 0 0, 0 0; }
}


/* ---------- resort postcard frame: iron with a lime glow ---------- */
[data-trip-theme="haunted-holiday"] .home-card {
  --resort-frame: 4px solid var(--hh-iron);
  --resort-shadow: 0 0 0 2px var(--hh-lime), 0 0 22px rgba(180, 238, 120, .35);
  --resort-radius: 10px;
}

@media print {
  [data-trip-theme="haunted-holiday"] .ts-count { width: auto !important; height: auto !important; filter: none !important; }
  [data-trip-theme="haunted-holiday"] .ts-eyebrow::before,
  [data-trip-theme="haunted-holiday"] .ts-eyebrow::after,
  [data-trip-theme="haunted-holiday"] .ts-deco-1::after,
  [data-trip-theme="haunted-holiday"] .dc-head::after,
  [data-trip-theme="haunted-holiday"] .dc-body::before { display: none !important; }
}
