/* 부자부동산 — 공용 스타일(VIEW-A). 토큰 · 리셋 · 레이아웃 · 헤더 · 푸터 · 공용 컴포넌트 · 모션.
   모바일 우선: 기본 = 390px 시안, 600px 이상 = 태블릿, 900px 이상 = 데스크톱(메뉴 노출, 하단 바 숨김). */

/* ───────── 디자인 토큰 ───────── */
:root {
  --brand: #0B2E86;
  --brand-hover: #0A2674;
  --deep: #071634;
  --deep-footer: #050F26;
  --dark-card: #0D2149;
  --dark-line: #1E3666;
  --dark-line-2: #213B74;
  --dark-row: #1D3466;
  --dark-track: #152B5A;
  --dark-muted: #9DB0D8;
  --dark-sub: #B8C3DB;
  --dark-soft: #C5CEE2;
  --light-blue: #9DB5FF;
  --bar-blue: #7F9CF5;
  --bar-past: #3D5FB8;

  --ink: #0E1726;
  --ink-2: #3B4558;
  --muted: #566176;
  --line: #E2E7F0;
  --line-2: #EEF1F6;
  --line-strong: #CBD3E1;
  --chip-line: #D5DCE8;
  --bg-soft: #F5F7FB;
  --bg-field: #F3F6FB;
  --bg-cmp: #F2F5FB;
  --chip-bg: #EAF0FD;
  --placeholder: #E8EDF5;
  --placeholder-ink: #56627A;
  --placeholder-mark: #A9B6CC;
  /* 입력칸 안내 글자: 입력칸 배경(#F3F6FB)·흰 배경 모두에서 4.5:1 이상 */
  --placeholder-text: #636D80;

  --accent-text: #B4400B;
  --accent-bg: #FFF1E8;
  --accent-point: #E8590C;
  --accent-point-dark: #FF9F5A;
  --accent-label-dark: #FFB27A;
  --green-text: #17603F;
  --green-bg: #E6F4EE;
  --kakao: #FEE500;
  --kakao-ink: #191919;
  --focus: #4C7DFF;

  --radius-card: 20px;
  --radius-card-lg: 24px;
  --radius-pill: 999px;
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --quickbar-h: 76px;
  --quickbar-h-desktop: 72px;

  --font-sans: 'IBM Plex Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  /* Plex Mono 는 라틴 글자만 있다. 숫자 보조 텍스트에 섞인 한글(층·억·조회 …)은 바로 다음의 Plex Sans KR 로 그린다 */
  --font-mono: 'IBM Plex Mono', 'IBM Plex Sans KR', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-draw: cubic-bezier(.65, 0, .35, 1);
  --shadow-lift: 0 24px 48px -20px rgba(7, 22, 52, .28);
}

/* ───────── 리셋 ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  padding: 12px 18px; border-radius: 12px;
  background: #FFFFFF; color: var(--ink); font-weight: 700;
  box-shadow: 0 8px 24px rgba(7, 22, 52, .2);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}

.section { padding-top: 48px; padding-bottom: 48px; }
.section-dark { background: var(--deep); color: #FFFFFF; }
.section-soft { background: var(--bg-soft); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px 40px;
}
.section-head > .section-title { max-width: 760px; }
.section-head__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.section-title {
  font-weight: 600; font-size: 26px; line-height: 1.38; letter-spacing: -.03em;
}
.section-lead { max-width: 460px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.section-dark .section-lead { color: var(--dark-sub); }

/* ───────── 아이콘·로고 ───────── */
.icon { display: inline-block; flex: none; vertical-align: middle; }
.logo-mark { display: block; flex: none; }

