/* 트윈골드 상가 안내도 — 모바일 우선 스타일 */
/* 도면 무단 저장/복사 1차 방지: 우클릭 저장, 드래그 저장, 모바일 길게눌러 저장 차단 */
.mapwrap, .mapwrap svg, .mapwrap image, .mapwrap svg * {
  -webkit-user-drag: none; user-drag: none;
  -webkit-touch-callout: none;
  user-select: none; -webkit-user-select: none;
}
:root {
  --navy: #1f3a63;
  --navy-2: #2b4d80;
  --ink: #1c2230;
  --muted: #6b7484;
  --line: #e3e6ec;
  --bg: #f5f6f9;
  --card: #ffffff;
  --accent: #e8462f;
  --route: #1a73e8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 30, 50, .08);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
  font-size: 15px; line-height: 1.45;
  overscroll-behavior-y: none;
}
body { display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- 상단바 ---------- */
.topbar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 7px 12px;
  flex: none;
}
.brand { display: flex; align-items: center; gap: 9px; }
.logo {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: #fff; color: var(--navy);
  font-weight: 800; font-size: 13px; letter-spacing: -.5px;
  display: grid; place-items: center;
}
.titles { display: flex; flex-direction: column; line-height: 1.15; flex: 1 1 auto; }
.titles strong { font-size: 17px; letter-spacing: -.3px; }
.titles small { font-size: 11.5px; opacity: .75; }
.icon-btn {
  background: none; border: 0; font-size: 17px; padding: 6px 8px;
  cursor: pointer; border-radius: 8px; opacity: .9;
}
/* 검색창 위 한 줄 — 여기가 어디인지 알려주는 이름표 */
.brandline { display: flex; align-items: baseline; gap: 7px; padding: 1px 2px 0; }
.brandline strong { font-size: 16px; letter-spacing: -.3px; }
.brandline span { font-size: 11.5px; opacity: .72; font-weight: 500; }
/* 건물 정보(주소·교통·규모·문의) 를 여는 단추 */
.brand-i {
  border: 0; background: none; cursor: pointer; padding: 2px 4px;
  font-size: 14px; opacity: .6; line-height: 1;
}
.brand-i:hover { opacity: 1; }
/* 지금까지 몇 명이 봤는지 — 상인들에게 "손님들이 이걸 봅니다"를 보여주는 자리 */
.visits {
  margin-left: auto; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: inherit;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.visits b { font-weight: 800; }
body.app.panel .visits, body.app:not(.panel) .visits { color: inherit; }
/* 도면 위 투명 방패 — 이 막이 클릭 대상이 되어야 브라우저가 '이미지'로 인식하지 않는다.
   (투명한 칠은 기본값에서 클릭 대상이 안 되므로 all 로 명시한다)
   칸(.unit)은 이 막보다 위에 그려지므로 칸 클릭은 그대로 살아 있고,
   확대·이동은 svg 요소에 걸려 있어 이벤트가 위로 올라가 정상 동작한다. */
.img-shield { pointer-events: all; }
/* 지도 위 시설(화장실·엘리베이터 등) — 눌러서 길찾기.
   아이콘은 화면에서 작게 보이므로, 보이지 않는 넓은 원(.poi-tap)이 실제 누르는 자리다. */
.poi-hit { cursor: pointer; }
.poi-hit:hover rect { stroke: var(--route); stroke-width: 4; }
.poi-tap { pointer-events: all; }

/* 화면 맨 아래 저작권·면책 문구 */
.sitefoot {
  flex: none; background: #f2f4f7; color: #7b8494;
  border-top: 1px solid var(--line);
  padding: 9px 14px calc(9px + var(--safe-b));
  font-size: 11px; line-height: 1.6; text-align: center;
}
.sitefoot a { color: #5b6577; }
.foot-sep { margin: 0 5px; opacity: .5; }

.searchrow {
  margin-top: 6px; background: transparent; border-radius: 0;
  display: flex; align-items: stretch; padding: 0; gap: 6px;
  box-shadow: none;
}
/* 출발지 칩 — 목적지 박스와 나란히, KTX 예매처럼 '출발 → 도착' 두 칸으로 보이게 한다 */
.origin-chip {
  flex: 1 1 0; display: flex; align-items: center; gap: 6px; min-width: 0;
  background: #ffc531; color: #26324a; border-radius: 11px;
  padding: 8px 6px 8px 12px; font-size: 15px; font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.origin-chip b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
/* 아직 출발지를 안 정한 상태 — 빈 칸으로 자리를 지키면서 누르면 안내 문구를 띄운다.
   글씨 크기·굵기·색을 목적지 칸의 안내문구(placeholder)와 똑같이 맞춰 한 쌍으로 보이게 한다 */
.origin-chip.is-empty {
  background: #fff; color: var(--muted); box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  cursor: pointer; font-weight: 400;
}
.origin-chip.is-empty b { font-weight: 400; color: var(--muted); }
.origin-chip.is-empty > span { opacity: .5; }
.origin-chip button {
  border: 0; background: rgba(38, 50, 74, .16); color: #26324a; flex: none;
  border-radius: 6px; width: 18px; height: 18px; font-size: 10px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
/* 출발↔도착 바꾸기 — 예전엔 그냥 화살표 그림이었다 */
.arrow-sep {
  flex: none; align-self: center; font-size: 16px; font-weight: 800;
  color: #b07b00; background: #fff3d0; border: 0; border-radius: 9px;
  width: 30px; height: 34px; cursor: pointer; padding: 0;
}
.arrow-sep:hover { background: #ffe9ab; }
/* 도착지 칩은 누르면 다시 검색칸으로 돌아간다 */
.dest-chip b, .origin-chip b { cursor: pointer; }
/* 상세에서 검색결과로 되돌아가는 버튼 */
.sheet-back {
  position: sticky; top: 0; z-index: 2; display: block; width: 100%;
  border: 0; border-bottom: 1px solid var(--line); background: #fff;
  text-align: left; padding: 11px 16px; font-size: 13.5px; font-weight: 700;
  color: #3c4657; cursor: pointer;
}
.sheet-back:hover { background: #f6f8fb; }
.destbox {
  flex: 1 1 0; display: flex; align-items: center; gap: 7px; min-width: 0;
  background: #fff; border-radius: 11px; padding: 0 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
/* 출발지를 검색하는 동안 — 검색칸을 왼쪽(출발지 자리)으로 옮기고
   도착지 칸은 그대로 오른쪽에 남긴다. 어디로 가는 길인지 계속 보여야 한다. */
body.picking-origin .origin-chip { display: none; }
body.picking-origin .destbox { order: -1; }

/* 목적지 확정 후 — 검색창 대신 출발지 칩과 대칭되는 도착지 칩을 보여준다 */
.dest-chip {
  flex: 1 1 0; display: flex; align-items: center; gap: 6px; min-width: 0;
  background: var(--route); color: #fff; border-radius: 11px;
  padding: 8px 6px 8px 12px; font-size: 15px; font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.dest-chip b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.dest-chip button {
  border: 0; background: rgba(255, 255, 255, .22); color: #fff; flex: none;
  border-radius: 6px; width: 18px; height: 18px; font-size: 10px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.search-ico { font-size: 14px; opacity: .5; }
#q {
  flex: 1; border: 0; outline: 0; padding: 8px 0; font-size: 15px;
  background: transparent; color: var(--ink); min-width: 0;
}
/* 출발지 빈 칸의 '출발지 선택' 글씨와 완전히 같은 모양으로 */
#q::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
#q::-webkit-search-cancel-button { display: none; }
.clear-btn {
  border: 0; background: #e9ecf2; color: #667; border-radius: 50%;
  width: 21px; height: 21px; font-size: 11px; line-height: 1;
  cursor: pointer; flex: none;
}

/* ---------- 광고 ---------- */
.ad-slot { flex: none; background: #fff; }
.ad-slot:empty { display: none; }
.ad-slot a, .ad-slot .ad-ph { display: block; }
/* adHTML()이 만드는 .ad-wrap은 고정 광고 자리(.ad-slot) 뿐 아니라
   점포 상세 시트·검색결과 목록 안에도 그대로 삽입되므로, 크기 제한은
   .ad-slot이 아니라 .ad-wrap 자체에 걸어야 어디서든 화면을 가리지 않는다. */
.ad-wrap img {
  display: block; width: 100%; height: auto;
  max-height: var(--ad-h, 96px); object-fit: contain; margin: 0 auto;
}
.ad-top { border-bottom: 1px solid var(--line); }
.ad-bottom {
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
  position: relative; z-index: 30;
}
.ad-tag {
  position: absolute; right: 4px; top: 3px; font-size: 9px;
  background: rgba(0, 0, 0, .38); color: #fff;
  padding: 1px 4px; border-radius: 3px; letter-spacing: .3px;
}
.ad-wrap { position: relative; }
.ad-ph {
  padding: 14px 12px; text-align: center; color: var(--muted);
  font-size: 12.5px; background: #fafbfc;
}

/* ---------- 층 탭 ---------- */
.floorbar {
  flex: none; display: flex; gap: 6px; padding: 6px 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.floorbar button {
  flex: 1; padding: 6px 0; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted);
  cursor: pointer; transition: .15s;
}
.floorbar button .fsub {
  display: block; font-size: 10px; font-weight: 500; opacity: .8;
  white-space: nowrap;   /* "49개 점포" 가 "49개 점 / 포" 로 쪼개지던 것을 막는다 */
}
.floorbar button { white-space: nowrap; }
.floorbar button[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

/* ---------- 업종 칩 ---------- */
.chiprow {
  flex: none; display: flex; gap: 6px; padding: 5px 12px;
  overflow-x: auto; background: var(--card);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 4px 11px; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: #3c4657; white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600;
}
.chip .cnt { font-size: 11px; opacity: .6; }

/* ---------- 지도 ---------- */
.mapwrap {
  position: relative; flex: 1 1 auto; min-height: 240px;
  background: #fbfcfd; overflow: hidden; touch-action: none;
}
#map { width: 100%; height: 100%; display: block; }
.unit { cursor: pointer; }
.unit .u-shape { stroke: #fff; stroke-width: 3; transition: opacity .15s; }
/* 같은 업체 칸 사이의 틈을 메우는 조각 — 클릭은 아래 칸들이 받는다 */
.unit.bridge { pointer-events: none; }
/* 원색 칸 위의 흰 글씨 — 굵게 쓰고 옅은 그림자를 깔아 어느 색 위에서도 또렷하게 */
.unit .u-label {
  pointer-events: none; font-weight: 800; letter-spacing: -.01em;
  paint-order: stroke fill; stroke: rgba(0, 0, 0, .28); stroke-width: 2.4px;
  stroke-linejoin: round;
}
/* 유료 광고 점포 — 백금 테두리가 흐르듯 반짝인다.
   바탕색을 빼고 흰 칸 + 진한 글씨로 두어, 색칠된 다른 칸들과 확실히 구분된다. */
.unit.sponsor .u-shape {
  stroke: url(#platinum);
  stroke-width: 7;
  animation: sponsorGlow 1.1s linear infinite;
}
/* 테두리 바깥으로 번지는 빛도 무지개색으로 함께 돌린다 —
   그라데이션만으로는 도면 위에서 생각만큼 안 띄어서 광채를 더했다. */
@keyframes sponsorGlow {
  0%   { filter: drop-shadow(0 0 15px rgba(255,95,191,.9)); }
  20%  { filter: drop-shadow(0 0 15px rgba(255,209,46,.9)); }
  40%  { filter: drop-shadow(0 0 15px rgba(61,255,180,.9)); }
  60%  { filter: drop-shadow(0 0 15px rgba(79,184,255,.9)); }
  80%  { filter: drop-shadow(0 0 15px rgba(176,112,255,.9)); }
  100% { filter: drop-shadow(0 0 15px rgba(255,95,191,.9)); }
}
/* 움직임에 불편함을 느끼는 이용자는 반짝임을 끈다 (브라우저 설정을 따른다) */
@media (prefers-reduced-motion: reduce) {
  .unit.sponsor .u-shape { animation: none;
    filter: drop-shadow(0 0 12px rgba(180,140,255,.8)); }
}
.unit.sponsor .u-label {
  font-weight: 900;
  stroke: rgba(255, 255, 255, .95); stroke-width: 3.4px;
  letter-spacing: -.01em;
}

.unit.dim .u-shape { opacity: .18; }
.unit.dim .u-label { opacity: .18; }
/* 업종·가게를 알려주는 작은 그림 — 글씨와 같이 흐려지고 같이 살아난다 */
.u-icon { pointer-events: none; }
.unit.dim .u-icon { opacity: .18; }
/* 입체 아이콘과 칸 안쪽 명암 — 글씨와 같이 흐려지고 같이 살아난다 */
.u-icon3d, .u-keycap { pointer-events: none; }
/* 간판 그림 — 클릭은 아래 칸이 받아야 하므로 마우스를 가로채지 않는다 */
.cell-art { pointer-events: none; }
.unit.dim.cell-art { opacity: .22; }
.unit.dim .u-icon3d, .unit.dim .u-keycap { opacity: .18; }
/* 고른 가게는 칸마다 테두리를 두르지 않는다 — 여러 칸을 쓰면 칸 사이에
   막대가 그어진 것처럼 보이기 때문이다. 둘레선은 .store-ring 이 따로 그린다. */
.unit.hit .u-shape { stroke: none; }
.unit.sel .u-shape { stroke: none; }
/* 출발지로 지정된 칸 — 다른 칸보다 밝고, 빨간 테두리로 눈에 띄게 */
.unit.start-point .u-shape { stroke: none; filter: brightness(1.22) saturate(1.3); }

/* 가게 하나를 통째로 두르는 둘레선 —
   선을 먼저 긋고 그 위에 가게 색을 덮어, 가게 안쪽으로 들어온 선은 지운다.
   그래서 칸이 여러 개여도 바깥 둘레 한 줄만 남는다. */
.store-ring { pointer-events: none; }
.store-ring .ring-line polygon { fill: none; }
.store-ring.r-hit   .ring-line polygon { stroke: var(--accent); stroke-width: 14; }
.store-ring.r-sel   .ring-line polygon { stroke: var(--route);  stroke-width: 16; }
.store-ring.r-start .ring-line polygon { stroke: #e8462f;       stroke-width: 16; }
/* 덮개는 칸 색 그대로 — 출발지는 칸과 똑같이 밝게 해줘야 색이 안 튄다 */
.store-ring.r-start .ring-cover { filter: brightness(1.22) saturate(1.3); }
.u-core { fill: #e2e4ea; }

/* ---- 안내판 이미지 위에 얹는 모드 ---- */
/* 칸은 보이지 않지만 눌리게 두고, 검색·선택된 칸만 색을 입힌다 */
.unit.on-plan .u-shape { fill-opacity: 0; stroke: none; pointer-events: all; }
.unit.on-plan.dim .u-shape { opacity: 1; }
.unit.on-plan.match .u-shape { fill-opacity: .5; stroke: #fff; stroke-width: 4; }
.unit.on-plan.hit .u-shape { stroke: var(--accent); stroke-width: 9; }
.unit.on-plan.sel .u-shape { fill-opacity: .34; stroke: var(--route); stroke-width: 11; }
.veil { fill: #fff; opacity: .74; pointer-events: none; }

/* 층 이름표 — 세 층 도면을 세로로 이어 붙여 놓으면 지금 보는 게 몇 층인지 헷갈린다.
   그래서 층마다 도면 바로 위에 큰 글씨를 하나씩 놓는다.
   흰 테두리(stroke)를 글자 뒤로 깔아, 도면 위에 겹쳐도 항상 읽히게 했다. */
.floor-tag { pointer-events: none; }
.floor-tag text {
  fill: #1f3a63;
  font-weight: 800;
  letter-spacing: -.02em;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 12px;
  stroke-linejoin: round;
}

/* 호수 — 안내판에 없는 정보라 흰 알약 위에 얹는다 */
.u-no-bg {
  pointer-events: none; fill: rgba(255, 255, 255, .88);
  stroke: rgba(120, 132, 158, .5); stroke-width: 1.5;
}
.u-no {
  pointer-events: none; font-weight: 800; fill: #46506a;
  letter-spacing: -.02em;
}
.unit.dim .u-no, .unit.dim .u-no-bg { opacity: .45; }
.unit.match .u-no-bg, .unit.sel .u-no-bg {
  fill: #1a73e8; stroke: #fff; stroke-width: 2.5;
}
.unit.match .u-no, .unit.sel .u-no { fill: #fff; }
/* 호수는 축소해도 항상 보인다 — 안 보이면 어느 칸인지 못 찾는다는 요청에 따라 */
.poi-ico { pointer-events: none; }
.route-line {
  fill: none; stroke: var(--route); stroke-width: 13; stroke-linecap: round;
  stroke-linejoin: round; opacity: .9;
}
.route-line.halo { stroke: #fff; stroke-width: 22; opacity: .95; }
.route-dash {
  fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 2 26; animation: flow 1.1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -28; } }

.mapctl {
  position: absolute; right: 10px; bottom: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 5;
}
.mbtn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95); font-size: 17px; cursor: pointer;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
/* 간판 그림 스위치 — 꺼두면 흐릿하게 보여서 지금 꺼져 있다는 걸 알 수 있다 */
.mbtn.is-off { opacity: .45; filter: grayscale(1); }

/* 업종 색상 안내 — 지도 왼쪽 아래에서 펼쳐진다. 한 줄을 누르면 그 업종만 남긴다. */
.legend {
  position: absolute; left: 10px; bottom: 12px; z-index: 6;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; font-size: 12px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: 62%; overflow: auto; box-shadow: var(--shadow);
  min-width: 148px;
}
.legend button {
  display: flex; align-items: center; gap: 7px; width: 100%;
  border: 0; background: none; padding: 6px 8px; border-radius: 8px;
  cursor: pointer; text-align: left; color: #3c4657; font-size: 12px;
}
.legend button:active { background: #f1f4f9; }
.legend button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 700; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: block; flex: none; }
.legend .lg-name { flex: 1; white-space: nowrap; }
.legend .lg-cnt { font-size: 11px; opacity: .6; }
.legend button[aria-pressed="true"] .lg-cnt { opacity: .85; }
.legend .lg-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 8px 6px; font-size: 11px; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--line); margin-bottom: 3px;
}

/* ---------- 길찾기 안내 ----------
 * 화면 아래쪽, 하단 광고 바로 위에 자리를 갖는 카드.
 * (예전처럼 fixed 로 화면 맨 밑에 띄우면 하단 광고를 덮어버려서 광고가 사라진 것처럼 보였다) */
.routebox {
  flex: none; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(20, 30, 50, .10);
  padding: 10px 12px; max-height: 42vh; overflow: auto;
}
.route-head { display: flex; align-items: center; gap: 8px; }
.route-head strong { font-size: 14px; flex: 1; min-width: 0; }

/* 길안내 단계 넘기기 — 카드 좌우 끝에 세로로 길게 붙인다.
   작은 화살표는 손가락으로 누르기 어려워 크게 키웠다. */
.route-body { display: flex; align-items: stretch; gap: 8px; }
.route-main { flex: 1; min-width: 0; }
.step-side {
  flex: none; width: 48px; border: 0; border-radius: 12px;
  background: #eef1f6; color: var(--navy);
  font-size: 30px; font-weight: 800; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.step-side:disabled { opacity: .26; cursor: default; }
.step-side:not(:disabled):active { background: #dbe3ee; }
.step-count {
  flex: none; text-align: center; font-size: 12.5px;
  color: var(--muted); font-weight: 700;
}

/* 닫기 — 구석의 작은 X 대신 카드 아래에 넓게 둔다 */
.route-close {
  display: block; width: 100%; margin-top: 8px; padding: 11px 0;
  border: 0; border-radius: 12px; background: #f1f3f7;
  color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer;
}
.route-close:active { background: #e5e9f0; }

/* 화장실 도어락 비밀번호 — QR 을 찍고 들어온 사람에게만 보인다.
   글자를 크게 하고 자간을 띄워 도어락 앞에서 한 번에 읽히게 한다. */
.wc-code {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: #fff8e1; border: 1px solid #f5d98a;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wc-code b {
  font-size: 26px; font-weight: 800; letter-spacing: 4px; color: #8a5a00;
}
.wc-code span { font-size: 13px; font-weight: 700; color: #9a7430; }
/* 남녀가 나뉘면 두 개가 나란히 선다 */
.wc-one { display: flex; align-items: center; gap: 8px; }
.wc-one + .wc-one { margin-left: 18px; padding-left: 18px; border-left: 1px solid #eacf92; }

/* 길 위를 걸어가는 사람 — 손가락으로 눌러도 지도가 반응하게 마우스를 가로채지 않는다 */
.route-walker { pointer-events: none; }
/* 화면을 아끼는 설정을 켠 분에게는 움직이지 않게 한다 */
@media (prefers-reduced-motion: reduce) {
  .route-walker animateMotion { display: none; }
}

/* 안내 단계 목록 — 네이버 길찾기처럼 처음부터 끝까지 나열하고,
   누르면 그 지점으로 지도가 옮겨간다. 지금 보고 있는 줄은 파랗게 표시. */
.step-list { list-style: none; margin: 8px 0 0; padding: 0; }
.step-row {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 9px 8px; border-radius: 10px; border-left: 3px solid transparent;
}
.step-row + .step-row { border-top: 1px solid #f1f3f6; }
.step-row:hover { background: #f6f8fb; }
.step-row.on { background: #eef4ff; border-left-color: var(--route); }
.step-no {
  flex: none; width: 21px; height: 21px; border-radius: 50%;
  background: #e7ebf2; color: #55607a; font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}
.step-row.on .step-no { background: var(--route); color: #fff; }
.step-row.fin .step-no { background: #12b76a; color: #fff; }
.step-text { font-size: 14.5px; color: #26324a; line-height: 1.4; flex: 1; min-width: 0; }
.step-text b { color: var(--navy); }
/* ---------- 점포 상세 (네이버 플레이스 형식) ---------- */
.sh-hero { padding: 2px 0 10px; }
.sh-name { font-size: 21px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.4px; }
.sh-sub { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sh-cat { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sh-dot { opacity: .45; }
.sh-mini { font-size: 12px; color: #98a0ae; margin-top: 3px; }
/* 이 가게를 지금까지 몇 명이 봤는지 */
.sh-views {
  margin-top: 7px; font-size: 12.5px; font-weight: 700; color: #48505f;
  background: #f1f4f9; border: 1px solid #e3e8f1;
  border-radius: 999px; padding: 3px 10px; display: inline-block;
}

/* 가로 버튼줄 — 네이버처럼 연한 파란 알약 버튼 */
.sh-btns { display: flex; gap: 7px; padding: 2px 0 12px; flex-wrap: wrap; }
.pbtn {
  flex: 1 1 0; min-width: 72px; display: flex; align-items: center; justify-content: center;
  gap: 5px; background: #eef4ff; color: #1a5fd0; border: 0; border-radius: 10px;
  padding: 10px 8px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.pbtn span { font-size: 15px; }
.pbtn:hover { background: #e2ecff; }
.pbtn.is-on { background: #e8f6ee; color: #10864f; cursor: default; }

/* 정보 목록 */
.sh-info { border-top: 1px solid var(--line); padding-top: 4px; }
.sh-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 2px; border-bottom: 1px solid #f3f5f8; font-size: 14px;
}
.sh-row:last-child { border-bottom: 0; }
.sh-ico { flex: none; width: 20px; text-align: center; opacity: .75; }
.sh-row b { font-weight: 700; }
.sh-row .btn { margin: 0 6px 6px 0; }

/* ---------- 공실 · 임대 (중개 도구) ---------- */
/* 영업 중인 가게의 면적은 알려주지 않는다는 표시 */
.locked {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f1f3f7; color: #7b8494; border-radius: 7px;
  padding: 3px 9px; font-size: 13px; font-weight: 600;
}
.rent-box { margin-top: 14px; }
.rent-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 15px 12px; font-size: 16px; font-weight: 700;
}
.rent-call b { font-weight: 800; }
.rent-call:hover { background: var(--navy-2); }
.rent-sub { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 검색 결과 ---------- */
.results {
  flex: none; max-height: 46vh; overflow: auto; background: var(--card);
  border-top: 1px solid var(--line); z-index: 20;
}
/* 검색 중에는 결과가 검색창 바로 아래 화면 상단에 붙도록 나머지 영역을 접는다 */
body.searching .floorbar,
body.searching .chiprow,
body.searching .mapwrap { display: none; }
/* 길안내 중에는 안내 카드가 커지므로 지도 최소높이를 낮춘다 —
   그러지 않으면 화면이 넘쳐 저작권 문구 아래가 잘린다 */
/* 길안내 중에도 지도가 주인공이다 — 안내는 두 줄만 차지한다.
   좁은 화면에서는 저작권 문구까지 접어 지도에 자리를 더 내준다
   (문구는 첫 화면·검색·상세에서 계속 보인다) */
body.routing .mapwrap { min-height: 260px; }
body.routing .routebox { max-height: none; padding: 8px 12px 6px; }
body.routing .step-list { margin-top: 4px; }
@media (max-width: 719px) {
  body.routing .sitefoot { display: none; }
}
body.searching .results { flex: 1 1 auto; max-height: none; }
.res-head {
  padding: 9px 14px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff;
}
.res-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid #f0f2f5; cursor: pointer; background: #fff;
  width: 100%; border-left: 0; border-right: 0; border-top: 0; text-align: left;
}
.res-item:active { background: #f4f7fb; }
.res-swatch { width: 34px; height: 34px; border-radius: 9px; flex: none; }
/* 상호와 층·호실이 한 줄로 붙어 "다온약국지상 2층" 처럼 읽히던 것을 줄로 나눈다 */
.res-name, .res-meta { display: block; }
/* 시설(화장실·엘리베이터 등) 검색결과 — 점포와 구분되게 동그란 회색 아이콘을 쓴다 */
.res-swatch-poi {
  border-radius: 50%; background: #eef1f6; color: #3b4454;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.res-poi .res-name { font-weight: 600; }
/* 길안내 한 줄 안에 덧붙는 보조 설명 (예: "지상 1층에서 내려서 한 번 갈아타세요") */
.step-sub {
  display: block; margin-top: 3px; font-size: 13px;
  font-weight: 500; color: #d4602a;
}
.res-main { flex: 1; min-width: 0; }
.res-name { font-weight: 700; font-size: 14.5px; }
.res-name em { font-style: normal; color: var(--accent); }
.res-meta { font-size: 12px; color: var(--muted); }
.res-go { font-size: 12px; color: var(--route); font-weight: 700; flex: none; }
.res-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- 점포 상세 시트 ---------- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--card); border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 20px rgba(20, 30, 50, .16);
  padding: 6px 16px calc(16px + var(--safe-b));
  max-height: 72vh; overflow: auto;
  animation: rise .18s ease-out;
}
@keyframes rise { from { transform: translateY(18px); opacity: .4; } }
.sheet-grip {
  display: block; width: 42px; height: 5px; border-radius: 3px;
  background: #d7dbe3; border: 0; margin: 6px auto 10px; cursor: pointer;
}
.sheet-x {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: #f2f4f8; color: #55607a; font-size: 14px;
  display: grid; place-items: center; cursor: pointer;
}
.sh-top { display: flex; align-items: flex-start; gap: 11px; }
.sh-swatch { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.sh-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.sh-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sh-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.fact {
  background: #f2f4f8; border-radius: 8px; padding: 5px 10px; font-size: 12.5px;
  color: #46505f;
}
.fact b { color: var(--ink); font-weight: 700; }
.sh-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn {
  flex: 1; padding: 12px 10px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  text-align: center; text-decoration: none; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn.primary { background: var(--route); border-color: var(--route); color: #fff; }
.btn.ghost { color: var(--navy); }
.btn:disabled { opacity: .55; cursor: default; color: var(--muted); }
/* 지도앱 버튼 — 셋이 정확히 같은 너비로 한 줄에 놓이게 한다.
   예전에는 아이콘 칸 안에 들어가 있어 왼쪽으로 치우쳐 보였다. */
.sh-maps { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sh-maps-t { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.mapapps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.mapapps .btn { font-size: 13px; padding: 11px 4px; margin: 0; white-space: nowrap; }
.sh-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ---------- 모달 / 토스트 ---------- */
/* 층 탭 아래 한 줄 — 지금은 '뭐먹지' 하나뿐이지만 나중에 다른 묶음보기도 여기 붙인다 */
.quickbar { display: flex; gap: 8px; padding: 0 12px 8px; flex: none; }
.qbtn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--navy);
  cursor: pointer; box-shadow: 0 1px 3px rgba(20, 30, 50, .06);
}
.qbtn:active { background: #f2f5fa; }
body.searching .quickbar, body.routing .quickbar { display: none; }

/* 점포가 무엇을 파는 곳인지 한 줄 — 상호 바로 밑에 둔다 */
.sh-desc { margin-top: 6px; font-size: 13.5px; color: #4a5262; line-height: 1.45; }

/* 뭐먹지 목록 */
.food-head { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.food-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.food-item {
  display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid #f1f3f6;
  background: none; padding: 11px 2px; cursor: pointer;
}
.food-item:hover { background: #f7f9fc; }
.food-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.food-where { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.food-menu { margin-top: 3px; font-size: 13px; color: #5a6270; }
.food-empty { padding: 18px 2px; color: var(--muted); font-size: 14px; }
/* 종류 머리글 — 한식 · 면·국수 처럼 묶어 보여준다 */
.food-group {
  margin: 16px 0 2px; font-size: 12.5px; font-weight: 800;
  color: var(--navy); letter-spacing: .2px;
}
.food-group span { color: var(--muted); font-weight: 700; margin-left: 4px; }
/* 지금 문을 열었는지 */
.food-tag {
  margin-left: 7px; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 2px 7px; vertical-align: 2px;
}
.food-tag.on { background: #e6f6ec; color: #12703c; }
.food-tag.off { background: #f3f4f6; color: #8b909a; }
.food-tag.na { background: #fff5e0; color: #96701d; }
.food-item.is-closed .food-name { color: #98a0ae; }
.food-time { margin-top: 2px; font-size: 12px; color: #8b909a; font-weight: 700; }

.modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 22, 38, .45);
  display: grid; place-items: center; padding: 20px;
}
.modal-card {
  background: #fff; border-radius: 16px; padding: 20px; max-width: 420px;
  width: 100%; position: relative; max-height: 80vh; overflow: auto;
}
.modal-x { position: absolute; right: 8px; top: 8px; }

/* "어디로 가세요?" 창 - QR 로 들어온 손님에게 바로 물어보는 자리 */
.ask-card { padding: 22px 18px 14px; max-height: 86vh; display: flex; flex-direction: column; }
.ask-title { font-size: 24px; font-weight: 800; margin: 4px 0 4px; letter-spacing: -.5px; }
.ask-sub { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
#askQ {
  width: 100%; box-sizing: border-box; font-size: 18px; padding: 13px 14px;
  border: 2px solid var(--route); border-radius: 12px; outline: none; background: #fff;
}
#askQ::placeholder { color: #a5adba; }
.ask-results { margin-top: 10px; overflow: auto; flex: 1; min-height: 0; }
.ask-results .res-head { padding: 6px 2px; font-size: 12px; color: var(--muted); }
.ask-results .res-item { width: 100%; }
.ask-results .res-empty { padding: 18px 6px; color: var(--muted); font-size: 14px; text-align: center; }
.modal-card h3 { margin: 0 0 10px; font-size: 17px; }
.modal-card dl { margin: 0; font-size: 14px; }
.modal-card dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.modal-card dd { margin: 2px 0 0; }
/* 상세 시트가 하단 광고까지 덮어버리던 것 — 광고 높이만큼 띄운다.
   (광고는 관리인의 수입원이라 가려지면 안 된다) */
.sheet { bottom: calc(var(--adb-h, 0px) + var(--foot-h, 0px)); }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b));
  transform: translateX(-50%); z-index: 70;
  background: rgba(28, 34, 48, .93); color: #fff; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; max-width: 86vw; text-align: center;
}

/* ============ 태블릿 (720px~) ============
   세로로 쌓는 구조는 그대로 두되, 폭을 넉넉히 주고 글씨·버튼을 조금 키운다.
   .sheet 는 기본 규칙이 left:0;right:0 으로 폭을 잡기 때문에 right 를 함께 풀어주지 않으면
   left:50% 와 right:0 이 동시에 걸려 오른쪽 절반 폭으로 찌그러진다. */
@media (min-width: 720px) {
  body.app { max-width: 860px; margin: 0 auto; box-shadow: 0 0 40px rgba(0, 0, 0, .07); }
  /* 화면이 860px 보다 좁은 태블릿(768px 등)에서는 화면 폭을 넘지 않게 min() 으로 잡는다.
     가운데 정렬에 transform 을 쓰면 시트가 떠오르는 애니메이션(transform)과 충돌해
     한쪽으로 밀려 나가므로, auto 마진으로 가운데를 잡는다. */
  body.app .sheet {
    width: min(860px, 100%); max-width: 860px;
    left: 0; right: 0; margin-left: auto; margin-right: auto; transform: none;
  }
  body.app #q, body.app .origin-chip, body.app .dest-chip { font-size: 16px; }
  body.app .floorbar button { font-size: 15px; padding: 8px 0; }
  body.app .res-item { padding: 13px 16px; }
  body.app .step-text { font-size: 16px; }
  /* 광고 바는 가운데 860px 틀에 갇히지 않고 화면 끝까지 이어지게 한다.
     (margin-left 음수 트릭 — 가운데 정렬된 박스를 화면 폭으로 되돌린다) */
  body.app .ad-slot {
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
    /* 세로가 짧은 태블릿·노트북 가로모드에서 위아래 광고가 화면의 3분의 1을
       먹어버리던 것을 막는다 — 화면 높이의 13%를 넘지 않게 */
    --ad-h: min(130px, 13vh);
  }
}

/* ============ PC (1024px~) — 네이버 지도 방식 ============
   지도가 화면을 가득 채우고, 검색·검색결과·길안내는 그 위에 왼쪽 카드로 떠 있다.
   격자에서 같은 칸에 놓인 요소는 서로 겹쳐 쌓이므로, 지도를 전체 칸에 깔고
   패널 요소들만 왼쪽 칸에 얹어 z-index 로 띄운다.
   광고는 화면 폭을 차지하는 큰 배너 대신 왼쪽 패널 맨 아래 작은 카드로만 둔다. */
@media (min-width: 1024px) {
  body.app {
    max-width: none; margin: 0; box-shadow: none;
    height: 100vh; display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    /* 검색줄 / 길안내 / 검색결과 / 광고 / 저작권 — 각각 제 칸을 갖는다.
       예전에는 검색결과와 광고가 같은 칸에 겹쳐 놓여, 목록 마지막 줄이
       광고 뒤에 숨어 스크롤해도 볼 수 없었다. */
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    --pc-gap: 14px;
  }

  /* 지도 — 화면 전체를 깔개처럼 채운다 */
  body.app .mapwrap {
    grid-column: 1 / -1; grid-row: 1 / 4; min-height: 0; z-index: 0;
    /* 도면 비율과 화면 비율이 달라 위아래에 여백이 생기는데,
       흰색이면 잘린 것처럼 보이므로 지도 바탕색을 깔아준다 */
    background: #e8ecf1;
  }

  /* 위쪽 큰 광고 배너는 PC에서 쓰지 않는다 */
  body.app .ad-top { display: none; }

  /* --- 왼쪽에 떠 있는 패널 --- */
  body.app .topbar {
    grid-column: 1; grid-row: 1; z-index: 5;
    background: transparent; border: 0; box-shadow: none;
    padding: var(--pc-gap) var(--pc-gap) 0;
  }
  body.app .searchrow {
    max-width: none; margin: 0;
    background: #fff; border-radius: 10px; padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  }

  body.app .routebox {
    grid-column: 1; grid-row: 2; z-index: 5; align-self: start;
    margin: 10px var(--pc-gap) 0; border: 0; border-radius: 10px;
    max-height: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  }
  /* PC 는 경로 안내를 전부 펼친다. 길면 목록 안에서만 스크롤 */
  body.app .step-list { max-height: calc(100vh - 260px); overflow: auto; }

  body.app .results {
    grid-column: 1; grid-row: 3; z-index: 5; align-self: start;
    margin: 10px var(--pc-gap) 0; border: 0; border-radius: 10px;
    max-height: 100%; overflow: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  }

  /* 광고 — 패널 맨 아래 작은 카드. 화면을 가리지 않을 만큼만.
     태블릿에서 광고 바를 화면 폭까지 늘렸던 규칙(width:100vw)을 여기서 되돌린다. */
  body.app .ad-bottom {
    grid-column: 1 / -1; grid-row: 4; z-index: 5; align-self: end;
    width: auto; margin: 0; padding-bottom: 0;
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    overflow: hidden; box-shadow: none;
    --ad-h: 112px;
  }

  /* 층 탭 — 지도 위 가운데에 뜬 알약 버튼 (네이버의 지도 위 컨트롤처럼) */
  body.app .floorbar {
    /* 화면 전체 기준 정중앙 — 지도 칸(오른쪽)만 기준으로 잡으면 오른쪽으로 치우쳐 보인다 */
    grid-column: 1 / -1; grid-row: 1; z-index: 5;
    justify-self: center; align-self: start;
    margin-top: var(--pc-gap);
    background: #fff; border: 0; border-radius: 999px; padding: 5px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
    width: auto; gap: 3px;
  }
  body.app .floorbar button {
    border-radius: 999px; border: 0;
    padding: 10px 8px; font-size: 16px;
    min-width: 118px;      /* 셋 다 같은 너비 — 글자 수에 따라 들쭉날쭉하지 않게 */
  }
  body.app .floorbar button .fsub { font-size: 11.5px; margin-top: 1px; }

  /* '뭐먹지' — PC 에서는 지도 위 오른쪽 위에 띄운다.
     층 탭과 같은 높이라 한눈에 들어오고, 아래쪽 확대 단추들과도 겹치지 않는다. */
  body.app .quickbar {
    grid-column: 2; grid-row: 1; z-index: 6;
    justify-self: end; align-self: start;
    margin: var(--pc-gap) var(--pc-gap) 0 0; padding: 0;
  }
  body.app .quickbar .qbtn {
    padding: 12px 20px; font-size: 15px; border: 0; border-radius: 999px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
  }
  /* PC 는 검색 중에도 지도가 그대로 보이므로 단추를 숨길 이유가 없다 */
  body.app.searching .quickbar { display: flex; }

  /* 검색 중에도 지도는 계속 보인다 — 패널이 지도 위에 떠 있을 뿐이다 */
  body.app.searching .mapwrap, body.app.searching .floorbar { display: block; }
  body.app.searching .floorbar { display: flex; }

  /* --- 검색·길안내·점포상세 중에는 왼쪽이 '판'이 된다 (네이버 지도와 같은 방식) ---
     평소: 지도 위에 둥근 검색창만 떠 있음.
     패널 열림: 왼쪽 400px 가 화면 끝에 딱 붙은 불투명한 흰 판으로 바뀐다. */
  /* 패널이 열리면 왼쪽 칸 전체에 흰 바탕을 한 장 깔아준다.
     예전에는 요소마다 흰색을 칠해서, 검색결과가 짧으면 그 아래가 뚫려
     지도가 비쳐 보였다(미완성처럼 보임). */
  body.app.panel::before {
    content: ''; grid-column: 1; grid-row: 1 / 4; z-index: 4;
    background: #fff; border-right: 1px solid var(--line);
  }
  body.app.panel .topbar {
    background: #fff; padding: 10px 12px;
  }
  /* 지도 위에 떠 있을 때는 이름표도 흰 카드 안에 넣어야 읽힌다 */
  body.app .brandline {
    background: #fff; border-radius: 8px; padding: 6px 12px;
    margin-bottom: 8px; align-self: start; display: inline-flex;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .16); color: var(--ink);
  }
  body.app.panel .brandline {
    background: transparent; box-shadow: none; padding: 2px 2px 0; margin-bottom: 6px;
  }
  /* 저작권 문구는 왼쪽 패널 맨 아래에만 둔다 — 지도 위에 떠 있으면 지저분하다 */
  body.app .sitefoot {
    grid-column: 1 / -1; grid-row: 5; z-index: 5; align-self: end;
    background: #f2f4f7; border-top: 1px solid var(--line);
    text-align: center; padding: 9px 16px;
  }
  body.app:not(.panel) .sitefoot { display: none; }

  body.app.panel .searchrow {
    border-radius: 8px; box-shadow: none;
    border: 1px solid var(--line); background: #fff;
  }
  body.app.panel .routebox,
  body.app.panel .results,
  body.app.panel .ad-bottom {
    margin: 0; border-radius: 0; box-shadow: none; background: #fff;
  }
  body.app.panel .results { align-self: stretch; height: 100%; }
  body.app.panel .routebox { border-bottom: 1px solid var(--line); }
  body.app.panel .ad-bottom { border-top: 1px solid var(--line); }

  /* 점포 상세 — 검색창 아래로 패널을 그대로 채운다 */
  body.app .sheet {
    left: 0; right: auto;
    bottom: calc(var(--adb-h, 0px) + var(--foot-h, 0px));
    /* 상단바 높이는 출발·도착 두 칸으로 갈라지면 달라진다 —
       하드코딩(65px)하면 검색창 아랫부분을 덮거나 틈이 생긴다 */
    top: var(--topbar-h, 96px);
    width: 400px; max-width: none; max-height: none;
    transform: none; animation: none;
    border-radius: 0; border-right: 1px solid var(--line);
    box-shadow: none;
  }
  body.app .sheet-grip { display: none; }
  body.app .toast { left: 420px; right: auto; transform: none; bottom: 24px; }

  /* 지도가 크니 확대/축소 버튼과 글씨를 조금 키워 마우스로 쓰기 편하게 */
  body.app .mbtn { width: 44px; height: 44px; font-size: 19px; }
  body.app #q, body.app .origin-chip, body.app .dest-chip { font-size: 15px; }
  body.app .step-text { font-size: 16px; }
}

/* ---------- 인쇄 ----------
   관리인이 층별 도면을 뽑는 정당한 사용은 막지 않는다.
   대신 화면용 요소(광고·검색줄·버튼)를 빼고, 출처·연락처 문구는 반드시 같이 찍히게 한다. */
@media print {
  body.app .ad-slot,
  body.app .topbar,
  body.app .floorbar,
  body.app .mapctl,
  body.app .routebox,
  body.app .results,
  body.app .sheet { display: none !important; }
  body.app .sitefoot { display: block !important; }
  body.app .mapwrap { height: auto; background: #fff; }
}

/* ---- 길안내 첫 화면(출발지 보여주기) ---- */
/* 출발지를 잠깐 확대해 보여주는 1.4초 동안 깃발과 빨간 둘레선이 두어 번 깜빡인다 —
   "여기서 출발합니다" 가 눈에 띄도록. 끝나면 app.js 가 route-intro 를 떼어낸다. */
@keyframes start-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
body.route-intro .start-marker,
body.route-intro .store-ring.r-start .ring-line polygon,
body.route-intro .unit.start-point .u-shape {
  animation: start-pulse .7s ease-in-out 2;
}
@media (prefers-reduced-motion: reduce) {
  body.route-intro .start-marker,
  body.route-intro .store-ring.r-start .ring-line polygon,
  body.route-intro .unit.start-point .u-shape { animation: none; }
}

/* 링크 공유 창 - 가게가 선택된 채로 열리는 주소를 복사·공유·QR 로 건넨다 */
.share-card { text-align: center; }
.share-sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.share-qr { display: flex; justify-content: center; min-height: 40px; margin: 0 auto 12px; }
.share-qr img, .share-qr canvas { width: 180px; height: 180px; image-rendering: pixelated; border: 6px solid #fff; box-shadow: 0 0 0 1px #e3e7ee; border-radius: 8px; }
.share-url { width: 100%; box-sizing: border-box; font-size: 13px; padding: 10px 12px; border: 1px solid #d6dbe5; border-radius: 10px; background: #f6f8fb; color: #374151; }
.share-btns { display: flex; gap: 8px; margin-top: 10px; }
.share-btns .btn { flex: 1; padding: 11px 0; font-size: 15px; }

/* 경로 점검 막대 (?review=wc) — 화면 맨 위에 붙어 가게를 하나씩 넘긴다 */
.reviewbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #111827; color: #fff; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.reviewbar .rv-mid { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reviewbar .rv-btn { background: #f59e0b; color: #111; border: 0; border-radius: 8px; padding: 9px 12px; font-weight: 800; font-size: 14px; cursor: pointer; }
.reviewbar .rv-btn:disabled { opacity: .4; }
body.reviewing { padding-top: 46px; }

/* HOT 버튼과 '많이 본 가게' 목록 */
.qbtn-hot { border-color: #f6b26b; background: #fff7ee; color: #b5471b; }
.hot-item { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.hot-rank { font-size: 18px; margin-right: 4px; }
.hot-n { margin-left: auto; font-size: 12.5px; font-weight: 800; color: #b5471b;
  background: #fff1e3; border-radius: 999px; padding: 2px 8px; }
.food-group .sh-cat { display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px; }

/* 점포 대표 사진 띠 + 크게 보기 */
.sh-photos { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin: 2px 0 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.sh-photos::-webkit-scrollbar { height: 0; }
.sh-photo { flex: none; width: 132px; height: 96px; padding: 0; border: 0; border-radius: 10px;
  overflow: hidden; background: #eef1f5; cursor: pointer; scroll-snap-align: start; }
.sh-photo:first-child { width: 168px; }
.sh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-modal { background: rgba(8, 12, 20, .92); padding: 0; display: none; }
.photo-modal:not(.hidden) { display: grid; }
.photo-modal img { max-width: 100vw; max-height: 100vh; object-fit: contain; display: block;
  user-select: none; -webkit-user-drag: none; }
.photo-x { color: #fff; background: rgba(255,255,255,.12); right: 12px; top: 12px; z-index: 2; }
.photo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px;
  border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: 34px;
  line-height: 1; cursor: pointer; z-index: 2; }
.photo-prev { left: 8px; } .photo-next { right: 8px; }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff;
  font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; }
.photo-cap span { opacity: .8; margin-left: 6px; }

/* 사진이 아직 없는 가게 — 자리만 흐리게 */
.sh-photos.is-empty .sh-photo.ph { background:
  linear-gradient(135deg, #f4f6fa 0%, #eef1f6 100%);
  border: 1px dashed #d5dae3; display: grid; place-items: center; cursor: default; }
.sh-photos.is-empty .sh-photo.ph span { font-size: 12px; font-weight: 700; color: #a8b0bd; }

/* 가게 상세정보창 안 글자 광고 — 하얀 바탕에 옅은 그라데이션 */
.tad-slot { margin: 2px 0 10px; }
.tad-slot.is-fade { opacity: 0; }
.tad-slot { transition: opacity .18s ease; }
button.tad { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.tad {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 12px; border-radius: 12px; text-decoration: none;
  border: 1px solid #e3e8f0;
  background: linear-gradient(120deg, #ffffff 0%, #f7faff 55%, #eef4ff 100%);
  box-shadow: 0 1px 2px rgba(20, 30, 60, .05);
}
.tad-tag { flex: none; font-size: 10.5px; font-weight: 800; color: #6b7686;
  background: #eef1f6; border-radius: 5px; padding: 2px 5px; letter-spacing: .5px; }
.tad-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.tad-body { flex: 1 1 100%; font-size: 12.5px; color: #6b7686; font-weight: 600; }
.tad-go { margin-left: auto; font-size: 12.5px; font-weight: 800; color: #1a56c4; white-space: nowrap; }

/* 좋아요 버튼 */
.pbtn-like.is-liked { background: #ffeef1; color: #d2335a; }
.pbtn-like .like-n { font-weight: 800; font-size: 13px; }
.pbtn-like:active { transform: scale(.96); }
.hot-n small { font-weight: 700; color: #8b5a2b; margin-left: 4px; font-size: 11px; }
.seolinks { font-size: 11px; color: #8b909a; text-align: center; padding: 4px 10px 8px; }
.seolinks a { color: #8b909a; text-decoration: none; }
body.searching .seolinks, body.routing .seolinks { display: none; }

/* 사장님이 올린 오늘 공지·이벤트 */
.sh-notice, .sh-event { margin-top: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.45;
  border-radius: 8px; padding: 8px 10px; }
.sh-notice { background: #fff6e5; color: #8a5a00; border-left: 3px solid #f0a92b; }
.sh-event { background: #eef4ff; color: #14448f; border-left: 3px solid #1a56c4; }
