/* 봄길부동산 — 교육용 가상 자료 */
:root {
  --green: #2F7D4F;      /* 봄길 초록: 제목·주요 버튼 */
  --green-dark: #24613D;
  --sprout: #A8D5A2;     /* 새싹 연두: 강조 배경·선택된 필터 */
  --sprout-soft: #E4F2E1;
  --ivory: #FFF8E7;      /* 아이보리: 페이지 바탕 */
  --ivory-deep: #F6EDD5;
  --ink: #26302A;        /* 짙은 글자: 본문 */
  --muted: #5E6A62;
  --line: #E2D9C2;
  --warn-bg: #FFE9A8;
  --warn-ink: #5A4300;
  --card: #FFFFFF;
  --radius: 16px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* 교육용 표시 */
.edu-bar {
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
}
.fake {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
.small-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.notice-box {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  margin: 16px 0 20px;
}

/* 머리 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--green); text-decoration: none; }
.logo-mark { font-size: 22px; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--sprout-soft); color: var(--green-dark); }
.menu-btn {
  display: none;
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

/* 첫 화면 */
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 40, 28, 0.62) 0%, rgba(20, 40, 28, 0.25) 55%, rgba(20, 40, 28, 0) 80%),
    linear-gradient(180deg, rgba(20, 40, 28, 0) 35%, rgba(20, 40, 28, 0.6) 100%);
}
.hero-text { position: relative; color: #fff; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); margin: 14px 0 22px; max-width: 34em; }
.badge { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; font-size: 14px; }
.photo-note { font-size: 12px; opacity: .85; margin: 18px 0 0; }
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
}
.btn:hover { background: var(--green-dark); }

/* 공통 섹션 */
.section { padding: 72px 0; }
.section.alt { background: var(--ivory-deep); }
.eyebrow { color: var(--green); font-weight: 800; margin: 0 0 6px; font-size: 15px; }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--green-dark); letter-spacing: -0.01em; }
.lead { font-size: 18px; max-width: 46em; margin: 16px 0 0; }
.sub-title { font-size: 20px; margin: 40px 0 16px; }

/* 소개 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h4 { font-size: 18px; margin: 8px 0 6px; }
.info-card p { margin: 0; color: var(--muted); }
.num { display: inline-block; font-weight: 800; color: var(--green); background: var(--sprout-soft); border-radius: 8px; padding: 2px 8px; font-size: 14px; }
.strengths { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.strengths li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; background: var(--sprout-soft); border-radius: 12px; padding: 14px 18px; }
.strengths strong { color: var(--green-dark); }
.greeting { margin: 40px 0 0; padding: 24px 28px; background: var(--card); border-left: 6px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.greeting p { margin: 0 0 12px; font-size: 17px; }
.greeting footer { font-weight: 700; color: var(--green-dark); }

/* 필터 */
.filters { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.filter-row { display: flex; align-items: center; gap: 12px; }
.filter-label { font-weight: 800; min-width: 36px; color: var(--green-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 40px;
  cursor: pointer;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--sprout); border-color: var(--green); color: #173F27; }
.chip:focus-visible, .btn:focus-visible, .nav a:focus-visible, .menu-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.chip-count { font-size: 12px; font-weight: 700; opacity: .7; margin-left: 2px; }
.result-count { font-weight: 700; color: var(--muted); margin: 16px 0 12px; }

/* 매물 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-photo { position: relative; aspect-ratio: 3 / 2; background: var(--ivory-deep); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-fake { position: absolute; left: 10px; bottom: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.deal-tag { position: absolute; top: 10px; left: 10px; color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.deal-매매 { background: var(--green); }
.deal-전세 { background: #3B6FA0; }
.deal-월세 { background: #B65A2C; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { margin: 0; display: flex; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.card-meta span + span::before { content: "·"; margin-right: 8px; }
.card h3 { font-size: 19px; }
.price { margin: 2px 0 4px; font-size: 20px; font-weight: 800; color: var(--green-dark); }
.specs { list-style: none; margin: 0; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: grid; gap: 3px; font-size: 14px; }
.specs b { display: inline-block; min-width: 52px; color: var(--muted); font-weight: 700; }
.feature { margin: 6px 0 0; font-weight: 600; }
.feature::before { content: "✔ "; color: var(--green); }
.addr { margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--muted); }
.addr em { font-style: normal; color: var(--warn-ink); font-weight: 700; }
.empty { text-align: center; padding: 40px 16px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }

/* 가상 위치 */
.loc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.fake-map { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.fake-map svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.fake-map figcaption { font-size: 14px; color: var(--muted); padding: 10px 4px 2px; }
.m-label { font-size: 13px; font-weight: 700; fill: #3D5A45; font-family: var(--font); }
.m-water { fill: #3D6A7A; font-size: 12px; }
.m-road { font-size: 11px; font-weight: 700; fill: #8A8068; font-family: var(--font); }
.m-station { font-size: 13px; font-weight: 800; fill: #fff; font-family: var(--font); }
.m-pin { font-size: 11px; font-weight: 800; fill: var(--green-dark); font-family: var(--font); }
.m-pin-sm { font-size: 9.5px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.m-n { font-size: 12px; font-weight: 800; fill: var(--muted); font-family: var(--font); }
.info-list { margin: 0; display: grid; gap: 14px; }
.info-list > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.info-list dt { font-weight: 800; color: var(--green-dark); font-size: 14px; }
.info-list dd { margin: 4px 0 0; }
.info-list .fake { margin-left: 0; margin-top: 6px; display: table; }
.info-list.compact > div { border: 0; padding: 0; background: none; }

/* 문의 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h4 { font-size: 18px; margin-bottom: 14px; color: var(--green-dark); }
.checklist { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* 바닥 */
.site-footer { background: var(--ink); color: #DCE3DD; padding: 36px 0 44px; font-size: 14px; }
.site-footer p { margin: 0 0 10px; }
.footer-warn { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; font-size: 16px; padding: 6px 14px; border-radius: 10px; }

/* 반응형 */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .hero { min-height: 440px; }
  .section { padding: 52px 0; }
  .grid3, .cards, .contact-grid { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
  .filter-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .greeting { padding: 18px 20px; }
}
