/* ===================================================
   정직한공인중개사사무소 - 공통 스타일시트

   ★ 강조색은 남색과 주황 딱 두 가지입니다.
     평면도 이미지가 이미 분홍·노랑으로 화려해서, 틀은 차분하게 두고
     눈이 갈 곳을 둘로 제한합니다.
     예외는 "급매" 뱃지 하나뿐입니다(빨강).

     남색 = 정보·구분     (거래유형 뱃지, 아웃라인 뱃지·버튼, 헤더·푸터)
     주황 = 행동 유도·금액 (전화 버튼, 가격, 강조 라인)

   ★ 색을 추가하고 싶을 때는 위 두 색의 농도를 조절해 쓰세요.
     새 색을 늘리면 유튜브 카드·블로그와 브랜드가 어긋납니다.
=================================================== */

:root {
  --bg:        #F7F4EE;  /* 페이지 바탕 - 크림 */
  --surface:   #FFFFFF;  /* 카드·패널 전용 흰색 */

  --navy:      #1E4F8F;  /* 주 강조 - 뱃지·아웃라인 버튼·헤더·푸터 */
  --navy-2:    #1A4478;  /* 남색 hover */
  --navy-tint: #EDF2F8;  /* 아주 옅은 남색 배경 (표 헤더, hover 틴트) */

  --ink:       #3A362E;  /* 본문 글자 */
  --ink-sub:   #8A857B;  /* 보조 글자 */

  --data:      #D95D2B;  /* 행동 유도 - 전화 버튼, 강조 라인 */
  --data-2:    #C24E20;  /* 주황 hover */
  --data-bg:   #F7F3EA;  /* 코멘트 박스 등 옅은 배경 */
  --price:     #C8501F;  /* 금액 전용 - 주황보다 채도를 낮춘 딥오렌지 */

  --urgent:    #C0392B;  /* 급매 전용 빨강. 이 색은 여기 말고 쓰지 않습니다 */
  --jeonse:    #1E6B52;  /* 전세 뱃지 */
  --rent:      #5A54C4;  /* 월세 뱃지 */

  --line:        #E7E2D8;
  --line-strong: #C9C4B8;  /* 매물번호처럼 톤다운된 아웃라인 */

  --radius:      10px;  /* 뱃지·버튼 */
  --radius-card: 16px;  /* 카드 */

  --shadow:    0 2px 8px rgba(58, 54, 46, .06);
  --shadow-md: 0 6px 16px rgba(58, 54, 46, .10);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo {
  flex: none;
}

.logo .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo .brand-sub {
  font-size: 0.72rem;
  color: var(--ink-sub);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 9px 9px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-sub);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.main-nav a.nav-2line {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.35;
  padding-top: 6px;
  padding-bottom: 6px;
}

.main-nav a.nav-2line .nav-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-sub);
}

.main-nav a.nav-2line:hover .nav-sub,
.main-nav a.nav-2line.active .nav-sub {
  color: var(--navy);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-badge {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.phone-badge:hover {
  color: var(--data);
}

/* 푸터·정보카드의 전화번호 링크는 주변 글자색을 그대로 씁니다 */
.footer-col a[href^="tel:"],
.info-row a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}

.footer-col a[href^="tel:"]:hover,
.info-row a[href^="tel:"]:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--data);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--data-2);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: var(--navy-tint);
}

.btn-block {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  width: 26px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--bg);
  color: var(--ink);
  padding: 96px 0 130px;
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--ink);
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-sub);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Quick search card */
.quick-search {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: -58px auto 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.quick-search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.quick-search-tabs button {
  flex: 1;
  padding: 12px;
  border: none;
  background: var(--bg);
  color: var(--ink-sub);
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-search-tabs button.active {
  background: var(--navy);
  color: var(--surface);
}

.quick-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}

.quick-search-form select,
.quick-search-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}

.quick-search-form select:focus,
.quick-search-form input:focus {
  outline: none;
  border-color: var(--navy);
}

/* ---------------- Data strip ---------------- */
.data-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-strip-item {
  text-align: center;
  padding: 22px 12px;
  border-left: 1px solid var(--line);
}

.data-strip-item:first-child {
  border-left: none;
}

.data-strip-label {
  font-size: 0.8rem;
  color: var(--ink-sub);
  margin-bottom: 6px;
}

.data-strip-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.data-strip-value.data-strip-money {
  color: var(--data);
}

/* ---------------- Sections (general) ---------------- */
section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-sub);
  font-size: 1rem;
}

/* ---------------- Feature / Value Grid ---------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin: 0 auto 14px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--ink-sub);
  font-size: 0.92rem;
}

/* ---------------- Listing Cards ---------------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.listing-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  box-shadow: var(--shadow-md);
}

/* 카드 안 글자는 단어 중간에서 잘리지 않게 합니다
   ("시스템에/어컨" 처럼 끊기는 것 방지) */
.listing-card,
.complex-card,
.complex-band {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.listing-thumb {
  /* 평면도 이미지 캔버스(1000x872)와 같은 비율 — 위아래 빈 공간 없이 꽉 차게 */
  aspect-ratio: 1000 / 872;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: var(--ink-sub);
  position: relative;
  overflow: hidden;
}

/* 평면도가 있으면 썸네일을 채우고, 타입명은 아래쪽 작은 뱃지로 내려갑니다 */
.listing-plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  cursor: zoom-in;
}

/* ---------------- 크게 보기 (라이트박스) ---------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(35, 42, 51, 0.9);
  padding: 40px 24px;
  overflow: auto;
}

.lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  margin: 0;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.lightbox-inner figcaption {
  margin-top: 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* 크게 볼 수 있는 사진에는 확대 커서를 표시합니다 */
