/* ============================================================
   JetPages — Christmas & New Year
   Every selector is prefixed .xm- (or scoped under .xm) so nothing
   here can leak into the rest of the site.
   ============================================================ */

.xm {
  --xm-green: #102D26;
  --xm-red: #850B1B;
  --xm-gold: #D9AD58;
  --xm-gold-deep: #7a5310;         /* gold for text on ivory (≈6:1) */
  --xm-ivory: #FFF8ED;
  --xm-white: #FFFFFF;
  --xm-ink: #202020;
  --xm-dim: #55504a;
  --xm-line: #eadcc4;
  --xm-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --xm-sans: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Festive page: soft fairy-light glows and a faint gold star pattern on deep green.
     All text sits on the ivory/white panels above it, so contrast is unchanged. */
  background:
    radial-gradient(circle 420px at 8% 18%, rgba(217, 173, 88, .16), transparent 70%),
    radial-gradient(circle 380px at 94% 34%, rgba(133, 11, 27, .30), transparent 70%),
    radial-gradient(circle 460px at 6% 58%, rgba(133, 11, 27, .26), transparent 70%),
    radial-gradient(circle 420px at 92% 78%, rgba(217, 173, 88, .14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23D9AD58'%3E%3Cpath opacity='.16' d='M24 14l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath opacity='.10' d='M86 70l1.5 4.5 4.5 1.5-4.5 1.5L86 82l-1.5-4.5L80 76l4.5-1.5z'/%3E%3Ccircle opacity='.14' cx='92' cy='22' r='1.5'/%3E%3Ccircle opacity='.12' cx='40' cy='96' r='1.2'/%3E%3C/g%3E%3C/svg%3E"),
    var(--xm-green);
  color: var(--xm-ink);
  font-family: var(--xm-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  padding-bottom: 40px;
}
.xm *, .xm *::before, .xm *::after { box-sizing: border-box; }
:where(.xm) :where(h1, h2, h3, h4, p, ul, figure) { margin: 0; padding: 0; }
:where(.xm) ul { list-style: none; }
:where(.xm) img { display: block; max-width: 100%; height: auto; }
.xm a { text-decoration: none; }
.xm [id] { scroll-margin-top: 92px; }
.xm :focus-visible { outline: 3px solid var(--xm-red); outline-offset: 2px; }
.xm-hero :focus-visible, .xm-cats :focus-visible, .xm-promo :focus-visible { outline-color: var(--xm-gold); }
.xm [hidden] { display: none !important; }

.xm-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.xm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.xm h2, .xm-stories h2 {
  font-family: var(--xm-serif); font-weight: 700; color: var(--xm-red);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15;
}

/* ── Buttons and links ── */
.xm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 8px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; background: none;
  font-family: inherit;
}
.xm .xm-btn-gold { background: var(--xm-gold); color: var(--xm-green); }
.xm .xm-btn-gold:hover { background: #e7c279; color: var(--xm-green); }
.xm .xm-btn-line { border-color: var(--xm-gold); color: var(--xm-white); }
.xm .xm-btn-line:hover { background: rgba(217, 173, 88, .18); color: var(--xm-white); }
.xm .xm-btn-outline { border-color: var(--xm-red); color: var(--xm-red); }
.xm .xm-btn-outline:hover { background: var(--xm-red); color: var(--xm-white); }
.xm .xm-link { display: inline-block; padding: 6px 0; color: var(--xm-red); font-weight: 700; font-size: .92rem; }
.xm .xm-link:hover { text-decoration: underline; }
.xm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.xm-actions-end { margin-top: 20px; justify-content: center; }

/* ── Hero ── */
.xm-hero { position: relative; background: var(--xm-green); color: var(--xm-white); overflow: hidden; }
.xm-hero { padding-top: 72px; }   /* the site header overlays the top of the page */
.xm-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 30%; }
@media (min-width: 640px) { .xm-hero-img { aspect-ratio: 21 / 9; } }
.xm-hero-copy { padding-top: 24px; padding-bottom: 28px; position: relative; }
.xm-kicker {
  display: inline-block; padding: 5px 14px; border-radius: 4px; margin-bottom: 14px;
  background: var(--xm-red); color: var(--xm-white); font-size: .8rem; font-weight: 700; letter-spacing: .03em;
}
.xm-hero h1 { font-family: var(--xm-serif); font-weight: 700; line-height: 1; color: var(--xm-white); }
.xm-hero h1 span { display: block; font-style: italic; color: var(--xm-gold); font-size: clamp(3rem, 7vw, 5.6rem); }
.xm-hero h1 em { display: block; font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin-top: 6px; }
.xm-tagline { margin: 16px 0 12px; font-family: var(--xm-serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--xm-gold); }
.xm-lead { max-width: 54ch; margin-bottom: 20px; }

@media (min-width: 640px) and (max-width: 1359px) { .xm-hero { padding-top: 88px; } }
@media (min-width: 992px) and (max-width: 1359px) { .xm-hero-img { aspect-ratio: 3 / 1; object-position: 50% 10%; } }
@media (min-width: 1360px) {
  .xm-hero { min-height: 560px; padding-top: 0; display: flex; align-items: center; }
  .xm-hero-img { position: absolute; top: 0; right: 0; width: min(60%, calc(50% + 130px)); height: 100%; aspect-ratio: auto; object-position: 86% 30%; }
  .xm-hero::after {
    content: ''; position: absolute; inset: 0 0 0 auto; width: min(60%, calc(50% + 130px));
    background:
      linear-gradient(180deg, rgba(16, 45, 38, .78) 0, rgba(16, 45, 38, 0) 104px),
      linear-gradient(90deg, var(--xm-green) 0%, rgba(16, 45, 38, 0) 14%);
  }
  .xm-hero-copy { z-index: 1; padding-top: 104px; padding-bottom: 36px; }
  .xm-hero-copy > * { max-width: 480px; }
  .xm-hero h1 span { font-size: 5rem; }
  .xm-hero h1 em { font-size: 2.5rem; }
}

/* ── Category bar ── */
.xm-cats { background: var(--xm-red); border-top: 3px solid var(--xm-gold); }
.xm-cats ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.xm .xm-cats a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%;
  padding: 16px 8px; color: var(--xm-white); text-align: center;
}
.xm .xm-cats a:hover { background: rgba(0, 0, 0, .2); color: var(--xm-white); }
.xm-cats i { font-size: 1.7rem; color: var(--xm-gold); margin-bottom: 6px; }
.xm-cats strong { font-size: .98rem; line-height: 1.2; }
.xm-cats span { font-size: .8rem; }
.xm-cats li + li { border-left: 1px solid rgba(255, 255, 255, .22); }
@media (max-width: 767px) {
  .xm-cats ul { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .xm-cats li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .xm-cats li:nth-child(odd) { border-left: 0; }
  .xm-cats li:last-child { grid-column: 1 / -1; border-left: 0; border-bottom: 0; }
}

/* ── Advertisements: reserved height stops the layout shifting when a unit fills ── */
.xm-ad { margin: 20px 0; text-align: center; overflow: hidden; }
.xm-ad-label { display: block; margin-bottom: 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 248, 237, .78); }
.xm-ad-leaderboard ins { min-height: 90px; }
.xm-ad-content ins { min-height: 90px; }
.xm-ad-inline ins { min-height: 250px; }
.xm-ad-side ins { min-height: 250px; }
.xm-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.xm-side { display: none; }
@media (min-width: 992px) {
  .xm-ad-inline { display: none; }
  .xm-side { display: block; }
  .xm-side .xm-ad { margin: 0 0 20px; }
}

/* ── Layout ── */
.xm-columns { display: grid; gap: 20px; margin-top: 20px; }
.xm-main { min-width: 0; display: grid; gap: 20px; }
@media (min-width: 992px) { .xm-columns { grid-template-columns: minmax(0, 1fr) 300px; } }
.xm-section { margin-top: 20px; }
.xm-panel { background: var(--xm-ivory); border: 1px solid var(--xm-line); border-radius: 12px; padding: 20px; min-width: 0; }
.xm-duo { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 992px) {
  .xm-duo { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .xm-duo-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.xm-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; margin-bottom: 16px; }
.xm-head > i { font-size: 2rem; color: var(--xm-red); margin-top: 4px; }
.xm-head > div { flex: 1 1 260px; min-width: 0; }
.xm-subhead { margin: 20px 0 10px; font-size: 1rem; font-weight: 700; color: var(--xm-green); }

/* ── Dining ── */
.xm-dining { display: grid; gap: 16px; align-items: center; }
.xm-dining img { width: 100%; height: 100%; max-height: 230px; object-fit: cover; border-radius: 8px; }
.xm-dining-copy p { margin: 10px 0 14px; }
@media (min-width: 768px) { .xm-dining { grid-template-columns: 1fr 1.2fr 1fr; } }
.xm-invite { margin-top: 16px; font-weight: 600; color: var(--xm-green); }
.xm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xm-tags li { padding: 4px 12px; border: 1px solid var(--xm-gold); border-radius: 999px; font-size: .84rem; background: var(--xm-white); }
.xm-tags-links { margin-bottom: 8px; }
.xm-tags-links li { padding: 0; }
.xm .xm-tags-links a { display: block; padding: 6px 12px; color: var(--xm-ink); }
.xm .xm-tags-links a:hover { color: var(--xm-red); }

/* ── Marketplace tiles ── */
.xm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .xm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xm-tiles a, .xm-themes a { display: block; height: 100%; background: var(--xm-white); border: 1px solid var(--xm-line); border-radius: 8px; overflow: hidden; color: var(--xm-ink); }
.xm .xm-tiles a:hover, .xm .xm-themes a:hover { border-color: var(--xm-red); color: var(--xm-red); }
.xm-tiles img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.xm-tiles strong { display: block; padding: 8px 10px 0; font-size: .92rem; line-height: 1.25; }
.xm-tiles span { display: block; padding: 2px 10px 10px; font-size: .8rem; color: var(--xm-dim); }

/* ── Business cards ── */
.xm-biz-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .xm-biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .xm-biz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xm .xm-biz-stack { grid-template-columns: 1fr; margin: 12px 0; }
.xm-biz { display: flex; gap: 12px; padding: 12px; background: var(--xm-white); border: 1px solid var(--xm-line); border-radius: 8px; color: var(--xm-ink); }
.xm-biz-logo {
  flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; overflow: hidden; background: var(--xm-green); color: var(--xm-gold);
  font-family: var(--xm-serif); font-size: 1.5rem; font-weight: 700;
}
.xm-biz-logo img { width: 100%; height: 100%; object-fit: contain; background: var(--xm-white); }
.xm-biz-body { min-width: 0; }
.xm .xm-biz h3, .xm .xm-biz h4 { font-size: .96rem; font-weight: 700; line-height: 1.25; color: var(--xm-ink); overflow-wrap: anywhere; }
.xm-premium { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--xm-gold-deep); }
.xm-biz-meta { font-size: .8rem; color: var(--xm-dim); }
.xm-biz-desc { font-size: .84rem; margin-top: 2px; }

/* ── Events ── */
.xm-themes { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .xm-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xm-themes img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.xm-themes strong { display: block; padding: 8px 12px; font-size: .95rem; }

.xm-filters { display: grid; gap: 12px; padding: 14px; background: var(--xm-white); border: 1px solid var(--xm-line); border-radius: 8px; }
@media (min-width: 640px) { .xm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .xm-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xm-field label { display: block; margin-bottom: 4px; font-size: .82rem; font-weight: 700; }
.xm-field select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid #8a8071; border-radius: 6px; background: var(--xm-white); color: var(--xm-ink); font: inherit; font-size: .92rem; }
.xm-toggles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.xm-toggles label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: .9rem; font-weight: 600; cursor: pointer; }
.xm-toggles input { width: 18px; height: 18px; accent-color: var(--xm-red); }
.xm-toggles button { min-height: 44px; margin-left: auto; padding: 0 8px; border: 0; background: none; color: var(--xm-red); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.xm-count { margin: 14px 0 10px; font-size: .9rem; }

.xm-events { display: grid; gap: 14px; }
@media (min-width: 640px) { .xm-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .xm-events { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.xm-event { background: var(--xm-white); border: 1px solid var(--xm-line); border-radius: 8px; overflow: hidden; min-width: 0; }
.xm-event-img { position: relative; background: var(--xm-green); }
.xm-event-img > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.xm-date { position: absolute; left: 10px; bottom: 10px; width: 48px; text-align: center; border-radius: 6px; overflow: hidden; background: var(--xm-white); color: var(--xm-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.xm-date small { display: block; background: var(--xm-red); color: var(--xm-white); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.xm-date b { display: block; font-size: 1.2rem; line-height: 1.4; }
.xm-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.xm-badge { padding: 2px 8px; border-radius: 4px; background: var(--xm-green); color: var(--xm-white); font-size: .72rem; font-weight: 700; }
.xm-badge-festive { background: var(--xm-red); }
.xm-like { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--xm-red); font-size: 1.05rem; cursor: pointer; }
.xm-event-body { padding: 12px; }
.xm-event h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; overflow-wrap: anywhere; }
.xm .xm-event h3 a { color: var(--xm-ink); }
.xm .xm-event h3 a:hover { color: var(--xm-red); }
.xm .event-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .82rem; color: var(--xm-dim); }
.xm-more { display: flex; margin: 16px auto 0; }
.xm-empty { margin-top: 12px; padding: 16px; background: var(--xm-white); border: 1px dashed var(--xm-gold); border-radius: 8px; }
.xm .xm-empty a { color: var(--xm-red); font-weight: 700; text-decoration: underline; }

/* ── News ── */
.xm-news { display: grid; gap: 14px; margin-bottom: 14px; }
.xm-story { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--xm-line); }
.xm-story-img { align-self: start; aspect-ratio: 8 / 5; border-radius: 6px; overflow: hidden; background: var(--xm-green); }
.xm-story-img img { width: 100%; height: 100%; object-fit: cover; }
.xm-story-cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--xm-gold-deep); }
.xm-story h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 2px 0 4px; }
.xm .xm-story h3 a { color: var(--xm-ink); }
.xm .xm-story h3 a:hover { color: var(--xm-red); }
.xm-story p { font-size: .86rem; }
.xm .xm-story-by { font-size: .78rem; color: var(--xm-dim); margin-top: 2px; }
@media (min-width: 768px) { .xm-story { grid-template-columns: 180px minmax(0, 1fr); } }

/* ── Our stories ── */
.xm-stories img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; border-radius: 8px; margin-bottom: 14px; }
.xm-stories p { margin: 10px 0; }
.xm-stories .xm-link { margin-top: 10px; }

