/* 스드메 업체 화면 — 디자이너 시안 v0.2 (design/GUIDE.md §v0.2, tokens.css 'v0.2 추가' 블록 컴포넌트 사용)
   tokens.css 변수만 사용 · 순위/메달/BEST/인기/광고 스타일 없음 */

/* ---------- 진입 카드 (홈·리포트) ---------- */
.v-entry { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px; padding: 16px; text-align: left; font: inherit; color: var(--ink); }
.content--start .v-entry { width: auto; margin: 20px var(--gutter) 0; }
.v-entry:active { background: var(--bg-sunken); }
.v-entry__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.v-entry__body b { font: 700 16px/1.35 var(--font); }
.v-entry__body span { font: var(--t-caption); color: var(--ink-3); }
.v-entry svg { flex: none; color: var(--ink-3); }

/* ---------- 공통 ---------- */
.v-h1 { margin: 8px 0 18px; font: 750 22px/1.4 var(--font); letter-spacing: -0.03em; }
.v-h1 small { font: 600 14px/1 var(--font); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.v-small { margin: 6px 0 0; font: var(--t-caption); color: var(--ink-3); }
.v-law { margin: 24px 0 0; font: var(--t-caption); color: var(--ink-3); }
.v-none { font: 650 14px/1 var(--font); color: var(--ink-3); }
.v-label { white-space: nowrap; }
.v-label--na { color: var(--na-text); background: var(--na-soft); }
.v-trust { margin-top: 12px; }
.v-trust .trust-note { align-items: flex-start; }
.v-trust .trust-note svg { margin-top: 1px; }
.v-trust .trust-note span { min-width: 0; }
.v-trust .info-dot { margin-top: -0.5px; }
.v-trust .info-pop { --arrow-x: calc(100% - 40px); }
.info-pop ul { margin: 8px 0 0; padding-left: 16px; }
.info-pop li + li { margin-top: 4px; }
.v-count { margin: 16px 0 8px; font: 600 13px/1 var(--font); color: var(--ink-3); }
.v-foot { margin-top: 28px; }
.ext-link { margin-top: 4px; }
.ext-link:active { background: var(--bg-sunken); }

/* 필터 칩 (지역 ▾ · 정렬 ▾ · 카테고리) */
.v-fchip { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font: 650 13.5px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.v-fchip svg { flex: none; color: var(--ink-3); }
.v-fchip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.v-fchip.is-on svg { color: #fff; }
.v-fchip--sm { height: 32px; font-size: 13px; }
.v-select select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: var(--ink-2); padding: 0 2px; min-height: 34px; }
.v-select:focus-within { outline: 3px solid var(--info); outline-offset: 2px; }
.v-select.is-set { border-color: var(--ink-3); }
.v-filters { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.v-filters__sp { flex: 1; }

/* ---------- 07 가격표 ---------- */
.content--vendors .v-tabs { margin-top: 0; }
.v-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v-card { padding: 16px 16px 6px; }
.v-card .vendor-card__top { align-items: flex-start; }
.v-card__labels { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 48%; }
.v-namebtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.v-namebtn:active { color: var(--ink-2); }
.vendor-card__name { margin: 0; }
.vendor-card__meta { margin: 3px 0 0; }
.v-card .price-block { margin-top: 12px; }
.v-sumline { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 600 13.5px/1.3 var(--font); color: var(--ink-2); }
.v-sumline b { font: 750 16px/1 var(--font); color: var(--ink); }
.v-card__foot { display: flex; justify-content: space-between; margin: 0 -8px; }
.v-card__foot .text-btn { display: inline-flex; align-items: center; gap: 2px; }
.v-card__foot svg { width: 16px; height: 16px; color: var(--ink-3); transition: transform var(--dur) var(--ease); }
/* 펼치기/접기 아이콘: ⌄(펼치기) / ⌃(접기)를 aria-expanded로 바꿔 끼움. 회전 없음 */
.tog-ic { display: inline-flex; flex: none; }
.tog-ic svg { transform: none !important; transition: none !important; }
[aria-expanded="true"] > .tog-ic .tog-ic__down, [aria-expanded="false"] > .tog-ic .tog-ic__up,
.price-row[aria-expanded="true"] .tog-ic__down, .price-row[aria-expanded="false"] .tog-ic__up { display: none; }
.tog-ic__up, .tog-ic__down { display: inline-flex; }
.price-row.is-open .price-row__r svg, .group-toggle[aria-expanded="true"] svg { transform: none; }
.v-ppanel[hidden] { display: none; }
.price-sub li small { display: block; font: var(--t-caption); color: var(--ink-3); }
.v-empty { margin-top: 16px; }

/* ---------- 09 업체 찾기 (목록) ---------- */
.v-findhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-h1--find { margin: 4px 0 0; font-size: 26px; }
.v-cats { display: flex; gap: 6px; margin: 14px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 2px; overflow-x: auto; scrollbar-width: none; }
.v-cats::-webkit-scrollbar { display: none; }
.v-sortrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.sort-tabs { margin-left: -8px; }

.v-trustcard { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.v-trustcard .v-trust { margin-top: 0; }
.v-trustcard .tag { flex: none; }
.v-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.v-row { display: block; width: 100%; padding: 14px 16px; text-align: left; font: inherit; color: var(--ink); }
.v-row:active { background: var(--bg-sunken); }
.v-row.is-selected { border: 2px solid var(--ink); padding: 13px 15px; }
.v-row .vendor-card__name { display: block; font-size: 16.5px; }
.v-row .vendor-card__meta { display: block; }
.v-row__price { display: block; margin-top: 8px; font: 600 13.5px/1.3 var(--font); color: var(--ink-2); }
.v-row__price b { font: 750 18px/1 var(--font); color: var(--ink); }
/* 금액: 숫자와 단위는 붙여서, 줄바꿈 없이 */
.v-amt { white-space: nowrap; }
.v-row__date { font: 500 12.5px/1 var(--font); color: var(--ink-3); margin-left: 4px; }

/* ---------- 09b 지도 (예시 그림: 인라인 SVG, 외부 타일·SDK 없음) ---------- */
.content--map { padding: 0; }
.v-mapview { position: relative; height: calc(100vh - 52px); height: calc(100dvh - 52px); min-height: 560px; overflow: hidden; }
.v-mapview .v-map { position: absolute; inset: 0; }
.v-mapview__top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 4px var(--gutter) 28px; background: linear-gradient(180deg, var(--bg) 70%, rgba(251,248,243,0)); }
.v-map { position: relative; overflow: hidden; background: var(--map-land); }
.v-map__canvas { position: absolute; inset: 0; }
.v-map__art { display: block; width: 100%; height: 100%; }
.v-map__pins { position: absolute; inset: 0; }
.v-maptag { position: absolute; left: 12px; top: 128px; z-index: 2; max-width: calc(100% - 24px); height: auto; min-height: 26px; padding: 4px 10px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-1); white-space: normal; line-height: 1.35; }
.v-pin { border: 0; background: none; padding: 0; color: var(--pin); }
.v-pin__drop { position: relative; display: block; width: 32px; height: 40px; transition: transform var(--dur) var(--ease); transform-origin: 50% 100%; }
.v-pin__drop svg { display: block; filter: drop-shadow(0 2px 3px rgba(27,35,64,.25)); }
.v-pin__drop b { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font: 800 11.5px/14px var(--font); color: var(--pin); }
.v-pin.is-selected { color: var(--pin-selected); z-index: 2; }
.v-pin.is-selected .v-pin__drop { transform: scale(1.25); }
.v-pin.is-selected .v-pin__drop b { color: var(--pin-selected); }
.v-pin.is-selected .map-pin__label { margin-top: 8px; }
.v-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 8px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-3); }
.v-sheet__handle { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--line-strong); }
.v-sheet .v-row { box-shadow: none; }
.v-sheet__btns { display: flex; gap: 8px; margin-top: 12px; }
.v-sheet__btns .cta-line { flex: 0 0 136px; height: 56px; }
.v-sheet__btns .cta { flex: 1; }
.v-sheet .v-trust { display: flex; justify-content: center; margin-top: 10px; }