.office-shot img,
.photo-panorama img,
.about-photo img,
.agent-photo img {
  cursor: zoom-in;
}

.listing-thumb-type {
  position: relative;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-sub);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  pointer-events: none;
}

/* 평면도 우측 상단에 "크게 보기" 안내 */
.listing-thumb:has(.listing-plan)::after {
  content: "🔍 크게 보기";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-sub);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  pointer-events: none;
}

.listing-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.listing-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 가격은 카드에서 가장 먼저 읽혀야 하는 정보라 크게 씁니다 */
.listing-price {
  font-size: 2.05rem;
  font-weight: 900;
  color: var(--data);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.listing-title {
  font-weight: 700;
  font-size: 1rem;
}

.listing-meta {
  color: var(--ink-sub);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.listing-loc {
  color: var(--ink-sub);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.listing-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  color: var(--ink-sub);
}

.listing-empty-card p {
  margin-bottom: 8px;
}

.listing-empty-card .btn {
  margin-top: 14px;
}

/* 단지 공통정보 밴드 — 그 단지 매물이 모두 공유하는 값을 목록 위에 한 번만 */
.complex-band {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}

.complex-band-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.complex-band-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.82rem;
  color: var(--ink-sub);
}

.complex-band-facts span {
  position: relative;
}

.complex-band-facts span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: var(--line);
}

/* 표시·광고 명시사항 (공인중개사법 시행령 제17조의2)
   한 줄에 한 항목씩. 라벨 왼쪽, 값 오른쪽. 값이 길면 그 줄만 늘어납니다. */
.listing-specs {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--ink-sub);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 3px 0;
}

.spec-label {
  flex: none;
  color: var(--ink-sub);
}

.spec-value {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.listing-note {
  font-size: 0.82rem;
  color: var(--ink-sub);
  background: var(--bg);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.5;
}

.listing-specs span b {
  color: var(--ink);
  font-weight: 600;
}

.disclosure-note {
  font-size: 0.72rem;
  color: var(--ink-sub);
  text-align: center;
  margin-top: 14px;
}

/* 미리보기 모드 안내 바 */
.preview-bar {
  background: #FBF1DE;
  border: 1.5px solid #D9B878;
  color: #7A5310;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 700;
}

.preview-bar a {
  color: #7A5310;
  text-decoration: underline;
  margin-left: 8px;
}

/* 정보가 덜 채워진 매물 (미리보기에서만 보입니다) */
.listing-incomplete {
  opacity: 0.9;
  border-color: #D9B878;
}

.listing-pending {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #FBF1DE;
  border: 1px solid #D9B878;
  color: #7A5310;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

/* 위반건축물 의무 표기 (공인중개사법 시행령 제17조의2) */
.listing-violation {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fbf1de;
  border: 1px solid #d9b878;
  color: #7a5310;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

/* ---------------- Video compare (판상형 vs 타워형) ---------------- */
.video-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.video-compare-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 자동 재생되는 미리보기는 소리가 꺼져 있습니다.
   켜고 싶은 분을 위해 오른쪽 위에 작은 버튼을 얹습니다. */
.video-sound-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35, 42, 51, 0.18);
}

.video-sound-btn:hover {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}

.video-compare-label {
  padding: 14px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 600px) {
  .video-compare-grid {
    max-width: 320px;
    gap: 14px;
  }
}

/* ---------------- Daily report link row (about.html) ---------------- */
.daily-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- Photo panorama (단지 전경/조망 사진 흐름 배너) ---------------- */
.photo-panorama {
  overflow: hidden;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-panorama-track {
  display: flex;
  width: max-content;
  animation: photo-panorama-scroll 36s linear infinite;
}

.photo-panorama-item {
  flex: none;
  display: flex;
  flex-direction: column;
  margin-right: 4px;
}

.photo-panorama-item img {
  height: 220px;
  width: auto;
  flex: none;
  display: block;
  object-fit: cover;
}

.photo-panorama-caption {
  text-align: center;
  padding: 7px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.photo-panorama:hover .photo-panorama-track {
  animation-play-state: paused;
}

@keyframes photo-panorama-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .photo-panorama-item img {
    height: 150px;
  }
}

/* ---------------- 내비게이션 드롭다운 ---------------- */
.nav-dropdown {
  position: relative;
  display: flex;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-sub);
  white-space: nowrap;
  border-radius: 6px;
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--navy-tint);
  color: var(--navy);
  border-bottom: none;
}

/* ---------------- 단지 페이지: 프로필 표 ---------------- */
.profile-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  max-width: 760px;
  margin: 0 auto;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.profile-row .label {
  color: var(--ink-sub);
  flex: none;
}

.profile-row .value {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

/* ---------------- 단지 페이지: 평형 비교 ---------------- */
.type-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 28px auto 0;
}

.type-compare-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.type-compare-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.type-compare-card p {
  font-size: 0.9rem;
  color: var(--ink-sub);
}

/* ---------------- 단지 페이지: 실거래 추이 ---------------- */
.trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  height: 190px;
  max-width: 620px;
  margin: 0 auto 32px;
  padding: 0 10px;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.trend-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.trend-bar {
  width: 100%;
  background: var(--navy);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.trend-count {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--ink);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.trend-month {
  font-size: 0.75rem;
  color: var(--ink-sub);
}

.trend-table-wrap {
  max-width: 620px;
  margin: 0 auto;
  overflow-x: auto;
}

.trend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.trend-table th,
.trend-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.trend-table th {
  background: var(--navy-tint);
  color: var(--navy);
  font-weight: 700;
  border-bottom: none;
}

.trend-table th:first-child,
.trend-table td:first-child {
  text-align: left;
}

/* ---------------- 단지 페이지: 메모 아카이브 ---------------- */
.memo-list {
  max-width: 720px;
  margin: 0 auto;
}

.memo-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.memo-date {
  font-size: 0.76rem;
  color: var(--ink-sub);
  margin-bottom: 6px;
}

.memo-item p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 700px) {
  .profile-table,
  .type-compare {
    grid-template-columns: 1fr;
  }
  .trend-chart {
    gap: 8px;
    height: 150px;
  }
}

