/* 새해 준비상점 N.27 — 온라인 부스맵
   Key colors: 키비주얼 가이드(2026.10.19) 기준 */
:root {
  --orange: #FD7242;
  --orange-soft: #FFB596;
  --beige: #FFF3E5;
  --purple: #BA85F2;
  --lavender: #E2C4FF;
  --black: #161616;
  --gray: #3D3D3D;
  --line: #F1D7C3;
  --muted: #8A7E75;
  --white: #FFFFFF;
  --rail-w: 84px;
  --panel-w: 384px;
  --tabbar-h: 64px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(61, 34, 18, .14), 0 1px 3px rgba(61, 34, 18, .08);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  letter-spacing: -0.01em;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; }
a { color: inherit; }

.app {
  display: grid;
  grid-template-columns: var(--rail-w) var(--panel-w) 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
  transition: grid-template-columns .28s ease;
}
.app.collapsed { grid-template-columns: var(--rail-w) 0 1fr; }

/* ───────── Rail ───────── */
.rail {
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0;
  z-index: 30;
}
.rail-logo { display: block; width: 56px; color: var(--orange); margin-bottom: 22px; }
.rail-logo .logo-mark svg { width: 100%; height: auto; display: block; }
.rail-tabs { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.rail-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; margin: 0 8px; border-radius: 12px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
}
.rail-tab .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--beige); color: var(--orange);
  transition: background .15s, color .15s, transform .15s;
}
.rail-tab .ico svg { width: 24px; height: 24px; }
.rail-tab:hover .ico { transform: translateY(-1px); }
.rail-tab[aria-selected="true"] { color: var(--black); }
.rail-tab[aria-selected="true"] .ico { background: var(--orange); color: var(--white); }
.rail-tab .badge {
  position: absolute; transform: translate(14px, -6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--purple); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700;
}
.rail-tab .ico-wrap { position: relative; display: grid; place-items: center; }

/* ───────── Panel ───────── */
.panel {
  position: relative;
  background: var(--white);
  border-right: 1px solid var(--line);
  overflow: hidden;
  z-index: 20;
  min-width: 0;
}
.panel-body {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 24px 40px;
  width: var(--panel-w);
}
.panel-collapse {
  position: absolute; top: 50%; right: -1px; transform: translate(100%, -50%);
  width: 22px; height: 52px; border-radius: 0 10px 10px 0;
  background: var(--white); border: 1px solid var(--line); border-left: 0;
  display: grid; place-items: center; z-index: 5;
}
.app .panel { overflow: visible; }
.app .panel-body { overflow-x: hidden; }
.app.collapsed .panel-body { visibility: hidden; }
.panel-collapse svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.app.collapsed .panel-collapse svg { transform: rotate(180deg); }
.sheet-handle { display: none; }

.eyebrow { font-size: 13px; font-weight: 600; color: var(--orange); margin: 0 0 6px; }
.panel h2 { font-size: 22px; line-height: 1.35; margin: 0 0 14px; letter-spacing: -0.03em; }
.panel h3 { font-size: 15px; margin: 26px 0 10px; letter-spacing: -0.02em; }
.panel p { font-size: 14.5px; line-height: 1.75; color: var(--gray); margin: 0 0 12px; word-break: keep-all; }
.panel p strong { color: var(--orange); }

/* Intro */
.hero {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--beige); padding: 22px 20px 18px; margin-bottom: 22px;
}
.hero .wordmark { color: var(--orange); width: 100%; margin-bottom: 14px; }
.hero .wordmark svg { width: 100%; height: auto; display: block; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--white); font-size: 12.5px; font-weight: 600; color: var(--gray);
}
.pill.orange { background: var(--orange); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); margin: 16px -20px -18px; }
.tiles span { aspect-ratio: 1; display: grid; place-items: center; }
.tiles span svg { width: 62%; height: 62%; }

.letter { border-top: 1px solid var(--line); padding-top: 18px; text-align: left; }
.letter .sign { font-weight: 700; color: var(--orange); font-size: 14px; }

