/* ============================================================
   돈되는부동산 제안용 시안, 스타일 (TASTE 리디자인)
   주색: 로고 「돈」 골드 #f2b632 (골드 위 글자는 #1f1a0e 고정)
   보조: 딥그린(로고 뒷글자, 푸터 배경, 헤드라인 텍스트)
   ============================================================ */

:root {
  --gold: #f2b632;
  --gold-dark: #8a6d1d;
  --gold-bg: #fdf6e3;
  --on-gold: #1f1a0e;

  --green-950: #16351a;
  --green-900: #1e4a22;

  --ink: #1d2a21;
  --mut: #5f6e64;
  --faint: #8b978f;
  --line: #e8e6df;
  --bg: #fcfcfa;
  --alt: #f7f5ef;
  --paper: #fdfdfb;

  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { vertical-align: middle; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 26px; font-weight: 750; color: var(--green-900); }
.h2-sub { font-size: 14px; font-weight: 500; color: var(--mut); margin-left: 8px; }

:focus-visible {
  outline: 2px solid #f2b632;
  outline-offset: 2px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }

.section { padding: 64px 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.section-note { margin: 6px 0 0; font-size: 14.5px; color: var(--mut); }
.link-more { font-size: 14.5px; font-weight: 650; color: var(--gold-dark); white-space: nowrap; padding: 10px 0; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 안내 띠 ---------- */

.demo-band {
  background: var(--gold-bg);
  color: var(--gold-dark);
  border-bottom: 1px solid #f0e3bc;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  letter-spacing: 0.01em;
}

/* ---------- 유틸바 ---------- */

.utilbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.utilbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: var(--mut);
}
.utilbar a { display: inline-block; padding: 11px 0; }
.utilbar a:hover { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.util-tel { font-weight: 700; color: var(--ink); }

/* ---------- 헤더 / GNB ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand { display: flex; flex-direction: column; gap: 1px; padding: 10px 0; }
.wordmark {
  font-size: 25px;
  font-weight: 830;
  letter-spacing: -0.02em;
  color: var(--green-900);
}
.wm-don { color: var(--gold); }
.slogan { font-size: 12.5px; color: var(--mut); letter-spacing: 0.02em; }

.gnb {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gnb::-webkit-scrollbar { display: none; }
.gnb a {
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  padding: 12px 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.gnb a:hover {
  text-decoration: underline;
  text-decoration-color: #f2b632;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ---------- 히어로 + 검색 ---------- */

.hero {
  color: #f6f2e8;
  padding: 72px 0 84px;
  border-bottom: 4px solid #f2b632;
}
.hero.hero-photo {
  background:
    linear-gradient(100deg, rgba(14, 24, 16, 0.88) 0%, rgba(20, 38, 24, 0.7) 48%, rgba(20, 38, 24, 0.24) 100%),
    url(../img/pix/hero.jpg) center 60% / cover no-repeat;
}
.hero-title { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; color: #faf7ef; }
.hero-sub { margin: 0 0 34px; font-size: 17px; color: #e3ddcc; }

.searchbox {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  color: var(--ink);
}

.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.type-tab {
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--mut);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 16px;
  min-height: 44px;
  cursor: pointer;
}
.type-tab:hover { border-color: var(--gold-dark); color: var(--ink); }
.type-tab.is-active {
  background: #f2b632;
  border-color: #f2b632;
  color: var(--on-gold);
}

.search-row { display: flex; gap: 10px; }
.search-row select,
.search-row input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 11px 14px;
  min-height: 44px;
  min-width: 0;
}
.search-row select { flex: 0 0 150px; }
.search-row input { flex: 1 1 auto; }
.search-row select:focus, .search-row input:focus {
  outline: 2px solid #f2b632;
  outline-offset: -1px;
}
.btn-search {
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  color: var(--on-gold);
  background: #f2b632;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 30px;
  min-height: 44px;
  cursor: pointer;
}
.btn-search:hover { background: #e3a81f; }

/* ---------- 소개: 좌측 사진 + 우측 원칙 목록 ---------- */

.about-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 44px;
  align-items: center;
}
.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.about-lead { margin: 4px 0 20px; color: var(--mut); font-size: 16.5px; }
.about-list { list-style: none; margin: 0; padding: 0; }
.about-list li { padding: 15px 2px; border-top: 1px solid var(--line); }
.about-list strong { display: block; font-size: 17px; font-weight: 720; }
.about-list span { display: block; font-size: 15px; color: var(--mut); margin-top: 2px; }

/* ---------- 매물 카드 그리드 ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 26, 14, 0.09);
}

.thumb {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb.has-img { background: var(--alt); overflow: hidden; }
.thumb.no-img { background: var(--gold-bg); }
.thumb-type { font-size: 16px; font-weight: 700; color: var(--gold-dark); }
.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .thumb-img { transform: scale(1.03); }
.thumb.is-sold .thumb-img { filter: grayscale(1) opacity(0.82); }

.card-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 3px; }
.card-tag { font-size: 13px; font-weight: 650; color: var(--gold-dark); }
.card-complex { font-size: 17px; font-weight: 740; letter-spacing: -0.01em; }
.card-meta { font-size: 14px; color: var(--mut); }
.card-area { font-size: 14px; color: var(--mut); }
.card-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-price::before {
  content: "";
  flex: 0 0 4px;
  height: 16px;
  border-radius: 2px;
  background: #f2b632;
}
.card-desc {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--mut);
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.no-result {
  text-align: center;
  color: var(--mut);
  padding: 40px 0 10px;
}

/* ---------- 재개발 현황: 표형 목록 ---------- */

.section-banner {
  border-radius: var(--radius);
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  margin: 18px 0 26px;
  display: flex;
  align-items: flex-end;
}
.section-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 26, 18, 0.72), rgba(16, 26, 18, 0.04) 55%);
}
.section-banner p {
  position: relative;
  color: #faf7ef;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  padding: 16px 22px;
}

