:root {
  --green: #2F7D4F;
  --green-dark: #23603c;
  --sprout: #A8D5A2;
  --sprout-soft: #E6F2E2;
  --ivory: #FFF8E7;
  --ink: #26302A;
  --ink-soft: #55615A;
  --line: #E4DCC6;
  --white: #FFFFFF;
  --warn-bg: #FFE9A8;
  --warn-ink: #5A4300;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 48, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  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; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.muted { color: var(--ink-soft); font-weight: 400; }
.small { font-size: .92rem; }

/* 교육용 배너 */
.edu-banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-bottom: 2px solid #E8C65A;
  padding: 10px 16px;
  font-size: .9rem;
  text-align: center;
  line-height: 1.5;
}
.edu-banner strong {
  display: inline-block;
  background: var(--warn-ink);
  color: var(--warn-bg);
  border-radius: 999px;
  padding: 1px 10px;
  margin-right: 6px;
  font-size: .82rem;
}

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 248, 231, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--green); text-decoration: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { background: var(--sprout-soft); color: var(--green-dark); }
@media (max-width: 520px) {
  .header-inner { padding-top: 8px; padding-bottom: 6px; }
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 6px 8px; font-size: .9rem; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn:focus-visible, .chip:focus-visible { outline: 3px solid var(--sprout); outline-offset: 2px; }

/* 히어로 */
.hero { position: relative; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,28,.15) 0%, rgba(20,40,28,.75) 100%); }
.hero-content { position: relative; padding-top: 80px; padding-bottom: 40px; }
.hero h1 { color: #e53935; font-size: clamp(1.9rem, 6vw, 3.2rem); font-weight: 800; margin: 12px 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.hero p { margin: 0 0 20px; font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-note { font-size: .8rem !important; opacity: .85; margin: 18px 0 0 !important; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.badge-light { background: var(--warn-bg); color: var(--warn-ink); }

/* 섹션 */
.section { padding: 64px 0; scroll-margin-top: 64px; }
@media (max-width: 520px) { .section { scroll-margin-top: 92px; } }
.section-tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 44px 0; } }
.eyebrow { color: var(--green); font-weight: 800; letter-spacing: .04em; margin: 0 0 6px; font-size: .92rem; }
.section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--ink); margin-bottom: 14px; }
.lead { font-size: 1.08rem; max-width: 760px; margin: 0 0 32px; }
.sub { font-size: 1.15rem; color: var(--green); margin: 36px 0 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature-num { display: inline-block; font-weight: 800; color: var(--green); background: var(--sprout-soft); border-radius: 8px; padding: 2px 8px; font-size: .85rem; }
.feature h4 { font-size: 1.12rem; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); }

.strengths { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strengths li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 16px; border-left: 4px solid var(--green); background: var(--sprout-soft); border-radius: 0 10px 10px 0; }
.strengths strong { color: var(--green-dark); }
.strengths span { color: var(--ink-soft); }

.greeting { margin: 36px 0 0; padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.greeting blockquote { margin: 0 0 10px; font-size: 1.05rem; }
.greeting blockquote::before { content: "“"; color: var(--green); font-size: 2rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; }
.greeting figcaption { font-weight: 700; color: var(--green); }

/* 필터 */
.filters { display: grid; gap: 12px; margin: 24px 0 8px; padding: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-weight: 800; min-width: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--line);
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--sprout); border-color: var(--green); color: var(--ink); }
.chip .count { color: var(--ink-soft); font-weight: 400; font-size: .85rem; margin-left: 5px; }
.result-count { font-weight: 700; color: var(--green); margin: 12px 0 16px; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
@media (max-width: 360px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--sprout-soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-deal, .tag-type { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-deal { background: var(--green); color: var(--white); }
.tag-type { background: var(--white); color: var(--ink); }
.card-vir { position: absolute; right: 8px; bottom: 8px; font-size: .72rem; background: rgba(38,48,42,.78); color: var(--white); padding: 2px 8px; border-radius: 6px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-id { font-size: .8rem; color: var(--ink-soft); }
.card h3 { font-size: 1.12rem; }
.card-price { font-size: 1.2rem; font-weight: 800; color: var(--green); }
.card-price small { display: block; font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin: 0; font-size: .9rem; }
.specs div { display: flex; gap: 6px; min-width: 0; }
.specs dt { color: var(--ink-soft); flex-shrink: 0; }
.specs dd { margin: 0; font-weight: 600; }
.card-feature { margin: 4px 0 0; padding: 8px 10px; background: var(--ivory); border-radius: 8px; font-size: .93rem; }
.card-addr { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-edu { font-size: .75rem; color: var(--warn-ink); background: var(--warn-bg); padding: 2px 8px; border-radius: 6px; }
.link-btn { font: inherit; font-size: .9rem; font-weight: 700; color: var(--green); background: none; border: none; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 32px; text-align: center; background: var(--ivory); border-radius: var(--radius); border: 1px dashed var(--line); }

/* 위치 */
.location-grid, .contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) {
  .location-grid { grid-template-columns: 1.3fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.map-figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.map { width: 100%; height: auto; display: block; border-radius: 10px; }
.map .road { stroke: #FFFFFF; stroke-width: 18; fill: none; stroke-linecap: round; }
.map .road-sub { stroke-width: 10; }
.map-label { font-size: 13px; font-weight: 700; fill: var(--ink); font-family: inherit; }
.map-road { fill: #7A6F55; font-size: 11px; }
.map-water { fill: #3D6F86; font-size: 11px; }
.map-light { fill: #FFFFFF; }
.map-strong { fill: var(--green); font-size: 14px; }
.map-small { font-size: 11px; font-weight: 500; fill: var(--ink-soft); }
.map-figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }

.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.info-list { margin: 0; display: grid; gap: 14px; }
.info-list > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: none; padding-bottom: 0; }
.info-list dt { font-weight: 800; color: var(--green); font-size: .92rem; }
.info-list dd { margin: 0; font-weight: 600; }
.break { word-break: break-all; }
.tag { display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); padding: 1px 8px; border-radius: 6px; vertical-align: middle; word-break: keep-all; }
.notice { margin: 16px 0 0; padding: 10px 12px; background: var(--sprout-soft); border-radius: 8px; font-size: .9rem; }

/* 문의 폼 */
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.form-warning { margin: 0; padding: 10px 12px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; font-weight: 700; font-size: .92rem; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; width: 100%; min-width: 0;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--ivory); color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--sprout-soft); }
.form-result { margin: 0; padding: 12px; text-align: center; font-weight: 800; background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; border: 2px solid #E8C65A; }

/* 푸터 */
.site-footer { background: var(--ink); color: #E9EFE9; padding: 36px 0 44px; font-size: .92rem; }
.site-footer p { margin: 0 0 8px; }
.footer-edu { font-size: 1.05rem; }
.footer-edu strong { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); padding: 4px 12px; border-radius: 8px; }
.muted-light { color: #A9B5AD; }