.section-list { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.section-item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; background: var(--beige);
  text-align: left; width: 100%;
  transition: transform .12s, box-shadow .12s;
}
.section-item:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.section-item .sw { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.section-item .sw svg { width: 26px; height: 26px; }
.section-item b { font-size: 14.5px; display: block; }
.section-item small { color: var(--muted); font-size: 12.5px; }
.section-item .count { font-size: 13px; font-weight: 700; color: var(--orange); }

/* Directory */
.dir-tools { position: sticky; top: -26px; background: var(--white); padding: 4px 0 10px; z-index: 2; margin-top: -4px; }
.dir-input {
  width: 100%; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  padding: 0 14px; background: var(--beige); outline: none;
}
.dir-input:focus { border-color: var(--orange); background: #fff; }
.seg { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--beige); color: var(--gray);
}
.seg button[aria-pressed="true"] { background: var(--black); color: #fff; }
.dir-group h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; margin: 18px 0 6px; color: var(--gray);
}
.dir-group h4 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dir-group h4 em { font-style: normal; color: var(--muted); font-weight: 500; }
.booth-row {
  display: grid; grid-template-columns: 50px 1fr 36px; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 9px 6px; border-radius: 10px;
  border-bottom: 1px solid #F7EBE1;
}
.booth-row:hover { background: var(--beige); }
.booth-row.active { background: var(--beige); box-shadow: inset 3px 0 0 var(--orange); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  padding: 4px 0; border-radius: 6px; text-align: center; width: 46px;
}
.booth-row .nm { font-size: 14.5px; font-weight: 500; line-height: 1.35; word-break: keep-all; }
.heart {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  transition: transform .15s;
}
.heart svg { width: 20px; height: 20px; fill: none; stroke: #C9B8AB; stroke-width: 2; stroke-linejoin: round; }
.heart:hover svg { stroke: var(--orange); }
.heart[aria-pressed="true"] svg { fill: var(--orange); stroke: var(--orange); }
.heart.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 0; }

/* Program */
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.days button {
  padding: 10px 0 9px; border-radius: 12px; background: var(--beige); text-align: center;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1;
}
.days button small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.days button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.days button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.days button.d1[aria-pressed="true"] { background: var(--purple); }
.days button.d3[aria-pressed="true"] { background: var(--lavender); color: var(--black); }
.days button.d3[aria-pressed="true"] small { color: var(--gray); }
.venues { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.venues button {
  padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .03em;
  border: 1.5px solid var(--line); color: var(--gray);
}
.venues button[aria-pressed="true"] { border-color: var(--black); background: var(--black); color: #fff; }
.prog { list-style: none; margin: 0; padding: 0; position: relative; }
.prog li {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #F7EBE1;
}
.prog .time { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; padding-top: 2px; }
.prog .time small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.prog .ev { border-radius: 12px; padding: 11px 13px; text-align: left; width: 100%; }
.prog .ev b { display: block; font-size: 15px; margin-bottom: 4px; }
.prog .ev span { font-size: 12px; font-weight: 700; letter-spacing: .02em; opacity: .85; display: inline-flex; gap: 6px; align-items: center; }
.prog .ev span svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.prog .ev:hover { filter: brightness(.97); }
.prog li.now .ev { box-shadow: 0 0 0 3px var(--black); }
.prog li.past { opacity: .45; }
.live { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--black); border-radius: 4px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 16px; }

/* Info */
.info-grid { display: grid; gap: 8px; }
.info-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 12px 14px; background: var(--beige); border-radius: 12px; font-size: 14px; line-height: 1.55; }
.info-row dt { font-weight: 700; color: var(--orange); }
.info-row dd { margin: 0; color: var(--gray); }
.fac-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fac {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); text-align: left; font-size: 13.5px; font-weight: 600;
}
.fac:hover { border-color: var(--orange); }
.fac .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.fac .ic svg { width: 20px; height: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  background: var(--orange); color: #fff; text-decoration: none; width: 100%;
}
.btn.ghost { background: var(--beige); color: var(--black); }
.btn.dark { background: var(--black); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* My route */
.route-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.route-list li {
  display: grid; grid-template-columns: 30px 1fr 36px; gap: 10px; align-items: center;
  padding: 8px 0; position: relative;
}
.route-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 38px; bottom: -8px; border-left: 2px dashed var(--orange-soft);
}
.route-list .num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; z-index: 1;
}
.route-list .body { text-align: left; }
.route-list .body b { display: block; font-size: 14.5px; line-height: 1.35; }
.route-list .body small { font-size: 12px; color: var(--muted); }
.route-empty { background: var(--beige); border-radius: 16px; padding: 22px 18px; text-align: center; }
.route-empty .big { width: 64px; height: 64px; margin: 0 auto 10px; color: var(--orange); }
.route-empty p { margin: 0; }