/* ---------------- Blog posts (오늘의 실거래 리포트) ---------------- */
.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-post-card {
  display: block;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.blog-post-card:hover {
  box-shadow: var(--shadow-md);
}

.blog-post-date {
  font-size: 0.8rem;
  color: var(--ink-sub);
  margin-bottom: 8px;
}

.blog-post-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .blog-post-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Seller CTA (매도자 동선) ---------------- */
.seller-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--data);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.seller-cta-text {
  flex: 1 1 340px;
}

.seller-cta-text h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.seller-cta-text p {
  color: var(--ink-sub);
  font-size: 0.95rem;
}

.seller-cta-action {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.seller-cta-note {
  font-size: 0.78rem;
  color: var(--ink-sub);
}

@media (max-width: 600px) {
  .seller-cta {
    padding: 24px 20px;
  }
  .seller-cta-action,
  .seller-cta-action .btn {
    width: 100%;
  }
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--navy);
  color: var(--surface);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  margin: 0 auto;
  max-width: var(--max-width);
}

.cta-banner h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--surface);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
}

.cta-banner .btn-outline {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .brand-name {
  color: var(--surface);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h4 {
  color: var(--surface);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col li {
  font-size: 0.88rem;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- Breadcrumb / Page header (sub pages) ---------------- */
.page-hero {
  background: var(--bg);
  color: var(--ink);
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}

.page-hero p {
  color: var(--ink-sub);
  word-break: keep-all;
}

.page-hero p strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------------- Listings page: filter/search ---------------- */
.search-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.type-tabs button {
  padding: 12px 22px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.type-tabs button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--surface);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
}

.filter-row select,
.filter-row input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  background: var(--surface);
}

.filter-row select:focus,
.filter-row input:focus {
  outline: none;
  border-color: var(--navy);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 34px 0 20px;
}

.results-bar .count {
  font-weight: 700;
  color: var(--ink);
}

.results-bar .count span {
  color: var(--navy);
}

.no-result {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-sub);
  display: none;
}

/* ---------------- Complex overview (단지별 시세·매물현황) ---------------- */
.complex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.complex-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow 0.2s ease;
}

.complex-card:hover {
  box-shadow: var(--shadow-md);
}

.complex-card .primary-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--data);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------------- 카드 머리 뱃지 줄 ----------------
   기준 평형이 단지마다 다르므로(84㎡ / 102㎡ / 69㎡) 무슨 기준인지
   카드 맨 위에 못박아 둡니다. */
.complex-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

/* 뱃지 줄 안에 들어오면 절대배치를 풀고 나란히 세웁니다 */
.complex-card .complex-flags .primary-badge {
  position: static;
  top: auto;
  right: auto;
}

.basis-badge {
  background: var(--navy);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.basis-note {
  background: var(--navy-tint);
  color: var(--navy);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  word-break: keep-all;
}

.complex-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 4px;
  padding-right: 60px;
  color: var(--ink);
}

/* 뱃지 줄이 있으면 오른쪽 자리를 비워둘 필요가 없습니다 */
.complex-flags + h3 {
  padding-right: 0;
}

.complex-card .complex-loc {
  color: var(--ink-sub);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.complex-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px dashed var(--line);
  margin-bottom: 16px;
}

.complex-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
}

.complex-stat-row:last-child {
  border-bottom: none;
}

.complex-stat-row .label {
  color: var(--ink-sub);
}

.complex-stat-row .value {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.complex-stat-row .value.value-money {
  font-weight: 900;
  color: var(--data);
}

/* ---------------- 카드에서 가장 중요한 두 값 (호가 · 실거래) ----------------
   카드 폭이 290px 남짓이라 "라벨 ← → 값"으로 좌우에 놓으면 글자가
   한 자씩 끊어집니다. 라벨을 위에 두고 아래로 쌓습니다. */
.complex-key {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.complex-key-label {
  font-size: 0.8rem;
  color: var(--ink-sub);
  line-height: 1.5;
  word-break: keep-all;
}

.complex-key-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}

.complex-key-value.is-money {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--data);
}

.complex-key-sub {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--ink-sub);
  line-height: 1.5;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.complex-card-compact .complex-key {
  padding: 8px 0;
}

.complex-card-compact .complex-key-value {
  font-size: 0.98rem;
}

.complex-card-compact .complex-key-value.is-money {
  font-size: 1.1rem;
}

/* 그룹 제목 (주력 단지 / 시세 참고) */
.group-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}

.group-title span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-sub);
  margin-left: 8px;
}

/* 축소 카드 (시세 참고 단지) */
.complex-grid-compact {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.complex-card-compact {
  padding: 20px;
  background: var(--bg);
}

.complex-card-compact h3 {
  font-size: 1rem;
  padding-right: 0;
}

.complex-card-compact .complex-stat-row {
  font-size: 0.82rem;
  padding: 7px 0;
}

.complex-card-compact .complex-comment {
  background: var(--surface);
}

.complex-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

/* 매물 없는 단지 안내 줄 */
.other-complex-note {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink-sub);
}

.other-complex-note a {
  color: var(--navy);
  font-weight: 700;
  margin-left: 6px;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .complex-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 단지 한 줄 코멘트 — 이 사이트에서 유일하게 사람 목소리가 나오는 자리 */
.complex-comment {
  background: var(--bg);
  border-left: 3px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.complex-comment p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 6px;
}

.complex-comment-at {
  font-size: 0.72rem;
  color: var(--ink-sub);
}

.complex-card .btn {
  margin-top: auto;
}

.browse-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 56px 0 20px;
}