/* ---------- 10 상세 ---------- */
.v-head { padding-top: 4px; }
.v-head__labels { display: flex; flex-wrap: wrap; gap: 6px; }
.v-head__name { margin: 10px 0 0; font: 750 26px/1.3 var(--font); letter-spacing: -0.03em; }
.v-head__meta { margin: 4px 0 0; font: 500 14px/1.4 var(--font); color: var(--ink-3); }
.v-stabs { position: sticky; top: 52px; z-index: 5; display: flex; margin: 16px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.v-stabs__btn { flex: 1; height: 46px; border: 0; background: none; font: 650 15px/1 var(--font); color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.v-stabs__btn.is-on { color: var(--ink); font-weight: 750; border-bottom-color: var(--ink); }
.v-sec { scroll-margin-top: calc(52px + 46px + 8px); margin-top: 26px; }
.v-sec__h { margin: 0 0 10px; font: 750 18px/1.3 var(--font); }
.v-sec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v-sec__row .v-small { margin: 0; }
.v-loc { overflow: hidden; padding: 0; }
.v-loc__map { position: relative; height: 168px; background: var(--map-land); }
.v-loc__map .v-pin--static { position: absolute; }
.v-loc__tag { position: absolute; right: 10px; bottom: 10px; background: #fff; }
.v-loc__body { padding: 14px 16px 16px; }
.v-loc__addr { margin: 0; font: 700 15.5px/1.45 var(--font); }
.v-loc__btns { display: flex; gap: 8px; margin-top: 12px; }
.v-loc__btns > * { flex: 1; height: 48px; font-size: 14.5px; gap: 6px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.v-loc__naver { color: #fff; flex: 1.35 !important; white-space: nowrap; font-size: 14px !important; }
.v-loc__btns > * { white-space: nowrap; }
.v-pcard { padding: 4px 16px 6px; }
.v-pcard .price-block { border-top: 0; }
.v-compare { margin-bottom: 10px; padding: 14px 16px; }
.v-compare__h { margin: 0; font: 700 15px/1.3 var(--font); }
.v-compare__rows { margin: 10px 0 0; }
.v-compare__rows dd { margin: 5px 0 0; }
.v-compare__msg { margin: 10px 0 0; font: 600 14px/1.5 var(--font); color: var(--ink-2); }
.v-ext2 { margin-top: 10px; }
.v-review-empty { margin-top: 14px; }
.v-review-empty .tag { margin-top: 10px; }
.v-review-write { width: 100%; margin-top: 12px; height: 48px; color: var(--ink-3); }
.v-review-write:disabled { opacity: .7; }
.v-srcnote { margin: 24px 0 0; font: var(--t-caption); color: var(--ink-3); }
/* 상세 하단 안내: 2줄 요약 + 자세히 */
.v-notes { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.v-notes__sum { margin: 0; font: var(--t-caption); color: var(--ink-3); }
.v-notes__sum span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-notes__more { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; min-height: 36px; padding: 0; font-size: 13px; color: var(--ink-2); }
.v-notes__more svg { width: 16px; height: 16px; }
.v-notes__full .v-srcnote { margin-top: 4px; }
.v-notes__full .v-foot { margin-top: 8px; }
.v-scope { margin: 10px 0 0; font: 650 13px/1.45 var(--font); color: var(--ink-2); }
.content--vendor { padding-bottom: 120px; }
.bottom-bar .cta svg { margin-right: 6px; vertical-align: -3px; }

/* ---------- 08 내 견적 vs 공개 가격 ---------- */
.content--vcompare { padding-bottom: 120px; }
.v-cmeta { display: flex; align-items: center; gap: 6px; font: 600 13px/1.3 var(--font); color: var(--ink-3); }
.v-cmeta .tag { margin-left: auto; }
.v-h1--cmp { margin: 12px 0 16px; font-size: 24px; }
.tone-ok { color: var(--ok-text); } .tone-warn { color: var(--warn-text); } .tone-bad { color: var(--bad-text); }
.v-csum { padding: 16px; }
.v-csum__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-csum .k { margin: 0; font: 600 12.5px/1.3 var(--font); color: var(--ink-3); }
.v-csum .v { margin: 6px 0 0; font: 750 20px/1 var(--font); }
.v-csum .v small { font: 650 13px/1 var(--font); color: var(--ink-2); margin-left: 1px; }
.v-csum__diff { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-sunken); }
.v-csum__diff--ok { background: var(--ok-soft); } .v-csum__diff--warn { background: var(--warn-soft); } .v-csum__diff--bad { background: var(--bad-soft); }
.v-csum__diff .v { font-size: 22px; }
.v-csum__diff--ok .v { color: var(--ok-text); } .v-csum__diff--warn .v { color: var(--warn-text); } .v-csum__diff--bad .v { color: var(--bad-text); }
.v-sec__row--rows { margin-top: 24px; }
.v-crows { padding: 2px 16px; }
.v-cgroup { margin: 12px 0 0; font: 650 12.5px/1 var(--font); color: var(--ink-3); }
.v-cgroup + .diff-row { padding-top: 8px; }
.diff-row__k { margin: 0; }
.diff-row__nums .k, .diff-row__nums .v { margin-bottom: 0; }
.diff-row__nums p { margin: 0; }
.diff-row__nums > div:last-child { text-align: right; }
.diff-row__nums > div:last-child .k { margin-bottom: 5px; }
.v-cpen { padding: 14px 16px; }
.v-cpen dl { margin: 0; }
.v-cpen dl > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 8px 0; font: 500 13.5px/1.55 var(--font); }
.v-cpen dl > div + div { border-top: 1px solid var(--line); }
.v-cpen dt { color: var(--ink-3); font-weight: 600; }
.v-cpen dd { margin: 0; color: var(--ink); }
.v-cpen .note { margin-top: 10px; }
.v-crit { margin-top: 18px; }
.v-cempty { margin-top: 20px; }

/* ---------- 11 리포트: 내 조건에 맞는 업체 ---------- */
.m-sec { margin-top: 28px; }
.mhead { height: 8px; margin: 0 calc(-1 * var(--gutter)) 24px; background: var(--bg-sunken); }
.m-titlerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-h2 { margin: 0; font: 750 21px/1.3 var(--font); letter-spacing: -0.03em; }
.m-sub { margin: 6px 0 0; font: 500 14px/1.5 var(--font); color: var(--ink-2); }
.m-cats { margin-top: 14px; }
.m-mine { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-top: 12px; padding: 14px 16px; }
.m-mine .k { margin: 0; font: 600 13px/1.3 var(--font); color: var(--ink-3); }
.m-mine .v { margin: 6px 0 0; font: 750 22px/1 var(--font); }
.m-mine .v small { font: 650 14px/1 var(--font); color: var(--ink-2); margin-left: 1px; }
.m-mine__r { text-align: right; font: 600 13px/1.55 var(--font); color: var(--ink-2); }
.m-mine__r p { margin: 0; }
.m-mine__calc { grid-column: 1 / -1; margin: 6px 0 0; font: var(--t-caption); color: var(--ink-3); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.m-chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font: 650 13.5px/1 var(--font); color: var(--ink-2); }
.m-chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.m-chip.is-off, .m-chip[aria-disabled="true"] { color: #9CA3AF; border-color: #E5E7EB; background: #fff; cursor: not-allowed; }
.v-sortchips { margin-top: 0; gap: 4px; }
.v-sortchips .m-chip { height: 32px; padding: 0 11px; font-size: 13px; gap: 3px; }
.v-sortchips .m-chip svg { width: 14px; height: 14px; }
.m-relax { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m-relax:empty { display: none; }
.m-countrow { display: flex; justify-content: space-between; margin: 16px 2px 8px; font: 600 13px/1 var(--font); color: var(--ink-3); }
.m-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.match-card > span { display: block; }
.match-card .match-card__price, .match-card .match-card__total { display: flex; }
.match-card .reasons { display: flex; }
.match-card .vs-mine { display: flex; margin-bottom: 0; }
.match-card__meta .tag { vertical-align: 1px; margin-left: 2px; }
.match-card__price .price-na { font-size: 15px; }
.m-ref { margin-top: 10px; font: 500 12.5px/1.4 var(--font); color: var(--ink-3); }
.m-score { margin-top: 4px; font: 500 12px/1.45 var(--font); color: var(--ink-3); }
.m-und { margin-top: 18px; }
.m-und .gcap { margin: 4px 4px 10px; }
.m-und [hidden] { display: none; }
.m-empty { margin-top: 14px; }
.m-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.m-empty__btns .cta-line { height: 44px; }
.m-calcnote { margin-top: 16px; }

/* ---------- 12 PC (1024px 이상, 업체 찾기만 2단) ---------- */
.v-gnb, .v-pc { display: none; }
@media (min-width: 1024px) {
  #app[data-screen="find"] { max-width: none; border: 0; box-shadow: none; }
  .v-gnb { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
  .v-gnb__logo { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: 600 14px/1 var(--font); color: var(--ink-2); }
  .v-gnb__logo b { color: var(--ink); font-weight: 800; }
  .v-gnb__nav { display: flex; gap: 6px; }
  .v-gnb__nav button { height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: none; font: 650 15px/1 var(--font); color: var(--ink-2); }
  .v-gnb__nav .is-on { background: var(--primary-soft); color: var(--primary-strong); }
  .v-pc { display: grid; grid-template-columns: 440px 1fr; padding: 0; min-height: calc(100vh - 64px); }
  .v-pc__list { padding: 20px 20px 40px; border-right: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 64px); }
  .v-pc__list .v-cats { margin: 14px 0 0; padding: 0; }
  .v-pc__map { position: relative; }
  .v-pc__map .v-map { position: sticky; top: 64px; height: calc(100vh - 64px); }
  .v-pc__map .v-maptag { top: auto; bottom: 16px; }
  .v-pop { position: absolute; left: 18px; top: 18px; z-index: 5; width: 272px; max-height: calc(100% - 24px); overflow: auto; padding: 14px 14px 12px; }
  .v-pop .vendor-card__name { font-size: 16px; }
  .v-pop .price-block { margin-top: 10px; }
  .v-pop__cta { width: 100%; height: 48px; margin-top: 8px; font-size: 15px; }
}

.v-filters .tag, .v-trustcard .tag, .m-titlerow .tag { white-space: nowrap; }
/* v0.2 리뷰: 정렬 칩은 한 줄, 지역 선택은 줄여서 옆에 */
.v-sortrow .v-sortchips { flex-wrap: nowrap; min-width: 0; }
.v-sortrow .v-select { flex: 0 1 auto; min-width: 0; padding: 0 8px 0 10px; }
.v-sortrow .v-select select { max-width: 92px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.v-sortrow .v-sortchips .m-chip { flex: none; white-space: nowrap; }
.v-sortrow .v-select { overflow: hidden; }
