/* Christmas Magic — a snowy Christmas evening: twilight sky over a lit village and castle,
   a red satin title ribbon, an evergreen wreath countdown, a garland-framed row of snow-capped cards.
   Art lives in /img/themes/christmas-magic/. */
[data-trip-theme="christmas-magic"] {
  --cm-red: #BE141D;
  --cm-red-ink: #A3121B;
  --cm-red-dk: #6E0810;
  --cm-pine: #0F5A36;
  --cm-pine-dk: #0A3A24;
  --cm-gold: #E2A834;
  --cm-cream: #FFF8EA;
  --cm-ink: #1B2340;
  --cm-snow: #D5E1F3;
  --cm-serif: "DM Serif Display", Georgia, serif;
  --cm-btn-gold: linear-gradient(180deg, #FFEBA8 0%, #D99A26 48%, #FFE38A 100%);

  --t-bg: #A9BEE4;
  --t-ink: var(--cm-ink);
  --t-muted: #4A4F63;
  --t-surface: #FFFDF7;
  --t-surface-2: #F8ECD4;
  --t-border: #E0C27C;
  --t-border-w: 2px;
  --t-primary: var(--cm-red);     --t-on-primary: #FFFFFF;
  --t-secondary: #12663A;         --t-on-secondary: #FFFFFF;
  --t-accent: var(--cm-gold);     --t-on-accent: #2E1C00;
  --t-btn-border: #E9C46A;
  --t-link: var(--cm-red-ink);
  --t-focus: #FFD34D;
  --t-warn-bg: #FFE7A8;           --t-warn-ink: #4A2C00;
  --t-shadow: 0 5px 0 rgba(4, 30, 18, .35), 0 12px 22px rgba(8, 20, 48, .35);
  --t-shadow-btn: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 0 rgba(60, 0, 8, .45), 0 8px 14px rgba(0, 0, 0, .3);
  --t-radius-card: 14px;
  --t-radius-btn: 999px;
  --t-font-display: "Mountains of Christmas", "DM Serif Display", Georgia, serif;
  --t-font-body: "Nunito Sans", system-ui, sans-serif;
  --t-font-num: var(--cm-serif);
  --t-title-size: clamp(2.2rem, 3cqi + 1rem, 3.45rem);
  --t-title-weight: 700;
  --t-title-ink: #FFFBF2;
  --t-title-shadow: 0 3px 0 var(--cm-red-dk), 0 6px 14px rgba(40, 0, 6, .55);
  --t-hero-bg: transparent;
  --t-hero-ink: #FFFFFF;
  --t-hero-muted: var(--cm-ink);
  --t-hero-border: transparent;
  --t-eyebrow-ink: #FFF6DE;
  --t-count-bg: transparent;
  --t-count-ink: #FFFFFF;
  --t-count-border: transparent;
  --t-card-bg: var(--cm-cream);
  --t-card-ink: var(--cm-ink);
  --t-card-muted: #4A4F63;
  --t-card-border: #E0C27C;
  --t-card-head-bg: transparent;
  --t-card-head-ink: var(--cm-pine);
  --t-home-bg: var(--cm-cream);
  --t-home-ink: var(--cm-ink);
  --t-page-ink: var(--cm-red-ink);
  --t-page-muted: var(--cm-ink);
  --t-sheet-bg: #FFFBF1;
  --t-sheet-ink: var(--cm-ink);
  --field-bg: #FFFFFF;
  --field-border: #B79A5C;
  --choice-on-bg: #E6F4EA;
  --choice-on-border: var(--cm-pine);
}
/* light surfaces get a cranberry focus ring; the sky and the green felt keep the gold one */
[data-trip-theme="christmas-magic"] .info-card,
[data-trip-theme="christmas-magic"] .ts-nudge,
[data-trip-theme="christmas-magic"] .ts-footer,
[data-trip-theme="christmas-magic"] .sheet { --t-focus: var(--cm-red-ink); --focus: var(--cm-red-ink); }

/* ---------- the evening: twilight sky, village scene, snowfield ---------- */
[data-trip-theme="christmas-magic"] .ts-backdrop {
  background:
    url("/img/themes/christmas-magic/scene.svg") center top / 1920px 780px no-repeat,
    linear-gradient(180deg, #0A1838 0, #12285E 150px, #24488E 300px, #5A80C4 400px, #EEF3FB 440px, #D5E1F3 780px, #BFD0EC 1500px, #A9BEE4 100%);
}
/* drifts down the long page, and a row of lit pines along the very bottom */
[data-trip-theme="christmas-magic"] .ts-backdrop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 760px;
  bottom: 0;
  background:
    url("/img/themes/christmas-magic/ground.svg") center bottom / 1200px 240px repeat-x,
    url("/img/themes/christmas-magic/drifts.svg") center top / 800px 400px repeat;
}
/* falling snow */
[data-trip-theme="christmas-magic"] .ts-backdrop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -400px;
  height: 2000px;
  background: url("/img/themes/christmas-magic/snow.svg") 0 0 / 400px 400px repeat;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
  opacity: .85;
}
@media (prefers-reduced-motion: no-preference) {
  [data-trip-theme="christmas-magic"] .ts-backdrop::after { animation: cm-snowfall 40s linear infinite; will-change: transform; }
}
@keyframes cm-snowfall { to { transform: translate3d(0, 400px, 0); } }

