@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* 줍줍로드 지도 홈 — 카카오맵식 레이아웃(전면 지도 + 떠 있는 패널).
   색은 앱 브랜드(lib/widgets/brand.dart)에서 가져오되, 지도 위 UI는 흰 판에
   회색 글자로 눌러 둔다. 지도가 주인공이고 패널은 유리창이다. */
:root {
  /* 밖에서 햇빛 아래 보는 화면이다 — 회색을 옅게 쓰면 아무것도 안 읽힌다.
     본문은 더 진하게, 보조 글자도 대비 4.5:1 을 넘기는 선까지 내렸다. */
  --ink: #16181c;          /* 본문 */
  --dim: #5c636d;          /* 보조 */
  --line: #e5e7eb;         /* 헤어라인 */
  --line-strong: #d7dbe0;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;      /* 칩/입력 바탕 */
  --gold: #f5b324;         /* 브랜드 금화 */
  --wood: #4a270c;         /* 브랜드 나무갈색 */
  --wifi: #4a90d9;
  --store: #7ab648;
  --deal: #f08a3c;
  --shadow: 0 2px 8px rgba(31, 36, 41, .10), 0 8px 24px rgba(31, 36, 41, .08);
  --panel-w: 396px;
  --r: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  touch-action: manipulation;   /* 더블탭 확대 없음 */
  height: 100%;
  overflow: hidden;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; letter-spacing: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── 지도 ───────────────────────────────────────────── */
/* 지도 제스처는 카카오 지도가 직접 처리한다 — 브라우저가 먼저 가로채면
   좌우로 미는 동작이 씹힌다. */
.map { position: fixed; inset: 0; touch-action: none; }

/* ── 오늘 값 띠 ─────────────────────────────────────────
   지도를 만지지 않아도 오늘 물가가 보여야 한다. 지도 위에 떠 있되
   흰 판에 눌러 둔 회색 라벨 + 검은 값 — 값만 읽힌다. */
.strip {
  position: fixed;
  top: 12px;
  left: calc(var(--panel-w) + 24px);
  right: 62px;
  z-index: 9;
  display: flex;
  gap: 2px;
  padding: 9px 6px;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip { transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .2s; }
/* 접힌 상태 — 지도를 가리지 않게 위로 밀어 둔다. */
.strip.is-up { transform: translateY(calc(-100% - 20px)); opacity: 0; pointer-events: none; }

/* 접힌 띠를 다시 부르는 알약. 이번 주 최저가 하나를 달고 있어 접혀 있어도
   오늘 물가가 한 숫자는 보인다. */
.striptab {
  position: fixed;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: none;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dim);
}
.striptab b { color: var(--ink); font-weight: 800; font-feature-settings: 'tnum' 1; }
.striptab[hidden] { display: none; }
.strip__i {
  flex: 1 0 auto;
  min-width: 96px;
  padding: 0 12px;
  text-align: center;
  white-space: nowrap;
}
.strip__i + .strip__i { border-left: 1px solid var(--line); }
.strip__i span { display: block; font-size: 12px; font-weight: 600; color: var(--dim); }
/* 아끼는 값 — 내렸다는 뜻의 초록(앱 priceDown 과 같은 값).
   값 옆에 붙여 '여기서 사면 이만큼'을 한 눈에 잇는다. */
.strip__i i {
  display: block;
  margin-top: 1px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #12b886;
  font-feature-settings: 'tnum' 1;
}
.strip__i b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum' 1;
}

/* ── 좌측 패널 ──────────────────────────────────────── */
.panel {
  position: fixed;
  top: 12px; left: 12px; bottom: 12px;
  width: var(--panel-w);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  /* 가로로는 절대 밀리지 않는다 — 안쪽 무언가가 스크롤을 만들면 검색바·목록이
     통째로 왼쪽으로 잘려 나간다(모바일에서 실제로 그랬다). */
  overflow: hidden;
  overflow-x: hidden;
  z-index: 10;
}
.panel > * { max-width: 100%; }

/* ── 검색 바 ────────────────────────────────────────── */
.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.bar__brand { display: flex; flex: none; }
.bar__brand img { width: 28px; height: 28px; border-radius: 7px; }

