:root {color-scheme:dark; font-family:'Be Vietnam Pro',Arial,sans-serif; background:#202821; color:#fff9e9; --gold:#f6d696; --edge:clamp(16px,3.8vw,68px)}
* {box-sizing:border-box}
body {margin:0}
button,a {font:inherit; -webkit-tap-highlight-color:transparent}
button {cursor:pointer}
a {color:inherit; text-decoration:none}
:focus-visible {outline:3px solid #f5d184; outline-offset:3px}
[hidden] {display:none!important}
#walk {position:relative; height:100vh; height:100dvh; min-height:300px; overflow:hidden; background:#202821}
#walk-frame {position:absolute; inset:0}
#walk::before {content:''; position:absolute; z-index:1; inset:0; pointer-events:none; background:linear-gradient(180deg,#10201970,transparent 16%,transparent 51%,#151c19a6 78%,#101815fa)}
.walk-top {position:absolute; z-index:2; top:max(16px,env(safe-area-inset-top)); left:var(--edge); right:var(--edge); display:flex; align-items:center; justify-content:space-between; pointer-events:none}
.walk-top a,.walk-top nav {pointer-events:auto}
.walk-home,.walk-langs,.walk-tools,.walk-dock #walk-back {background:#18251fe6; border:1px solid #ede7cd55; color:#fff9e9; box-shadow:0 2px 12px #0a130c30}
.walk-home {display:inline-flex; align-items:center; gap:10px; padding:10px 15px 10px 12px; border-radius:30px; font-size:.86rem; font-weight:600}
.walk-home span {color:var(--gold); font-size:1.1rem}
.walk-langs {display:flex; padding:3px; border-radius:28px; font-size:.75rem; font-weight:600}
.walk-langs a {padding:8px 10px; border-radius:20px}
.walk-langs a[aria-current] {background:var(--gold); color:#25281d}
.walk-tools {position:absolute; z-index:2; top:35%; right:var(--edge); display:grid; padding:3px; border-radius:24px}
.walk-tools button {width:38px; height:38px; border:0; background:transparent; color:#fff9e9; font:22px/1 Arial,sans-serif; border-radius:50%}
.walk-tools button:hover,.walk-home:hover,#walk-back:hover {background:#394638}
.walk-dock {position:absolute; z-index:2; left:var(--edge); right:var(--edge); bottom:max(clamp(14px,3.2vh,36px),env(safe-area-inset-bottom)); pointer-events:none}
.walk-heading {display:flex; align-items:end; justify-content:space-between; gap:10px; margin-bottom:15px; text-shadow:0 2px 14px #101812}
.walk-heading p {display:flex; align-items:center; gap:9px; margin:0 0 4px; color:var(--gold); font-size:.66rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase}
.walk-heading p::before {content:''; width:26px; height:2px; background:var(--gold)}
.walk-heading h1 {margin:0; font:400 clamp(1.9rem,3.8vw,3.65rem)/1.16 'Playfair Display',Georgia,serif; text-wrap:balance}
.walk-dock #walk-back {pointer-events:auto; flex:none; display:inline-flex; align-items:center; gap:7px; border-radius:24px; padding:9px 13px; font-size:.77rem}
#directions {pointer-events:auto; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px}
.walk-card {min-width:0; display:flex; align-items:center; gap:11px; text-align:left; border:1px solid #d9d6bb57; padding:6px 12px 6px 6px; border-radius:10px; background:#1f2d26ee; color:#fff8e7; transition:background .18s,border-color .18s}
.walk-card:hover,.walk-card:focus-visible {background:#364434; border-color:var(--gold)}
.walk-card[data-facing=true] {border-color:var(--gold)}
.walk-card img {width:clamp(40px,4.5vw,74px); aspect-ratio:1.12; object-fit:cover; border-radius:5px}
.walk-card-text {min-width:0; flex:1}
.walk-card small,.walk-card strong {display:block}
.walk-card small {font-size:.66rem; color:#ebd49e; margin-bottom:3px}
.walk-card strong {font-size:clamp(.75rem,1.04vw,1rem); line-height:1.35}
.walk-arrow {color:var(--gold); font-size:1.25rem; line-height:1}
.walk-marker {display:flex; flex-direction:column; align-items:center; border:0; background:none; color:white; padding:0; z-index:1; gap:5px}
.walk-marker i {position:relative; display:grid; place-items:center; width:58px; height:43px; border-radius:50%; border:2px solid #ffefbf; background:#203325d6; box-shadow:0 2px 8px #10190ea8}
.walk-marker i::before {content:''; width:16px; height:16px; border-top:4px solid var(--gold); border-right:4px solid var(--gold); transform:translateY(4px) rotate(-45deg); animation:walk-pulse 2s ease-in-out infinite}
.walk-marker span {max-width:158px; padding:4px 9px; background:#15231fe8; border-radius:5px; font-size:.72rem; font-weight:600; line-height:1.4; text-align:center}
.walk-marker:hover i,.walk-marker:focus-visible i {border-color:white; background:#39523c}
@keyframes walk-pulse {50% {transform:translateY(0) rotate(-45deg)}}
#walk-message,.no-js {position:absolute; z-index:3; top:24%; left:50%; transform:translateX(-50%); background:#17251ef2; padding:10px 15px; border-radius:9px; font-size:.84rem; text-align:center; max-width:90%}
#walk-message button {background:none; border:0; text-decoration:underline; color:var(--gold); font-weight:600}
@media(max-width:700px) {
    #directions {grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px}
    .walk-heading {margin-bottom:9px}
    .walk-heading h1 {font-size:1.75rem}
    .walk-home {font-size:.77rem}
    .walk-tools {right:10px; top:24%}
    .walk-tools button {width:33px; height:35px}
    .walk-card {gap:7px; padding:4px 7px 4px 4px; min-height:51px}
    .walk-card img {width:36px; height:40px}
    .walk-arrow {font-size:1rem}
    .walk-marker i {width:49px; height:37px}
    .walk-marker span {max-width:120px}
    .walk-dock #walk-back {max-width:97px; padding:6px 8px; font-size:.65rem}
}
@media(max-height:500px) and (min-width:530px) {
    #directions {grid-template-columns:repeat(4,minmax(0,1fr))}
    .walk-heading {margin-bottom:5px}
    .walk-heading h1 {font-size:1.5rem}
    .walk-dock {bottom:6px}
    .walk-card {min-height:39px}
    .walk-card img {width:32px; height:32px}
    .walk-tools {top:21%}
}
@media(prefers-reduced-motion:reduce) {
    .walk-marker i::before {animation:none}
    .walk-card {transition:none}
}
.walk-point-actions {display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px}
.walk-point-actions button {pointer-events:auto; display:inline-flex; align-items:center; gap:6px; background:#18291ff2; color:#fff6dc; border:1px solid #dcc297; border-radius:22px; font-size:.8rem; font-weight:600; padding:7px 12px}
.walk-point-actions button span {color:#ffda94}
.walk-note-pin {width:44px; height:42px; background:#893b29; color:#fff8e4; border:2px solid #ffe0ac; border-radius:10px; font:bold .85rem system-ui; box-shadow:0 0 0 3px #22191470,0 4px 9px #0006; z-index:2}
.walk-pins .walk-note-pin {transform:translate(calc(-100% - 22px),-50%)}
.walk-note-pin::after {content:'';position:absolute;left:100%;top:50%;width:23px;height:2px;background:#ffe0ac;box-shadow:0 1px 2px #332009}
.walk-pins .walk-note-pin.pin-flip {transform:translate(22px,-50%)}
.walk-note-pin.pin-flip::after {left:auto;right:100%}
#walk-detail {position:fixed; box-sizing:border-box; color-scheme:light; inset:auto max(16px,4vw) 17vh auto; margin:0; width:min(385px,calc(100vw - 32px)); max-height:72dvh; overflow:auto; padding:1.15rem 1.3rem; border:1px solid #c7ae7d; border-radius:15px; background:#fffbef; color:#23382d; box-shadow:0 10px 45px #0006}
#walk-detail::backdrop {background:#0d171d36}
.detail-head {display:flex; align-items:center; justify-content:space-between; gap:12px; color:#75502d}
.detail-head small,.walk-detail-field small {font-size:.76rem; font-weight:700}
#walk-detail h2 {margin:.35rem 0 .65rem; font:500 1.65rem/1.22 'Playfair Display',Georgia,serif}
#walk-detail button {background:#f3ebd9; border:1px solid #a9926d; border-radius:7px; font-size:.85rem; color:#293b2f; padding:.45rem .7rem}
#walk-detail #detail-close {border-radius:50%; width:33px; height:33px; padding:0; font:1.5rem/1 system-ui}
#detail-body {display:grid; gap:.7rem}
.walk-detail-field small {color:#64533c}
.walk-detail-field p {white-space:pre-line; overflow-wrap:anywhere; line-height:1.58; margin:.12rem 0}
.walk-detail-field [lang=zh-Hant] {font:1.72rem/1.5 serif; letter-spacing:.08em}
@media(max-width:600px) {#walk-detail {inset:auto 10px max(10px,env(safe-area-inset-bottom)) 10px; width:auto; max-height:60dvh}.walk-point-actions {margin-bottom:6px}.walk-point-actions button {font-size:.72rem; padding:5px 9px}}
@media(max-height:510px) and (min-width:530px) {.walk-point-actions {margin-bottom:4px}.walk-point-actions button {font-size:.68rem;padding:3px 8px}#walk-detail {bottom:5vh;max-height:88dvh}}

.walk-point-actions:has(button[hidden]) {display:none}
.walk-top {gap:8px}
.walk-home {min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.walk-areas {position:relative; pointer-events:auto; margin-left:auto; flex:none; font-size:.85rem}
.walk-areas summary,.walk-areas a {display:block; background:#19291ff5; border:1px solid #aeab90; padding:8px 12px; border-radius:14px; cursor:pointer}
.walk-areas[open] {align-self:flex-start}
.walk-areas[open] a {max-width:230px; margin-top:3px; white-space:normal}
.walk-top:has(.walk-areas) {align-items:flex-start}
.walk-langs {flex:none}

.walk-departure {pointer-events:none; z-index:1; will-change:opacity,transform}
#walk-frame .walk-pins {z-index:2}
.walk-marker i::after {content:''; pointer-events:none; position:absolute; inset:-3px; border:1px solid #ffe5a8;
    border-radius:50%; animation:walk-beacon 2.3s ease-out infinite}
@keyframes walk-beacon {0% {opacity:.88;transform:scale(.96)} 78%,100% {opacity:0;transform:scale(1.48)}}
.walk-marker:hover i,.walk-marker:focus-visible i {box-shadow:0 0 0 4px #f7d68b55,0 3px 12px #1119}
.walk-tools button[aria-pressed=true] {background:var(--gold); color:#263327}
#walk-spin {font-size:25px}
.walk-choices {display:flex; flex:none; align-items:center; justify-content:flex-end; gap:9px; pointer-events:auto}
.walk-music-toggle {display:inline-flex; align-items:center; gap:7px; color:#fff9e9; background:#18251fee;
    border:1px solid #ede7cd63; border-radius:24px; padding:8px 13px; min-height:37px; font-size:.8rem; font-weight:600}
.walk-music-toggle span {color:var(--gold); font:1.15rem/1 Georgia,serif}
.walk-music-toggle:hover {background:#394638}
.walk-music-toggle[aria-pressed=true] {color:#233327; background:var(--gold);border-color:#fff0c7}
.walk-music-toggle[aria-pressed=true] span {color:inherit}
.walk-music-prompt {position:absolute; z-index:4; border:1px solid #e1ca9a92;
    box-shadow:0 12px 32px #101a1659; color:#fff9e9; background:#1a2923f7; border-radius:13px}
.walk-music-prompt {top:max(74px,calc(env(safe-area-inset-top) + 66px)); left:50%; transform:translateX(-50%);
    width:max-content; max-width:calc(100% - 32px); padding:15px 18px 14px; text-align:center}
.walk-music-prompt h2 {font:500 1.06rem/1.4 'Be Vietnam Pro',Arial,sans-serif; margin:0 0 12px}
.walk-music-prompt div {display:flex; align-items:center; justify-content:center; gap:8px}
.walk-music-prompt button {font:600 .78rem/1.25 'Be Vietnam Pro',Arial,sans-serif;
    color:#fff5da; background:transparent; border:1px solid #bda987a6; border-radius:22px; min-height:38px; padding:7px 14px}
.walk-music-prompt .music-accept {background:var(--gold); color:#283326; border-color:var(--gold)}
.walk-music-status {max-width:32ch; margin:0 auto 12px; font-size:.8rem; line-height:1.45}
.walk-music-status:empty {display:none}
@media(max-width:700px) {
    .walk-choices {gap:5px}
    .walk-music-toggle {gap:4px; min-height:36px; padding:6px 9px;font-size:.72rem}
    .walk-music-prompt {padding:12px 16px}
}
@media(prefers-reduced-motion:reduce) {.walk-marker i::after {animation:none;opacity:.45}}
