/* Santa's flight desk. Scoped so the site's existing typography and footer stay intact. */
.santa-tracker [hidden], .tracker-home-feature [hidden] { display: none !important; }
.tracker-flight-desk { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; padding: clamp(1.3rem, 4vw, 2.5rem); border-radius: 1.5rem; border: 1px solid #ead395; border-top: 5px solid #e2bf66; background: radial-gradient(ellipse at 100% 0, #32755380, transparent 60%), linear-gradient(135deg, #103f2d, #082f26); box-shadow: 0 18px 40px #173d2820; color: #fff8e9; }
.tracker-eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: #9c762b; }
.tracker-flight-desk .tracker-eyebrow, .tracker-home-feature .tracker-eyebrow { color: #ffe3a0; }
.christmas-theme .tracker-flight-desk h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); color: #fff0bd; margin: .5rem 0 .75rem; }
.tracker-lead { font-size: 1.05rem; line-height: 1.65; max-width: 560px; color: #e8f1e5; }
.tracker-mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tracker-status, .tracker-demo-badge { display: inline-flex; align-items: center; padding: .45rem .65rem; border-radius: .5rem; font-size: .77rem; font-weight: 700; }
.tracker-status { color: #fff7dc; background: #ffffff14; border: 1px solid #ffffff2b; }
.tracker-status::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-right: .5rem; background: #b8e8ad; border-radius: 50%; box-shadow: 0 0 0 3px #a5dca822; }
.tracker-demo-badge { background: #ffe1a0; color: #44320d; border: 1px solid #f0cb74; }
.tracker-story-note { font-size: .78rem; color: #cee1cd; margin: .65rem 0 1.3rem; line-height: 1.6; }
.tracker-demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.tracker-demo-controls label { color: #e6efd9; font-size: .75rem; display: flex; align-items: center; gap: .5rem; }
.tracker-demo-controls select { width: 70px; min-height: 44px; }
.tracker-launch { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.tracker-launch > img { width: min(100%, 380px); height: auto; margin: -.75rem 0 -.3rem; }
.tracker-countdown-label { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; color: #ffdfa3; margin: 0 0 .6rem; }
.tracker-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; width: min(100%, 390px); text-align: center; }
.tracker-countdown > div { padding: .65rem .25rem; border-radius: .7rem; background: #ffffff0b; border: 1px solid #c5dfcb30; }
.tracker-countdown strong { font-variant-numeric: tabular-nums; font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff7df; display: block; line-height: 1.1; }
.tracker-countdown small { display: block; font-size: .65rem; color: #ccdfcd; margin-top: .25rem; }
.tracker-departure { margin: .75rem 0 0; font-size: .72rem; line-height: 1.6; text-align: center; color: #cadccb; }
.tracker-instruments { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 1rem; margin-top: 1.5rem; }
.tracker-instruments > div { display: flex; align-items: center; gap: .75rem; background: #fffdf5; border: 1px solid #dbe5d2; border-radius: .9rem; padding: 1rem; box-shadow: 0 5px 16px #20472a08; min-width: 0; }
.tracker-instrument-icon { font-size: 1.8rem; line-height: 1; }
.tracker-instruments small { display: block; color: #5b725f; font-size: .72rem; margin-bottom: .3rem; }
.tracker-instruments strong { display: block; color: #184d32; font-size: 1.02rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tracker-instruments > div:last-child strong { display: inline; }
.tracker-map-card { overflow: hidden; }
.tracker-map-heading { padding: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.tracker-map-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
#stMap { height: 510px; width: 100%; background: #173e50; isolation: isolate; }
.tracker-map-placeholder { width: 100%; height: 100%; object-fit: contain; }
.tracker-map-fallback { padding: .8rem 1.25rem; color: #674c12; background: #fff0c5; margin: 0; }
.tracker-sleigh-marker { border-radius: 50%; background: #b51e36; color: #fff; border: 3px solid #fff6d9; box-shadow: 0 4px 14px #172d3755; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.tracker-sleigh-marker > span { font-size: 29px; line-height: 32px; }
.tracker-sleigh-marker small { font-size: 7px; font-weight: 800; letter-spacing: 1px; line-height: 10px; }
.tracker-next-stop { padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #f4f7ec; }
.tracker-next-stop small { color: #65765b; display: block; font-size: .7rem; }
.tracker-next-stop strong { color: #234a32; display: block; margin: .2rem 0; }
.tracker-next-stop > div > span { display: block; color: #63715c; font-size: .76rem; }
.tracker-eta { flex: 0 0 auto; background: #fffaf0; border: 1px solid #dcc990; color: #6b521b; font-size: .73rem; border-radius: .5rem; padding: .5rem .6rem; font-variant-numeric: tabular-nums; }
.tracker-progress-label { display: flex; justify-content: space-between; padding: .85rem 1.25rem .4rem; color: #345239; font-size: .75rem; }
.tracker-progress { margin: 0 1.25rem 1.25rem; background: #e2e9d7; height: 9px; border-radius: 9px; overflow: hidden; }
.tracker-progress > span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(125deg, #b8213a 0 10px, #ce4960 10px 20px); border-radius: inherit; transition: width .5s; }
.tracker-place-card h2 { margin-bottom: 1rem; }
.tracker-place-time { font-weight: 800; color: #174d35; font-size: 1.05rem; margin: 1.1rem 0 .5rem; }
.tracker-visit-status { padding: .6rem .7rem; background: #edf4e7; border-radius: .55rem; color: #2b613e; font-size: .8rem; font-weight: 600; margin: .8rem 0 1.2rem; }
.tracker-dispatch p { color: #52654d; font-size: .9rem; line-height: 1.7; }
.tracker-itinerary { border: 1px solid #d9e1c9; border-radius: .9rem; background: #fffdf6; overflow: hidden; }
.tracker-itinerary summary { padding: 1.2rem; cursor: pointer; color: #214c35; font-weight: 700; min-height: 48px; }
.tracker-itinerary ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; list-style: none; margin: 0; padding: 0 1.2rem 1.2rem; }
.tracker-itinerary button { display: block; width: 100%; text-align: left; border: 1px solid #e0e6d3; border-radius: .65rem; background: #f7f9f0; padding: .75rem; min-height: 44px; color: #2b5035; }
.tracker-itinerary button:hover { background: #f6eccf; }
.tracker-itinerary button strong, .tracker-itinerary button span { display: block; }
.tracker-itinerary button strong { font-size: .8rem; margin-bottom: .3rem; }
.tracker-itinerary button span { color: #6a745e; font-size: .72rem; }
.tracker-itinerary .is-visited button { border-left: 4px solid #387c50; }
.tracker-after-flight { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 1.5rem; border: 1px solid #e3d19c; border-radius: 1rem; background: #fff7e2; }
.tracker-after-flight p { color: #647154; font-size: .85rem; }
.tracker-after-flight > div:last-child { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Home page feature: no map library or map tiles are loaded here. */
.tracker-home-feature { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 1.5rem; padding: clamp(1.4rem, 4vw, 2rem); margin-top: 2.25rem; border-radius: 1.3rem; border: 1px solid #e7c783; background: linear-gradient(115deg, #092e27ed, #1a5840); box-shadow: 0 12px 25px #072e2329; }
.christmas-theme .tracker-home-feature h2 { color: #fff0c1; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .6rem 0 .8rem; }
.tracker-home-feature p { color: #d9e7d4; line-height: 1.7; font-size: .95rem; }
.tracker-home-feature > img { width: min(100%, 390px); height: auto; justify-self: center; }
.tracker-home-live { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; margin: 1rem 0 1.5rem; }
.tracker-home-live > div { padding-left: .8rem; border-left: 2px solid #ebce87; }
.tracker-home-live strong { display: block; color: #ffedbc; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.tracker-home-live small { display: block; color: #bfd6be; font-size: .7rem; }
.tracker-home-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 991.98px) {
    .tracker-flight-desk { gap: 1rem; grid-template-columns: 1fr; }
    .tracker-launch { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
    .tracker-launch > img { grid-column: 1; grid-row: 1 / 4; width: 100%; max-width: 330px; }
    .tracker-launch .tracker-countdown-label, .tracker-launch .tracker-countdown, .tracker-launch .tracker-departure { grid-column: 2; }
    .tracker-itinerary ol { grid-template-columns: repeat(2, 1fr); }
    #stMap { height: 430px; }
    .tracker-home-feature { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 575.98px) {
    .tracker-launch { display: flex; }
    .tracker-launch > img { max-width: 270px; }
    .tracker-demo-controls .btn { flex: 1 1 auto; }
    .tracker-countdown { width: 100%; gap: .35rem; }
    .tracker-countdown strong { font-size: 1.75rem; }
    .tracker-instruments { grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
    .tracker-instruments > div:first-child { grid-column: 1 / -1; }
    .tracker-instruments > div { padding: .8rem; }
    .tracker-instruments strong { font-size: .95rem; }
    .tracker-instrument-icon { font-size: 1.5rem; }
    #stMap { height: 355px; }
    .tracker-map-heading { padding: 1rem; }
    .tracker-map-actions { width: 100%; }
    .tracker-map-actions .btn { flex: 1; }
    .tracker-next-stop { flex-direction: column; align-items: flex-start; padding: 1rem; }
    .tracker-itinerary ol { grid-template-columns: 1fr; }
    .tracker-after-flight { padding: 1.2rem; }
    .tracker-after-flight .btn { width: 100%; }
    .tracker-after-flight > div:last-child { width: 100%; }
    .tracker-home-feature { grid-template-columns: 1fr; }
    .tracker-home-feature > img { width: 260px; grid-row: 2; }
    .tracker-home-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .tracker-progress > span { transition: none; } }

.tracker-map-key { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding: .65rem 1.25rem; color: #506b54; font-size: .72rem; background: #fffdf7; }
.tracker-map-key span { display: inline-flex; align-items: center; gap: .4rem; }
.tracker-map-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.tracker-map-key .planned { background: #ffdb7d; border: 1px solid #825b20; }
.tracker-map-key .visited { background: #24734a; border: 1px solid #175339; }
/* The local atlas uses a wide world projection. */
@media (max-width: 575.98px) { #stMap { height: 270px; } }

/* Your stop, live instruments, pre-flight checklist and FAQ. */
.tracker-instruments { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tracker-home-card { border-top: 4px solid #e2bf66; }
.tracker-home-times { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0 .9rem; }
.tracker-home-times > div { padding: .65rem .7rem; border-radius: .65rem; background: #f4f7ec; border: 1px solid #dfe7d3; }
.tracker-home-times dt { font-size: .68rem; font-weight: 700; color: #5d735f; margin-bottom: .2rem; }
.tracker-home-times dd { margin: 0; font-weight: 800; color: #174d35; font-variant-numeric: tabular-nums; }
.tracker-home-form .btn { white-space: nowrap; }
.tracker-checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.tracker-checklist li { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: #4d6450; }
.tracker-checklist li::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9b37a; background: #fffdf5; }
.tracker-checklist li.is-done { color: #1f5a3a; font-weight: 600; }
.tracker-checklist li.is-done::before { border-color: #24734a; background: #24734a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tracker-checklist small { margin-left: auto; font-size: .7rem; color: #8a7a4c; font-weight: 700; }
.tracker-faq details { border: 1px solid #d9e1c9; border-radius: .8rem; background: #fffdf6; margin-bottom: .5rem; }
.tracker-faq summary { padding: .9rem 1.1rem; cursor: pointer; font-weight: 700; color: #214c35; min-height: 44px; }
.tracker-faq p { padding: 0 1.1rem 1rem; margin: 0; color: #52654d; font-size: .9rem; line-height: 1.7; }
@media (max-width: 575.98px) { .tracker-home-times { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
  .tracker-instruments { grid-template-columns: 1fr 1fr; }
  .tracker-instruments > div:first-child { grid-column: 1 / -1; }
  .tracker-instruments > div:last-child { grid-column: 1 / -1; }
}