.browse-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.browse-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.browse-filters select {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
}

.browse-filters select:focus {
  outline: none;
  border-color: var(--navy);
}

.browse-count {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

.browse-asof {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-sub);
  background: var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}

.listing-ref {
  font-size: 0.72rem;
  color: var(--line);
  text-align: right;
  margin-top: 6px;
}

.listing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.listing-ref-inline {
  font-family: "D2Coding", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-sub);
  background: var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  flex: none;
}

.listing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.listing-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.listing-badge.badge-accent {
  background: var(--navy);
  color: var(--surface);
}

.listing-badge.badge-good {
  background: var(--navy-2);
  color: var(--surface);
}

.listing-badge.badge-warn {
  background: var(--navy);
  color: var(--surface);
}

.listing-badge.badge-neutral {
  background: var(--navy-tint);
  color: var(--navy);
}

.theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}

.theme-chip {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-sub);
  cursor: pointer;
  transition: all 0.15s;
}

.theme-chip:hover {
  border-color: var(--navy);
}

.theme-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--surface);
}

/* ---------------- About page ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* 사무소 사진이 세로형이라 세로 비율로 맞춥니다 */
.about-photo {
  aspect-ratio: 4/5;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-sub);
  font-size: 0.95rem;
  font-weight: 700;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 사진 파일이 아직 없을 때만 안내 문구가 나옵니다 */
.about-photo.is-empty::after,
.agent-photo.is-empty::after {
  content: "사진 준비 중";
  color: var(--ink-sub);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------------- 대표 소개 ---------------- */
/* 사진은 이름·직함 왼쪽에서 위쪽에 맞춰 세웁니다.
   주인공은 글이고 사진은 옆에서 거드는 역할이라, 세로로 길게 두지 않고
   220px 정사각으로 줄였습니다. */
.agent-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.agent-photo {
  flex: none;
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 세로 사진(698x831)을 정사각에 담으면 위아래가 조금 잘립니다.
   20% 로 두면 머리 위 여백과 턱 아래 여백이 비슷하게 남습니다. */
.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.agent-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.agent-text h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.agent-text p {
  font-size: 0.94rem;
  color: var(--ink-sub);
  margin-bottom: 12px;
}

.agent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* 홈 화면 대표 소개 (축약) */
.agent-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}

.agent-strip-photo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--line);
}

/* 미리 정사각으로 잘라둔 썸네일(ceo-thumb.jpg)을 씁니다.
   원본을 그대로 줄이면 얼굴이 거칠어 보여서입니다. */
.agent-strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agent-strip-photo.is-empty {
  display: none;
}

.agent-strip-text {
  flex: 1 1 320px;
}

.agent-strip-text p {
  font-size: 0.9rem;
  color: var(--ink-sub);
  margin: 4px 0 0;
}

@media (max-width: 600px) {
  .agent-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------- 사무소 사진 ---------------- */
.office-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.office-shot {
  margin: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.office-shot img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.office-shot figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ink-sub);
  text-align: center;
}

@media (max-width: 700px) {
  .agent-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  /* 모바일에서는 사진이 글 위로 올라갑니다. 화면 폭의 절반을 넘지 않게 묶어둡니다. */
  .agent-photo {
    width: 180px;
    max-width: 50%;
  }
  .agent-actions {
    justify-content: center;
  }
  .office-gallery {
    grid-template-columns: 1fr;
  }
}

.about-text h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--ink-sub);
  margin-bottom: 14px;
  word-break: keep-all;
}

/* 소개글 안에서 꼭 기억하셨으면 하는 한마디("노란 간판이 보이면…")만 진하게 */
.about-text p strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------------- 숫자로 보는 정직한부동산 (사무소 소개) ----------------
   타일 한 칸은 위에서부터 [작은 라벨] → [큰 값] → [설명 한 줄] 3단입니다.

   ※ 2×2로 두는 이유
     이 묶음은 사진 옆 절반 폭 칸(약 520px) 안에 있습니다. 네 칸을 한 줄로
     펴면 한 칸이 120px 밖에 안 되어 "매일 발행"이 "매일 발/행"처럼 잘립니다.
     그래서 넓은 화면에서도 2×2로 둡니다. */
.stat-bridge {
  margin-top: 4px;
  font-weight: 700;
  color: var(--ink) !important;
}

.stat-heading {
  margin-top: 26px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.stat-box {
  text-align: center;
  padding: 16px 12px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  /* 단어 중간에서 줄이 바뀌지 않도록 (예: "협력부/동산" 금지) */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 타일 위 얇은 색 포인트. 빼고 싶으시면 HTML에서 accent-* 클래스만 지우세요. */
.stat-box.accent-data { border-top-color: var(--data); }
.stat-box.accent-navy { border-top-color: var(--navy); }
.stat-box.accent-plum { border-top-color: #5B4B8A; }

.stat-box .stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-sub);
  line-height: 1.5;
}

.stat-box .num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 4px;
}

/* 실제 숫자가 들어가는 칸만 주황 — 주황은 숫자 전용이라는 규칙을 지킵니다 */
.stat-box.accent-data .num {
  color: var(--data);
}

.stat-box .label {
  font-size: 0.9rem;
  color: var(--ink-sub);
  line-height: 1.55;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.credential-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.credential-card:hover {
  box-shadow: var(--shadow-md);
}

.credential-card h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
  word-break: keep-all;
}

/* 제목 옆 괄호 보충 (최대 2억 보장). 줄이 바뀌어도 괄호가 통째로 넘어갑니다 */
.credential-sub {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--data);
  white-space: nowrap;
}

