/* 그길로 — 화면 스타일  [초안 2: 2026-11-20 참고 화면 반영]
   참고 화면에서 가져온 틀: 옅은 회색 지도 + 흰 알약 검색 / 둥근 흰 시트와 사진 카드 / 진한 청록 탭 + 가운데 뜬 버튼 /
                          어두운 대표 카드 / AR 의 유리 알약 · 초록 바닥 띠 · 말풍선 · 둥근 지붕 미니 지도
   색: 밝은 그린(길·주 버튼, 2026-11-20 민트에서 변경) · 진한 청록(어두운 면) · 안개 회색(바탕). 그린 위 글자는 읽기 쉽게 흰색 대신 진한 글자색을 쓴다. */
:root {
  --mint: #2BD95A;
  --mint-deep: #0C8236;
  --mint-tint: #E3F9E8;
  --teal: #0F4C4A;
  --ink: #0E2B2A;
  --mist: #F2F6F5;
  --rule: #E1EAE8;
  --muted: #5F7472;
  --sheet-h: 45dvh;
  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --shadow: 0 8px 24px rgba(14, 43, 42, .14);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--mist); font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%; word-break: keep-all; }
html.ar-on, html.ar-on body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.tabs :focus-visible, .ar :focus-visible, .hero:focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#app { position: fixed; inset: 0; overflow: hidden; }
#app[data-view="home"]:not([data-tab="map"]) { --sheet-h: 78dvh; }
#app[data-view="detail"] { --sheet-h: 60dvh; }
#app[data-view="follow"] { --sheet-h: 33dvh; }
#app.tall { --sheet-h: 88dvh !important; }
#map { position: absolute; inset: 0; z-index: 0; background: #EDF1F0; }

