/* 봄길부동산 (교육용 가상 자료) */
:root {
  --green: #2F7D4F;
  --green-dark: #23603C;
  --sprout: #A8D5A2;
  --ivory: #FFF8E7;
  --ivory-2: #F6EDD5;
  --text: #26302A;
  --muted: #5B665E;
  --line: #E4DAC0;
  --white: #FFFFFF;
  --warn: #FFE7A3;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; }
h2 { color: var(--green); font-size: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
h3 { font-size: 1.2rem; margin-top: 2rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.tiny { font-size: .8rem; color: var(--muted); }
.note { color: var(--muted); margin-top: 0; }

.badge {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--sprout); color: var(--green-dark);
  vertical-align: middle;
}

/* 교육용 띠 */
.edu-banner {
  position: sticky; top: 0; z-index: 30;
  background: var(--warn);
  border-bottom: 2px solid #E8C658;
  padding: .45rem 16px;
  text-align: center;
  font-size: .9rem;
}
.edu-banner strong { margin-right: .4rem; }

/* 머리글 */
.site-header {
  position: sticky; top: 38px; z-index: 20;
  background: rgba(255, 248, 231, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--green); text-decoration: none; display: flex; align-items: center; gap: .3rem; }
.nav { display: flex; gap: 1.2rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--green); }

/* 첫 화면 */
.hero { position: relative; }
.hero-img { width: 100%; height: clamp(320px, 56vw, 560px); object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(20, 45, 30, .72), rgba(20, 45, 30, .15) 70%);
  color: var(--white);
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.hero-sub { font-size: 1.1rem; max-width: 30em; }
.hero-tag {
  display: inline-block; margin: 0 0 .8rem;
  background: var(--warn); color: var(--text);
  font-weight: 700; font-size: .85rem;
  padding: .2rem .7rem; border-radius: 999px;
}
.photo-note { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .75rem; color: #fff; background: rgba(0,0,0,.45); padding: .1rem .5rem; border-radius: 6px; }

.btn {
  display: inline-block;
  background: var(--green); color: var(--white);
  padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  border: 2px solid var(--green); cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--sprout); }

/* 섹션 */
.section { padding: 4rem 0; }
.section-alt { background: var(--ivory-2); }
.lead { font-size: 1.1rem; max-width: 46em; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.info-card h4 { color: var(--green); font-size: 1.1rem; }
.info-card p { margin: 0; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sprout); color: var(--green-dark); font-weight: 800; margin-bottom: .6rem; }

.strengths { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.strengths li { background: var(--white); border-left: 5px solid var(--green); border-radius: 10px; padding: .8rem 1rem; }
.strengths strong { display: block; color: var(--green); }

.about-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.greeting { margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); position: relative; }
.greeting p { margin-top: 0; font-size: 1.05rem; }
.greeting footer { font-weight: 700; color: var(--green); }
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.info-table caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
.info-table th, .info-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 42%; background: #FBF6E8; font-weight: 600; }
.info-table td .tiny { display: block; }

/* 필터 */
.filters { display: grid; gap: .7rem; margin: 1.5rem 0 1rem; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-label { font-weight: 700; min-width: 2.6rem; }
.chip {
  border: 2px solid var(--green); background: var(--white); color: var(--green);
  border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; font-weight: 700;
  cursor: pointer; min-height: 40px;
}
.chip:hover { background: #EEF7EC; }
.chip.is-active { background: var(--sprout); color: var(--green-dark); }
.chip:focus-visible, .btn:focus-visible { outline: 3px solid #E8C658; outline-offset: 2px; }
.result-count { font-weight: 700; color: var(--muted); }

/* 매물 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: var(--white); 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: #E9E2CC; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .virtual-tag { position: absolute; left: 10px; top: 10px; background: var(--warn); font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.card-photo .deal-tag { position: absolute; right: 10px; top: 10px; background: var(--green); color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-meta { font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 1.15rem; }
.price { font-size: 1.2rem; font-weight: 800; color: var(--green); margin: 0; }
.specs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; font-size: .9rem; }
.specs li span { color: var(--muted); margin-right: .3rem; }
.feature { margin: .2rem 0 0; background: #F3F9F1; border-radius: 8px; padding: .45rem .7rem; font-size: .92rem; }
.addr { font-size: .82rem; color: var(--muted); margin: 0; }
.card .btn-ghost { margin-top: auto; padding: .5rem 1rem; font-size: .9rem; align-self: flex-start; }
.empty { text-align: center; padding: 2rem; background: var(--white); border-radius: var(--radius); border: 1px dashed var(--line); }

/* 위치 */
.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.map-figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.map-figure svg { width: 100%; height: auto; display: block; }
.map-figure figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.map-label { font-size: 13px; fill: #4A5A4F; }
.map-road { font-size: 12px; fill: #8A7F62; font-weight: 700; }
.location-info { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.location-info dt { font-weight: 700; color: var(--green); margin-top: .8rem; }
.location-info dt:first-child { margin-top: 0; }
.location-info dd { margin: .2rem 0 0; }

/* 문의 */
.notice-box { background: var(--warn); border: 2px solid #E8C658; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.notice-box strong { display: block; margin-bottom: .2rem; }
.selected-listing { background: var(--white); border-left: 5px solid var(--green); border-radius: 10px; padding: .8rem 1rem; font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.contact-card h3 { margin-top: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.contact-card ol { margin: 0; padding-left: 1.2rem; }
.fake-contact { margin: 0 0 .6rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; }
.fake-contact dt { font-weight: 700; }
.fake-contact dd { margin: 0; overflow-wrap: anywhere; }
.fake-contact .tiny { display: block; }

/* 바닥글 */
.site-footer { background: var(--green-dark); color: #EAF4E7; padding: 2rem 0 2.5rem; text-align: center; }
.footer-edu { font-size: 1.15rem; font-weight: 800; color: var(--warn); margin: 0 0 .4rem; }
.site-footer p { margin: 0; }

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

/* 휴대폰 */
@media (max-width: 640px) {
  html { scroll-padding-top: 150px; }
  .edu-banner { font-size: .8rem; }
  .edu-banner span { display: block; }
  .site-header { top: 52px; }
  .header-inner { flex-direction: column; align-items: stretch; gap: .2rem; padding-top: .4rem; padding-bottom: .4rem; }
  .logo { justify-content: center; }
  .nav { justify-content: space-between; gap: .4rem; font-size: .88rem; }
  .hero-img { height: 420px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(20,45,30,.25), rgba(20,45,30,.78)); align-items: flex-end; padding-bottom: 2.2rem; }
  .section { padding: 2.8rem 0; }
  h2 { font-size: 1.5rem; }
  .grid-3, .cards, .contact-grid { grid-template-columns: 1fr; }
  .chip { padding: .4rem .85rem; }
  .map-label { font-size: 17px; }
  .map-road { font-size: 16px; }
}
