@import url("../viet-type.css");
.way-visit { margin:0; color:#25372d; background:#f6f3eb; font:1rem/1.5 system-ui,sans-serif; }
.way-visit *, .way-editor * { box-sizing:border-box; }
.way-visit [hidden], .way-editor [hidden] { display:none!important; }
.way-visit header { display:flex; align-items:center; justify-content:space-between; gap:1em; padding:1rem max(5vw,1rem); border-bottom:1px solid #c9cabc; background:#16392f; color:#fff4db; }
.way-visit header span { text-align:center; }
.way-visit a { color:inherit; text-underline-offset:.25em; }
.way-visit main { max-width:78rem; margin:auto; padding:clamp(1.2rem,4vw,3.4rem) max(4vw,1rem) 4rem; }
.way-visit h1,.way-visit h2 { font-family:'Heritage AR Serif',Georgia,serif; font-weight:500; line-height:1.17; }
.way-visit h1 { font-size:clamp(2.5rem,6vw,5.2rem); margin:0 0 .35em; }
.way-visit .intro { max-width:46rem; margin:0 0 2rem; }
.way-columns { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(18rem,1fr); gap:1.25rem; align-items:start; }
.way-visit .stage,.way-visit .controls { border:1px solid #ccd0c1; border-radius:1rem; overflow:hidden; background:#fffdf6; }
.way-visit .photo { position:relative; background:#102b25; aspect-ratio:4/3; }
.way-visit .photo>* { position:absolute; inset:0; width:100%; height:100%; }
.way-visit #photo { object-fit:cover; }
.way-visit #overlay { pointer-events:none; overflow:hidden; }
.way-visit #overlay[role=button] { pointer-events:auto; cursor:pointer; }
.way-visit #overlay:focus-visible { outline:3px solid #fff4cb; outline-offset:-5px; }
.way-visit .way-chevron { fill:#dc201c; stroke:#fff7e9; stroke-width:1.1px; stroke-linejoin:round; vector-effect:non-scaling-stroke; paint-order:stroke fill; filter:drop-shadow(0 1px 1px #33070399); }
.way-visit .photo>.way-trail-caption { inset:.65rem auto auto .65rem; width:auto; height:auto; max-width:calc(100% - 1.3rem); padding:.2rem .65rem; border-radius:1rem; background:#13281ee8; color:#fff; font:600 .78rem/1.5 system-ui,sans-serif; pointer-events:none; }
.way-visit #camera { object-fit:contain; }
.way-visit .caption { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.1rem 1.4rem; }
.way-visit .caption h2 { font-size:clamp(1.45rem,2.7vw,2rem); margin:.25rem 0 0; }
.way-visit .caption small { color:#615530; font-weight:650; }
.way-visit .caption a { white-space:nowrap; }
.way-visit .controls { padding:1.25rem; display:grid; gap:.9rem; }
.way-visit label,.station-row label { display:grid; gap:.3em; font-weight:600; }
.way-visit select,.way-visit button { font:inherit; border-radius:.55rem; padding:.65rem .8rem; min-height:44px; }
.way-visit select { width:100%; color:#152e25; background:white; border:1px solid #8e9b91; }
.way-visit button { font-weight:650; border:1px solid #244837; color:#fff9e8; background:#244837; cursor:pointer; }
.way-visit button.secondary { background:transparent; color:#244837; }
.way-visit #notice { font-size:.95rem; margin:0; }
.way-visit .itinerary { margin-top:2rem; }
.way-visit .itinerary li { margin:.5em 0; }
.way-visit [aria-current=step] { font-weight:700; }
.way-editor nav,.station-row,.way-editor #signs { display:flex; flex-wrap:wrap; gap:.8rem; }
.way-editor nav { margin:1rem 0; }.station-row { align-items:end; border-bottom:1px solid #d2c8b4; padding: .8rem 0; }
.station-row select { max-width:min(28rem,80vw); }.station-row input { max-width:6rem; }
.way-editor button { padding:.55em 1em; margin:.3em 0; }
.qr-sign { flex:1 1 15rem; max-width:22rem; text-align:center; border:1px solid #8e968d; padding:1rem; margin:.5rem 0; break-inside:avoid; }
.qr-sign img { width:100%; max-width:13rem; image-rendering:pixelated; }.qr-sign h3,.qr-sign p { margin:.6em 0; }
@media(max-width:760px){.way-columns{grid-template-columns:minmax(0,1fr)}.way-visit header{font-size:.9rem}.way-visit main{padding-top:1.4rem}.way-visit .intro{margin-bottom:1rem}}
@media print {
 body:has(.way-editor) *:not(:has(#signs)):not(#signs):not(#signs *) { display:none!important; }
 body:has(.way-editor),body *:has(#signs) { display:block!important; position:static!important; padding:0!important; margin:0!important; width:auto!important; height:auto!important; overflow:visible!important; }
 .way-editor #signs {display:block;columns:2;column-gap:8mm;} .qr-sign{ display:inline-block; width:100%; max-width:none;color:black;background:white;margin:0 0 6mm; }
}
/* A highlight travels from the nearest arrow to the next landmark. */
@keyframes landmark-step {
  0%, 48%, 100% { fill:#d42320; }
  18% { fill:#ffb161; }
  30% { fill:#ff4933; }
}
@media (prefers-reduced-motion: no-preference) {
  #overlay:is([data-mode=landmark],[data-mode=visual-heading],[data-mode=sign],[data-mode=heading]) .way-chevron {
    animation:landmark-step 1.65s ease-in-out infinite;
    animation-delay:calc(var(--order) * .12s);
  }
}