.bar__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.bar__search:focus-within { background: var(--bg); border-color: var(--ink); }
.bar__search .icon { flex: none; color: var(--dim); }
.bar__search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font-size: 15px;
}
.bar__search input::placeholder { color: var(--dim); }
.bar__search input::-webkit-search-cancel-button { display: none; }
.bar__clear { flex: none; color: var(--dim); display: flex; }

/* 앱 설치 — 앱 아이콘을 그대로 박은 알약. 금색 판에 글자만 있던 때는 광고
   배너처럼 보였는데, 아이콘이 붙으니 무엇을 받는지가 먼저 읽힌다. */
.bar__app {
  flex: none;
  height: 36px;
  padding: 0 13px 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: filter .12s, transform .08s;
}
.bar__app img { width: 26px; height: 26px; border-radius: 8px; }
.bar__app:hover { filter: brightness(1.35); }
.bar__app:active { transform: translateY(1px); }

/* PC 는 좁은 패널 안이 아니라 지도 오른쪽 위에 띄운다 — 패널은 값을 읽는
   자리고, 설치 권유는 그 바깥에 있는 편이 덜 방해된다. */
@media (min-width: 721px) {
  .bar__app {
    position: fixed;
    top: 12px; right: 14px;
    z-index: 12;
    height: 40px;
    padding: 0 16px 0 5px;
    gap: 8px;
    font-size: 14.5px;
    box-shadow: 0 3px 14px rgba(16, 18, 22, .3);
  }
  .bar__app img { width: 30px; height: 30px; }
  .bar__app::after { content: ' 설치'; }   /* 넓은 화면에서는 무엇을 받는지까지 */
  .strip { right: 170px; }   /* 앱 버튼 자리를 비켜 간다 */
}

/* 로그인 / 내 푼 — 앱 상단바와 같은 자리. */
.bar__me {
  flex: none;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dim);
  white-space: nowrap;
}
.bar__me:hover { border-color: var(--ink); color: var(--ink); }
/* 로그인하면 푼만 남는다 — 닉네임은 설정에서 본다(위 paintMe 주석 참고).
   자릿수가 흔들리지 않게 등폭 숫자를 쓴다. */
.bar__me.is-in {
  border-color: var(--gold);
  background: #fffaf0;
  color: var(--wood);
  font-weight: 800;
  font-feature-settings: 'tnum' 1;
  padding: 0 14px;
}

