.festive-crawl,
.festive-crawl-layer {
  --festive-display: system-ui, sans-serif;
  --festive-cranberry: #a33140;
  --festive-cranberry-hover: #b63847;
  --festive-map-ink: #f2fff6;
  --festive-map-glass: #0a2119ed;
  --festive-frame: #527e6c;
  --festive-lime: #b1f777;
  --beta-bg: 158 39% 8%;
  --beta-surface: 155 35% 12%;
  --beta-surface-2: 156 28% 17%;
  --beta-border: 156 21% 31%;
  --beta-fg: 141 45% 96%;
  --beta-muted: 149 15% 73%;
  --beta-primary: 93 88% 70%;
  --beta-primary-2: 96 72% 72%;
  --beta-card-shadow: none;
  --beta-muted-fg: var(--beta-muted);
  --beta-fg-muted: var(--beta-muted);
  --background: var(--beta-bg);
  --foreground: var(--beta-fg);
  --card: var(--beta-surface);
  --card-foreground: var(--beta-fg);
  --popover: var(--beta-surface);
  --popover-foreground: var(--beta-fg);
  --secondary: var(--beta-surface-2);
  --secondary-foreground: var(--beta-fg);
  --muted: var(--beta-surface-2);
  --muted-foreground: var(--beta-muted);
  --accent: var(--beta-surface-2);
  --accent-foreground: var(--beta-fg);
  --border: var(--beta-border);
  --input: var(--beta-border);
  --primary: var(--beta-primary);
  --primary-foreground: 155 52% 9%;
  --ring: var(--beta-primary);
  color: hsl(var(--beta-fg));
  font-family: system-ui, sans-serif;
}

.light :is(.festive-crawl, .festive-crawl-layer) {
  --beta-bg: 145 22% 94%;
  --beta-surface: 145 34% 98%;
  --beta-surface-2: 145 23% 89%;
  --beta-border: 150 16% 72%;
  --beta-fg: 154 35% 13%;
  --beta-muted: 150 12% 33%;
  --beta-primary: 123 43% 27%;
  --beta-primary-2: 127 42% 33%;
  --primary-foreground: 144 52% 97%;
}

.festive-crawl { background-color: hsl(var(--beta-bg)); }

.festive-crawl :is(h1, h2, h3, .beta-ac-cd-head, .beta-route-card-name, .v3-stay strong),
.festive-crawl-layer :is(h2, h3, .beta-map-popup-name) {
  font-family: var(--festive-display);
  letter-spacing: 0;
}

.festive-crawl .beta-ac-floatheader {
  background: var(--festive-map-glass);
  border-color: var(--festive-frame);
}

.festive-crawl .beta-ac-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--festive-map-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.16;
  white-space: normal;
  overflow-wrap: anywhere;
}