.credential-card p {
  font-size: 0.9rem;
  color: var(--ink-sub);
}

/* ---------------- Location page ---------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--ink);
}

.info-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row .label {
  font-size: 0.8rem;
  color: var(--ink-sub);
}

.info-row .value {
  font-weight: 700;
  color: var(--ink);
}

.transit-list {
  margin-top: 26px;
}

.transit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.transit-badge {
  background: var(--navy);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 2px;
}

.transit-text {
  font-size: 0.9rem;
  color: var(--ink-sub);
}

.info-card .btn {
  margin-top: 20px;
}

/* ---------------- Contact page (매물의뢰 / 매물상담) ---------------- */
.contact-tabs {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.contact-tabs button {
  flex: 1;
  padding: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.contact-tabs button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--surface);
}

.contact-form-panel {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-form-panel.active {
  display: block;
}

.contact-form-panel h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-form-panel .form-desc {
  color: var(--ink-sub);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-sub);
  font-size: 0.8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 22px;
  font-size: 0.84rem;
  color: var(--ink-sub);
  line-height: 1.65;
}

.consent-box .consent-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.88rem;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
}

/* 스팸 방지용 미끼 칸.
   화면 밖으로만 밀어두면 스크린리더가 읽고 검색엔진에도 잡히므로
   display:none 으로 완전히 감춥니다(HTML 쪽에 aria-hidden 도 함께). */
.hidden-field {
  display: none;
}

.thanks-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 32px;
}

.thanks-box h1 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--ink);
}

.thanks-box p {
  color: var(--ink-sub);
  margin-bottom: 28px;
}

/* ---------------- Mobile sticky bar ---------------- */
.mobile-stickybar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(35, 42, 51, 0.08);
}

.mobile-stickybar-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.mobile-stickybar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  border-left: 1px solid var(--line);
}

.mobile-stickybar a:first-child {
  border-left: none;
}

/* 마지막 칸은 주요 행동(문의)이라 주황으로 강조 */
.mobile-stickybar a:last-child {
  background: var(--data);
  color: var(--surface);
  border-left: none;
}

/* 카카오톡 칸을 넣으실 때 이 클래스를 붙이면 카카오 노란색이 적용됩니다 */
.mobile-stickybar a.sb-kakao {
  background: #FEE500;
  color: #3C1E1E;
  border-left: none;
}

/* ---------------- PC sticky sidebar ---------------- */
.pc-sidebar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  width: 240px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(35, 42, 51, 0.1);
  padding: 20px;
}

.pc-sidebar .sb-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--navy);
  padding: 8px 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.pc-sidebar form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.pc-sidebar input {
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
}

.pc-sidebar input:focus {
  outline: none;
  border-color: var(--navy);
}

.pc-sidebar .sb-submit {
  background: var(--data);
  color: var(--surface);
  border: none;
  border-radius: var(--radius);
  padding: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.pc-sidebar .sb-submit:hover {
  background: var(--data-2);
}

.pc-sidebar .sb-yt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  color: var(--ink-sub);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.pc-sidebar .sb-yt:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.pc-sidebar .sb-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  color: var(--ink-sub);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  border-radius: 6px;
}

.pc-sidebar .sb-close:hover {
  background: var(--navy-tint);
  color: var(--navy);
}

/* 접힌 상태 — 작은 버튼만 남아 본문을 가리지 않습니다 */
.pc-sidebar.collapsed {
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  background: none;
}

.pc-sidebar.collapsed > *:not(.sb-open) {
  display: none;
}

.sb-open {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: var(--data);
  color: var(--surface);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(35, 42, 51, 0.18);
}

.sb-open:hover {
  background: var(--data-2);
}

.pc-sidebar.collapsed .sb-open {
  display: inline-flex;
}

.pc-sidebar .sb-sent {
  display: none;
  text-align: center;
  color: var(--good, #1f8a5f);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 0;
}

@media (max-width: 900px) {
  .pc-sidebar {
    display: none;
  }
  .mobile-stickybar {
    display: block;
  }
  body {
    padding-bottom: 56px;
  }
}

/* ---------------- Responsive ---------------- */
@media (min-width: 1040px) {
  .phone-badge {
    display: flex;
  }
}

@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .complex-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    order: -1;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .credential-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1050;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.nav-2line {
    align-items: flex-start;
  }

  /* 모바일에서는 드롭다운을 펼친 채로 보여줍니다 */
  .nav-dropdown {
    display: block;
  }

  .nav-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }

  .nav-dropdown-menu a {
    padding: 12px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta .btn-primary.desktop-only {
    display: none;
  }

  .quick-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .quick-search-form .btn {
    grid-column: 1 / -1;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row .btn {
    grid-column: 1 / -1;
  }

  .type-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 96px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  section {
    padding: 64px 0;
  }
  .value-grid,
  .listing-grid,
  .complex-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .quick-search {
    margin-top: -40px;
    padding: 16px;
  }
  .quick-search-form {
    grid-template-columns: 1fr;
  }
  .data-strip {
    grid-template-columns: 1fr;
  }
  .data-strip-item {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .data-strip-item:first-child {
    border-top: none;
  }
  /* 모바일에서도 2×2를 유지합니다 (한 줄 1칸으로 늘어놓으면 너무 길어집니다) */
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-box .num {
    font-size: 1.3rem;
  }
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .contact-form-panel {
    padding: 22px 18px;
  }
}

/* ===================================================
   작업지시서 v3 — "매일 숫자를 발행하는 부동산"
   히어로 신뢰 스트립 · 뉴스티커 · DATA 섹션 · 매물카드 실거래 줄 ·
   전화 전환 마감
=================================================== */

/* ---------------- 헤더 뉴스티커 (D-4) ----------------
   사이트가 "살아있다"는 느낌을 주는 얇은 띠.
   데이터가 낡으면 js/market.js 가 아예 띄우지 않습니다. */
.news-ticker {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--navy-2);
  overflow: hidden;
}

.news-ticker[hidden] {
  display: none;
}

.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
}