/* ───── 지도 위: 검색 알약 · 종류 칩 · 코스 이름 알약 · 둥근 버튼 ───── */
.top, .crumb { position: absolute; z-index: 1100; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; }
.top { display: grid; gap: 10px; }
.search, .crumb { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; background: #fff; border-radius: 26px; box-shadow: var(--shadow); }
.search:focus-within { box-shadow: var(--shadow), 0 0 0 2.500px var(--mint); }
.search > svg, .crumb > svg { flex: none; width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.crumb > svg { stroke: var(--mint-deep); stroke-width: 2.400; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.search input::placeholder { color: #8A9C9A; }
.search input::-webkit-search-cancel-button { display: none; }
.search-x, .crumb-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.search-x svg, .crumb-x svg { width: 16px; height: 16px; fill: none; stroke: var(--teal); stroke-width: 2.400; stroke-linecap: round; }
.crumb b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 8px; }
.chip { height: 38px; padding: 0 15px; border: 0; border-radius: 19px; background: #fff; box-shadow: 0 4px 14px rgba(14, 43, 42, .12); font-size: 14.5px; font-weight: 500; }
.chip span { margin-left: 2px; font-weight: 400; opacity: .6; }
.chip.on { background: var(--teal); color: #fff; }
.round { position: absolute; z-index: 1050; right: 12px; bottom: calc(var(--sheet-h) + 14px); width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; transition: bottom .28s; }
.round svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.800; stroke-linecap: round; }
.toast { position: absolute; z-index: 1300; left: 50%; bottom: calc(var(--sheet-h) + 16px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; font-size: 14px; }

/* ───── 시트: 휴대폰에서는 아래, 넓은 화면에서는 왼쪽 ───── */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: var(--sheet-h); z-index: 1100; background: #fff; border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px rgba(14, 43, 42, .14); overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(28px + env(safe-area-inset-bottom));
  transition: height .28s cubic-bezier(.3, .7, .2, 1); }
#app[data-view="home"] .sheet { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.grip { position: sticky; top: 0; z-index: 2; display: block; width: calc(100% + 36px); margin: 0 -18px; height: 24px; border: 0; background: #fff; border-radius: 28px 28px 0 0; }
.grip i { display: block; width: 42px; height: 5px; border-radius: 3px; background: #C8D6D3; margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 10px; }
.brand p { margin: 0; font-size: 13px; color: var(--muted); }
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.mark svg { width: 32px; height: 32px; }
.mark rect { fill: var(--teal); }
.mark path { fill: none; stroke: var(--mint); stroke-width: 3.600; stroke-linecap: round; }
.mark circle { fill: #fff; }
.mark span { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

.hero { display: grid; grid-template-columns: 1fr 108px; gap: 6px; align-items: center; margin: 4px 0 18px; padding: 18px 12px 18px 20px; border-radius: 24px;
  background: linear-gradient(135deg, #0A3331 0%, #0F4C4A 55%, #14645E 100%); color: #fff; text-decoration: none; }
.hero-body { display: grid; min-width: 0; }
.hero-k { font-size: 13px; font-weight: 600; color: #8CF2A6; }
.hero b { font-size: 21px; font-weight: 700; line-height: 1.28; margin: 3px 0 2px; }
.hero-spec { font-size: 14px; color: rgba(255, 255, 255, .78); }
.hero-btn { justify-self: start; margin-top: 14px; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--mint); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.hero-map { width: 108px; height: 108px; }
.hm-glow { fill: none; stroke: var(--mint); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .28; filter: blur(3px); }
.hm-line { fill: none; stroke: var(--mint); stroke-width: 3.600; stroke-linecap: round; stroke-linejoin: round; }
.hm-a { fill: #fff; } .hm-b { fill: var(--mint); stroke: #fff; stroke-width: 2.500; }

.sec { font-size: 16px; font-weight: 700; margin: 4px 0 2px; }
.sec-top { margin-top: 4px; font-size: 20px; }
.note { margin: 10px 0 0; padding: 10px 14px; background: #FFF5DC; color: #584200; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.empty { margin: 0; padding: 18px 0; color: var(--muted); font-size: 14.5px; }
.list { list-style: none; margin: 4px 0 0; padding: 0; }
.card { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.card-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--teal); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-thumb { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .75); font-size: 12px; }
.kind { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 10px; background: rgba(14, 43, 42, .8); color: #fff; }
.kind-run { background: var(--mint); color: var(--ink); }
.card-body { display: grid; gap: 3px; min-width: 0; }
.card-body b { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.card:hover .card-body b { color: var(--mint-deep); }
.card-spec { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; color: var(--muted); }
.card-spec em { font-style: normal; font-weight: 600; color: var(--mint-deep); font-variant-numeric: tabular-nums; }
.card-from { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.about-lead { margin: 6px 0 14px; font-size: 15.5px; }
.steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 12px 14px; background: var(--mist); border-radius: 18px; }
.steps li::before { content: counter(s); grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps b { font-size: 15.5px; } .steps span { font-size: 14px; color: var(--muted); }
.about-next { margin: 0 0 12px; padding: 14px 16px; background: var(--teal); color: #fff; border-radius: 18px; font-size: 14.5px; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ───── 코스 상세 ───── */
.photo { position: relative; margin: 2px 0 14px; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--teal); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14, 43, 42, .3); }
.photo-play svg { width: 28px; height: 28px; fill: var(--teal); margin-left: 3px; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 11px; border-radius: 12px; background: rgba(14, 43, 42, .74); color: #fff; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.d-title { font-size: 22px; font-weight: 700; line-height: 1.28; margin: 2px 0 0; }
.save { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.save svg { width: 21px; height: 21px; fill: none; stroke: var(--teal); stroke-width: 1.900; stroke-linejoin: round; }
.save[aria-pressed="true"] { background: var(--mint-tint); }
.save[aria-pressed="true"] svg { fill: var(--mint); stroke: var(--mint-deep); }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 10px; font-size: 14px; color: var(--muted); }
.d-meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.badge { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 12px; background: var(--mist); color: #45605D; }
.badge-on { background: var(--mint-tint); color: #0A6B2C; }
.d-sum { margin: 0 0 14px; color: #37504E; font-size: 15px; max-width: 34em; }
.ft { margin: 0 0 12px; padding: 4px 16px; background: var(--mist); border-radius: 20px; }
.ft div { display: grid; grid-template-columns: 14px auto 1fr; gap: 10px; align-items: center; padding: 11px 0; }
.ft div + div { border-top: 1px solid var(--rule); }
.ft i { width: 14px; height: 14px; border-radius: 50%; }
.ft-a { border: 3.500px solid var(--mint); background: #fff; } .ft-b { background: var(--teal); }
.ft span { font-size: 13px; color: var(--muted); }
.ft b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.mode { display: grid; justify-items: center; gap: 1px; padding: 10px 4px 9px; border: 1.500px solid #BFE8C9; border-radius: 18px; background: #fff; }
.pace { display: flex; height: 14px; align-items: center; }
.pace svg { width: 8px; height: 12px; fill: none; stroke: var(--mint-deep); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }
.mode b { font-size: 16.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mode span { font-size: 12.5px; color: var(--muted); }
.mode.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.mode.on span { color: rgba(255, 255, 255, .8); } .mode.on .pace svg { stroke: #8CF2A6; }
.acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 20px; border-radius: 28px; border: 2px solid transparent; font-size: 17px; font-weight: 600; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-go { background: var(--mint); color: var(--ink); box-shadow: 0 8px 20px rgba(43, 217, 90, .35); }
.btn-go:hover { background: #24C750; }
.btn-ar { background: var(--teal); color: #fff; }
.btn-ar:hover { background: #0B3B39; }
.btn-line { background: #fff; border-color: var(--teal); color: var(--teal); }
#detail .sec { margin: 22px 0 4px; font-size: 15px; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { border-bottom: 1px solid var(--rule); }
.stop { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 10px 4px 10px 0; }
.stops li.now { background: var(--mint-tint); box-shadow: -18px 0 0 var(--mint-tint), 18px 0 0 var(--mint-tint); }
.stop-body { display: grid; gap: 1px; min-width: 0; }
.stop-body b { font-size: 15.5px; font-weight: 600; }
.stop-body span { font-size: 13px; color: var(--muted); }
.stop-t { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--mint-deep); font-weight: 600; }
.stop-t.has { text-decoration: underline; text-underline-offset: 3px; }
.pin { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 15px; background: #fff; border: 2.500px solid var(--teal); font-size: 13px; font-weight: 600; line-height: 1; color: var(--teal); white-space: nowrap; justify-self: center; }
.pin-edge { background: var(--teal); color: #fff; padding: 0 8px; font-size: 12px; }
.pin.on, .stops li.now .pin { background: var(--mint); border-color: #fff; color: var(--ink); box-shadow: 0 0 0 4px rgba(43, 217, 90, .32); }
.pin-wrap { display: flex; align-items: center; justify-content: center; overflow: visible; }
.pin-wrap .pin { box-shadow: 0 2px 6px rgba(14, 43, 42, .3); }
.pin-wrap .pin.on { box-shadow: 0 0 0 5px rgba(43, 217, 90, .32), 0 2px 6px rgba(14, 43, 42, .3); }
.elev { margin: 18px 0 0; }
.elev svg { display: block; width: 100%; height: 44px; }
.elev polygon { fill: var(--mint-tint); }
.elev polyline { fill: none; stroke: var(--mint-deep); stroke-width: 1.600; vector-effect: non-scaling-stroke; }
.elev figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 14px 0 0; }
.link { border: 0; background: none; padding: 8px 0; font-size: 14.5px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ───── 지도 위 영상 창 ───── */
.vwin { position: absolute; z-index: 1150; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(14, 43, 42, .22); }
.vwin-bar { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 6px 0 18px; }
.vwin-ch { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-btn { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; border-radius: 50%; }
.ic-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.vwin.folded #vwinFold svg { transform: rotate(180deg); }
.vwin-box { position: relative; margin: 0 8px; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.vwin.folded .vwin-box { display: none; }
.vwin-box iframe, .yt-slot { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sim { position: absolute; inset: 0; background: #12201F; }
.sim img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); display: block; }
.sim-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.sim-btn { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; }
.sim-btn svg { width: 24px; height: 24px; fill: var(--teal); }
.sim-over p { margin: 0; display: grid; gap: 2px; font-size: 13px; color: rgba(255, 255, 255, .85); max-width: 15em; }
.sim-over b { font-size: 15.5px; color: #fff; }
.strip { padding: 10px 18px 12px; }
.strip-now { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.strip-now b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-now span { font-size: 13.5px; font-weight: 600; color: var(--mint-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip-road { position: relative; height: 30px; margin-top: 2px; cursor: pointer; touch-action: none; }
.strip-road::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 8px; border-radius: 4px; background: #DCE8E5; }
.strip-fill { position: absolute; left: 0; top: 11px; height: 8px; width: 0; border-radius: 4px; background: var(--mint); }
.strip-ticks i { position: absolute; top: 8px; width: 3px; height: 14px; margin-left: -1.500px; border-radius: 2px; background: var(--teal); }
.strip-knob { position: absolute; top: 4px; left: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--mint); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(14, 43, 42, .35); }
.strip-road.off { opacity: .45; }
.strip-hint { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

/* 영상 속 위치 점 · 내 위치 */
.live-wrap, .me-wrap { background: none; border: 0; }
.live { position: relative; width: 52px; height: 52px; }
.live-c { position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(14, 43, 42, .4); }
.live-r { position: absolute; inset: 6px; border-radius: 50%; background: rgba(43, 217, 90, .38); opacity: 0; animation: ring 1.800s ease-out infinite; }
.live-r2 { animation-delay: .9s; }
.live.paused .live-r { animation: none; opacity: 0; }
@keyframes ring { 0% { transform: scale(.45); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
.me { width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 76, 74, .16); display: grid; place-items: center; }
.me i { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 3.500px solid #fff; box-shadow: 0 1px 5px rgba(14, 43, 42, .4); }
.gg-line { cursor: pointer; filter: drop-shadow(0 0 5px rgba(43, 217, 90, .7)); }
.ov-line { cursor: pointer; }
.leaflet-container { font-family: var(--font); }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.09) contrast(.8); }
.leaflet-tooltip { font-size: 13px; font-weight: 600; border: 0; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: none; padding: 5px 10px; }
.leaflet-tooltip-top::before { border-top-color: var(--ink); }
.leaflet-bottom { bottom: var(--sheet-h); transition: bottom .28s; }
.leaflet-control-zoom { display: none; }
.leaflet-popup-content-wrapper { border-radius: 16px; }

/* ───── 아래 탭: 진한 청록 알약 + 가운데 뜬 AR 버튼 ───── */
.tabs { position: absolute; z-index: 1200; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 68px; padding: 0 6px;
  display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: center; border-radius: 34px;
  background: linear-gradient(180deg, #14605C, #0F4C4A); box-shadow: 0 12px 28px rgba(14, 43, 42, .38); }
.tab { display: grid; justify-items: center; gap: 0; border: 0; background: none; color: rgba(255, 255, 255, .66); font-size: 11.5px; line-height: 1.2; padding: 4px 0; }
.tab svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: #fff; font-weight: 600; }
.tab.on svg { background: var(--mint); stroke: var(--ink); }
.fab { justify-self: center; width: 66px; height: 66px; margin-top: -34px; border-radius: 50%; border: 5px solid #fff; background: var(--mint); color: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 0; box-shadow: 0 8px 20px rgba(43, 217, 90, .5); font-size: 10.500px; font-weight: 700; line-height: 1; }
.fab svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.900; stroke-linecap: round; stroke-linejoin: round; }

/* ───── AR ───── */
.ar { position: fixed; inset: 0; z-index: 3000; background: #18211F; color: var(--ink); overflow: hidden; }
.ar-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.ar.has-cam .ar-cam { display: block; }
.ar.glass .ar-cam { display: none; }
.ar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.ar-chips { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 10px; right: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; pointer-events: none; }
.ar-chip { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; align-items: center; padding: 7px 10px 7px 7px; border-radius: 26px;
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 6px 18px rgba(14, 43, 42, .2); min-width: 0; }
.ar-chip i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.ar-chip i svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ar-chip .c1 { background: #FF9A3D; } .ar-chip .c1 svg { fill: #fff; stroke: none; }
.ar-chip .c2 { background: #2E8BFF; } .ar-chip .c3 { background: #A45CF2; }
.ar-chip span { font-size: 11.5px; line-height: 1.2; color: #3E5653; white-space: nowrap; }
.ar-chip b { font-size: 15px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar.glass .ar-chips, .ar.glass .ar-dome, .ar.glass .ar-turn { visibility: hidden; }
.ar-toast { position: absolute; bottom: calc(276px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); margin: 0;
  background: rgba(14, 43, 42, .86); color: #fff; border-radius: 16px; padding: 10px 16px; font-size: 14px; line-height: 1.45; }
.ar-side { position: absolute; top: 40%; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow); }
.ar-side.left { left: 10px; } .ar-side.right { right: 10px; } .ar-side.back { left: 50%; transform: translateX(-50%); }
.ar-lens-cap { position: absolute; left: 0; right: 0; text-align: center; font-size: 13.5px; color: rgba(124, 255, 178, .85); padding: 0 20px; }
.ar-foot { position: absolute; left: 0; right: 0; bottom: 0; height: calc(236px + env(safe-area-inset-bottom)); pointer-events: none; }
.ar-dome { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-turn { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 22px 6px 6px; border-radius: 30px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(14, 43, 42, .28); white-space: nowrap; }
.ar-turn i { width: 42px; height: 42px; border-radius: 50%; background: #1FBF57; display: grid; place-items: center; }
.ar-turn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }
.ar-turn svg.left { transform: scaleX(-1); }
.ar-turn b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ar-btns { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ar-btns > * { pointer-events: auto; }
.ar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 25px; border: 1px solid #fff; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 15px; font-weight: 600; box-shadow: 0 6px 16px rgba(14, 43, 42, .2); justify-self: start; }
.ar-btn:last-child { justify-self: end; grid-column: 3; }
.ar-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
#arGlass[aria-pressed="true"] { background: #7CFFB2; border-color: #7CFFB2; }
.ar-go { grid-column: 2; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #19C37D, #2BD95A); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(43, 217, 90, .5); }
.ar-go svg { width: 26px; height: 26px; fill: #fff; }
.ar-go.line svg { fill: none; stroke: #fff; stroke-width: 2.400; stroke-linecap: round; stroke-linejoin: round; }

/* 휴대폰: 코스를 고르면 탭을 숨기고, 따라가는 중에는 시트에 제목·버튼·지나는 곳만 남긴다 */
@media (max-width: 899px) {
  #app:not([data-view="home"]) .tabs { display: none; }
  #app[data-view="follow"] .photo, #app[data-view="follow"] .d-meta, #app[data-view="follow"] .d-sum, #app[data-view="follow"] .ft,
  #app[data-view="follow"] .modes, #app[data-view="follow"] .save, #app[data-view="follow"] .note { display: none; }
  #app[data-view="follow"] .d-title { font-size: 20px; margin: 0 0 10px; }
  #app[data-view="follow"] .btn { height: 48px; font-size: 15.5px; }
  #app[data-view="follow"] #detail .sec { margin-top: 14px; }
}
/* ───── 넓은 화면 ───── */
@media (min-width: 900px) {
  .sheet { left: 16px; top: 16px; bottom: 16px; right: auto; width: 408px; height: auto; border-radius: 28px; box-shadow: var(--shadow); padding: 20px 22px 112px; transition: none; }
  #app[data-view="home"] .sheet { padding-bottom: 112px; }
  .grip { display: none; }
  .stops li.now { box-shadow: -22px 0 0 var(--mint-tint), 22px 0 0 var(--mint-tint); }
  .tabs { left: 30px; right: auto; width: 380px; bottom: 30px; }
  .top, .crumb { left: 440px; right: auto; width: 400px; top: 16px; }
  .vwin { left: auto; right: 16px; top: 16px; width: 408px; }
  .round { right: 16px; bottom: 100px; }
  .toast { bottom: 28px; left: calc(50% + 212px); }
  .leaflet-bottom { bottom: 0; }
  .leaflet-left { left: 436px; }
  .leaflet-control-zoom { display: block; border: 0 !important; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow) !important; margin: 0 16px 28px 0 !important; }
  .ar-chips, .ar-foot { left: 50%; right: auto; width: min(520px, 100%); transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .live-r { animation: none; opacity: .5; transform: scale(1.1); }
  .sheet, .round, .leaflet-bottom, .ic-btn svg { transition: none; }
}