.redev-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #f2b632;
  font-size: 15.5px;
}
.redev-table th {
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mut);
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.redev-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.redev-table td:first-child { font-weight: 750; white-space: nowrap; }
.redev-table td:last-child { color: var(--mut); font-size: 14.5px; }
.stage-line {
  display: block;
  height: 3px;
  max-width: 200px;
  border-radius: 2px;
  background: #f2b632;
  margin-top: 8px;
}
.redev-src { margin: 20px 0 0; font-size: 13.5px; color: var(--faint); }
.redev-src a { color: var(--gold-dark); font-weight: 650; }
.redev-src a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 소식: 날짜 + 제목 목록 ---------- */

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 4px;
  min-height: 44px;
}
.post-date { flex: 0 0 88px; font-size: 14px; color: var(--mut); font-variant-numeric: tabular-nums; }
.post-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list a:hover .post-title {
  text-decoration: underline;
  text-decoration-color: #f2b632;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.post-cat { flex: 0 0 auto; font-size: 12.5px; color: var(--faint); }

/* ---------- 바로가기: 텍스트 링크 목록 ---------- */

.quick-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 36px;
}
.quick-list li { border-bottom: 1px solid var(--line); }
.quick-list a { display: block; padding: 14px 2px; min-height: 44px; }
.quick-list strong { display: block; font-size: 16px; font-weight: 720; }
.quick-list span { display: block; font-size: 14px; color: var(--mut); margin-top: 1px; }
.quick-list a:hover strong {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 오시는 길: 골드 밴드 ---------- */

.section-gold { background: #f2b632; color: var(--on-gold); }
.section-gold h2 { color: var(--on-gold); }
.loc-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 44px;
  align-items: center;
}
.loc-name { margin: 0 0 14px; font-size: 17px; font-weight: 750; }
.loc-addr { margin: 0 0 4px; font-size: 19px; font-weight: 750; }
.loc-sub { font-size: 15px; font-weight: 500; margin-left: 6px; }
.loc-guide { margin: 0 0 12px; font-size: 15.5px; font-weight: 600; }
.loc-tel { margin: 0 0 22px; font-size: 16px; }
.loc-tel a { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.loc-photo { margin: 0; border-radius: var(--radius); overflow: hidden; height: 300px; }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; }
.location-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section-gold :focus-visible { outline-color: var(--on-gold); }

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 11px 22px;
  min-height: 44px;
  text-align: center;
}
.btn-primary { background: #f2b632; color: var(--on-gold); }
.btn-primary:hover { background: #e3a81f; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--gold-bg); border-color: #ecd9a4; }
.btn-dark { background: var(--on-gold); color: var(--gold-bg); }
.btn-dark:hover { background: #38301a; }
.btn-outline-dark {
  background: transparent;
  color: var(--on-gold);
  border: 1.5px solid var(--on-gold);
}
.btn-outline-dark:hover { background: rgba(31, 26, 14, 0.08); }

/* ---------- 상세 페이지 ---------- */

.breadcrumb { font-size: 14px; color: var(--mut); margin-bottom: 18px; }
.breadcrumb span { margin: 0 4px; color: var(--faint); }
.breadcrumb a:hover { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }

.detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 28px;
  overflow: hidden;
}
.detail-hero {
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.detail-hero.has-img {
  height: 420px;
  background: var(--alt);
  overflow: hidden;
}
.detail-hero.no-img { background: var(--gold-bg); }
.detail-hero .thumb-img { object-fit: contain; background: var(--alt); }
.detail-hero.is-sold .thumb-img { filter: grayscale(1) opacity(0.82); }

.detail-tag { margin: 0 28px 4px; font-size: 14px; font-weight: 650; color: var(--gold-dark); }
.detail-title { font-size: 26px; font-weight: 790; margin: 0 28px 2px; }
.detail-addr { margin: 0 28px 20px; color: var(--mut); font-size: 15.5px; }

.detail-table { margin: 0 28px 24px; border-top: 2px solid #f2b632; }
.detail-row {
  display: flex;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.detail-row dt {
  flex: 0 0 128px;
  padding: 12px 14px;
  background: var(--alt);
  color: var(--mut);
  font-weight: 650;
}
.detail-row dd { flex: 1; margin: 0; padding: 12px 14px; }
.detail-price { font-size: 17px; }
.tbd { color: var(--faint); }

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 28px 18px;
}
.detail-disclaimer {
  margin: 0 28px 10px;
  font-size: 14px;
  color: var(--gold-dark);
  background: var(--gold-bg);
  border: 1px solid #f0e3bc;
  border-radius: var(--radius);
  padding: 11px 14px;
}
.detail-back { margin: 8px 28px 0; font-size: 15px; }
.detail-back a { color: var(--gold-dark); font-weight: 650; }
.detail-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

.detail-missing {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
}
.detail-missing h1 { font-size: 24px; }
.detail-missing p { color: var(--mut); margin: 8px 0 22px; }
.loading { color: var(--mut); text-align: center; padding: 60px 0; }

/* ---------- 갤러리 ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 0 0 6px;
  padding: 0 28px;
}
.g-item {
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0;
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.g-item img { width: 100%; height: 78px; object-fit: cover; display: block; }
.g-item span {
  display: block;
  font-size: 11.5px;
  color: var(--mut);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-item.on { border-color: #f2b632; }
.gallery-credit { font-size: 13px; color: var(--faint); margin: 6px 0 20px; padding: 0 28px; }

/* ---------- 푸터 ---------- */

.site-footer {
  background: var(--green-950);
  color: #ccd8cc;
  padding: 44px 0 40px;
  font-size: 13.5px;
}
.footer-brand {
  font-size: 19px;
  font-weight: 800;
  color: #f3f1e8;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 28px;
  margin: 0 0 18px;
  word-break: keep-all;
}
.footer-info div { display: flex; gap: 10px; }
.footer-info dt { color: #869a87; flex: 0 0 auto; font-weight: 600; }
.footer-info dd { margin: 0; word-break: keep-all; }
.footer-demo {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 230, 220, 0.16);
  color: #9fb0a0;
  font-size: 12.5px;
}
.footer-credit { font-size: 12px; color: #9fb0a0; margin: 8px 0 0; }
.footer-credit a { color: inherit; text-decoration: underline; }

/* ---------- 반응형 ---------- */

@media (max-width: 920px) {
  .hero-title { font-size: 32px; }
  .about-split { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { height: 240px; }
  .quick-list { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .brand { padding-bottom: 2px; }
  .gnb { width: 100%; padding-bottom: 6px; }
  .gnb a { padding: 10px 11px; font-size: 15px; }
  .loc-grid { grid-template-columns: 1fr; gap: 24px; }
  .loc-photo { height: 220px; }
}

@media (max-width: 640px) {
  .section { padding: 46px 0; }
  h2 { font-size: 22px; }
  .hero { padding: 48px 0 60px; }
  .hero-title { font-size: 27px; }
  .search-row { flex-wrap: wrap; }
  .search-row select { flex: 1 1 100%; }
  .search-row input { flex: 1 1 auto; }
  .btn-search { padding: 11px 20px; }
  .type-tab { font-size: 14px; padding: 8px 12px; }
  .quick-list { grid-template-columns: 1fr; }
  .post-list a { flex-wrap: wrap; gap: 4px 12px; }
  .post-title { flex: 1 1 100%; white-space: normal; order: 3; }
  .post-date { flex: 0 0 auto; }

  .redev-table, .redev-table tbody, .redev-table tr, .redev-table td { display: block; }
  .redev-table thead { display: none; }
  .redev-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .redev-table td { padding: 3px 2px; border: 0; }
  .redev-table td:empty { display: none; }
  .redev-table td::before {
    content: attr(data-th);
    display: inline-block;
    min-width: 64px;
    margin-right: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--faint);
  }
  .redev-table td:first-child { white-space: normal; font-size: 17px; }
  .redev-table td:first-child::before { display: none; }
  .stage-line { display: inline-block; vertical-align: middle; width: 72px; margin: 0 0 0 10px; }

  .section-banner { height: 130px; }
  .section-banner p { font-size: 15.5px; }
  .detail-hero.has-img { height: 280px; }
  .detail-tag, .detail-title, .detail-addr, .detail-table, .detail-actions,
  .detail-disclaimer, .detail-back { margin-left: 18px; margin-right: 18px; }
  .gallery, .gallery-credit { padding-left: 18px; padding-right: 18px; }
  .detail-row dt { flex-basis: 96px; }
  .location-actions { flex-direction: column; align-items: stretch; }
  .utilbar-inner { justify-content: space-between; gap: 10px; }
}

/* ---------- 모션 축소 설정 존중 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .card:hover { transform: none; box-shadow: none; }
  .card:hover .thumb-img { transform: none; }
}

/* 검수 보정: 카드 높이 정렬, 한글 줄바꿈, 보조 글자 대비 */
.card { display: flex; flex-direction: column; height: 100%; }
.card-body { flex: 1; }
.card-price { margin-top: auto; }
.card-complex, .card-area, .card-meta, .card-desc, .footer-info dd { word-break: keep-all; }
:root { --faint: #6f7a72; }
