/* Journey player / map explorer (Tour): full-screen, Relive-style. Parchment look as the Journey map. */
html.tour-open,html.tour-open body{overflow:hidden;overscroll-behavior:none}
.tour{position:fixed;inset:0;z-index:48;background:var(--jm-sea);height:100vh;height:100dvh;overflow:hidden;contain:strict}
.tour:fullscreen{width:100vw;height:100vh}
.tour::backdrop{background:var(--jm-sea)}
.tour-map{position:absolute;inset:0;overflow:hidden;touch-action:none;background:var(--jm-sea);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.tour-map::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 90px rgba(107,74,47,.28)}
.tour-plane{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;will-change:transform;backface-visibility:hidden}
.tour-grain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:.9}
html[data-theme="dark"] .tour-grain{opacity:.35}
.tour-ovs{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#tr-wg.tr-fade{animation:trfade .5s ease}
@keyframes trfade{from{opacity:.15}to{opacity:1}}
.tr-leg{fill:none;stroke:var(--jm-route-off);stroke-width:2.5px;stroke-dasharray:2 7;stroke-linecap:round}
.tr-leg.done{stroke:var(--jm-route);stroke-width:3.5px;stroke-dasharray:none;opacity:.85}
.tr-leg.now{stroke:var(--jm-route);stroke-width:5px;opacity:1;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--jm-gold) 70%,transparent))}
.tr-leg.ahead{stroke:var(--jm-route);stroke-width:2.5px;stroke-dasharray:3 8;opacity:.45}
.tr-pin{cursor:pointer;pointer-events:auto}
.tr-hit{fill:transparent}
.tr-dot{fill:var(--jm-pin);stroke:var(--jm-ink);stroke-width:2}
.tr-pin.done .tr-dot{fill:var(--jm-pin-lit);stroke:var(--jm-gold)}
.tr-pin.now .tr-dot{r:9;fill:var(--jm-gold);stroke:var(--jm-ink);stroke-width:2.5}
.tr-pl{font:500 11px var(--sans);fill:var(--jm-ink);opacity:.82;paint-order:stroke;stroke:var(--jm-land);stroke-width:4px;stroke-linejoin:round;transition:opacity .25s}
.tr-pin.done .tr-pl,.tr-pin.prev .tr-pl{font-weight:600;font-size:12.5px;opacity:1}
.tr-pin.now .tr-pl{font-size:14px;font-weight:700;opacity:1;transform:translateY(40px)}
.tr-pin.nolbl .tr-pl,.tr-mlbl.nolbl .tr-ml{opacity:0}
.tr-ml{font-family:var(--display);font-style:italic;font-size:15px;fill:var(--jm-ink);opacity:.62;letter-spacing:.04em;transition:opacity .25s}
.tr-ml.small{font-size:12.5px}
.tr-ml.sea,.tr-ml.water{fill:#4F7479}
html[data-theme="dark"] .tr-ml.sea,html[data-theme="dark"] .tr-ml.water{fill:#8FB2B5}
.tr-trav{pointer-events:none}
.tr-tshadow{fill:rgba(40,25,10,.28)}
.tr-tring{fill:var(--surface);stroke:var(--jm-pin-lit);stroke-width:3;filter:drop-shadow(0 3px 4px rgba(0,0,0,.28))}
.tr-temo{font-size:20px}
.tr-stem{fill:var(--jm-pin-lit)}
.bj-river{stroke-width:2.2px;opacity:.75}
/* floating header */
.tour-top{position:absolute;left:0;right:0;top:0;z-index:3;display:flex;align-items:center;gap:6px;padding:calc(var(--safe-top,0px) + 6px) 8px 14px;background:linear-gradient(to bottom,color-mix(in srgb,var(--bg) 92%,transparent) 55%,transparent);pointer-events:none}
.tour-top>*{pointer-events:auto}
.tour-ib{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:19px;background:var(--surface);border:1px solid var(--line);color:var(--ink);flex-shrink:0;box-shadow:var(--shadow-sm)}
.tour-ttl{flex:1;min-width:0;display:flex;flex-direction:column;text-align:center;line-height:1.2;pointer-events:none}
.tour-ttl b{font-family:var(--display);font-size:18px;font-weight:500}
.tour-ttl span{font-size:12.5px;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* bottom stack: map buttons, the stop card, the controls */
.tour-bottom{position:absolute;left:0;right:0;bottom:0;z-index:3;display:flex;flex-direction:column;pointer-events:none}
.tour-bottom>*{pointer-events:auto}
.tour-fabs{pointer-events:none!important;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;padding:0 10px 8px}
.tour-fabs>*{pointer-events:auto}
.tour-acc{flex:1;min-width:0;max-width:260px;pointer-events:none!important}
.tour-acc>*{pointer-events:auto}
.tour-accb{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:7px 10px;font-size:12px;font-weight:600;color:var(--ink-soft);box-shadow:var(--shadow-sm)}
.tour-acc p{margin:0 0 6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:12.5px;line-height:1.45;color:var(--ink-soft);box-shadow:var(--shadow);order:-1}
.tour-acc{display:flex;flex-direction:column;align-items:flex-start}
.tour-acc p.hidden{display:none}
.tour-follow{align-self:flex-end;padding:10px 14px;border-radius:22px;background:var(--accent);color:var(--bg);font-weight:700;font-size:14px;border:none;box-shadow:var(--shadow);white-space:nowrap;animation:trpop .3s cubic-bezier(.2,1.4,.4,1)}
html[data-theme="dark"] .tour-follow{color:#161310}
.tour-follow.hidden{display:none}
.tour-zoom{display:flex;flex-direction:column;gap:6px}
.tour-zoom button{width:44px;height:44px;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);font-size:21px;font-weight:600;color:var(--ink)}
#tr-rec{font-size:19px}
.tour-card{position:relative;margin:0 10px 8px;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(40,25,10,.22);max-height:36vh;max-height:36dvh;overflow:auto;overscroll-behavior:contain;transform-origin:50% 100%}
.tour-card.pop{animation:trmoment .5s cubic-bezier(.2,1.25,.35,1)}
@keyframes trmoment{0%{opacity:0;transform:translateY(22px) scale(.94) rotate(-1.2deg)}100%{opacity:1;transform:none}}
@keyframes trpop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
.tour-photo{display:flex;align-items:center;gap:8px;margin:7px 7px 0;padding:5px 11px;border-radius:12px;background:linear-gradient(135deg,var(--jm-land),color-mix(in srgb,var(--jm-gold) 35%,var(--jm-land)));border:1px solid color-mix(in srgb,var(--jm-ink) 18%,transparent);box-shadow:inset 0 0 22px rgba(107,74,47,.18)}
.tour-pemo{font-size:22px;line-height:1}
.tour-pname{font-family:var(--display);font-size:16px;font-weight:500;color:var(--jm-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tour-cin{padding:8px 14px 10px}
.tour-kick{margin:0;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.tour-going{display:none;margin:2px 0 0;font-family:var(--display);font-size:17px}
.tour-card.traveling .tour-photo,.tour-card.traveling .tour-body{display:none}
.tour-card.traveling .tour-going{display:block}
.tour-card.traveling .tour-cin{padding:10px 14px}
.tour-flash{display:inline-block;margin-left:4px;padding:1px 7px;border-radius:9px;background:color-mix(in srgb,#6A5D8C 18%,transparent);color:#5A4D80;letter-spacing:0;text-transform:none}
html[data-theme="dark"] .tour-flash{color:#C8BDF0}
.tour-card h2{margin:2px 0 2px;font-family:var(--display);font-size:21px;font-weight:500;line-height:1.2}
.tour-where{margin:0 0 6px;font-size:13px;color:var(--ink-soft);display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
.tour-sum{margin:0 0 8px;font-size:15.5px;line-height:1.45}
.tour-card.mini .tour-sum,.tour-card.mini .tour-where,.tour-card.mini .tour-photo{display:none}
.tour-fl{display:block;font-size:13px;color:#5A4D80;margin-bottom:4px}
html[data-theme="dark"] .tour-fl{color:#C8BDF0}
.tour-read{display:flex;align-items:center;gap:8px}
.tour-read .btn{flex:0 0 auto}
.tour-less{margin-left:auto;padding:8px 6px;font-size:13px;font-weight:600;color:var(--ink-soft);background:none;border:none}
.tour-ctl{padding:8px 14px calc(10px + var(--safe-bot,0px));background:var(--bg);border-radius:20px 20px 0 0;box-shadow:0 -6px 20px rgba(40,25,10,.14)}
.tour-scrub{position:relative;height:30px}
.tour-scrub input{position:absolute;inset:0;width:100%;margin:0;opacity:0;cursor:pointer;height:30px}
.tour-scrub::before{content:"";position:absolute;left:0;right:0;top:12px;height:6px;border-radius:4px;background:var(--accent-soft)}
.tour-fill{position:absolute;left:0;top:12px;height:6px;border-radius:4px;background:var(--accent);width:0;pointer-events:none}
.tour-fill::after{content:"";position:absolute;right:-8px;top:-5px;width:16px;height:16px;border-radius:50%;background:var(--surface);border:3px solid var(--accent);box-sizing:border-box}
.tour-ticks i{position:absolute;top:8px;width:2px;height:14px;margin-left:-1px;background:var(--jm-ink-soft);border-radius:1px;pointer-events:none}
.tour-scrub:focus-within::before{box-shadow:0 0 0 3px var(--accent)}
.tour-btns{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:2px}
.tour-b{width:50px;height:50px;border-radius:25px;background:var(--surface);border:1px solid var(--line);font-size:18px;color:var(--ink);display:grid;place-items:center}
.tour-b.main{width:60px;height:60px;border-radius:30px;background:var(--accent);color:var(--bg);font-size:24px;border:none;box-shadow:var(--shadow)}
html[data-theme="dark"] .tour-b.main{color:#161310}
.tour-b.spd{font-size:15px;font-weight:700}
.tour-b:disabled{opacity:.35}
.tour-panel{position:absolute;left:10px;right:10px;top:calc(var(--safe-top,0px) + 58px);bottom:calc(var(--safe-bot,0px) + 12px);background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:10px 14px;overflow:auto;z-index:5}
.tour-panel.hidden{display:none}
.tour-ph{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.tour-ph b{font-family:var(--display);font-size:19px;font-weight:500}
.tour-chs{list-style:none;margin:0;padding:0}
.tour-chs button{width:100%;text-align:left;padding:10px 12px;border-radius:12px;display:flex;flex-direction:column;gap:2px;color:var(--ink)}
.tour-chs button.on{background:var(--accent-soft)}
.tour-chs small{color:var(--ink-soft);font-size:12.5px}
.tour-pa{margin:10px 0}
@media (prefers-reduced-motion:reduce){#tr-wg.tr-fade,.tour-card.pop,.tour-follow{animation:none}.tr-pl,.tr-ml{transition:none}}
@media (max-height:800px){.tour-card{max-height:31vh;max-height:31dvh}}
@media (max-height:700px){.tour-sum{font-size:14.5px}.tour-card{max-height:28vh}.tour-b{width:44px;height:44px}.tour-b.main{width:54px;height:54px}}
@media (min-height:760px){.tour-sum{font-size:16px}}
/* Explore buttons on the Journey map and Bible journeys pages */
.jm-fs{position:absolute;left:8px;top:8px;z-index:2;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);font-size:13px;font-weight:700;color:var(--ink)}
.bj-hero{position:relative;cursor:zoom-in}
.bj-hero .jm-fs{pointer-events:none}
/* Journey map: the big play button */
.jm-play{flex:0 0 auto !important;display:flex;align-items:center;width:100%;justify-content:center;margin:0 0 10px;min-height:48px;font-size:16px;font-weight:700}
.jm-list .jm-play{margin-top:4px}
/* Bible journeys page */
.bj-page{padding-bottom:calc(var(--tab-h) + var(--safe-bot) + 20px)}
.bj-hero{border-radius:18px;overflow:hidden;border:1.5px solid var(--jm-ink-soft);background:var(--jm-sea);margin:2px 0 12px;box-shadow:inset 0 0 40px rgba(107,74,47,.18)}
.bj-prev{display:block;width:100%;height:auto}
.bj-dot{fill:var(--jm-pin);stroke:var(--jm-ink);stroke-width:2.5}
.bj-pl{font:700 26px var(--sans);fill:var(--jm-ink);paint-order:stroke;stroke:var(--jm-land);stroke-width:7px;stroke-linejoin:round}
.bj-intro{margin:2px 2px 12px}
.bj-track{margin:0 0 10px;padding:12px 14px}
.bj-head{display:flex;gap:10px;align-items:center}
.bj-ic{font-size:26px;width:40px;height:40px;display:grid;place-items:center;background:var(--accent-soft);border-radius:12px;flex-shrink:0}
.bj-copy h2{margin:0;font-family:var(--display);font-size:19px;font-weight:500}
.bj-copy small{color:var(--ink-soft);font-size:12.5px}
.bj-acts{display:flex;gap:8px;margin-top:10px}
.bj-acts .btn{flex:1}
.bj-ol{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.ja-strip.ja-none{display:none}
/* Netlify's free-plan badge (bottom-right): keep the player's controls above it */
html.has-hud .tour-ctl{padding-bottom:calc(10px + var(--hud-h))}
html.has-hud .tour-panel{bottom:calc(12px + var(--hud-h))}
html.has-hud .bj-page{padding-bottom:calc(var(--tab-h) + 20px + var(--hud-h))}
/* In real fullscreen the host badge can't cover the player, so no extra lift */
html.has-hud .tour:fullscreen .tour-ctl{padding-bottom:calc(10px + var(--safe-bot,0px))}
html.has-hud .tour:fullscreen .tour-panel{bottom:calc(12px + var(--safe-bot,0px))}