.festive-crawl :is(.beta-ac-sub, .beta-ac-sep, .beta-ac-status-live) { color: #d4e8dc; }
.festive-crawl .beta-ac-dot { background: var(--festive-lime); }
.festive-crawl .beta-ac-avatar { outline: 1px solid #b5cba9; }

.festive-crawl :is(.beta-ac-icon-btn, .beta-ac-map-overlay button, .beta-ac-distance-pill),
.beta-fullmap-back.festive-crawl-layer {
  background: var(--festive-map-glass);
  border-color: var(--festive-frame);
  color: var(--festive-map-ink);
  box-shadow: none;
}
.festive-crawl .beta-ac-distance-pill { border-color: #8bcf62; }
.festive-crawl .beta-ac-distance-pill svg { color: var(--festive-lime); }

.festive-crawl .beta-ac-content { border-top: 1px solid hsl(var(--beta-border)); }

.festive-crawl .beta-ac-countdown {
  border-color: hsl(var(--beta-border));
  box-shadow: inset 0 2px 0 hsl(var(--beta-primary) / .5);
}

.festive-crawl .beta-ac-cd-head { font-size: 18px; }
.festive-crawl .beta-ac-cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.festive-crawl .beta-ac-cd-cell { min-width: 0; }
.festive-crawl .beta-ac-cd-num {
  font: 800 30px/1 var(--festive-display);
  font-variant-numeric: lining-nums tabular-nums;
}
.festive-crawl .beta-ac-cd-label { font-size: 9px; }
.festive-crawl .beta-ac-info-h { font-size: 21px; }

.festive-crawl .beta-route-pin {
  position: relative;
  background: var(--festive-cranberry);
  border: 1px solid #ffaca6;
  border-radius: 50% 50% 42% 42%;
  color: var(--festive-map-ink);
  box-shadow: none;
}
.festive-crawl .beta-route-item:nth-child(even) .beta-route-pin:not(.beta-route-pin-active) {
  background: #276237;
  border-color: #a9dbb6;
}
.festive-crawl .beta-route-pin::before {
  content: '';
  position: absolute;
  inset: -4px auto auto;
  width: 8px;
  height: 5px;
  border: 1px solid #7c5623;
  border-radius: 2px;
  background: #eac078;
}
.festive-crawl .beta-route-pin-active { background: #f4cc66; border-color: #fff0b4; color: #33220b; }
.festive-crawl .beta-route-line {
  background: repeating-linear-gradient(to bottom, hsl(var(--beta-border)) 0 2px, transparent 2px 7px);
}
.festive-crawl .beta-route-card-name { font-size: 17px; }

.festive-crawl :is(.beta-route-card-pill, .beta-ac-going-avatar:not(.beta-ac-going-more)),
.festive-crawl-layer :is(.beta-map-popup-badge, .beta-map-popup-cta) {
  background: var(--festive-cranberry);
  color: var(--festive-map-ink);
  letter-spacing: 0;
  box-shadow: none;
}
.festive-crawl-layer .beta-map-popup-cta:hover { background: var(--festive-cranberry-hover); }
.festive-crawl-layer .beta-map-popup-name { font-size: 21px; }

/* The dialog primitives render into portals outside the themed page. */
.festive-crawl-layer:not(.beta-ac-notif-pop, .beta-map-popup-sheet, .beta-fullmap-back) {
  background-color: hsl(var(--beta-surface));
  border-color: hsl(var(--beta-border));
}

@media (max-width: 767px) {
  .festive-crawl .beta-ac-map-overlay:is(.tl, .tr) {
    top: calc(env(safe-area-inset-top, 0px) + 90px);
  }
  .festive-crawl .beta-ac-map-overlay:is(.bl, .br) { bottom: 34px; }

  /* Match the V6 floating bar without applying the holiday treatment to the app shell. */
  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav {
    --festive-nav-gold: #f4ce84;
    --festive-nav-cranberry: #f4a6a8;
    --festive-nav-spruce: #a9d5b8;
    --festive-nav-lime: #b1f777;
    left: 50%;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 40;
    width: calc(100% - 24px);
    max-width: 440px;
    height: 68px;
    transform: translateX(-50%);
    padding: 5px 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid #527e6c;
    border-radius: 24px;
    background: #0b211a;
    box-shadow: 0 8px 24px rgb(10 20 15 / 30%);
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav .beta-bn-item {
    --festive-nav-icon: var(--festive-nav-gold);
    min-width: 0;
    height: 56px;
    justify-content: center;
    gap: 3px;
    padding: 3px 0 6px;
    border-radius: 16px;
    color: #dceee3;
    font-size: 10px;
    line-height: 14px;
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav :is([data-nav-item="crawl"], [data-nav-item="venues"]) {
    --festive-nav-icon: var(--festive-nav-cranberry);
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav :is([data-nav-item="home"], [data-nav-item="profile"]) {
    --festive-nav-icon: var(--festive-nav-spruce);
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav .beta-bn-item:focus-visible {
    outline: 2px solid var(--festive-nav-gold);
    outline-offset: -2px;
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav :is(.beta-bn-icon, .beta-bn-fab) { display: none; }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav .beta-bn-festive-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 24px;
    color: var(--festive-nav-icon);
  }

  .beta-bn-festive-spark {
    position: absolute;
    top: 0;
    right: -3px;
    color: var(--festive-nav-gold);
    fill: currentColor;
    stroke-width: 1.5;
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav [data-nav-item="crawl"] {
    --festive-nav-icon: #16310f;
    background: var(--festive-nav-lime);
    color: #16310f;
    font-weight: 750;
  }

  .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav [data-nav-item="crawl"]::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #16310f;
  }
}

@media (min-width: 768px) {
  .festive-crawl .beta-ac-title { font-size: 20px; }
  .festive-crawl .beta-ac-content { border-top: 0; }
  .festive-crawl .beta-ac-cd-grid { gap: 6px; }
  .festive-crawl .beta-ac-cd-cell { padding-inline: 2px; }
  .festive-crawl .beta-ac-cd-num { font-size: 34px; }
}

/* The public V6 stop summary and venue sheet have additional style hooks. */
html:root[data-beta="on"][data-app-skin="v6"] .beta-active.festive-crawl {
  background-color: hsl(var(--beta-bg));
  color: hsl(var(--beta-fg));
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.beta-ac-content, .beta-ac-floatheader) {
  background-color: hsl(var(--beta-bg));
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.beta-ac-floatheader, .beta-ac-icon-btn, .beta-ac-map-overlay button, .beta-ac-distance-pill) {
  background: var(--festive-map-glass);
  color: var(--festive-map-ink);
  border-color: var(--festive-frame);
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .beta-ac-distance-pill { border-color: #8bcf62; }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.beta-ac-title, .v3-countdown strong, .v3-next-stop strong) {
  font-family: var(--festive-display);
  letter-spacing: 0;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.v3-crawl-date, .beta-ac-sub) { color: #d4e8dc; }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-active-summary {
  background-image: url('/christmas-stop-treeline-v2.svg');
  background-size: 148px auto;
  background-repeat: no-repeat;
  background-position: top 3px right;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-active-summary h2 {
  border-inline-start: 3px solid hsl(var(--beta-primary));
  padding-inline-start: 10px;
  font-weight: 800;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-countdown strong {
  font-size: 54px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-countdown .v3-departure {
  flex-shrink: 0;
  gap: 3px;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.v3-stop-label, .v3-countdown span, .v3-stop-progress span, .v3-next-stop small, .v3-next-stop span span, .v6-venue-slide-copy small, .v6-venue-slide-copy>span) {
  color: hsl(var(--beta-muted));
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.v3-active-tabs button, .v3-next-stop, .v3-departure) {
  color: hsl(var(--beta-fg));
  border-color: hsl(var(--beta-border));
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.v3-active-tabs, .v3-guide-adjust, .v3-active-tabs button+button) { border-color: hsl(var(--beta-border)); }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl :is(.v3-countdown strong, .v3-stop-progress .is-current, .v3-back-to-stop, .v3-active-tabs button[aria-pressed="true"], .v6-venue-carousel-controls) { color: hsl(var(--beta-primary)); }
html[data-app-skin="v6"] .festive-crawl .v3-stop-progress i { background: hsl(var(--beta-border)); }
html[data-app-skin="v6"] .festive-crawl .v3-stop-progress .is-current i { background: hsl(var(--beta-primary)); }
html[data-app-skin="v6"] .festive-crawl .v3-stop-progress .is-complete i { background: var(--festive-cranberry); }
html[data-app-skin="v6"] .festive-crawl .v3-next-action { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v6-venue-carousel {
  border-block-start: 1px solid hsl(var(--beta-border));
  padding-block-start: 14px;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v6-venue-slide-copy > small:first-child {
  color: hsl(var(--beta-primary));
  font-weight: 700;
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v6-venue-carousel-controls button {
  background: hsl(var(--beta-surface));
  border-color: hsl(var(--beta-border));
  color: hsl(var(--beta-fg));
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v6-venue-carousel-controls button[aria-label="Next venue"]:enabled {
  border-color: hsl(var(--beta-primary));
}
html:root[data-beta="on"][data-app-skin="v6"] .beta-map-popup-sheet.v6-venue-popup.festive-crawl-layer {
  background: hsl(var(--beta-surface)) !important;
  border-color: var(--festive-frame) !important;
  color: hsl(var(--beta-fg));
}
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl-layer .v6-venue-popup-title { font-family: var(--festive-display); }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl-layer .v6-venue-popup-status { background: var(--festive-map-glass); color: var(--festive-map-ink); }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl-layer :is(.v6-venue-popup-eyebrow, .v6-venue-popup-address, .v6-venue-popup-visit small, .v6-venue-popup-description) { color: hsl(var(--beta-muted)); }
html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl-layer :is(.v6-venue-popup-eyebrow>span:first-child, .v6-venue-popup-visit>svg, .v6-venue-popup-visit>span) { color: hsl(var(--beta-primary)); }
html[data-app-skin="v6"] .festive-crawl-layer .v6-venue-popup-visit { border-color: hsl(var(--beta-border)); }

@media (max-width: 767px) {
  html:root[data-app-skin="v6"] .beta-shell-root:has(> main .beta-active.festive-crawl) > .beta-bottomnav {
    background: #0b211a;
    border-color: #527e6c;
  }
}

@media (max-width: 370px) {
  html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-countdown { gap: 10px; }
  html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-countdown strong { font-size: 42px; }
  html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-countdown span { font-size: 12px; }
  html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-countdown .v3-departure { padding-inline-start: 12px; }
  html:root[data-beta="on"][data-app-skin="v6"] .festive-crawl .v3-active-summary { background-size: 118px auto; }
}
