@font-face {
  font-family: Alegreya;
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/alegreya/alegreya-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Alegreya;
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/alegreya/alegreya-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.festive-crawl,
.festive-crawl-layer {
  --festive-display: Alegreya, Georgia, 'Times New Roman', serif;
  --festive-cranberry: #8f303c;
  --festive-cranberry-hover: #a53b48;
  --festive-cream: #fff1d2;
  --festive-brass: #a2824d;
  --beta-bg: 156 34% 10%;
  --beta-surface: 153 31% 15%;
  --beta-surface-2: 151 26% 20%;
  --beta-border: 70 18% 29%;
  --beta-fg: 42 68% 92%;
  --beta-muted: 44 20% 72%;
  --beta-primary: 40 68% 69%;
  --beta-primary-2: 40 64% 75%;
  --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: 156 34% 10%;
  --ring: var(--beta-primary);
  color: hsl(var(--beta-fg));
  font-family: system-ui, sans-serif;
}

.light :is(.festive-crawl, .festive-crawl-layer) {
  --beta-bg: 44 41% 93%;
  --beta-surface: 43 60% 97%;
  --beta-surface-2: 43 37% 89%;
  --beta-border: 42 26% 68%;
  --beta-fg: 151 27% 16%;
  --beta-muted: 153 9% 32%;
  --beta-primary: 36 64% 31%;
  --beta-primary-2: 36 65% 35%;
  --primary: 352 50% 37%;
  --primary-foreground: 42 100% 91%;
}

.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: #18372b;
  border-color: var(--festive-brass);
}

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

.festive-crawl :is(.beta-ac-sub, .beta-ac-sep) { color: #ded4b5; }
.festive-crawl .beta-ac-status-live { color: #b3e3bf; }
.festive-crawl .beta-ac-status-live--upcoming { color: #f4cb7c; }
.festive-crawl .beta-ac-dot.upcoming { background: #f4cb7c; }
.festive-crawl .beta-ac-avatar { outline: 1px solid var(--festive-brass); }

.festive-crawl :is(.beta-ac-icon-btn, .beta-ac-map-overlay button, .beta-ac-distance-pill),
.beta-fullmap-back.festive-crawl-layer {
  background: #1c3a2e;
  border-color: var(--festive-brass);
  color: var(--festive-cream);
  box-shadow: none;
}
.festive-crawl .beta-ac-distance-pill svg { color: #f4cb7c; }

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

.festive-crawl .beta-ac-countdown {
  border-color: var(--festive-brass);
  box-shadow: inset 0 3px 0 var(--festive-cranberry);
}

.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: 700 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 var(--festive-brass);
  border-radius: 50% 50% 42% 42%;
  color: var(--festive-cream);
  box-shadow: none;
}
.festive-crawl .beta-route-item:nth-child(even) .beta-route-pin:not(.beta-route-pin-active) { background: #285640; }
.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: #eac078; color: #352511; }
.festive-crawl .beta-route-line {
  background: repeating-linear-gradient(to bottom, var(--festive-brass) 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-cream);
  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;
    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 #a2824d;
    border-radius: 24px;
    background: #18372b;
    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: #ddd6c0;
    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"] {
    background: #3a4028;
    color: var(--festive-nav-gold);
  }

  .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: var(--festive-nav-gold);
  }
}

@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: #18372b;
  color: var(--festive-cream);
  border-color: var(--festive-brass);
}
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: #ded4b5; }
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: var(--festive-cranberry); color: var(--festive-cream); }
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-brass) !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-cranberry); color: var(--festive-cream); }
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: #18372b;
    border-color: #a2824d;
  }
}