.news-ticker-tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: var(--data);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.news-ticker-view {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
}

.news-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  padding: 0 26px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  position: relative;
}

.ticker-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.28);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 움직임을 불편해하시는 분을 위한 설정을 존중합니다 */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ---------------- 히어로 신뢰 스트립 (A-4) ---------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  word-break: keep-all;
}

.trust-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* ---------------- DATA 섹션 (B) ---------------- */
.data-section {
  background: var(--bg);
}

/* 이번 달 집계 3칸 */
.monthly-rollup {
  max-width: 720px;
  margin: 0 auto 36px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.monthly-rollup[hidden] {
  display: none;
}

.rollup-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-sub);
  text-align: center;
  margin-bottom: 12px;
}

.rollup-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.rollup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-left: 1px solid var(--line);
}

.rollup-item:first-child {
  border-left: none;
}

.rollup-label {
  font-size: 0.82rem;
  color: var(--ink-sub);
  word-break: keep-all;
}

.rollup-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--data);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.data-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.data-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.data-card-when {
  align-self: center;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.data-card-what {
  flex: 1;
  font-size: 0.94rem;
  color: var(--ink);
  word-break: keep-all;
}

.data-card .btn {
  align-self: center;
  min-width: 160px;
}

/* ---------------- 오늘의 실거래 한 줄 (D-2) ---------------- */
.daily-pulse {
  max-width: 760px;
  margin: 0 auto 24px;
  background: var(--data-bg);
  border: 1px solid var(--data);
  border-radius: var(--radius);
  padding: 12px 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.daily-pulse[hidden] {
  display: none;
}

.daily-pulse strong {
  color: var(--data);
  font-weight: 900;
}

.daily-pulse a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.daily-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--data);
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---------------- 데일리 미디어 (영상 + 블로그) ---------------- */
.daily-media {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.daily-media-video[hidden] {
  display: none;
}

/* 영상이 숨겨졌을 때는 남은 칸이 전체를 쓰도록 */
.daily-media:has(.daily-media-video[hidden]) {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.uploads-caption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-sub);
}

/* ---------------- 주간 결산 (D-3) ---------------- */
.weekly-embed {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------------- 무료 시세 진단 근거 (E-3) ---------------- */
.valuation-basis {
  margin-top: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  word-break: keep-all;
}

.valuation-basis[hidden] {
  display: none;
}

/* ---------------- 전화 문턱 낮추기 (E-1) ---------------- */
.page-hero-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.page-hero-call .btn {
  min-width: 220px;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.page-hero-call .cta-phone-note {
  margin-top: 0;
}

.cta-phone-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-sub);
  word-break: keep-all;
}

/* ---------------- 정렬 기준 안내 (C-4) ---------------- */
.browse-sort-note {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-sub);
  word-break: keep-all;
}

/* ---------------- 매물 카드 : 가격·거래형태 (C-2) ---------------- */
.listing-price-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 거래형태는 색으로 구분합니다. 주황(--data)은 숫자 전용이라
   여기에는 쓰지 않습니다. */