/* ---------- hero: lamp post + village, ribbon title, castle ---------- */
[data-trip-theme="christmas-magic"] .ts-hero { align-items: stretch; gap: 20px; margin-bottom: 40px; }
[data-trip-theme="christmas-magic"] .ts-masthead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 10px 27% 40px 12%;
}
[data-trip-theme="christmas-magic"] .ts-deco { display: block; position: absolute; z-index: 0; background-repeat: no-repeat; }
[data-trip-theme="christmas-magic"] .ts-deco-1 {
  left: -18px;
  bottom: -34px;
  width: min(38%, 380px);
  height: 430px;
  background-image: url("/img/themes/christmas-magic/lamp.svg"), url("/img/themes/christmas-magic/village.svg");
  background-position: 0 100%, 0 100%;
  background-size: auto 400px, 100% auto;
}
[data-trip-theme="christmas-magic"] .ts-deco-2 {
  right: -10px;
  bottom: -30px;
  width: 32%;
  height: 410px;
  background-image: url("/img/themes/christmas-magic/castle.svg");
  background-position: 50% 100%;
  background-size: contain;
}
[data-trip-theme="christmas-magic"] .ts-frame {
  z-index: 2;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
[data-trip-theme="christmas-magic"] .ts-eyebrow {
  z-index: 3;
  margin: 0 0 -.1em;
  font-family: var(--t-font-display);
  font-size: clamp(1.7rem, 1.4cqi + 1rem, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: none;
  text-shadow:
    2px 0 0 var(--cm-pine-dk), -2px 0 0 var(--cm-pine-dk), 0 2px 0 var(--cm-pine-dk), 0 -2px 0 var(--cm-pine-dk),
    2px 2px 0 var(--cm-pine-dk), -2px 2px 0 var(--cm-pine-dk), 2px -2px 0 var(--cm-pine-dk), -2px -2px 0 var(--cm-pine-dk),
    0 5px 0 var(--cm-pine-dk), 0 8px 14px rgba(0, 0, 0, .5);
  transform: rotate(-4deg);
}
/* the trip name rides on a red satin ribbon with gold edges and folded tails */
[data-trip-theme="christmas-magic"] .ts-title {
  display: inline-block;
  max-width: calc(100% - 1.6em);
  padding: .2em .75em .3em;
  line-height: 1.02;
  letter-spacing: .01em;
  transform: rotate(-2deg);
}
[data-trip-theme="christmas-magic"] .ts-title::before,
[data-trip-theme="christmas-magic"] .ts-title::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
}
[data-trip-theme="christmas-magic"] .ts-title::before {
  z-index: -1;
  inset: 0;
  background-image: url("/img/themes/christmas-magic/ribbon.svg");
  background-size: 100% 100%;
  filter: drop-shadow(0 8px 10px rgba(10, 10, 40, .4));
}
[data-trip-theme="christmas-magic"] .ts-title::after {
  z-index: -2;
  left: -.95em;
  right: -.95em;
  top: .45em;
  bottom: -.45em;
  background-image: url("/img/themes/christmas-magic/ribbon-tail-l.svg"), url("/img/themes/christmas-magic/ribbon-tail-r.svg");
  background-position: left top, right top;
  background-size: 1.5em 100%, 1.5em 100%;
  filter: drop-shadow(0 6px 8px rgba(10, 10, 40, .35));
}
[data-trip-theme="christmas-magic"] .ts-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 .45em;
  width: fit-content;
  max-width: 100%;
  margin: 30px auto 0;
  padding: 7px 20px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--cm-ink);
  background: linear-gradient(180deg, #FFFEFA, #F6EAD2);
  border: 2px solid #E2BE6E;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(10, 30, 70, .25), 0 8px 18px rgba(10, 30, 70, .35);
}
[data-trip-theme="christmas-magic"] .ts-dot { color: var(--cm-gold); }
[data-trip-theme="christmas-magic"] .ts-dest { color: var(--cm-red-ink); }

