:root {
  --paper: #F5EFE3; --card: #FFFCF6; --ink: #29241E; --mute: #6F665B; --faint: #9A8F80; --line: #E2D8C7;
  --acc: #C8553D; --blue: #3F6E8C; --green: #4F6B4A; --gold: #B98A2E; --ok: #2F7D4F; --warn: #B7791F; --bad: #A33A2B;
  --shadow: 0 10px 30px rgba(52, 40, 24, .16), 0 2px 6px rgba(52, 40, 24, .10);
  --serif: 'Gowun Batang', 'AppleMyungjo', serif; --sans: 'IBM Plex Sans KR', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #1F1C18; --card: #27231E; --ink: #F1EADD; --mute: #BDB2A2; --faint: #8E8476; --line: #3B352D; --shadow: 0 10px 30px rgba(0,0,0,.45);
} }
:root[data-theme="dark"] { --paper: #1F1C18; --card: #27231E; --ink: #F1EADD; --mute: #BDB2A2; --faint: #8E8476; --line: #3B352D; --shadow: 0 10px 30px rgba(0,0,0,.45); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #E9E1D1; color: var(--ink); font: 15px/1.5 var(--sans); overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* sky + ridges behind a transparent canvas — the 2.5D backdrop */
.sky { position: fixed; inset: 0; background: linear-gradient(#B9D0DC, #EDE3D2 70%) center/cover; z-index: 0; }
.sky .ridge { position: absolute; left: -10%; right: -10%; bottom: 34%; height: 22vh; background-repeat: repeat-x; background-size: auto 100%; background-position: 0 100%; opacity: .9; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: none; display: block; }
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.labels > div { pointer-events: none; }

/* loader */
.load { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--paper); transition: opacity .5s; }
.load.off { opacity: 0; pointer-events: none; }
.lk { width: min(300px, 80vw); text-align: center; }
.lk b { font: 700 22px var(--serif); display: block; margin-bottom: 14px; }
.lk i { display: block; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.lk em { display: block; height: 100%; width: 0; background: var(--acc); transition: width .3s; }
.lk p { color: var(--mute); font-size: 13px; margin: 10px 0 0; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: flex; flex-direction: column; overflow: auto; }
.intro .cover { position: relative; flex: 1 1 52%; min-height: 300px; background: #D9CDB6 center 70%/cover no-repeat; }
.intro .cover::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(transparent, var(--paper)); }
.ai-tag { position: absolute; z-index: 1; top: calc(12px + var(--safe-t)); right: 12px; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(41,36,30,.62); color: #fff; letter-spacing: .02em; }
.intxt { padding: 0 22px calc(26px + var(--safe-b)); margin-top: -36px; position: relative; max-width: 560px; width: 100%; align-self: center; }
.kicker { color: var(--acc); font-weight: 600; font-size: 13px; letter-spacing: .04em; margin: 0 0 4px; }
.intro h1 { font: 700 30px/1.25 var(--serif); margin: 0 0 10px; letter-spacing: -.01em; }
.lead { color: var(--mute); margin: 0 0 16px; }
.srcchip { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; margin-bottom: 16px; }
.srcchip img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.srcchip span { font-size: 13px; line-height: 1.35; }
.srcchip small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.go { width: 100%; padding: 15px; border: 0; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; }
.go.ghost { background: transparent; color: var(--mute); border: 1px solid var(--line); margin-top: 8px; font-size: 14px; padding: 11px; }
.fine { color: var(--faint); font-size: 11.5px; margin: 12px 0 0; }

/* course briefing (before entering the map) */
.brief { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: flex; flex-direction: column; }
.bback { align-self: flex-start; border: 0; background: none; color: var(--mute); font-size: 14px; padding: calc(12px + var(--safe-t)) 16px 6px; }
.briefbody { flex: 1; overflow-y: auto; padding: 4px 20px 20px; max-width: 600px; width: 100%; align-self: center; }
.briefgo { padding: 12px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--card); max-width: 600px; width: 100%; align-self: center; }
.bh { display: flex; gap: 12px; align-items: center; margin: 2px 0 4px; }
.bh img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.bh b { font: 700 20px var(--serif); display: block; } .bh small { color: var(--mute); font-size: 12.5px; }
.bsay { font: 400 16px/1.55 var(--serif); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0 16px; position: relative; }
.bsay::before { content: ''; position: absolute; top: -7px; left: 26px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.bsec { font-size: 12px; font-weight: 700; color: var(--acc); letter-spacing: .04em; margin: 20px 0 8px; }
.bstory { color: var(--ink); font-size: 14.5px; line-height: 1.6; margin: 0 0 4px; }
.bchips { display: flex; gap: 6px; margin: 10px 0 4px; }
.bchip { flex: 1; text-align: center; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 4px; }
.bchip b { display: block; font: 700 17px var(--serif); } .bchip span { font-size: 11px; color: var(--mute); }
.bpills { display: flex; gap: 6px; margin: 0 0 6px; }
.bpills button { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px; font-size: 13px; font-weight: 600; color: var(--faint); }
.bpills button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btl { list-style: none; margin: 6px 0 0; padding: 0; }
.btl li.s { display: flex; gap: 12px; padding: 7px 0; }
.btl .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.btl .im { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--line); }
.btl .tx { flex: 1; min-width: 0; } .btl .tx b { display: block; font-size: 15px; } .btl .tx .k { color: var(--mute); font-size: 12px; } .btl .tx .w { font-size: 13px; color: var(--ink); margin-top: 2px; }
.btl li.s.gone .tx b { text-decoration: line-through; color: var(--faint); }
.btl li.l { margin-left: 13px; border-left: 2px dotted var(--line); padding: 3px 0 3px 27px; font-size: 12.5px; color: var(--mute); }
.btl li.l.bus { border-left-style: dashed; }
.btwist { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border-radius: 12px; padding: 11px 13px; font-size: 13.5px; margin: 14px 0 0; }
.bquote { margin: 8px 0 0; padding: 10px 13px; border-left: 3px solid var(--acc); background: var(--card); border-radius: 0 12px 12px 0; font-size: 14px; }
.bquote small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.bvid { display: flex; gap: 10px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin: 14px 0 0; }
.bvid img { width: 100px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.bvid span { font-size: 13px; } .bvid small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }

/* top bar */
.top { position: fixed; z-index: 10; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { border: 0; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-radius: 14px; padding: 7px 12px; text-align: left; box-shadow: var(--shadow); }
.brand b { font: 700 16px var(--serif); display: block; line-height: 1.2; }
.brand small { color: var(--mute); font-size: 11.5px; }
.tools { display: flex; gap: 6px; align-items: flex-start; }
.ic { border: 0; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow); display: grid; place-items: center; align-content: center; gap: 1px; padding: 4px 0 3px; }
.ic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic span { font-size: 10px; color: var(--mute); line-height: 1; }
.ic.on { background: var(--ink); } .ic.on svg { stroke: var(--paper); } .ic.on span { color: var(--paper); }
#bnorth svg { fill: var(--acc); stroke: none; transition: transform .2s; }

/* guide bubble */
.guide { position: fixed; z-index: 11; left: 10px; right: 10px; bottom: calc(var(--sheet-h, 150px) + 10px); display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 10px 34px 10px 10px; box-shadow: var(--shadow); max-width: 460px; transition: bottom .3s; }
.guide img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.guide p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.guide b { display: block; font-size: 11.5px; color: var(--mute); font-weight: 500; }
.x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; color: var(--faint); width: 30px; height: 30px; }
.toast { position: fixed; z-index: 40; left: 50%; top: calc(70px + var(--safe-t)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 12px; font-size: 13.5px; max-width: 90vw; box-shadow: var(--shadow); }

/* bottom sheet */
.sheet { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 88vh; height: 88dvh; background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(52,40,24,.18); display: flex; flex-direction: column; transform: translateY(calc(100% - var(--sheet-h, 150px))); transition: transform .32s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto; }
.sheet.drag { transition: none; }
.grab { padding: 8px 0 2px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grab i { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.tabs { display: flex; gap: 2px; padding: 4px 12px 0; border-bottom: 1px solid var(--line); touch-action: none; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 0 10px; font-weight: 600; font-size: 14px; color: var(--faint); border-bottom: 2.5px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--acc); }
.body { overflow-y: auto; padding: 12px 16px calc(24px + var(--safe-b)); flex: 1; overscroll-behavior: contain; }
@media (min-width: 900px) {
  .sheet { left: 16px; right: auto; width: 400px; bottom: 16px; top: calc(76px + var(--safe-t)); height: auto; border-radius: 20px; transform: none !important; margin: 0; }
  .grab { display: none; }
  .guide { left: 432px; bottom: 16px; right: auto; width: 360px; }
  .step { left: 432px !important; right: 16px !important; max-width: 520px; }
}

/* shared bits */
h2.sec { font: 700 19px/1.3 var(--serif); margin: 4px 0 6px; }
p.sub { color: var(--mute); margin: 0 0 12px; font-size: 13.5px; }
.pills { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.pills button { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 500; }
.pills button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); vertical-align: 2px; }
.st { font-size: 12px; font-weight: 600; }
.st.open { color: var(--ok); } .st.brk, .st.soon { color: var(--warn); } .st.off, .st.gone { color: var(--bad); } .st.na { color: var(--faint); font-weight: 500; }
.stats { display: flex; gap: 14px; margin: 0 0 14px; padding: 10px 12px; background: var(--paper); border-radius: 12px; }
.stats div { font-size: 12px; color: var(--mute); } .stats b { display: block; font-size: 16px; color: var(--ink); }
.cta { width: 100%; border: 0; border-radius: 13px; padding: 13px; font-weight: 600; background: var(--acc); color: #fff; font-size: 15px; margin: 2px 0 14px; }

/* course timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li.stop { display: flex; gap: 12px; padding: 8px 0; align-items: center; cursor: pointer; }
.tl .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.tl .th { flex: none; width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--line); }
.tl .tx { flex: 1; min-width: 0; }
.tl .tx b { display: block; font-size: 15px; line-height: 1.3; }
.tl .tx small { color: var(--mute); font-size: 12.5px; }
.tl li.gone .tx b { text-decoration: line-through; color: var(--faint); }
.tl li.leg { margin-left: 14px; border-left: 2.5px dotted var(--line); padding: 4px 0 4px 26px; font-size: 12.5px; color: var(--mute); }
.tl li.leg.bus { border-left-style: dashed; }
.tl li.leg b { color: var(--ink); font-weight: 600; }
.tl li.leg p { margin: 2px 0 0; color: var(--faint); }

/* place cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); text-align: left; padding: 0; }
.pc .im { aspect-ratio: 4/3; background: var(--line) center/cover; position: relative; }
.pc .im em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; background: rgba(41,36,30,.65); color: #fff; padding: 1px 6px; border-radius: 99px; }
.pc .pt { padding: 8px 10px 10px; }
.pc b { font-size: 14px; display: block; line-height: 1.3; }
.pc small { font-size: 12px; color: var(--mute); }
.pc.gone .im { filter: grayscale(1) opacity(.7); }

/* place detail */
.back { border: 0; background: none; color: var(--mute); padding: 0 0 8px; font-size: 13.5px; }
.hero { position: relative; margin: 0 -16px 12px; aspect-ratio: 3/2; background: var(--line) center/cover; }
.hero figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero .ai { position: absolute; top: 10px; left: 10px; font-size: 11px; background: rgba(41,36,30,.7); color: #fff; padding: 3px 8px; border-radius: 99px; }
.pd h2 { font: 700 23px/1.25 var(--serif); margin: 0; }
.pd .kd { color: var(--mute); font-size: 13px; margin: 2px 0 8px; }
.closedbox { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
.hook { font: 400 16px/1.5 var(--serif); margin: 6px 0 12px; }
.rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; font-size: 13px; }
.rate .star { font-weight: 700; color: var(--gold); font-size: 15px; }
.rate .kw { background: var(--paper); border-radius: 8px; padding: 2px 7px; font-size: 12px; color: var(--mute); }
.blk { border-top: 1px solid var(--line); padding: 12px 0; }
.blk h4 { margin: 0 0 6px; font-size: 13px; color: var(--mute); font-weight: 600; }
.blk p { margin: 2px 0; }
.vq { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; padding: 6px 0; }
.vq time { flex: none; font-size: 12px; font-weight: 600; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 2px 6px; margin-top: 2px; }
.vq span { font-size: 14px; }
.hrs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hrs td { padding: 3px 0; } .hrs td:first-child { width: 40px; color: var(--mute); }
.hrs tr.today td { font-weight: 700; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.menu li span:last-child { color: var(--mute); white-space: nowrap; }
.tips { margin: 0; padding-left: 18px; font-size: 14px; } .tips li { margin: 3px 0; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.btns a, .btns button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.btns .kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
.btns .full { grid-column: 1 / -1; }
.src { font-size: 11.5px; color: var(--faint); margin: 10px 0 0; }

/* how-to-get-there */
.hub { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.hub .tx { flex: 1; } .hub b { display: block; } .hub small { color: var(--mute); font-size: 12.5px; }
.hub a { flex: none; font-size: 12.5px; font-weight: 600; padding: 8px 10px; border-radius: 10px; background: #FEE500; color: #191600; text-decoration: none; }
.line { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; color: #fff; font-size: 11px; font-weight: 700; margin-right: 3px; }

/* source */
.vcard { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 12px; }
.vcard .vt { aspect-ratio: 16/9; background: #000 center/cover; position: relative; }
.vcard .vt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 56px; height: 40px; margin: -20px 0 0 -28px; border-radius: 10px; background: rgba(200,40,40,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='white'/%3E%3C/svg%3E") center/26px no-repeat; }
.vcard .vb { padding: 10px 12px; } .vcard b { display: block; font-size: 14.5px; line-height: 1.35; } .vcard small { color: var(--mute); font-size: 12px; }
.quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--acc); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 14px; }
.quote small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.cred { font-size: 12.5px; color: var(--mute); padding-left: 18px; } .cred li { margin: 4px 0; }

/* step-through */
.step { position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(12px + var(--safe-b)); }
.stin { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.sk { margin: 0; font-size: 12px; color: var(--acc); font-weight: 600; }
.step h3 { margin: 2px 0 2px; font: 700 19px/1.3 var(--serif); }
.sl { margin: 0 0 10px; font-size: 13px; color: var(--mute); }
.sbtn { display: flex; gap: 8px; position: relative; }
.sbtn button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; height: 44px; min-width: 48px; font-size: 20px; }
.sbtn .pri { flex: 1; background: var(--ink); color: var(--paper); border-color: var(--ink); font-size: 14.5px; font-weight: 600; }
.sbtn .x { position: static; font-size: 22px; }
.sbtn button:disabled { opacity: .35; }
.sheet[data-state="hide"] { transform: translateY(100%); }

/* map labels (CSS2D) */
.lb { font-family: var(--sans); white-space: nowrap; transition: opacity .25s; }
.lb.hide { opacity: 0; }
.lb-st { display: flex; align-items: center; gap: 2px; background: #fff; border-radius: 99px; padding: 2px 8px 2px 3px; font-size: 12px; font-weight: 700; color: #29241E; box-shadow: 0 2px 6px rgba(0,0,0,.18); transform: translateY(-14px); }
.lb-st .line { min-width: 17px; height: 17px; font-size: 10px; margin: 0; }
.lb-pk { font-size: 11px; color: #5C5246; font-weight: 600; text-shadow: 0 0 3px #F5EFE3, 0 0 3px #F5EFE3; }
.lb-dong { font-size: 11px; color: rgba(70,60,48,.55); letter-spacing: .12em; font-weight: 600; }
.lb-gu { font-size: 13px; color: rgba(60,52,42,.7); font-weight: 600; }
.lb-gu.me { font: 700 18px var(--serif); color: #29241E; background: #fff; padding: 4px 10px; border-radius: 10px; box-shadow: var(--shadow); }
.lb-hub { font-size: 12px; font-weight: 700; color: #fff; background: #29241E; padding: 3px 8px; border-radius: 8px; }
.pin { pointer-events: auto !important; cursor: pointer; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 3px 10px 3px 3px; box-shadow: 0 3px 10px rgba(41,36,30,.25); transform: translateY(-50%); border: 2px solid var(--pc, #C8553D); }
.pin img, .pin i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #ddd; display: block; }
.pin b { font-size: 12.5px; color: #29241E; line-height: 1.15; display: block; }
.pin small { font-size: 10.5px; color: #7A7064; display: block; line-height: 1.1; }
.pin .no { position: absolute; left: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--pc, #C8553D); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pin.gone { filter: grayscale(1); opacity: .8; }
.pin.mini { padding: 2px; gap: 0; }
.pin.mini > span { display: none; }
.pin.mini img { width: 24px; height: 24px; }
.pin.mini.dim { opacity: .45; }
.pin.mini.sel > span { display: block; padding-right: 8px; }
.pin.dim { opacity: .55; transform: translateY(-50%) scale(.86); }
.pin.sel { transform: translateY(-50%) scale(1.12); z-index: 5; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F6FE0; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47,111,224,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,111,224,.5); } 100% { box-shadow: 0 0 0 22px rgba(47,111,224,0); } }
.credit { position: fixed; z-index: 3; right: 8px; bottom: calc(var(--sheet-h, 150px) + 4px); font-size: 9.5px; color: rgba(41,36,30,.6); pointer-events: none; text-align: right; }
@media (min-width: 900px) { .credit { bottom: 6px; } }

/* shopping specialization (shared travel engine) */
.buychips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.buychips span { font-size: 12.5px; background: var(--paper); border-radius: 8px; padding: 4px 9px; }
.buychips span b { color: var(--acc); }
.corr { margin: 2px 0 14px; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, transparent); border-radius: 12px; padding: 10px 12px; }
.corr .ch { font-size: 12.5px; font-weight: 700; color: var(--ok); margin: 0 0 6px; }
.corr .cw { font-size: 13px; margin: 0 0 8px; }
.corr a.pick { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; padding: 7px 0; border-top: 1px dashed color-mix(in srgb, var(--ok) 30%, var(--line)); }
.corr a.pick b { font-size: 13.5px; } .corr a.pick small { color: var(--mute); font-size: 11.5px; display: block; }
.corr a.pick .pgo { flex: none; font-size: 11.5px; font-weight: 700; color: var(--ok); }
.alsorow { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; scrollbar-width: none; }
.alsorow a { flex: none; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--card); font-size: 12.5px; }
.alsorow a b { display: block; } .alsorow a small { color: var(--mute); font-size: 11px; }
.btl .buyc { display: inline-block; font-size: 11.5px; color: var(--acc); font-weight: 600; margin-top: 2px; }

/* real video moment (YouTube embed from the timestamp — no copied stills) */
.hero .scene { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 7px 12px 7px 8px; background: rgba(20,16,12,.78); color: #fff; backdrop-filter: blur(6px); text-align: left; }
.hero .scene i { width: 30px; height: 30px; border-radius: 50%; background: #E0362C; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.hero .scene b { display: block; font-size: 13px; } .hero .scene small { font-size: 11px; opacity: .8; }
.hero.playing { aspect-ratio: 16/9; background: #000; }
.hero.playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero .scenefb { position: absolute; left: 0; right: 0; bottom: -26px; text-align: center; font-size: 11.5px; color: var(--mute); }
.hero.playing { margin-bottom: 34px !important; }
.btns .full { grid-column: 1 / -1; }

/* address copy + tap-to-call */
.addr { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; margin: 0 0 8px; }
.addr span { user-select: all; -webkit-user-select: all; font-size: 14.5px; }
.copy { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.call { display: flex; align-items: center; gap: 10px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, transparent); border-radius: 12px; padding: 9px 10px; margin: 4px 0 10px; }
.call i { font-style: normal; font-size: 20px; } .call span { flex: 1; } .call b { display: block; font-size: 16px; letter-spacing: .02em; } .call small { color: var(--mute); font-size: 11.5px; }

/* itinerary image */
.cta2 { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px; font-weight: 600; background: var(--card); color: var(--ink); font-size: 14.5px; margin: -6px 0 14px; }
.imodal { position: fixed; inset: 0; z-index: 70; background: rgba(20,16,12,.72); display: grid; place-items: center; padding: 16px; }
.iin { position: relative; width: min(440px, 100%); max-height: 94vh; display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: 18px; padding: 14px; }
.ih { margin: 0; font: 700 17px var(--serif); }
.iwrap { overflow: auto; border-radius: 12px; background: var(--paper); flex: 1; min-height: 0; }
.iwrap img { display: block; width: 100%; height: auto; -webkit-touch-callout: default; }
.ibtns { display: flex; gap: 8px; }
.ibtns button { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px; font-weight: 600; font-size: 14px; }
.ibtns .pri { background: #FEE500; border-color: #FEE500; color: #191600; }
.ihint { margin: 0; text-align: center; color: var(--faint); font-size: 12px; }

/* film mode: only the composited 1080×1920 canvas is visible (fit to the window for preview) */
body.filming .top, body.filming .sheet, body.filming .guide, body.filming .toast, body.filming #labels, body.filming .credit, body.filming #c, body.filming .sky { visibility: hidden !important; }
.filmcanvas { position: fixed; z-index: 99; top: 0; left: 50%; height: 100vh; width: auto; transform: translateX(-50%); background: #000; }

/* real photos one tap away (AI-illustrated places) */
.realpic { display: flex; align-items: center; gap: 10px; text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; margin: 8px 0 8px; }
.realpic i { font-style: normal; font-size: 22px; } .realpic span { flex: 1; } .realpic b { display: block; font-size: 14.5px; } .realpic small { color: var(--mute); font-size: 11.5px; }
.realpic em { font-style: normal; color: var(--faint); font-size: 20px; }

/* 2D fallback map (no WebGL) */
body.nogl #c, body.nogl #labels, body.nogl .sky, body.nogl #bseoul, body.nogl #bnorth { display: none !important; }
.flatmap { position: fixed; inset: 0; z-index: 1; overflow: auto; background: #E9E1D1; -webkit-overflow-scrolling: touch; }
.flatmap canvas { display: block; height: auto; }

/* ---- category sticker icons (engine/icons) ---- */
.ci { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 3px; display: inline-block; }
.cat { display: inline-flex; align-items: center; gap: 1px; color: var(--pc, var(--mute)); font-weight: 700; }
.cat .ci { width: 20px; height: 20px; margin-right: 2px; }
.pc .cat { font-size: 11.5px; margin-bottom: 1px; }
.pd .kd .cat { font-size: 13px; }
.pills button { display: inline-flex; align-items: center; gap: 2px; }
.pills button .ci { width: 20px; height: 20px; margin: -3px 2px -3px -4px; }
.pin img.pi { width: 34px; height: 34px; border-radius: 0; object-fit: contain; background: none; margin: -6px -2px -6px -6px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.pin.mini img.pi { width: 30px; height: 30px; margin: -4px; }
.pin.mini:not(.sel) { background: transparent; box-shadow: none; border-color: transparent; }
.lb-st .si { width: 22px; height: 22px; margin: -3px 1px -3px -1px; }
.btl .im.ico { object-fit: contain; background: none; width: 44px; height: 44px; margin: 0 6px; }
.btl .tx .k { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; margin-top: 1px; }
.btl .tx .w { display: block; }
.btl .tx .buyc { display: block; }
/* language toggle + Korean name line (EN mode) */
.ic.lang b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid currentColor; font-size: 10.5px; font-weight: 700; line-height: 1; }
.pd .nko { display: flex; align-items: center; gap: 8px; margin: -2px 0 6px; color: var(--mute); font-size: 14px; }
.pd .nko .copy { font-size: 11.5px; }
/* Seoul atlas: landmarks, areas, hubs */
.lb-lm { pointer-events: auto !important; cursor: pointer; display: flex; align-items: center; gap: 2px; background: rgba(41,36,30,.86); color: #fff; border-radius: 99px; padding: 2px 9px 2px 3px; font-size: 11.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); transform: translateY(-50%); }
.lb-lm .ci { width: 20px; height: 20px; margin: -3px 1px -3px 0; }
.lb-lm.ov { font-size: 12.5px; background: #fff; color: #29241E; }
.lb-area { font: 700 12px var(--serif); color: #8A5A3A; letter-spacing: .02em; text-shadow: 0 0 3px #F5EFE3, 0 0 3px #F5EFE3; white-space: nowrap; }
.lb-hub { display: flex; align-items: center; gap: 1px; font-size: 10.5px; font-weight: 600; color: #4A433B; text-shadow: 0 0 3px #F5EFE3, 0 0 3px #F5EFE3; white-space: nowrap; }
.lb-hub .si { width: 16px; height: 16px; }
#gsay a { color: inherit; font-weight: 700; }
/* "Now showing" exhibitions — Netflix-style rows (engine/shows.js); also used by /trips/exhibitions/ */
.shrow { margin: 0 0 18px; }
.shrow h3 { font: 700 16px var(--serif); margin: 0 0 8px; }
.shrow h3 small { font: 500 12px var(--sans); color: var(--mute); margin-left: 4px; }
.shs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.sh { flex: none; width: 210px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.sh h4 { margin: 2px 0 0; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.shh { display: flex; gap: 6px; align-items: center; min-height: 22px; }
.shc { font-size: 11.5px; font-weight: 700; background: var(--line); color: var(--ink); border-radius: 99px; padding: 2px 8px; }
.shc.hot { background: #C8382E; color: #fff; } .shc.up { background: #3F6E8C; color: #fff; }
.shv { font-size: 11px; color: #8B5A1E; background: #F3E2C4; border-radius: 99px; padding: 2px 7px; }
.shp { margin: 0; font-size: 12.5px; color: var(--mute); } .shd { margin: 0; font-size: 12px; color: var(--faint); }
.shb { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.shb a { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; text-decoration: none; color: var(--ink); background: var(--paper); }
.shb a.bk { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shempty { color: var(--mute); }
.lmshows { margin-top: 8px; display: grid; gap: 6px; }
.lmshows a { display: block; font-size: 12.5px; color: inherit; text-decoration: none; border-top: 1px solid rgba(127,127,127,.25); padding-top: 6px; }
.lmshows a b { display: block; font-size: 13px; }
.lb-lm .shn { background: #C8382E; color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; margin-left: 4px; }
/* exhibitions inside a place (art walks) */
.exh { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.exh:first-of-type { border-top: 0; }
.exh img { width: 74px; height: 98px; object-fit: cover; border-radius: 8px; flex: none; background: var(--line); }
.exh b { display: block; font-size: 14px; line-height: 1.35; } .exh small { display: block; color: var(--mute); font-size: 12px; margin: 2px 0 4px; }
.exh em { display: block; font-style: normal; font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.exb { display: flex; gap: 6px; } .exb a { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 9px; padding: 4px 9px; text-decoration: none; color: var(--ink); }
.exb a.bk { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.acc { font-size: 13px; margin: 8px 0 0; } .acc b { margin-right: 4px; }
.vgal { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 2px; scrollbar-width: none; } .vgal img { height: 120px; border-radius: 10px; object-fit: cover; }
.sh.hasimg { padding-top: 0; overflow: hidden; } .shi { margin: 0 -12px 6px; position: relative; } .shi img { width: 100%; height: 150px; object-fit: cover; display: block; }
.shi em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; padding: 1px 6px; }
.shb a.wk { background: #3F6E8C; color: #fff; border-color: #3F6E8C; }
.btns .naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.infochips { display: flex; gap: 6px; flex-wrap: wrap; } .ic2 { font-size: 12.5px; font-weight: 600; border-radius: 99px; padding: 3px 10px; border: 1px solid var(--line); }
.ic2.ok { background: color-mix(in srgb, var(--ok, #2F7D4F) 12%, var(--card)); } .ic2.no { color: var(--mute); }
.fst.ok { color: #2f7d4f; } .fst.no { color: #b4462f; font-weight: 600; }
/* food genre (CK 11/9): genre + menu in words, no dish pictures */
.pc .im.gim { background: #F6EEDF; display: grid; place-items: center; align-content: center; gap: 2px; }
.pc .im.gim img { width: 46%; height: auto; }
.pc .im.gim span { font-size: 11.5px; font-weight: 700; color: #6F5B44; }
.hero.ghero { aspect-ratio: auto; background: #F6EEDF; display: flex; gap: 14px; align-items: center; padding: 18px 16px 70px; }
.ghero .gtile { flex: none; width: 104px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.ghero .gtile img { width: 84px; height: 84px; object-fit: contain; }
.ghero .gtile b { font-size: 14px; color: #29241E; }
.ghero .gtile small { font-size: 10px; color: var(--faint); }
.ghero .gmenu { min-width: 0; }
.ghero .gmenu small { font-size: 11.5px; color: var(--faint); letter-spacing: .02em; }
.ghero .gmenu p { margin: 2px 0 0; font-size: 21px; font-weight: 800; line-height: 1.3; color: #29241E; word-break: keep-all; }
.ghero .gmenu p.none { font-size: 14px; font-weight: 500; color: var(--faint); }
.ghero .gmenu em { display: block; font-style: normal; font-size: 11px; color: #B4462F; margin-top: 4px; }
.ghero .scene { position: absolute; left: 16px; right: 16px; bottom: 10px; }
/* on-site stamps (CK 11/11) — same look as the visitor route page (engine-make/make.css .stampbar) */
.gstamp { margin: 0 0 14px; background: var(--card); border: 2px dashed var(--acc); border-radius: 16px; padding: 11px 13px; }
.gstamp .sbh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.gstamp .sbh b { font-size: 14.5px; } .gstamp .sbh small { color: var(--acc); font-weight: 700; font-size: 12.5px; }
.gstamp .sbd { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.gstamp .sbd span { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--mute); }
.gstamp .sbd span.on { border: 2px solid var(--acc); background: var(--acc); color: #fff; transform: rotate(-8deg); }
.gstamp .sbn { margin: 6px 0 0; font-size: 12.5px; color: var(--mute); }
.gstamp .sdone p { margin: 8px 0; font-size: 14.5px; }
.gstamp .srow { display: flex; gap: 8px; flex-wrap: wrap; }
.gstamp .sbt { flex: 1; min-width: 130px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 10px; font-weight: 700; font-size: 14px; }
.gstamp .sbt.acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.gsok { font-size: 12px; }
.gslot { margin: -4px 0 12px; }
.gslot .stampb { width: 100%; border: 2px solid var(--acc); background: var(--paper); color: var(--acc); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.gslot .stampb:disabled { opacity: .6; }
.gslot .stampd { display: inline-block; border: 2px solid var(--acc); color: var(--acc); border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 700; transform: rotate(-2deg); }
.gslot.pop .stampd { animation: gspop .45s ease-out; }
@keyframes gspop { 0% { transform: scale(1.8) rotate(-12deg); opacity: 0; } 70% { transform: scale(.94) rotate(-2deg); opacity: 1; } 100% { transform: rotate(-2deg); } }
.sbtn .sst { font-size: 13.5px; font-weight: 700; color: var(--acc); border-color: var(--acc); padding: 0 10px; }
.sbtn .sst.done { color: var(--ok); border-color: var(--line); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 130; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: gcf 1.9s ease-in forwards; }
@keyframes gcf { to { transform: translateY(105vh) rotate(540deg); } }