.listing-deal {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.listing-deal.deal-sale   { background: #16304A; }  /* 매매 - 딥네이비 */
.listing-deal.deal-jeonse { background: #1F6B4A; }  /* 전세 - 초록 */
.listing-deal.deal-rent   { background: #5B4B8A; }  /* 월세 - 보라 */

/* 매물 카드의 "최근 실거래" 비교 줄(.listing-trade)은 2026-08-24 에 걷어냈습니다.
   실거래 수치는 단지 차원에서만 보여줍니다 — 자세한 이유는 js/listing-card.js 주석 참고. */

/* ---------------- 매물 카드 : 전화 / 문의 두 갈래 (C-5) ---------------- */
.listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.listing-actions .btn {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.listing-call-ref {
  font-family: "D2Coding", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

/* ---------------- 모바일 하단 고정 바 (E-2) ---------------- */
.mobile-stickybar a.sb-call {
  background: var(--data);
  color: var(--surface);
  border-left: none;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.mobile-stickybar a.sb-valuation {
  background: var(--navy);
  color: var(--surface);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------------- 반응형 ---------------- */
@media (max-width: 900px) {
  .data-card-grid {
    grid-template-columns: 1fr;
  }
  .daily-media {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .news-ticker-inner {
    height: 34px;
    gap: 10px;
  }
  .ticker-item {
    font-size: 0.78rem;
    padding: 0 18px;
  }
  .trust-strip li {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .rollup-items {
    grid-template-columns: 1fr;
  }
  .rollup-item {
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 7px 0;
  }
  .rollup-item:first-child {
    border-top: none;
  }
  .rollup-value {
    font-size: 1.2rem;
  }
  .listing-price {
    font-size: 1.75rem;
  }
  .listing-actions {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   분양정보 · MGM (bunyang.html)
=================================================== */

.bunyang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.bunyang-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.bunyang-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

.bunyang-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bunyang-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bunyang-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bunyang-status {
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.bunyang-status.status-live { background: var(--data); }   /* 분양중 */
.bunyang-status.status-soon { background: var(--navy); }   /* 사전안내 */
.bunyang-status.status-done { background: #7A8492; }       /* 완판 */

.bunyang-partner {
  background: #5B4B8A;
  color: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.bunyang-brand {
  background: var(--navy-tint);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.bunyang-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bunyang-summary {
  color: var(--ink-sub);
  font-size: 0.94rem;
  line-height: 1.7;
  word-break: keep-all;
  flex: 1;
}

.bunyang-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.bunyang-actions .btn {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ---------------- 단지 상세 ---------------- */
.bunyang-detail {
  margin-top: 24px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.bunyang-detail[hidden] {
  display: none;
}

.bunyang-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bunyang-detail-head h3 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.bunyang-close {
  flex: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-sub);
  cursor: pointer;
}

.bunyang-close:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.bunyang-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}

.bunyang-points li {
  background: var(--navy-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  word-break: keep-all;
}

/* 공고 전이라 비워둔 자리 — 왜 비었는지 밝혀둡니다 */
.bunyang-pending {
  margin-top: 14px;
  background: var(--data-bg);
  border: 1px solid var(--data);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: keep-all;
}

.bunyang-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bunyang-cta .btn {
  min-width: 200px;
  font-variant-numeric: tabular-nums;
}

.bunyang-partner-note {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  word-break: keep-all;
}

@media (max-width: 600px) {
  .bunyang-grid {
    grid-template-columns: 1fr;
  }
  .bunyang-actions {
    grid-template-columns: 1fr;
  }
  .bunyang-detail {
    padding: 20px 18px;
  }
  .bunyang-cta .btn {
    width: 100%;
    min-width: 0;
  }
}

/* 내부 확인용 임시 이미지 표시 (배포 시 제외되는 _local 폴더) */
.bunyang-thumb {
  position: relative;
}

.bunyang-localmark {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(35, 42, 51, 0.86);
  color: #fff;
  border-radius: 4px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===================================================
   매물 카드 높이 정렬 — 고정 슬롯 (2026-08-25)

   카드마다 뱃지가 있고 없고, 설명이 한 줄이고 두 줄이고에 따라
   가격·방향·버튼의 세로 위치가 제각각이었습니다.
   각 영역에 고정 높이를 주어, 나란히 놓았을 때 같은 줄끼리
   수평으로 맞도록 했습니다. 내용이 없으면 빈칸으로 두되 높이는 유지합니다.
=================================================== */

/* 카드 전체가 같은 높이로 늘어나고, 안에서 세로로 쌓입니다 */
.listing-grid > .listing-card {
  height: 100%;
}

/* ① 뱃지 줄 — 뱃지가 없어도 한 줄 자리를 비워둡니다.
   높이는 아웃라인 뱃지(테두리 1.5px 포함) 실제 높이에 맞춥니다. */
.listing-card .listing-badges {
  min-height: 28px;
  margin-bottom: 0;
  align-items: flex-start;
}

.listing-card .listing-badge {
  line-height: 1.5;
}

/* ② 가격 줄 — 매매(한 줄)와 월세(두 줄)가 같은 높이를 차지하도록 */
.listing-card .listing-price-row {
  min-height: 48px;
  align-items: center;
}

/* 월세는 두 줄이라 글자를 줄여 한 줄 높이 안에 넣습니다 */
.listing-card .listing-price.is-two-line {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ③ 단지명 한 줄 + 스펙 두 줄 */
.listing-card .listing-title {
  min-height: 28px;
  word-break: keep-all;
}

.listing-card .listing-meta {
  min-height: 49px;
  align-content: flex-start;
}

/* ④ 설명 코멘트 — 두 줄로 고정. 길면 …로 줄이고 전체는 마우스를 올리면 보입니다 */
.listing-card .listing-note {
  height: 55px;
  margin-top: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: keep-all;
}

/* 설명이 없는 매물은 칸만 남기고 안 보이게 */
.listing-card .listing-note.is-empty {
  background: transparent;
}

/* ⑤ 방향 / 입주가능일
   입주가능일이 "2026년12월11일 이후 (협의가능)"처럼 두 줄이 되는 경우가
   있어, 그 경우까지 담기는 높이로 잡습니다. */
.listing-card .listing-specs {
  min-height: 89px;
}

/* ⑥ 버튼은 위 내용이 어떻든 항상 카드 맨 아래 */
.listing-card .listing-actions {
  margin-top: auto;
  padding-top: 14px;
}

/* 모바일 한 칸일 때도 같은 규칙을 씁니다. 버튼만 세로로 쌓이므로
   그만큼 자리를 더 줍니다. */
@media (max-width: 600px) {
  /* 가격 슬롯은 데스크톱과 같은 48px 을 유지합니다.
     더 줄이면 월세(두 줄)가 슬롯을 넘칩니다. */
  .listing-card .listing-note {
    height: 52px;
  }
}

/* ===================================================
   단지 시세 카드 높이 정렬 — 고정 슬롯 (2026-08-25)

   단지마다 병기 평형이 있고 없고(월성e편한은 84㎡ 하나만),
   뱃지가 한 줄이고 두 줄이고(월드메르디앙은 "대형 평형 중심 단지"가 붙어
   두 줄) 해서 메모 시작 위치가 카드마다 달랐습니다.
   뱃지 줄과 숫자 묶음에 고정 높이를 주고, 메모가 남는 공간을 채우게 해서
   메모 박스의 위아래가 카드끼리 맞도록 했습니다.
=================================================== */

/* ① 뱃지 줄 — 주력 카드는 한 줄, 참고 카드는 두 줄 자리를 잡아둡니다
   (참고 카드는 폭이 215px 남짓이라 뱃지 두 개면 두 줄이 됩니다) */
.complex-card .complex-flags {
  min-height: 28px;
}

.complex-card-compact .complex-flags {
  min-height: 62px;
}

/* ② 숫자 묶음(호가·실거래·준공·세대수…) 고정 높이
   병기 평형이 없는 단지도 같은 자리를 차지합니다 */
#complexGridMain .complex-card .complex-stats {
  min-height: 382px;
}

.complex-card-compact .complex-stats {
  min-height: 236px;
}

/* ③ 메모는 남는 공간을 채웁니다 — 위는 숫자 묶음 바로 아래,
      아래는 버튼 바로 위에서 카드끼리 딱 맞습니다 */
.complex-card .complex-comment {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.complex-card .complex-comment p {
  flex: 1;
}

/* ④ "2026-08-25 기준 · 정직한부동산 메모" 가 낱말 단위로만 줄바꿈되게 */
.complex-comment-at {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  margin-top: 8px;
}

.complex-comment-at > span {
  white-space: nowrap;
}

.complex-comment-at > span + span::before {
  content: "· ";
}

/* 600px 아래에서는 카드가 한 줄에 하나씩 쌓입니다.
   나란히 놓이지 않으니 높이를 맞출 이유가 없어 고정을 풉니다.
   (600~900px 구간은 두 칸이라 위 고정값을 그대로 씁니다) */
@media (max-width: 600px) {
  .complex-card .complex-flags,
  .complex-card-compact .complex-flags {
    min-height: 0;
  }
  #complexGridMain .complex-card .complex-stats,
  .complex-card-compact .complex-stats {
    min-height: 0;
  }
}

/* 병기 평형이 없는 단지에 넣는 빈 칸.
   테두리만 남기고 내용은 비워, 아래 줄(준공·세대수)이 옆 카드와 맞도록 합니다. */
.complex-key.is-empty {
  min-height: 80px;
}

#complexGridMain .complex-key.is-empty {
  min-height: 87px;
}

/* 빈 칸에는 구분선을 긋지 않습니다 — 내용 없는 줄에 선만 남으면 어색합니다 */
.complex-key.is-empty {
  border-bottom: none;
}

/* ===================================================
   매물 카드 색 정리 (2026-08-25)

   카드 하나 안에 쓰이는 색을 남색·주황·회색톤으로 줄였습니다.
   빨강은 "급매" 뱃지 하나에만 씁니다.
   평면도 이미지가 화려하므로 틀은 최대한 가라앉힙니다.
=================================================== */

/* ---------- 카드 틀 ---------- */
.listing-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

/* 마우스를 올리면 그림자만 살짝 — 움직이거나 색이 변하지 않습니다 */
.listing-card:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- 거래유형 뱃지 : 배경색 + 흰 글씨 ---------- */
.listing-deal {
  border-radius: var(--radius);
}

.listing-deal.deal-sale   { background: var(--navy); }
.listing-deal.deal-jeonse { background: var(--jeonse); }
.listing-deal.deal-rent   { background: var(--rent); }

/* 매물번호는 정보값이 낮아 회색 아웃라인으로 눌러둡니다 */
.listing-ref-inline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-sub);
  border-radius: var(--radius);
  padding: 2px 8px;
}

/* ---------- 상태 뱃지 ----------
   급매만 색을 채우고, 나머지는 전부 같은 아웃라인 모양입니다.
   종류마다 색을 다르게 하면 무엇이 중요한지 알 수 없게 됩니다. */
.listing-badge {
  border-radius: var(--radius);
  padding: 3px 10px;
}

.listing-badge.badge-warn {          /* 급매 — 카드에서 유일한 빨강 */
  background: var(--urgent);
  color: var(--surface);
  border: 1.5px solid var(--urgent);
}

.listing-badge.badge-accent,
.listing-badge.badge-good,
.listing-badge.badge-neutral {       /* 추천·즉시입주·로얄층·앞산뷰 등 */
  background: var(--surface);
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

/* ---------- 가격 ----------
   급매여도 가격 색은 그대로 둡니다. 강조는 뱃지가 이미 하고 있어서,
   색을 한 번 더 얹으면 카드가 시끄러워집니다. */
.listing-price {
  color: var(--price);
}

/* ---------- 설명 코멘트 ---------- */
.listing-card .listing-note {
  background: var(--data-bg);
  border-left: 3px solid var(--data);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #6B665C;
}

.listing-card .listing-note.is-empty {
  background: transparent;
  border-left-color: transparent;
}

/* ---------- 버튼 ----------
   주황을 꽉 채운 버튼은 카드에서 [전화하기] 하나뿐입니다. */
.listing-actions .listing-call {
  background: var(--data);
  color: var(--surface);
  border: 1.5px solid var(--data);
}

.listing-actions .listing-call:hover {
  background: var(--data-2);
  border-color: var(--data-2);
}

.listing-actions .btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.listing-actions .btn-outline:hover {
  background: var(--navy-tint);
}

/* ---------- 평면도 썸네일 ---------- */
.listing-thumb {
  background: var(--bg);
}

/* "크게 보기" 안내도 톤을 맞춥니다 */
.listing-thumb:has(.listing-plan)::after {
  border-color: var(--line);
  color: var(--ink-sub);
  border-radius: var(--radius);
}

.listing-thumb-type {
  border-radius: var(--radius);
  border-color: var(--line);
}

/* ---------- 다른 카드들도 같은 라운드로 ---------- */
.complex-card,
.bunyang-card,
.stat-box,
.credential-card,
.value-card,
.data-card {
  border-radius: var(--radius-card);
}

/* 금액은 어느 화면에서나 같은 색을 씁니다 (매물 가격 · 시세 카드 호가·실거래) */
.complex-key-value.is-money,
.complex-stat-row .value.value-money {
  color: var(--price);
}

/* 가격 글자가 길면 [매매][EP-001] 묶음이 아래로 접힙니다.
   억지로 한 줄에 밀어넣으면 가격이 잘리므로, 접히는 경우까지 담기도록
   가격줄 높이를 넉넉히 잡습니다. 모든 카드가 같은 높이라 줄은 맞습니다. */
.listing-card .listing-price-row {
  min-height: 60px;
}