/* ── Chauffeur and registration ── */
.xm-promo { border-radius: 12px; overflow: hidden; color: var(--xm-white); display: flex; flex-direction: column; }
.xm-promo-green { background: var(--xm-green); border: 1px solid rgba(217, 173, 88, .55); }   /* edge it against the green page */
.xm-promo-red { background: linear-gradient(135deg, var(--xm-red), #5f0713); border: 2px solid var(--xm-gold); }
.xm-promo > img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; }
.xm-promo-body { padding: 20px; flex: 1; }
.xm-promo-red > img { order: -1; flex: 1 1 auto; min-height: 0; height: 100%; }
.xm-promo-red .xm-promo-body { flex: 0 0 auto; }
.xm .xm-promo h2 { color: var(--xm-gold); }
.xm-promo p { margin: 10px 0; }
.xm-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 12px 0 16px; font-size: .92rem; }
.xm-checks li::before { content: '\2713'; color: var(--xm-gold); font-weight: 700; margin-right: 6px; }
.xm-note { font-size: .8rem; }
.xm-promo .xm-actions { margin-top: 14px; }
@media (max-width: 479px) {
  .xm-actions .xm-btn { width: 100%; }
  .xm-checks { grid-template-columns: 1fr; }
}

/* ── Country headlines ── */
.xm-eyebrow { margin-bottom: 6px; color: var(--xm-gold-deep); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.xm-country-grid { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 640px) { .xm-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .xm-country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xm-country { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.xm-country-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.xm-country-hd img { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--xm-line); flex: none; }
.xm-country-hd h3 { font-family: var(--xm-serif); font-size: 1.15rem; line-height: 1.2; color: var(--xm-green); }
.xm-country-list { align-self: stretch; margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--xm-line); }
.xm-country-list li { border-bottom: 1px solid var(--xm-line); }
.xm-country-list a { display: block; padding: 10px 0; font-size: .9rem; line-height: 1.4; color: var(--xm-ink); overflow-wrap: anywhere; }
.xm .xm-country-list a:hover { color: var(--xm-red); }
