/* 봄길부동산 (교육용 가상 자료) */
:root {
  --green: #2F7D4F;
  --sprout: #A8D5A2;
  --ivory: #FFF8E7;
  --ink: #26302A;
  --muted: #5d6b62;
  --line: #e4dcc6;
  --warn: #FFE08A;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: .9em; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; vertical-align: middle;
  background: var(--warn); color: var(--ink); padding: 2px 8px; border-radius: 999px;
}

/* 교육용 경고 띠 */
.edu-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--warn); color: var(--ink);
  text-align: center; font-size: .9rem; padding: 7px 12px;
  border-bottom: 2px solid #e5b72f;
}

/* 헤더 */
.site-header {
  position: sticky; top: 37px; z-index: 15;
  background: rgba(255, 248, 231, .95); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--green); white-space: nowrap; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--sprout); }

/* 첫 화면 */
.hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(20,40,28,.75)); }
.hero-text { position: relative; z-index: 1; color: #fff; padding: 40px 20px 56px; max-width: 1120px; width: 100%; margin: 0 auto; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.25; margin: 14px 0 10px; }
.hero p { font-size: 1.05rem; margin: 0 0 20px; }
.stamp {
  display: inline-block; background: var(--warn); color: var(--ink); font-weight: 800;
  padding: 6px 14px; border-radius: 8px; border: 2px dashed #b88a00; transform: rotate(-1.5deg);
}
.photo-note { position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0; color: #fff; font-size: .75rem; opacity: .9; }
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
}
.btn:hover { background: #256640; }

/* 섹션 공통 */
.section { padding: 56px 20px; }
.section.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
h2 { color: var(--green); font-size: 1.8rem; margin: 0 0 14px; }
h3 { margin: 32px 0 14px; font-size: 1.25rem; }
h4 { margin: 6px 0; font-size: 1.1rem; }
.lead { font-size: 1.08rem; max-width: 760px; }
.notice {
  background: #FFF3C4; border-left: 5px solid #e5b72f; padding: 10px 14px; border-radius: 8px; margin: 0 0 20px;
}

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.box p { margin: 6px 0; }
.icon { font-size: 1.8rem; }
.strengths { padding-left: 22px; }
.strengths li { margin-bottom: 8px; }
.greeting {
  margin: 28px 0 0; background: #EEF7EC; border-radius: var(--radius); padding: 22px 26px; border-left: 6px solid var(--green);
}
.greeting p { margin: 0 0 8px; font-size: 1.05rem; }
.greeting footer { font-weight: 700; }

/* 필터 */
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 10px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { font-weight: 800; min-width: 36px; }
.chip {
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--green); background: #fff; color: var(--green);
  padding: 7px 16px; border-radius: 999px; min-height: 40px;
}
.chip:hover { background: #EEF7EC; }
.chip.active { background: var(--sprout); color: var(--ink); border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.chip:focus-visible { outline: 3px solid #e5b72f; outline-offset: 2px; }
.count { color: var(--muted); font-weight: 600; margin: 6px 0 16px; }
.empty { text-align: center; padding: 30px; background: var(--ivory); border-radius: var(--radius); }

/* 매물 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge, .badge-fake { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.badge { left: 10px; background: var(--green); color: #fff; }
.badge.deal-전세 { background: #2C6E91; }
.badge.deal-월세 { background: #A0572A; }
.badge-fake { right: 10px; background: var(--warn); color: var(--ink); }
.card-body { padding: 16px 18px 18px; }
.card-meta { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.card h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.price { color: var(--green); font-weight: 800; font-size: 1.1rem; margin: 0 0 10px; }
.specs { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: .9rem; }
.specs li::before { content: "· "; color: var(--green); }
.feature { background: #EEF7EC; border-radius: 8px; padding: 6px 10px; margin: 0 0 10px; font-size: .92rem; }
.card-foot { margin: 0; font-size: .82rem; color: var(--muted); }

/* 가상 위치 */
.location { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
.map-figure { margin: 0; border: 2px dashed var(--green); border-radius: var(--radius); overflow: hidden; background: #FFFDF4; }
.map-figure svg { display: block; width: 100%; height: auto; }
.m-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
.m-road { font-size: 12px; fill: #7a7260; font-weight: 600; }
.m-office { font-size: 14px; font-weight: 800; fill: #fff; }
.m-note { font-size: 13px; font-weight: 700; fill: #8a6d00; }
.info { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info dt { font-weight: 800; color: var(--green); margin-top: 10px; }
.info dt:first-child { margin-top: 0; }
.info dd { margin: 2px 0 0; }

/* 문의 안내 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-grid ol { padding-left: 20px; margin: 6px 0; }
.fake { font-weight: 700; text-decoration: line-through dotted #b88a00; text-decoration-thickness: 1px; }

/* 푸터 */
.site-footer { background: var(--ink); color: #e9eee9; padding: 30px 0 40px; text-align: center; font-size: .88rem; }
.site-footer .big { font-size: 1.15rem; font-weight: 800; color: var(--warn); margin-top: 0; }

/* 태블릿 */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1fr; }
}

/* 휴대폰 */
@media (max-width: 640px) {
  html { scroll-padding-top: 50px; }
  .edu-bar { font-size: .8rem; padding: 6px 10px; }
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { gap: 2px; }
  .nav a { padding: 4px 8px; font-size: .9rem; }
  .hero { min-height: 400px; }
  .hero-text { padding: 30px 18px 44px; }
  .photo-note { top: 8px; bottom: auto; font-size: .7rem; background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 6px; }
  .section { padding: 40px 16px; }
  h2 { font-size: 1.5rem; }
  .grid3, .cards, .contact-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .chip { padding: 6px 13px; }
}