/* ───────── Stage / Map ───────── */
.stage { position: relative; overflow: hidden; background: var(--beige); min-width: 0; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; display: block; }
.map.dragging { cursor: grabbing; }
.floor { fill: #FFFDFB; stroke: var(--line); stroke-width: 1; }

.area rect { stroke-width: .8; }
.area text { font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.area.clickable { cursor: pointer; }
.area.clickable:hover rect { filter: brightness(.97); }
.area.pulse rect { animation: areaPulse 1.6s ease 2; }
@keyframes areaPulse { 50% { stroke-width: 3; stroke: var(--orange); } }

.booth { cursor: pointer; }
.booth polygon { stroke: #fff; stroke-width: .6; transition: opacity .2s, filter .15s; }
.booth text { pointer-events: none; text-anchor: middle; dominant-baseline: central; font-weight: 800; }
.booth .code { font-size: 4.3px; letter-spacing: .02em; opacity: 0; transition: opacity .2s; }
.booth .nm { font-size: 2.35px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.booth:hover polygon { filter: brightness(1.08) saturate(1.05); }
.map.z-codes .booth .code { opacity: 1; }
.map.z-names .booth .nm, .map.z-mid .booth.big .nm { opacity: 1; }
.booth .code { transition: opacity .2s, transform .2s; }
.map.z-names .booth .code.has-name, .map.z-mid .booth.big .code.has-name { transform: translateY(var(--code-up)); }
.map.z-names .booth:not(.big) .code.has-name { font-size: 3.1px; }
.map.dim .booth:not(.on) polygon { opacity: .14; }
.map.dim .booth:not(.on) text { opacity: .25; }
.booth.sel polygon { stroke: var(--black); stroke-width: 1.4; filter: none; }
.booth.fav polygon { stroke: var(--orange); stroke-width: 1.1; }
.booth.hit polygon { animation: hit 1.2s ease 2; }
@keyframes hit { 50% { stroke: var(--black); stroke-width: 2.4; } }

.route-line { fill: none; stroke: var(--orange); stroke-width: 1.3; stroke-dasharray: 3 2.2; stroke-linecap: round; pointer-events: none; }
.route-pin circle { fill: var(--orange); stroke: #fff; stroke-width: .8; }
.route-pin text { fill: #fff; font-size: 4px; font-weight: 800; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.route-pin { cursor: pointer; }

.marker text { font-size: 6px; font-weight: 800; text-anchor: middle; letter-spacing: .06em; }
.sel-pin { pointer-events: none; }

/* Topbar */
.topbar { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 12; display: flex; gap: 10px; align-items: flex-start; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.search { position: relative; flex: 0 0 340px; }
.search input {
  width: 100%; height: 48px; border-radius: 14px; border: 0;
  padding: 0 40px 0 44px; background: var(--white); box-shadow: var(--shadow); outline: none; font-size: 15px;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { box-shadow: var(--shadow), 0 0 0 2px var(--orange); }
.search-ico { position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search-clear { position: absolute; right: 8px; top: 9px; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; color: var(--muted); }
.search-results {
  position: absolute; top: 54px; left: 0; right: 0; max-height: min(420px, 60vh); overflow-y: auto;
  list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
}
.search-results li button { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 8px; border-radius: 10px; font-size: 14.5px; }
.search-results li button:hover, .search-results li button.kb { background: var(--beige); }
.search-results li button small { display: block; color: var(--muted); font-size: 12px; }
.search-results mark { background: none; color: var(--orange); font-weight: 800; }
.search-results .none { padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px 0 6px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(61,34,18,.1);
  font-size: 13.5px; font-weight: 700; color: var(--gray); white-space: nowrap;
  transition: background .15s, color .15s;
}
.chip .sw { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.chip .sw svg { width: 18px; height: 18px; }
.chip[aria-pressed="true"] { background: var(--black); color: #fff; }

/* Zoom */
.zoom { position: absolute; right: 16px; bottom: 24px; z-index: 11; display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.zoom button { width: 44px; height: 44px; background: #fff; font-size: 22px; font-weight: 500; display: grid; place-items: center; }
.zoom button:hover { background: var(--beige); }
.zoom svg { width: 20px; height: 20px; fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; }

/* Legend */
.legend {
  position: absolute; left: 16px; bottom: 24px; z-index: 10;
  display: flex; gap: 12px; flex-wrap: wrap; max-width: calc(100% - 120px);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 12px; padding: 9px 13px;
  font-size: 12px; font-weight: 600; color: var(--gray); box-shadow: 0 2px 10px rgba(61,34,18,.08);
}
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* Booth card */
.card {
  position: absolute; right: 76px; bottom: 24px; z-index: 15; width: 340px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  animation: cardIn .22s ease;
}
@keyframes cardIn { from { transform: translateY(12px); opacity: 0; } }
.card-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0 16px; }
.card-top .tag { width: auto; padding: 5px 10px; font-size: 13px; }
.card-top .sec { font-size: 12.5px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.card-top .sec svg { width: 16px; height: 16px; }
.card-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.card-close:hover { background: var(--beige); }
.card h3 { font-size: 21px; line-height: 1.35; margin: 10px 16px 4px; letter-spacing: -0.03em; word-break: keep-all; }
.card .near { font-size: 13px; color: var(--muted); margin: 0 16px 14px; }
.card-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; padding: 0 12px 12px; }
.card-actions .btn { height: 44px; font-size: 14px; }
.card-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.card-actions .btn.on { background: var(--black); }
.card-actions .btn.on svg { fill: var(--orange); stroke: var(--orange); }
.card-actions .sq { width: 44px; padding: 0; }
.card-strip { height: 8px; }

.toast {
  position: absolute; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; z-index: 40;
  background: var(--black); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 16px; border-radius: 12px;
  transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── Mobile ───────── */
@media (max-width: 899px) {
  .app { display: block; height: 100dvh; }
  .stage { position: fixed; inset: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom)) 0; }
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom); flex-direction: row; border-right: 0; border-top: 1px solid var(--line);
  }
  .rail-logo { display: none; }
  .rail-tabs { flex-direction: row; gap: 0; height: 100%; }
  .rail-tab { flex: 1; margin: 0; padding: 7px 0 6px; gap: 3px; font-size: 11px; border-radius: 0; justify-content: center; }
  .rail-tab .ico { width: 30px; height: 30px; border-radius: 9px; background: transparent; }
  .rail-tab .ico svg { width: 24px; height: 24px; }
  .rail-tab[aria-selected="true"] .ico { background: var(--orange); }

  .panel {
    position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    height: calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom) - 12px);
    border-radius: 20px 20px 0 0; border: 0; box-shadow: 0 -6px 30px rgba(61,34,18,.16);
    transform: translateY(var(--sheet-y, 100%)); transition: transform .3s cubic-bezier(.2,.8,.2,1);
    overflow: hidden; z-index: 25;
  }
  .panel.dragging { transition: none; }
  .panel-collapse { display: none; }
  .sheet-handle { display: grid; place-items: center; height: 26px; touch-action: none; cursor: grab; }
  .sheet-handle span { width: 42px; height: 5px; border-radius: 3px; background: #E5D3C5; }
  .panel-body { width: auto; height: calc(100% - 26px); padding: 6px 18px calc(30px + env(safe-area-inset-bottom)); }
  .dir-tools { top: -6px; }
  .app.collapsed .panel-body { visibility: visible; }

  .topbar { top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; flex-direction: column; gap: 6px; }
  .search { flex: none; width: 100%; }
  .chips { width: calc(100% + 20px); margin: 0 -10px; padding: 2px 10px 8px; }
  .chip { height: 36px; font-size: 13px; }
  .chip .sw { width: 26px; height: 26px; }
  .zoom { right: 10px; bottom: 14px; }
  .zoom button { width: 42px; height: 42px; }
  .legend { display: none; }
  .card { left: 10px; right: 10px; bottom: 12px; width: auto; }
  .toast { bottom: 24px; }
}
@media (max-width: 899px) and (hover: none) { .zoom #zoomIn, .zoom #zoomOut { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 부스 카드가 열리면 범례는 숨김 */
.card:not([hidden]) ~ .toast { bottom: 230px; }
.stage:has(.card:not([hidden])) .legend { display: none; }

.route-pin > * { transform: scale(var(--pin, 1)); }