/* ───────── 버튼·링크 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; border-radius: 14px; }
.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-hover); color: #FFFFFF; }
.btn--outline { background: #FFFFFF; color: var(--ink); border-color: var(--line-strong); font-weight: 600; }
.btn--outline:hover { color: var(--ink); border-color: var(--ink-2); }
.btn--on-dark { min-height: 48px; padding: 0 22px; font-size: 15px; background: #FFFFFF; color: var(--deep); }
.btn--on-dark:hover { color: var(--deep); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; font-size: 15px; color: var(--brand);
}
.arrow-link:hover { color: var(--deep); }
.arrow-link .icon { transition: transform .28s var(--ease-out); }
.arrow-link:hover .icon { transform: translateX(4px); }
.arrow-link--muted { color: var(--muted); }

/* ───────── 헤더 ───────── */
.site-header { position: relative; z-index: 40; background: #FFFFFF; border-bottom: 1px solid var(--line); color: var(--ink); }
.site-header--dark { background: var(--deep); border-bottom-color: var(--deep); color: #FFFFFF; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 10px; padding-bottom: 10px; padding-right: max(12px, calc(var(--gutter) - 8px));
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--brand); white-space: nowrap; }
.brand:hover { color: var(--brand); }
.brand--dark, .brand--dark:hover { color: #FFFFFF; }
.brand__mark { width: 22px; height: 29px; }
.brand__text { display: flex; align-items: baseline; gap: 8px; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.brand__suffix { display: none; font-size: 13px; font-weight: 600; }
.brand--dark .brand__suffix { font-weight: 500; color: var(--dark-sub); }

.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); white-space: nowrap; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.site-header--dark .site-nav a, .site-header--dark .site-nav a:hover { color: #E6EBF7; }
.site-header--dark .site-nav a[aria-current="page"] { color: #FFFFFF; }

.site-header__actions { display: flex; align-items: center; gap: 2px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.header-phone:hover { color: var(--brand); }
.site-header--dark .header-phone, .site-header--dark .header-phone:hover { color: #FFFFFF; }
.header-phone__text { display: none; }
.header-cta { display: none; min-height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; background: var(--brand); color: #FFFFFF; }
.header-cta:hover { color: #FFFFFF; background: var(--brand-hover); }
.site-header--dark .header-cta, .site-header--dark .header-cta:hover { background: #FFFFFF; color: var(--brand); }

/* JS 없이 동작하는 모바일 메뉴(<details>) */
.mnav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; list-style: none;
}
.mnav__toggle::-webkit-details-marker { display: none; }
.mnav__toggle::marker { content: ""; }
.mnav .icon--close, .mnav[open] .icon--menu { display: none; }
.mnav[open] .icon--close { display: inline-block; }
.mnav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 8px var(--gutter) 18px;
  background: #FFFFFF; color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(7, 22, 52, .35);
}
.mnav__list a {
  display: flex; align-items: center; min-height: 52px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink); font-weight: 600; font-size: 16px;
}
.mnav__list li:last-child a { border-bottom: 0; color: var(--brand); font-weight: 700; }
.mnav__list a[aria-current="page"] { color: var(--brand); }

/* ───────── 푸터 ───────── */
.site-footer { background: var(--deep-footer); color: #C9D2E6; }
.site-footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 40px;
  padding-top: 36px; padding-bottom: 24px;
}
.site-footer__about { max-width: 600px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.site-footer__name { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.site-footer__suffix { font-size: 12px; color: #AEB9D3; }
.site-footer__info { font-size: 13px; line-height: 1.8; color: #AEB9D3; }
.site-footer__info a { color: inherit; }
/* 'TEL 02-571-0404' 처럼 이름과 번호를 한 덩어리로: 번호가 줄 끝에서 갈라지지 않게 */
.nowrap { white-space: nowrap; }
.site-footer__info a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__navs { display: flex; flex-wrap: wrap; gap: 40px; font-size: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav__title { font-size: 12px; color: #8E9BB8; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #DCE3F2; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid #16264A;
  font-size: 12px; line-height: 1.8; color: #8E9BB8;
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.site-footer__privacy {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #DCE3F2; font-weight: 700;
}
.site-footer__privacy:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

/* 하단 고정 상담 바 — 작은 화면: 버튼 3개(흰 바), 900px 이상: 안내 문구 + 버튼(다크 바) */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #FFFFFF; border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -16px rgba(7, 22, 52, .25);
}
.quickbar__intro, .quickbar__num { display: none; }
.quickbar__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quickbar__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; border-radius: 12px;
  font-weight: 700; font-size: 14px; line-height: 1.2;
  transition: transform .18s var(--ease-out);
}
.quickbar__btn:active { transform: scale(.97); }
.quickbar__btn--call, .quickbar__btn--call:hover { background: var(--brand); color: #FFFFFF; }
.quickbar__btn--sms, .quickbar__btn--sms:hover { border: 1px solid var(--line-strong); color: var(--ink); }
.quickbar__btn--kakao, .quickbar__btn--kakao:hover { background: var(--kakao); color: var(--kakao-ink); }

/* ───────── 배지·칩·태그 ───────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; line-height: 1.4;
}
.badge--sale { background: var(--brand); color: #FFFFFF; }
.badge--jeonse { background: #FFFFFF; color: var(--brand); }
.badge--monthly { background: var(--ink); color: #FFFFFF; }
.badge--presale { background: var(--chip-bg); color: var(--brand); }

.flag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; line-height: 1.4; }
.flag--tag { padding: 3px 9px; border-radius: 6px; }
.flag--pill { padding: 5px 11px; border-radius: var(--radius-pill); }
.flag--accent { background: var(--accent-bg); color: var(--accent-text); }
.flag--blue { background: var(--chip-bg); color: var(--brand); }
.flag--green { background: var(--green-bg); color: var(--green-text); }

.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px; scrollbar-width: none; }
/* 가로 스크롤 칩 줄: 스크롤 영역이 포커스 테두리(2px + 간격 2px)를 자르지 않게 위아래 여백을 두고 그만큼 당긴다 */
@media (max-width: 599px) {
  .chips { padding-top: 6px; padding-bottom: 6px; margin-top: -4px; margin-bottom: -4px; }
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--chip-line); border-radius: var(--radius-pill);
  background: #FFFFFF; color: var(--ink-2);
  font-weight: 600; font-size: 14px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-current="true"]:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip__count { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }

/* ───────── 가격·비교 ───────── */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; }
.price__deal { font-size: 14px; font-weight: 700; color: var(--brand); }
.price__value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.price-change { font-size: 13px; font-weight: 600; color: var(--accent-text); }

.cmp {
  margin-top: 4px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-cmp);
  display: flex; flex-direction: column; gap: 4px;
}
.cmp__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--brand);
}
.cmp__diff { color: var(--accent-text); font-weight: 700; }
.cmp__body { font-size: 14px; }
.cmp__meta { font-size: 13px; color: var(--muted); }
.cmp--inline { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.cmp--inline .cmp__label { font-family: var(--font-mono); font-size: 12px; color: var(--brand); }
.cmp--inline .cmp__diff { font-size: 13px; }

/* ───────── 썸네일 ───────── */
.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.thumb-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--placeholder-ink); font-size: 12px;
  transition: transform .7s var(--ease-out);
}
.thumb-ph__mark { width: 30px; height: 40px; color: var(--placeholder-mark); }
.lift:hover .thumb, .lift:hover .thumb-ph { transform: scale(1.04); }

/* 카드 호버 리프트 */
.lift { transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), border-color .2s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* ───────── 세로형 매물 카드(홈) ───────── */
.lcard {
  position: relative; display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.lcard__media { position: relative; height: 190px; overflow: hidden; background: var(--placeholder); }
.lcard__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.lcard__floor {
  position: absolute; right: 12px; bottom: 12px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(7, 22, 52, .84); color: #FFFFFF;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.3;
}
.lcard__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.lcard__meta { font-size: 12px; color: var(--muted); }
.lcard__title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
.lcard__size, .lrow__size { font-weight: 600; color: var(--muted); }
.lcard__spec, .lrow__spec {
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lcard__link {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  border-top: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.lcard__link:hover { color: var(--brand); }
.lcard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lcard__link .icon { margin-left: auto; color: var(--brand); transition: transform .28s var(--ease-out); }
.lcard:hover .lcard__link .icon { transform: translateX(4px); }
.lcard__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.lcard .price { margin-top: 4px; }

/* ───────── 가로형 매물 카드(/listings) ───────── */
.lrow {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 16px 20px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: #FFFFFF;
}
.lrow__media {
  position: relative; flex: 1 1 100%; height: 190px;
  border-radius: 14px; overflow: hidden; background: var(--placeholder);
}
.lrow__deal { position: absolute; top: 12px; left: 12px; }
.lrow__floor {
  position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 8px;
  background: rgba(7, 22, 52, .84); color: #FFFFFF; font-family: var(--font-mono); font-size: 12px;
}
.lrow__body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 2px 0; }
.lrow__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lrow__meta { font-size: 13px; color: var(--muted); }
.lrow__flags { display: flex; gap: 6px; }
.lrow__title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
/* 제목 링크가 카드 전체를 덮는다(매물 상세). 블로그 원문 보조 링크만 그 위로 올린다 */
.lrow__title-link { color: var(--ink); }
.lrow__title-link:hover { color: var(--ink); }
.lrow__title-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lrow__links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.lrow__link { min-height: 44px; font-size: 14px; }
.lrow .lrow__link .icon { transition: transform .28s var(--ease-out); }
.lrow:hover .lrow__link .icon { transform: translateX(4px); }
.lrow__blog {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.lrow__blog:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ───────── 빈 상태 ───────── */
.empty {
  margin-top: 20px; padding: 36px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-card);
}
.empty__title { font-size: 16px; font-weight: 700; }
.empty__body { max-width: 440px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.empty__action { margin-top: 6px; }
.empty--dark { border-color: var(--dark-line-2); color: #FFFFFF; }
.empty--dark .empty__body { color: var(--dark-muted); }

/* ───────── 위치 표시 ───────── */
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.breadcrumb__list li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { position: relative; display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
/* 보이는 크기는 그대로 두고 누르는 영역만 44px 이상으로 */
.breadcrumb a::after { content: ""; position: absolute; inset: -6px -8px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ───────── 상담 버튼 4개 ───────── */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
/* 네 버튼 모두 '왼쪽 이름 · 오른쪽 값' 한 줄(시안 그대로). 좁으면 값은 그대로 두고 이름이 줄을 바꾼다.
   버튼 폭은 놓인 곳(홈 상담 카드·매물 상세 옆 칸)마다 달라 화면 폭이 아닌 목록 폭(컨테이너 쿼리)으로 줄인다 */
.contact-list { container-type: inline-size; }
.contact-btn {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 12px 20px; border: 1px solid transparent; border-radius: 18px;
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.contact-btn:hover { transform: translateY(-1px); }
.contact-btn:active { transform: scale(.98); }
.contact-btn__label { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.35; word-break: keep-all; }
.contact-btn__value { flex: none; margin-left: auto; white-space: nowrap; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.contact-btn--office, .contact-btn--office:hover { background: #FFFFFF; color: var(--ink); }
.contact-btn--office .icon { color: var(--brand); }
.contact-btn--direct, .contact-btn--direct:hover { background: var(--brand); color: #FFFFFF; }
.contact-btn--sms, .contact-btn--sms:hover { border-color: #2A4580; color: #FFFFFF; }
.contact-btn--sms:hover { border-color: var(--light-blue); }
.contact-btn--kakao, .contact-btn--kakao:hover { background: var(--kakao); color: var(--kakao-ink); }
.contact-btn--kakao .contact-btn__label { font-weight: 700; }

/* ───────── 차트(SVG) ───────── */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-mono); }
.chart__grid { fill: none; stroke: var(--dark-line); stroke-width: 1; }
.chart__axis { fill: #8C9BBB; font-size: 20px; }
.chart__minor, .chart__values, .chart__ask-label { display: none; }
.chart__line {
  fill: none; stroke: var(--light-blue); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1000;
  animation: draw 2.4s var(--ease-draw) .2s both;
}
.chart__dots circle { r: 8px; fill: var(--dark-card); stroke: var(--light-blue); stroke-width: 4; }
.chart__ask-dot { r: 11px; }
.chart--dense .chart__dots circle { r: 5px; stroke-width: 3; }
.chart__ask-line { fill: none; stroke: var(--accent-point-dark); stroke-width: 3; stroke-dasharray: 6 7; }
.chart__ask-dot { fill: var(--accent-point-dark); }
.chart__values { fill: #DCE3F2; font-size: 12px; font-weight: 500; }
.chart__ask-label { fill: var(--accent-label-dark); font-size: 12px; font-weight: 500; }
/* 값 라벨이 선·점 위에 겹쳐도 읽히도록 카드 배경색 테두리(후광)를 글자 뒤에 그린다 */
.chart__values, .chart__ask-label { paint-order: stroke; stroke: var(--dark-card); stroke-width: 4px; stroke-linejoin: round; }
.chart--light .chart__values, .chart--light .chart__ask-label { stroke: #FFFFFF; }
.chart--light .chart__grid { stroke: #E8ECF3; }
.chart--light .chart__axis { fill: var(--muted); }
.chart--light .chart__line { stroke: var(--brand); }
.chart--light .chart__dots circle { fill: #FFFFFF; stroke: var(--brand); }
.chart--light .chart__ask-line { stroke: var(--accent-point); }
.chart--light .chart__ask-dot { fill: var(--accent-point); }
.chart--light .chart__values { fill: var(--ink); }
.chart--light .chart__ask-label { fill: var(--accent-text); }

.ybar__bar { fill: var(--bar-past); transform-box: fill-box; transform-origin: 50% 100%; animation: growY 1.1s var(--ease-out) .2s both; }
.ybar--current .ybar__bar { fill: var(--light-blue); }
.chart .ybar__count { fill: #FFFFFF; font-family: var(--font-sans); font-size: 18px; font-weight: 700; }
.ybar__year { fill: var(--dark-muted); font-size: 12px; }

.minibars { display: block; flex: none; }
.minibars__bar { fill: var(--bar-past); }
.minibars__bar--current { fill: var(--light-blue); }

.hbar { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.hbar__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name value" "bar bar";
  align-items: center; gap: 6px 10px;
}
.hbar__name { grid-area: name; min-width: 0; }
.hbar__label { font-weight: 600; font-size: 14px; }
.hbar__sub { display: none; margin-top: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--dark-muted); }
.hbar__bar { grid-area: bar; display: block; width: 100%; height: 12px; overflow: hidden; }
.hbar__track { fill: var(--dark-track); }
.hbar__fill { fill: var(--bar-blue); transform-box: fill-box; transform-origin: 0 50%; animation: growX 1.2s var(--ease-out) .2s both; }
.hbar__value { grid-area: value; text-align: right; white-space: nowrap; font-weight: 700; font-size: 14px; }
.hbar--light .hbar__track { fill: #E1E6EF; }
.hbar--light .hbar__fill { fill: var(--brand); }
.hbar--light .hbar__sub { color: var(--muted); }

/* ───────── 모션 ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 159, 90, .6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 159, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 90, 0); }
}
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.rise { animation: rise .9s var(--ease-out) both; }
.pop { display: inline-block; animation: pop .7s var(--ease-out) both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .28s; }
.d4 { animation-delay: .4s; }
.d5 { animation-delay: .52s; }
.pd1 { animation-delay: .55s; }
.pd2 { animation-delay: .65s; }
.pd3 { animation-delay: .75s; }
.pd4 { animation-delay: .85s; }
.pd5 { animation-delay: .95s; }

/* 스크롤 리빌: app.js 가 <html> 에 .js-reveal 을 붙였을 때만 숨겼다가 보이면 나타난다(JS 없으면 항상 보임) */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(18px); filter: blur(8px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js-reveal [data-reveal]:not(.is-in) .chart__line,
.js-reveal [data-reveal]:not(.is-in) .ybar__bar,
.js-reveal [data-reveal]:not(.is-in) .hbar__fill { animation-play-state: paused; }

/* ───────── 600px 이상 ───────── */
@media (min-width: 600px) {
  .section-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.32; }
  .section-lead { font-size: 16px; }
  .section-head { gap: 24px 40px; }

  .brand { gap: 12px; }
  .brand__mark { width: 30px; height: 40px; }
  .brand__name { font-size: 24px; }
  .brand__suffix { display: inline; }
  .site-header__actions { gap: 10px; }

  .site-footer__top { padding-top: 64px; padding-bottom: 40px; gap: 40px; }
  .site-footer__about { gap: 20px; }
  .site-footer__name { font-size: 20px; }
  .site-footer__suffix { font-size: 13px; }
  .site-footer__info { font-size: 14px; line-height: 1.9; }
  .site-footer__navs { gap: 56px; }

  .badge { padding: 6px 12px; font-size: 13px; }
  .flag--pill { padding: 6px 12px; font-size: 13px; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .chip { padding: 0 18px; font-size: 15px; }

  .price__deal { font-size: 15px; }
  .price__value { font-size: 27px; }
  .cmp { margin-top: 6px; padding: 14px 16px; border-radius: 14px; }
  .cmp__head { font-size: 12px; }
  .cmp__body { font-size: 15px; }

  .lcard { border-radius: var(--radius-card); }
  .lcard__media { height: auto; aspect-ratio: 4 / 3; }
  .lcard__badges { top: 16px; left: 16px; }
  .lcard__floor { right: 16px; bottom: 16px; }
  .lcard__body { gap: 8px; padding: 22px 24px 24px; }
  .lcard__meta { font-size: 13px; }
  .lcard__title { font-size: 21px; }
  .lcard__spec { font-size: 14px; line-height: 1.6; }
  .lcard__link { padding-top: 14px; }
  .thumb-ph { gap: 10px; font-size: 13px; }
  .thumb-ph__mark { width: 38px; height: 50px; }

  .lrow { padding: 16px; flex-wrap: nowrap; }
  .lrow__media { flex: 0 0 176px; height: 176px; }
  .lrow__title { font-size: 20px; }
  .lrow__spec { font-size: 14px; line-height: 1.6; }
  .lrow .price__value { font-size: 25px; }

  .empty { padding: 56px 24px; gap: 14px; }
  .empty__title { font-size: 18px; }
  .empty__body { font-size: 15px; }

  .contact-list { gap: 14px; }
  .contact-btn { min-height: 76px; padding: 12px 28px; }
  .contact-btn__label { gap: 14px; font-size: 16px; }
  .contact-btn__value { font-size: 20px; }
  .chips { margin-top: 0; margin-bottom: 0; }

  .chart__axis { font-size: 11px; }
  .chart__minor, .chart__values, .chart__ask-label { display: inline; }
  .chart__line { stroke-width: 2.5; }
  .chart__dots circle { r: 5px; stroke-width: 2.5; }
  .chart__ask-dot { r: 7px; }
  .chart--dense .chart__dots circle { r: 3px; stroke-width: 2; }
  .chart__ask-line { stroke-width: 2; stroke-dasharray: 4 5; }

  .hbar { gap: 18px; margin-top: 28px; }
  .hbar__item { grid-template-columns: minmax(130px, 230px) minmax(0, 1fr) auto; grid-template-areas: "name bar value"; gap: 20px; }
  .hbar__label { font-size: 15px; }
  .hbar__sub { display: block; }
  .hbar__value { min-width: 92px; font-size: 17px; }
}

/* ───────── 좁은 상담 버튼 목록(작은 휴대폰·매물 상세 옆 칸): 여백과 값 글자를 함께 줄여 한 줄을 지킨다.
   네 버튼의 오른쪽 값 글자 크기는 언제나 서로 같다(SPEC §2.5) ───────── */
@container (max-width: 400px) {
  .contact-btn { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .contact-btn__label { gap: 10px; font-size: 15px; }
  .contact-btn__value { font-size: 17px; }
}
@container (max-width: 340px) {
  .contact-btn__value { font-size: 16px; }
}

/* ───────── 900px 이상(데스크톱) ───────── */
@media (min-width: 900px) {
  body { padding-bottom: calc(var(--quickbar-h-desktop) + env(safe-area-inset-bottom, 0px)); }
  .quickbar {
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: rgba(7, 22, 52, .96); border-top: 1px solid var(--dark-line);
    box-shadow: 0 -12px 32px -18px rgba(0, 0, 0, .45);
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .quickbar { background: rgba(7, 22, 52, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  }
  .quickbar__inner {
    max-width: var(--container); margin: 0 auto; box-sizing: border-box;
    min-height: var(--quickbar-h-desktop); padding: 10px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  .quickbar__intro { display: flex; align-items: center; gap: 12px; min-width: 0; color: #FFFFFF; }
  .quickbar__dot {
    flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-point-dark);
    animation: qbPulse 2s ease-out infinite;
  }
  .quickbar__title { flex: 0 0 auto; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
  .quickbar__text { display: none; min-width: 0; font-size: 14px; color: var(--dark-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .quickbar__actions { display: flex; flex: 0 0 auto; gap: 8px; }
  .quickbar .quickbar__btn { min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 15px; gap: 8px; }
  .quickbar__num { display: inline; margin-left: 4px; font-weight: 700; letter-spacing: -0.01em; }
  .quickbar .quickbar__btn--sms, .quickbar .quickbar__btn--sms:hover { border-color: var(--dark-line-2); color: #FFFFFF; }
  .quickbar .quickbar__btn--sms:hover { background: rgba(255, 255, 255, .06); }
  .quickbar .quickbar__btn--call:hover { background: var(--brand-hover); }
  .quickbar__btn:hover { transform: translateY(-1px); }
  .section { padding-top: 112px; padding-bottom: 112px; }
  .site-header__inner { padding-top: 18px; padding-bottom: 18px; padding-right: var(--gutter); }
  .site-header--dark .site-header__inner { padding-top: 22px; padding-bottom: 22px; }
  .site-nav { display: block; }
  .site-nav__list { gap: 24px; }
  .brand__suffix { display: none; }
  .header-cta { display: inline-flex; }
  .mnav { display: none; }
}

/* ───────── 1200px 이상(넓은 데스크톱) ───────── */
@media (min-width: 1200px) {
  .quickbar__text { display: inline; }
  .site-nav__list { gap: 36px; }
  .brand__suffix { display: inline; }
  .header-phone__text { display: inline; }
}

/* ───────── 동작 줄이기 ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .quickbar, .mnav, .skip-link { display: none !important; }
  body { padding-bottom: 0; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* 제자리 갱신(app.js setupSoftNav) 중인 영역: 살짝 흐리게, 연속 클릭 방지 */
[data-swap-region] { transition: opacity .18s ease; }
[data-swap-region].is-swapping { opacity: .55; pointer-events: none; }