/* 카카오 버튼 — 카카오가 정한 노란색과 글자색을 그대로 쓴다(브랜드 규정). */
.kakao {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px;
  border-radius: 12px;
  background: #FEE500;
  color: #191600;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kakao svg { width: 20px; height: 20px; }
.kakao:active { filter: brightness(.96); }

.or { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--ink-4, #98a0aa); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.lf { display: grid; gap: 8px; }
.lf input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 15px;
}
.lf input:focus { outline: 0; border-color: var(--ink); background: var(--bg); }
.lf input[hidden] { display: none; }
.lf__go {
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
}
.lf__go:disabled { opacity: .55; }
.lf__msg { margin: 2px 0 0; font-size: 12.5px; color: #b3352b; }
.lf__msg.ok { color: #1e7a44; }
.lf__links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--dim); }
.lf__links button { font-size: 13px; font-weight: 700; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.lf__links button:hover { color: var(--ink); }

/* ── 분류 칩 ────────────────────────────────────────── */
/* 칩 9개 — 패널은 세로가 넉넉하니 줄바꿈해서 전부 보인다.
   가로 스크롤은 잘린 칩을 만들고, 데스크톱에는 미는 방법도 마땅치 않다. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip.is-on .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .28); }

/* 하위 갈래 — 유종처럼 '같은 갈래 안에서 다른 값'을 고르는 자리.
   칩(갈래)과 구분되게 알약이 아니라 밑줄 탭으로 둔다. */
.subs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.subs[hidden] { display: none; }
.sub {
  padding: 7px 12px 9px;
  font-size: 13.5px; font-weight: 700; color: var(--dim);
  border-bottom: 2px solid transparent;
}
.sub:hover { color: var(--ink); }
.sub.is-on { color: var(--ink); border-bottom-color: var(--ink); }

/* ── 목록 ───────────────────────────────────────────── */
.list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  font-size: 13px;
  color: var(--dim);
}
.list__head strong { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.link { color: var(--dim); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.list__head-r { display: flex; align-items: center; gap: 10px; }
/* 목록을 덮은 채로는 지도 컨트롤이 뒤에 숨는다 — 여기서 닫는다(모바일 전용). */
.list__close { display: none; }
@media (max-width: 720px) {
  .list__close {
    display: inline-flex; align-items: center; gap: 4px;
    height: 30px; padding: 0 11px;
    border-radius: 999px;
    background: var(--ink); color: #fff;
    font-size: 12.5px; font-weight: 700;
  }
  .list__close svg { width: 14px; height: 14px; }
}

.list {
  flex: 1;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0 8px calc(12px + var(--safe-b));
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.item {
  display: flex;
  gap: 11px;
  padding: 12px 10px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .12s;
}
.item + .item { box-shadow: inset 0 1px 0 var(--line); }
.item:hover, .item.is-on { background: var(--bg-soft); }
.item__pin { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.item__body { min-width: 0; flex: 1; }
.item__title {
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; color: var(--dim); }
.item__walk { font-size: 11.5px; color: var(--dim); margin-left: 2px; }

/* 배지 — 그 줄에서 결정에 쓰이는 것만. 초록=좋은 조건(무료·24시간·급속),
   빨강=주의(유료·제한), 회색=사실(운영시간·업종·수치). */
.tag {
  padding: 1.5px 7px;
  border-radius: 5px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  white-space: nowrap;
}
.tag--good { background: #e6f4ea; color: #1e7a44; }
.tag--warn { background: #fdeceb; color: #b3352b; }
.tag--time { background: #eef2f7; color: #45566d; }
.tag--info { background: var(--bg-soft); color: var(--dim); }
.item__thumb { flex: none; width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--bg-soft); }

/* 오른쪽 — 값과 별. 별은 평소 흐리게 있다가 담으면 금화색으로 찬다. */
.item__right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; align-self: center; }
.star { display: flex; padding: 2px; color: var(--line-strong); }
.star svg { width: 19px; height: 19px; fill: currentColor; }
.star:hover { color: var(--dim); }
.item.is-fav .star { color: var(--gold); }

/* 값은 오른쪽 끝에서 세로로 맞춘다 — 훑을 때 숫자만 따라 읽힌다. */
.item__val {
  flex: none;
  align-self: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-feature-settings: 'tnum' 1;
}

.empty { padding: 46px 20px; text-align: center; color: var(--dim); font-size: 13.5px; }

.src {
  margin: 0;
  padding: 8px 14px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--dim);
}
.src[hidden] { display: none; }
.src a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.src a:hover { color: var(--ink); }

/* ── 지도 컨트롤 ────────────────────────────────────── */
.ctrl {
  position: fixed;
  right: 14px;
  bottom: calc(116px + var(--safe-b));   /* 하단 광고 위 */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9;
}
.ctrl__zoom { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.ctrl__zoom .ctrl__btn { border-radius: 0; box-shadow: none; }
.ctrl__zoom .ctrl__btn + .ctrl__btn { border-top: 1px solid var(--line); }
.ctrl__btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.ctrl__btn:hover { background: var(--bg-soft); }
.ctrl__btn.is-on { color: var(--wifi); }
/* 목록 열기 — 지도 오른쪽 아이콘. 넓은 화면에는 왼쪽 판이 늘 있으니 감춘다. */
.ctrl__list { display: none; }
@media (max-width: 720px) {
  .ctrl__list { display: flex; }
  .ctrl__list.is-on { background: var(--ink); color: #fff; }
}

/* 하단 탭의 '최저가'만 색을 입힌다 — 이 사이트가 하는 일이 값이라
   여섯 칸 중 눈이 먼저 가야 하는 칸이다. 값이 내렸다는 뜻의 초록과 같다. */
.botnav__b[data-view="price"] { color: #0e9f75; }
.botnav__b[data-view="price"] svg { stroke-width: 2.1; }
.botnav__b[data-view="price"]:hover { color: #0b7f5e; background: #eafaf4; }
@media (min-width: 721px) {
  /* PC 는 떠 있는 알약이라 칸 하나만 채워도 튀지 않는다. */
  .botnav__b[data-view="price"] { background: #eafaf4; }
  .botnav__b[data-view="price"]:hover { background: #d8f5ea; }
}

/* 최저가 시트 — 검색창이 주인공이다. */
.psearch {
  display: flex; align-items: center; gap: 8px;
  height: 46px; margin: 14px 0 4px; padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-soft);
}
.psearch:focus-within { background: var(--bg); border-color: var(--ink); }
.psearch .icon { flex: none; color: var(--dim); }
.psearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
.psearch input::-webkit-search-cancel-button { display: none; }

/* 값 줄 — 숫자를 읽는 자리라 값은 진짜 검정, 등폭. */
.prow { margin: 8px 0 0; padding: 0; list-style: none; }
.prow li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.prow li:hover { background: var(--bg-soft); }
.prow__b { flex: 1; min-width: 0; }
.prow__b b { display: block; font-size: 15px; font-weight: 700; }
.prow__b span {
  display: block; margin-top: 2px;
  font-size: 13px; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow__r { flex: none; text-align: right; }
.prow__r b {
  display: block; font-size: 17px; font-weight: 800;
  letter-spacing: -.03em; font-feature-settings: 'tnum' 1;
}
/* 내렸다 = 지금 사자. 앱 priceDown 과 같은 초록. */
.prow__r em {
  display: block; margin-top: 1px;
  font-style: normal; font-size: 12px; font-weight: 800; color: #12b886;
  font-feature-settings: 'tnum' 1;
}
.price__src { margin: 14px 0 0; font-size: 12px; color: var(--dim); }

/* ── 선택 카드 ──────────────────────────────────────── */
.card {
  position: fixed;
  left: calc(var(--panel-w) + 24px);
  bottom: 116px;   /* 하단 광고 위 */
  width: 320px;
  padding: 15px 16px;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 11;
}
.card { max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
.card__photo { width: calc(100% + 32px); margin: -15px -16px 12px; height: 150px; object-fit: cover; border-radius: 14px 14px 0 0; }
.card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.card p { margin: 5px 0 0; font-size: 13px; color: var(--dim); }
.card__sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card__on { padding: 1px 7px; border-radius: 5px; background: #e6f4ea; color: #1e7a44; font-size: 11.5px; font-weight: 800; }
.card__off { padding: 1px 7px; border-radius: 5px; background: #fdeceb; color: #b3352b; font-size: 11.5px; font-weight: 800; }
.card h4 { margin: 14px 0 6px; font-size: 12.5px; font-weight: 800; color: var(--dim); }
.card__more { font-size: 12px; color: var(--dim); }
/* 카드 아래 한 줄 — 영업시간·주차·주소처럼 '알면 좋은' 것들을 여기 모은다. */
.card__note { margin-top: 10px !important; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.card__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }

/* 상세 목록 — 왼쪽은 항목, 오른쪽은 값. 값이 세로로 맞아야 훑힌다. */
.dl { list-style: none; margin: 0; padding: 0; }
.dl li { display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.dl li:first-child { border-top: 0; }
.dl b { flex: none; font-weight: 700; color: var(--dim); min-width: 52px; }
.dl span { text-align: right; word-break: keep-all; }
.dl li.on b, .dl li.on span { color: var(--ink); font-weight: 800; }
.dl--menu b { color: var(--ink); font-weight: 800; min-width: 0; font-feature-settings: 'tnum' 1; }
.dl--menu span { text-align: left; color: var(--ink); }
.dl--arr b { color: var(--ink); font-size: 14.5px; }
.card__row { margin-top: 14px; display: flex; gap: 8px; }
.card__btn {
  flex: 1;
  height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 12px;
  font-size: 14.5px; font-weight: 700;
  text-decoration: none;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: background .12s, border-color .12s;
}
.card__btn:hover { border-color: var(--line-strong); background: #eef0f3; }
.card__btn svg { width: 17px; height: 17px; flex: none; }
/* 길찾기 — 이 카드에서 실제로 누르는 버튼이다. 나머지는 뒤로 물린다. */
.card__btn--go {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 24, 28, .22);
}
.card__btn--go:hover { background: #000; border-color: #000; }
.card__close { position: absolute; top: 10px; right: 10px; color: var(--dim); display: flex; }
.card__val { margin-top: 8px !important; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink) !important; font-feature-settings: 'tnum' 1; }
.card__wait { margin-top: 10px !important; font-size: 12.5px; }

/* 버스 도착 — 이 카드에서 궁금한 건 '언제 오나' 하나다. */
.arr { list-style: none; margin: 10px 0 0; padding: 0; }
.arr li { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.arr b { font-weight: 800; }
.arr span { color: var(--dim); font-size: 12.5px; }

/* ── 앱 받기 시트 ────────────────────────────────────────
   스토어로 보내는 자리다. 크림색 판에 글을 늘어놓는 대신 앱 아이콘·이름·
   무엇을 주는지 세 줄, 그리고 스토어 배지. 배지는 각 스토어 공식 형식(작은
   윗줄 + 굵은 이름)을 따른다 — 사람들이 그 모양을 눈으로 안다. */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__dim { position: absolute; inset: 0; background: rgba(16, 18, 22, .5); animation: dim .18s ease; }
@keyframes dim { from { opacity: 0 } }
.sheet__box {
  position: relative;
  width: min(400px, 100%);
  padding: 26px 24px calc(24px + var(--safe-b));
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 44px rgba(16, 18, 22, .3);
  animation: rise .24s cubic-bezier(.22, .61, .36, 1);
}
@keyframes rise { from { transform: translateY(20px); opacity: .5 } }
.sheet__x { position: absolute; top: 14px; right: 14px; display: flex; color: var(--dim); }
.sheet__x svg { width: 20px; height: 20px; }

.sheet__head { display: flex; align-items: center; gap: 14px; }
.sheet__icon {
  width: 72px; height: 72px;
  border-radius: 18px;   /* 스토어에서 보는 그 모양 */
  box-shadow: 0 3px 14px rgba(16, 18, 22, .2);
}
.sheet__head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.sheet__head p { margin: 3px 0 0; font-size: 13px; color: var(--dim); }

.sheet__pts { list-style: none; display: flex; gap: 8px; margin: 20px 0; padding: 0; }
.sheet__pts li {
  flex: 1;
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--bg-soft);
  text-align: center;
}
.sheet__pts b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -0.03em; }
.sheet__pts span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--dim); }

.sheet__btns { display: grid; gap: 8px; }
.store {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  background: var(--ink); color: #fff;
  text-decoration: none;
  transition: filter .12s, transform .08s;
}
.store:hover { filter: brightness(1.15); }
.store:active { transform: translateY(1px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.2; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.store em { font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }

/* 소식·설정처럼 내용이 긴 시트 — 화면 대부분을 쓰고 안에서 스크롤한다. */
.sheet--full .sheet__box { max-height: 88svh; overflow-y: auto; text-align: left; }
.sheet--full h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.hood__sec { margin-top: 20px; }
.hood__sec h3 {
  display: flex; align-items: baseline; gap: 7px;
  margin: 0 0 8px; font-size: 15px; font-weight: 800;
}
.hood__sec h3 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--dim); }
.hood__row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.hood__row b { flex: 1; font-weight: 700; }
.hood__row span { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.hood__empty { padding: 10px 0; color: var(--dim); font-size: 13px; }

/* 소식 카드 — 그림이 있으면 왼쪽에. 값·거리는 오른쪽 끝. */
.hcard {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 10px 2px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.hcard:hover { background: var(--bg-soft); }
.hcard img, .hcard__no {
  flex: none; width: 56px; height: 56px;
  border-radius: 9px; object-fit: cover; background: var(--bg-soft);
}
.hcard__b { flex: 1; min-width: 0; }
.hcard__b b { display: block; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcard__b em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcard__r { flex: none; font-size: 13px; font-weight: 800; white-space: nowrap; font-feature-settings: 'tnum' 1; }

/* 푼 상점 — 그림이 상품이다. 값(푼)은 오른쪽 아래에 크게. */
.shop__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.shop__it {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg); text-align: left;
}
.shop__it img { width: 100%; height: 104px; object-fit: contain; background: var(--bg-soft); }
.shop__it b { display: block; padding: 8px 10px 0; font-size: 13px; font-weight: 700; line-height: 1.35; }
.shop__it span { padding: 2px 10px 10px; font-size: 12px; color: var(--dim); }
.shop__it .pun { margin-top: auto; padding: 0 10px 10px; font-size: 15px; font-weight: 800; color: var(--ink); }
.shop__it .pun del { color: var(--ink-4, #98a0aa); font-weight: 600; font-size: 12.5px; margin-right: 5px; }
@media (min-width: 721px) { .shop__grid { grid-template-columns: repeat(3, 1fr); } }

.set__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  text-align: left;
  text-decoration: none;
}
.set__row span { color: var(--dim); font-size: 13px; }
.set__me {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin: 6px 0 10px;
  border-radius: 12px; background: var(--bg-soft);
}
.set__me img { width: 44px; height: 44px; border-radius: 12px; }
.set__me b { font-size: 15.5px; font-weight: 800; }
.set__me em { display: block; font-style: normal; font-size: 12.5px; color: var(--dim); }

@media (min-width: 721px) {
  .sheet { align-items: center; }
  .sheet__box { border-radius: 18px; padding-bottom: 24px; }
  .sheet__btns { grid-template-columns: 1fr 1fr; }
}

/* 지도 마커 — 위치가 아니라 **값**을 꽂는다.
   흰 알약 + 업종 이모지 + 값. 아래 꼬리가 실제 좌표를 가리킨다. */
.mk {
  position: relative;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 6px;
  background: #fff;
  border: 1.5px solid var(--mk, var(--line-strong));
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(31, 36, 41, .22);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;      /* 지도를 밀 때 가로채지 않는다 */
  font-feature-settings: 'tnum' 1;
}
.mk::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 9px; height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-right: 1.5px solid var(--mk, var(--line-strong));
  border-bottom: 1.5px solid var(--mk, var(--line-strong));
}
.mk { pointer-events: none; }   /* 탭 판정은 지도 클릭 좌표로 한다 */
.mk__e { font-size: 14px; line-height: 1; }
/* 핀 위 표식 — 24시간·장애인·비상벨처럼 '가도 되나'를 가르는 것만. */
.mk__m {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  background: #e6f4ea;
  color: #1e7a44;
}
.mk--on .mk__m { background: rgba(255, 255, 255, .25); color: #fff; }
.mk b { font-weight: 800; }
/* 고른 것 — 배경을 그 갈래 색으로 채워 지도에서 한눈에 튄다. */
.mk--on {
  background: var(--mk);
  border-color: var(--mk);
  color: #fff;
  transform: translate(-50%, -100%) scale(1.12);
  box-shadow: 0 4px 12px rgba(31, 36, 41, .3);
}
.mk--on::after { background: var(--mk); border-color: var(--mk); }

/* 뭉친 원 — 넓게 볼 때 어디에 몇 곳이 몰려 있는지. 앱 지도와 같은 방식이다. */
.cl {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--mk, var(--ink));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  border: 3px solid rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(31, 36, 41, .32);
  cursor: pointer;
  font-feature-settings: 'tnum' 1;
}
.cl:hover { filter: brightness(1.08); }

/* (레거시) 물방울 핀 — 목록 왼쪽 아이콘에서만 쓴다. */
.pin {
  width: 26px; height: 32px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .28));
  cursor: pointer;
}
.pin--me {
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #2f74f0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 116, 240, .22);
}

/* ── 하단 광고 ───────────────────────────────────────────
   지도 위에 얹는다. 값을 읽는 자리(목록·띠)를 밀어내지 않게 높이를 고정하고,
   슬롯이 비면 자리째 사라지게 둔다 — 빈 회색 띠가 남는 게 더 나쁘다. */
.ad {
  position: fixed;   /* PC: 지도 오른쪽 아래로 띄운다 */
  left: calc(var(--panel-w) + 24px);
  right: 14px;
  bottom: 12px;
  height: 106px;          /* 728x90 배너 + 여백 */
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.ad__tag {
  position: absolute;
  top: 5px; left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-4, #9aa1ab);
  letter-spacing: .02em;
}
.ad .adsbygoogle { position: absolute; inset: 0; }
/* 슬롯 ID 를 넣기 전까지 자리만 보여 준다. 광고가 채워지면 가려진다. */
.ad__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--dim);
  pointer-events: none;
}
.adsbygoogle[data-ad-status="filled"] ~ .ad__ph { display: none; }

/* 손잡이는 모바일 시트에서만 — PC 왼쪽 패널에는 잡을 데가 필요 없다. */
.sheet__grip { display: none; }

/* ── 하단 내비 ──────────────────────────────────────────
   앱과 같은 다섯 탭(줍줍·샵·웹테크·소식·설정). 목록은 이 탭이 아니라
   지도 위 바텀시트를 끌어 올려서 본다(카카오맵과 같은 얼개). */
/* PC 에서도 같은 자리에 — 화면 아래 가운데 떠 있는 알약. 모바일과 같은
   네 갈래(지도·목록·검색·내정보)라 기기를 바꿔도 손이 같은 데로 간다. */
.botnav {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 30;
  display: grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.botnav__b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 96px;              /* 글자가 줄바꿈 없이 들어가는 너비 */
  padding: 9px 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--dim);
}
.botnav__b svg { width: 21px; height: 21px; }
.botnav__b:hover { color: var(--ink); background: var(--bg-soft); }
.botnav__b.is-on { color: #fff; background: var(--ink); }

/* 내비가 아래 가운데를 차지하니 지도 컨트롤·광고·카드는 그 옆·위로 비킨다. */
@media (min-width: 721px) {
  /* 광고는 내비 **위**에 눕는다 — 같은 줄에 두면 어느 창 너비에서는 반드시
     겹친다. 지도 영역 폭을 그대로 쓴다. */
  /* 내비 높이(73) + 아래 여백(18) + 사이 간격(16) = 107. 실측해서 못 박는다 —
     76px 로 뒀더니 배너 아래쪽 19px 이 내비에 덮였다. */
  .ad {
    left: calc(var(--panel-w) + 24px);
    right: 14px;
    bottom: 110px;
    width: auto;
    height: 100px;
  }
  .ctrl { bottom: 226px; }
  .card { bottom: 226px; }
}

.panel.is-hidden { display: none; }

@media (max-width: 720px) {
  .botnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    transform: none;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: var(--safe-b);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .botnav__b {
    width: auto;
    gap: 3px;
    padding: 8px 0 9px;
    border-radius: 0;
    font-size: 11px;
  }
  .botnav__b.is-on { color: var(--ink); background: none; }
  .botnav__b svg { width: 22px; height: 22px; }
  .botnav__b.is-on { color: var(--ink); }

  /* 광고는 시트 **위**에 얹는다 — 시트를 올리면 배너도 따라 올라간다.
     실제 값은 home.js 가 시트를 재서 --sheet-vis 로 넣는다. */
  .ad {
    position: fixed;
    left: 8px; right: 8px;
    bottom: calc(var(--sheet-vis, 120px) + 8px);
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  /* 카카오맵식 바텀시트 — 지도가 주인공이고, 목록은 아래에서 끌어 올린다.
     하단 탭(앱과 같은 5칸) 바로 위에 앉는다. */
  .panel {
    top: auto; left: 0; right: 0;
    bottom: calc(56px + var(--safe-b));
    width: auto;
    height: 74svh;
    background: var(--bg);
    border-radius: 18px 18px 0 0;
    box-shadow: var(--shadow);
    /* 손잡이·검색줄까지만 남기고 내려 둔다 — JS 가 재서 px 로 덮어쓴다. */
    transform: translateY(var(--sheet-y, 60svh));
    transition: transform .26s cubic-bezier(.22, .61, .36, 1);
  }
  /* 끄는 동안에는 애니메이션을 끈다 — 손가락보다 늦게 따라오면 끊겨 보인다. */
  .panel.is-drag { transition: none; }
  .panel.is-open { --sheet-y: 0px; }

  /* 손잡이가 맨 위여야 잡을 데가 보인다. touch-action 은 **손잡이에만** 건다 —
     시트 전체에 걸면 목록이 손가락으로 안 밀린다. */
  .sheet__grip {
    display: block; order: -3;
    position: relative;
    height: 44px; padding: 8px 0;
    touch-action: none; cursor: grab;
  }
  /* 가운데 알약 하나가 잡을 곳이자 누를 곳이다 — 엄지가 닿는 자리. */
  .sheet__toggle {
    position: absolute;
    top: 4px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--ink);
  }
  .sheet__toggle svg { width: 22px; height: 22px; transition: transform .24s; }
  .panel.is-open .sheet__toggle svg { transform: rotate(180deg); }
  .bar { order: -2; }
  .chips { order: -1; }

  .bar__brand { display: none; }
  .bar__me { display: none; }       /* 로그인은 하단 내비로 */
  /* 앱 설치는 손잡이 줄 오른쪽에 앉는다 — 지도 위에 띄우면 값 띠와 겹친다.
     검색줄은 그 아래 한 줄을 통째로 쓴다. */
  .bar__app {
    position: absolute;
    top: 5px; right: 10px;
    z-index: 3;
    height: 34px;
    padding: 0 10px 0 4px;
    gap: 5px;
    font-size: 13px;
  }
  .bar__app img { width: 26px; height: 26px; }
  .bar__app svg { display: none; }

  /* 칩 세 줄이 시트 머리를 다 먹는다 — 좁은 화면에서는 한 줄로 민다. */
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  .chip { scroll-snap-align: start; }

  /* 지도 화면 — 값 띠는 시트가 비운 위쪽에 앉고, 컨트롤·카드는 시트를 따라간다. */
  .strip {
    left: 10px; right: 10px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    padding: 6px 2px; border-radius: 10px;
  }
  .strip.is-up { transform: translateY(calc(-100% - 20px)); }
  .strip__i { min-width: 78px; padding: 0 8px; }
  .strip__i span { font-size: 10.5px; }
  .strip__i b { font-size: 14.5px; }
  .striptab { top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px; transform: none; height: 27px; font-size: 12px; }
  .ctrl { bottom: calc(var(--sheet-vis, 120px) + var(--ad-h, 56px) + 22px); }
  .card { left: 12px; right: 12px; width: auto; bottom: calc(var(--sheet-vis, 120px) + var(--ad-h, 56px) + 22px); max-height: 44svh; }
}

/* ── 문서로 가는 문 ───────────────────────────────────
   목록 맨 아래. 지도는 '지금 여기'를 보여 주고, 문서는 전국 3,451개 동네를
   글로 들고 있다 — 그 사이를 잇는 자리가 없으면 문서는 고아가 된다. */
.panel__docs {
  flex: none;
  padding: 12px 14px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.panel__docs > a {
  display: block;
  text-decoration: none;
}
.panel__docs b { display: block; font-size: 14px; font-weight: 800; }
.panel__docs span { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.panel__docs-k {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.panel__docs-k a {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px; font-weight: 600; color: var(--dim);
  text-decoration: none;
}
.panel__docs-k a:hover { border-color: var(--ink); color: var(--ink); }

/* ── 갈래 묶음 줄 ─────────────────────────────────────
   갈래가 열여섯이라 한 줄로는 뒤쪽 절반이 스크롤 밖으로 밀렸다. '지금 뭘
   하는 중인가'로 묶어 위에 한 줄 얹는다 — 장보기 · 생활 · 도움 · 그밖에. */
.gtabs {
  display: flex; gap: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.gtab {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: var(--dim);
  white-space: nowrap;
}
.gtab.is-on { background: var(--ink); color: #fff; }
.gtab:hover { color: var(--ink); }
.chiprow { display: flex; gap: 6px; }

/* 묶음 줄이 생기면서 칩 줄은 세로로 두 칸이 된다. */
.chips { flex-direction: column; align-items: stretch; overflow-x: visible; }
@media (max-width: 720px) {
  /* 지도 위에 뜨는 줄이라 바탕을 깐다 — 두 줄이 되어 더 필요해졌다. */
  .chips { background: var(--bg); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px; }
  .chiprow { overflow-x: auto; scrollbar-width: none; }
  .chiprow::-webkit-scrollbar { display: none; }
}