/* ---------- countdown: evergreen wreath with a bow ---------- */
[data-trip-theme="christmas-magic"] .ts-side { width: 210px; gap: 10px; justify-content: center; }
[data-trip-theme="christmas-magic"] .ts-count {
  align-self: center;
  width: 210px;
  height: 226px;
  min-height: 0;
  padding: 26px 0 0;
  gap: 0;
  background: url("/img/themes/christmas-magic/wreath.svg") center / contain no-repeat;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 8px 12px rgba(5, 15, 40, .4));
}
[data-trip-theme="christmas-magic"] .ts-count-n {
  font-family: var(--t-font-num);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: .95;
  text-shadow: 0 3px 0 var(--cm-red-dk), 0 0 14px rgba(255, 210, 140, .5);
}
[data-trip-theme="christmas-magic"] .ts-count-l {
  max-width: 84px;
  font-family: var(--cm-serif);
  font-size: .92rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
  color: #FFEFC6;
}
[data-trip-theme="christmas-magic"] .ts-count-during .ts-count-n { font-size: 2.5rem; }
[data-trip-theme="christmas-magic"] .ts-count-after .ts-count-n { font-size: 2.4rem; }

/* ---------- buttons: red and pine pills with gold rims ---------- */
[data-trip-theme="christmas-magic"] .ts-btn {
  padding: 8px 18px;
  font-family: var(--cm-serif);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: .01em;
  color: #FFFFFF;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, #D9302F 0%, #BE141D 52%, #940D16 100%) padding-box, var(--cm-btn-gold) border-box;
  border: 3px solid transparent;
}
[data-trip-theme="christmas-magic"] .ts-btn-2 {
  background: linear-gradient(180deg, #1C8048 0%, #12663A 52%, #0A4A29 100%) padding-box, var(--cm-btn-gold) border-box;
}
[data-trip-theme="christmas-magic"] .ts-btn-3 {
  color: var(--cm-red-ink);
  text-shadow: none;
  background: linear-gradient(180deg, #FFFEF8 0%, #FBEFD6 60%, #F2DDB3 100%) padding-box, var(--cm-btn-gold) border-box;
}
[data-trip-theme="christmas-magic"] .ts-btn:hover { filter: brightness(1.08) saturate(1.05); }
[data-trip-theme="christmas-magic"] .ts-btn:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 1px 0 rgba(60, 0, 8, .45); }

/* ---------- day cards: snow-capped cream cards inside a lit garland ---------- */
[data-trip-theme="christmas-magic"] .ts-days {
  position: relative;
  padding: 18px 14px 16px;
  border: 30px solid transparent;
  border-image: url("/img/themes/christmas-magic/garland.svg") 44 / 44px / 10px round;
  border-radius: 24px;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(255, 255, 255, .1), transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .05) 0 1.5px, transparent 2px) 0 0 / 22px 22px,
    linear-gradient(180deg, #17603E 0%, #0E4A30 55%, #0A3A26 100%);
  background-clip: border-box;
  box-shadow: 0 18px 36px rgba(10, 30, 70, .38);
}
[data-trip-theme="christmas-magic"] .ts-day-grid { gap: 14px; }
[data-trip-theme="christmas-magic"] .dc-li { padding-top: 10px; }
[data-trip-theme="christmas-magic"] .day-card {
  overflow: visible;
  min-height: 214px;
  background: linear-gradient(180deg, #FFFEF9 0%, #FFF6E4 62%, #F6E6C6 100%);
  border: 2px solid #E3C47E;
  border-radius: 12px;
  box-shadow: 0 5px 0 rgba(3, 26, 15, .5), 0 12px 18px rgba(0, 0, 0, .32);
}
[data-trip-theme="christmas-magic"] .day-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: -6px;
  right: -6px;
  top: -16px;
  height: 38px;
  pointer-events: none;
  border: 0 solid transparent;
  border-image: url("/img/themes/christmas-magic/snowcap.svg") 0 40 fill / 0 40px / 0 round;
}
[data-trip-theme="christmas-magic"] .day-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -6px;
  right: -4px;
  width: 40px;
  height: 29px;
  pointer-events: none;
  background: url("/img/themes/christmas-magic/holly.svg") center / contain no-repeat;
  transform: rotate(12deg);
}
[data-trip-theme="christmas-magic"] .dc-li:nth-child(even) .day-card::after { right: auto; left: -4px; transform: scaleX(-1) rotate(12deg); }
[data-trip-theme="christmas-magic"] .day-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(3, 26, 15, .5), 0 0 0 3px rgba(255, 211, 77, .7), 0 16px 22px rgba(0, 0, 0, .35); }
[data-trip-theme="christmas-magic"] .dc-head { gap: 0; padding: 22px 6px 0; }
[data-trip-theme="christmas-magic"] .dc-dow {
  font-family: var(--cm-serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--cm-red-ink);
}
[data-trip-theme="christmas-magic"] .dc-date { font-family: var(--cm-serif); font-size: 1.28rem; color: var(--cm-pine); }
[data-trip-theme="christmas-magic"] .dc-body { gap: 3px; padding: 10px 8px 4px; }
[data-trip-theme="christmas-magic"] .dc-icon { position: relative; z-index: 0; font-size: 2.7rem; filter: drop-shadow(0 3px 2px rgba(60, 30, 0, .22)); }
/* a soft glow in the day's park colour behind the icon */
[data-trip-theme="christmas-magic"] .dc-icon::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0 45%, transparent 70%);
}
[data-trip-theme="christmas-magic"] .dc-title { font-size: 1.36rem; font-weight: 700; line-height: 1.02; color: var(--cm-ink); }
[data-trip-theme="christmas-magic"] .dc-sub { color: var(--t-card-muted); }
[data-trip-theme="christmas-magic"] .dc-plans { color: var(--cm-pine); }
[data-trip-theme="christmas-magic"] .wx { color: var(--cm-ink); background: #FFFFFF; border: 1.5px solid #E3C47E; }
[data-trip-theme="christmas-magic"] .dc-warn { border: 1.5px solid #E2A834; }

/* ---------- info cards ---------- */
[data-trip-theme="christmas-magic"] .ts-info { gap: 30px 22px; margin-top: 44px; }
[data-trip-theme="christmas-magic"] .info-card {
  overflow: visible;
  padding-top: 26px;
  background: linear-gradient(180deg, #FFFEF9 0%, #FFF7E6 70%, #F8EBCF 100%);
  border: 2px solid #E3C47E;
}
[data-trip-theme="christmas-magic"] .info-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: -6px;
  right: -6px;
  top: -16px;
  height: 38px;
  pointer-events: none;
  border: 0 solid transparent;
  border-image: url("/img/themes/christmas-magic/snowcap.svg") 0 40 fill / 0 40px / 0 round;
}
[data-trip-theme="christmas-magic"] .info-card:not(.home-card)::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -8px;
  right: 10px;
  width: 44px;
  height: 32px;
  pointer-events: none;
  background: url("/img/themes/christmas-magic/holly.svg") center / contain no-repeat;
  transform: rotate(10deg);
}
[data-trip-theme="christmas-magic"] .ic-kicker { color: var(--cm-pine); opacity: 1; letter-spacing: .14em; }
[data-trip-theme="christmas-magic"] .ic-title { font-family: var(--cm-serif); font-weight: 400; color: var(--cm-red-ink); }
[data-trip-theme="christmas-magic"] .leg-head { color: var(--cm-pine); }
[data-trip-theme="christmas-magic"] .pc-chip { background: #FFFFFF; border: 1.5px solid #EAD6A6; }
[data-trip-theme="christmas-magic"] .pc-emoji { background: #FCEFD6; }

/* the home base: a cottage scene, a lit garland, a snow cap */
[data-trip-theme="christmas-magic"] .home-card {
  grid-template-columns: minmax(190px, 28%) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 24px;
  min-height: 220px;
  margin-top: 8px;
  padding: 0 24px 0 0;
}
[data-trip-theme="christmas-magic"] .home-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -4px;
  right: -4px;
  top: -6px;
  height: 40px;
  pointer-events: none;
  background: url("/img/themes/christmas-magic/garland-x.svg") 0 0 / 200px 40px repeat-x;
}
[data-trip-theme="christmas-magic"] .home-card::before { top: -17px; }
[data-trip-theme="christmas-magic"] .home-card .ic-art {
  width: auto;
  height: auto;
  min-height: 220px;
  font-size: 0;
  border-radius: 12px 0 0 12px;
  background: url("/img/themes/christmas-magic/cottage.svg") 50% 100% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}
[data-trip-theme="christmas-magic"] .home-card .ic-main,
[data-trip-theme="christmas-magic"] .home-card .ic-links { align-self: center; padding: 38px 0 22px; }
[data-trip-theme="christmas-magic"] .home-card .ic-title { font-size: 1.85rem; }
[data-trip-theme="christmas-magic"] .ic-links .ts-btn {
  min-width: 190px;
  background: linear-gradient(180deg, #1C8048 0%, #12663A 52%, #0A4A29 100%) padding-box, var(--cm-btn-gold) border-box;
}
[data-trip-theme="christmas-magic"] .ic-links .ts-btn:nth-child(2) {
  background: linear-gradient(180deg, #D9302F 0%, #BE141D 52%, #940D16 100%) padding-box, var(--cm-btn-gold) border-box;
}
[data-trip-theme="christmas-magic"] .trip-site a.ts-btn,
[data-trip-theme="christmas-magic"] .ic-links a.ts-btn { color: #FFFFFF; }
[data-trip-theme="christmas-magic"] .home-card .reveal { background: #FFFFFF; }

[data-trip-theme="christmas-magic"] .ts-nudge { background: var(--cm-cream); border-color: #D8B466; box-shadow: var(--t-shadow); }

/* footer sits on the snow in a little cream tag */
[data-trip-theme="christmas-magic"] .ts-footer p {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  color: var(--cm-ink);
  background: rgba(255, 251, 241, .94);
  border: 1.5px solid #E3C47E;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(20, 40, 90, .2);
}

/* ---------- themed dialogs ---------- */
[data-trip-theme="christmas-magic"] .sheet-inner { border: 3px solid var(--cm-gold); }
[data-trip-theme="christmas-magic"] .sheet-head {
  position: relative;
  padding-top: 24px;
  color: #FFFFFF;
  background: linear-gradient(180deg, #D9302F 0%, #B5121B 60%, #8A0B14 100%);
  border-bottom: 3px solid var(--cm-gold);
}
[data-trip-theme="christmas-magic"] .sheet-head::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: -10px;
  height: 34px;
  pointer-events: none;
  border: 0 solid transparent;
  border-image: url("/img/themes/christmas-magic/snowcap.svg") 0 40 fill / 0 40px / 0 round;
}
[data-trip-theme="christmas-magic"] .sheet-head > * { position: relative; }
[data-trip-theme="christmas-magic"] .sheet-title { font-size: 1.75rem; font-weight: 700; text-shadow: 0 2px 0 var(--cm-red-dk); }
[data-trip-theme="christmas-magic"] .sheet-head .sheet-x { color: #FFFFFF; }
[data-trip-theme="christmas-magic"] .sheet-head .sheet-x:hover { background: rgba(255, 255, 255, .16); }
[data-trip-theme="christmas-magic"] .sheet-head .sheet-x:focus-visible { outline-color: #FFD34D; }
[data-trip-theme="christmas-magic"] .ds-chip,
[data-trip-theme="christmas-magic"] .day-sheet .wx { background: #FFFFFF; border: 1.5px solid #EAD6A6; }
[data-trip-theme="christmas-magic"] .tl-item { background: #FFFFFF; border-color: #EAD6A6; border-left-color: var(--accent); box-shadow: 0 2px 0 rgba(120, 80, 20, .08); }
[data-trip-theme="christmas-magic"] .tl-title { color: var(--cm-ink); }
[data-trip-theme="christmas-magic"] .tl-edit { background: #FFF6E3; border-color: #E3C47E; }
[data-trip-theme="christmas-magic"] .ds-add-btn { background: #FFF8EA; border: 2px solid #EAD29A; }
[data-trip-theme="christmas-magic"] .ds-add-btn:hover { border-color: var(--cm-red); }

/* ---------- tablet: hero stacks; the wreath sits on the snow beside the buttons ---------- */
@container trip (max-width: 899px) {
  [data-trip-theme="christmas-magic"] .ts-side { width: auto; flex-wrap: nowrap; gap: 22px; }
  [data-trip-theme="christmas-magic"] .ts-actions { flex-direction: column; width: 180px; }
  [data-trip-theme="christmas-magic"] .ts-count { flex: none; }
}

/* ---------- phone ---------- */
@container trip (max-width: 599px) {
  [data-trip-theme="christmas-magic"] .ts-backdrop {
    background:
      url("/img/themes/christmas-magic/scene.svg") 57% 0 / 1500px 609px no-repeat,
      linear-gradient(180deg, #0A1838 0, #12285E 120px, #24488E 230px, #5A80C4 300px, #EEF3FB 340px, #D5E1F3 600px, #BFD0EC 1400px, #A9BEE4 100%);
  }
  [data-trip-theme="christmas-magic"] .ts-backdrop::before { top: 600px; }
  [data-trip-theme="christmas-magic"] .ts-hero { gap: 14px; margin-bottom: 30px; }
  [data-trip-theme="christmas-magic"] .ts-masthead { min-height: 0; padding: 112px 0 6px; }
  [data-trip-theme="christmas-magic"] .ts-deco-1 {
    left: -14px;
    top: -10px;
    bottom: auto;
    width: 96px;
    height: 230px;
    background-image: url("/img/themes/christmas-magic/lamp.svg");
    background-position: 0 0;
    background-size: auto 230px;
  }
  [data-trip-theme="christmas-magic"] .ts-deco-2 {
    right: 4%;
    top: -6px;
    bottom: auto;
    width: 62%;
    height: 200px;
    background-position: 50% 0;
  }
  [data-trip-theme="christmas-magic"] .ts-eyebrow { font-size: 1.75rem; }
  [data-trip-theme="christmas-magic"] .ts-title { padding: .18em .55em .26em; max-width: calc(100% - 1.4em); }
  [data-trip-theme="christmas-magic"] .ts-title::after { left: -.7em; right: -.7em; background-size: 1.2em 100%, 1.2em 100%; }
  [data-trip-theme="christmas-magic"] .ts-dates { margin-top: 24px; padding: 6px 14px; font-size: .92rem; }
  [data-trip-theme="christmas-magic"] .ts-side { gap: 14px; }
  [data-trip-theme="christmas-magic"] .ts-count { flex-direction: column; width: 150px; height: 161px; padding: 18px 0 0; }
  [data-trip-theme="christmas-magic"] .ts-count-n { font-size: 2.35rem; }
  [data-trip-theme="christmas-magic"] .ts-count-l { max-width: 64px; font-size: .76rem; }
  [data-trip-theme="christmas-magic"] .ts-count-during .ts-count-n,
  [data-trip-theme="christmas-magic"] .ts-count-after .ts-count-n { font-size: 1.8rem; }
  [data-trip-theme="christmas-magic"] .ts-actions { width: 160px; gap: 8px; }
  [data-trip-theme="christmas-magic"] .ts-actions .ts-btn { font-size: 1rem; }

  [data-trip-theme="christmas-magic"] .ts-days {
    padding: 6px 2px 4px;
    border-width: 16px;
    border-image-width: 30px;
    border-image-outset: 8px;
    border-radius: 18px;
  }
  [data-trip-theme="christmas-magic"] .ts-day-grid { gap: 8px; }
  [data-trip-theme="christmas-magic"] .day-card { min-height: 88px; }
  [data-trip-theme="christmas-magic"] .day-card::after { top: -8px; width: 32px; height: 23px; }
  [data-trip-theme="christmas-magic"] .dc-li:nth-child(even) .day-card::after { left: auto; right: -4px; transform: rotate(12deg); }
  [data-trip-theme="christmas-magic"] .dc-head { width: 66px; padding: 16px 2px 6px; border-right: 2px dashed #E3C47E; }
  [data-trip-theme="christmas-magic"] .dc-date { font-size: 1.12rem; }
  [data-trip-theme="christmas-magic"] .dc-body { column-gap: 8px; padding: 16px 2px 8px 8px; }
  [data-trip-theme="christmas-magic"] .dc-icon { font-size: 1.9rem; }
  [data-trip-theme="christmas-magic"] .dc-icon::before { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  [data-trip-theme="christmas-magic"] .dc-title { font-size: 1.16rem; overflow-wrap: break-word; }
  [data-trip-theme="christmas-magic"] .dc-sub { font-size: .76rem; }
  [data-trip-theme="christmas-magic"] .dc-foot { max-width: 100px; padding: 16px 8px 8px 0; }

  [data-trip-theme="christmas-magic"] .home-card { grid-template-columns: 1fr; gap: 0; padding: 0; }
  [data-trip-theme="christmas-magic"] .home-card .ic-art {
    width: auto;
    min-height: 180px;
    border-radius: 12px 12px 0 0;
    background-position: 50% 42%;
    -webkit-mask-image: linear-gradient(#000 78%, transparent);
    mask-image: linear-gradient(#000 78%, transparent);
  }
  [data-trip-theme="christmas-magic"] .home-card .ic-main { padding: 4px 18px 6px; }
  [data-trip-theme="christmas-magic"] .home-card .ic-links { grid-column: auto; padding: 8px 18px 18px; }
  [data-trip-theme="christmas-magic"] .ic-links .ts-btn { min-width: 0; padding: 8px 10px; font-size: .98rem; white-space: nowrap; }
  [data-trip-theme="christmas-magic"] .home-card .ic-title { font-size: 1.6rem; }
  [data-trip-theme="christmas-magic"] .ts-footer p { border-radius: 16px; }
}


/* ---------- resort postcard frame: gold, clear of the garland ---------- */
[data-trip-theme="christmas-magic"] .home-card {
  --resort-frame: 4px solid var(--cm-gold);
  --resort-shadow: 0 0 0 2px var(--cm-red-dk), 0 10px 22px rgba(10, 24, 56, .35);
  --resort-radius: 12px;
}
[data-trip-theme="christmas-magic"] .home-card:has(.ic-resort) { grid-template-columns: auto minmax(0, 1fr) auto; }
[data-trip-theme="christmas-magic"] .home-card .ic-art.ic-resort { align-self: center; margin: 40px 0 22px 22px; }
@container trip (max-width: 599px) {
  [data-trip-theme="christmas-magic"] .home-card:has(.ic-resort) { grid-template-columns: minmax(0, 1fr); }
  [data-trip-theme="christmas-magic"] .home-card .ic-art.ic-resort { margin: 36px 16px 8px; }
}

@media print {
  [data-trip-theme="christmas-magic"] .ts-title { padding: 0 !important; }
  [data-trip-theme="christmas-magic"] .ts-title::before,
  [data-trip-theme="christmas-magic"] .ts-title::after { display: none !important; }
  [data-trip-theme="christmas-magic"] .ts-count { width: auto !important; height: auto !important; filter: none !important; }
  [data-trip-theme="christmas-magic"] .ts-count-l { color: #333 !important; }
  [data-trip-theme="christmas-magic"] .ts-dates { box-shadow: none !important; border: 0 !important; background: none !important; }
}
