:root {
  --ink: #18332b;
  --ink-soft: #557069;
  --forest: #17332b;
  --forest-2: #2f6253;
  --cream: #f7f3e9;
  --paper: #fffefa;
  --line: #e4ded0;
  --coral: #d85b3f;
  --coral-soft: #f8e2da;
  --gold: #f0c565;
  --sage: #dfeae6;
  --blue: #315db4;
  --shadow: 0 18px 50px rgba(23, 51, 43, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.top {
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(240, 197, 101, .16), transparent 27%),
    linear-gradient(135deg, #122a23, #1b3c32 62%, #24493e);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--forest); background: var(--gold); font-weight: 900; }
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.57); }
.notice-date { padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 12px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 40px; padding: 48px 0 86px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.hero-copy { max-width: 630px; margin: 20px 0 0; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.75; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat { min-width: 0; padding: 17px 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.stat span { display: block; color: rgba(255,255,255,.56); font-size: 12px; }
.stat strong { display: block; margin-top: 7px; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.03em; }

.filter-shell { position: relative; z-index: 2; margin-top: -48px; padding: 20px; border: 1px solid rgba(30,58,49,.1); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.filter-grid { display: grid; grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, .6fr)); gap: 10px; }
.control { position: relative; }
.control label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.control input, .control select {
  width: 100%; height: 46px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff;
}
.control input { padding-left: 40px; }
.search-icon { position: absolute; left: 14px; bottom: 14px; color: #789087; }
.control input:focus, .control select:focus { border-color: #6c9488; box-shadow: 0 0 0 3px rgba(80,126,112,.12); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.quick-label { margin-right: 3px; color: var(--ink-soft); font-size: 13px; }
.pill { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.pill:hover, .pill.active { color: #fff; border-color: var(--forest-2); background: var(--forest-2); }
.reset { margin-left: auto; padding: 7px 4px; border: 0; color: var(--ink-soft); background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.section { padding: 76px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-kicker { margin: 0 0 7px; color: var(--coral); font-size: 13px; font-weight: 900; }
.section h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.045em; }
.section-desc { max-width: 640px; margin: 9px 0 0; color: var(--ink-soft); line-height: 1.7; }
.result-actions { display: flex; align-items: center; gap: 10px; }
.result-count { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.copy-button, .secondary-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-weight: 800; font-size: 13px; }
.copy-button:hover, .secondary-button:hover { border-color: #8ca49d; }

.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 12px 34px rgba(23,51,43,.06); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: #f0ecdf; }
th { padding: 13px 12px; color: #5d6f69; font-size: 12px; text-align: left; white-space: nowrap; }
td { padding: 15px 12px; border-top: 1px solid #ece6da; font-size: 14px; vertical-align: middle; }
tbody tr:hover { background: #fffcf4; }
.apartment { min-width: 240px; }
.map-search {
  display: inline-flex; align-items: flex-start; gap: 7px; max-width: 320px; padding: 2px 0; border: 0; color: var(--ink); background: transparent; font-size: 15px; font-weight: 900; line-height: 1.35; text-align: left;
}
.map-search:hover { color: #087d57; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.map-search:focus-visible { border-radius: 5px; outline: 3px solid rgba(8,125,87,.22); outline-offset: 3px; }
.map-search-icon { flex: 0 0 auto; display: grid; place-items: center; width: 19px; height: 19px; margin-top: 1px; border-radius: 6px; color: #fff; background: #03c75a; font-size: 12px; line-height: 1; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 999px; color: #345b50; background: var(--sage); font-size: 11px; font-weight: 800; }
.tag.new { color: #984329; background: var(--coral-soft); }
.tag.access { color: #fff; background: var(--blue); }
.area { font-size: 17px; font-weight: 900; white-space: nowrap; }
.units { color: var(--coral); font-size: 17px; font-weight: 900; white-space: nowrap; }
.priority { display: block; margin-top: 3px; color: #916e14; font-size: 11px; white-space: nowrap; }
.money { min-width: 125px; font-weight: 900; white-space: nowrap; }
.money small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; font-weight: 500; }
.split-money { color: #536a63; font-size: 13px; white-space: nowrap; }
.qual { min-width: 155px; }
.qual strong { color: #295c4d; font-size: 13px; }
.qual small { display: block; margin-top: 5px; color: var(--ink-soft); line-height: 1.35; }
.empty { display: none; padding: 50px 20px; text-align: center; color: var(--ink-soft); }
.table-note { display: flex; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); background: #fbf8f0; font-size: 12px; line-height: 1.55; }

.qualification { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 10px 30px rgba(23,51,43,.05); }
.panel-pad { padding: 24px; }
.panel h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.025em; }
.panel-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.eligibility-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.eligibility-list li { display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 10px; padding: 13px 14px; border-radius: 13px; background: #f6f2e8; font-size: 14px; line-height: 1.55; }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--forest-2); font-size: 13px; font-weight: 900; }
.mini-alert { margin-top: 16px; padding: 14px; border: 1px solid #efd7a3; border-radius: 13px; color: #6d571f; background: #fff7df; font-size: 12px; line-height: 1.6; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.calc-control label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.calc-control select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }
.switch-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.switch-row label { margin: 0; color: var(--ink); }
.switch-row input { width: 18px; height: 18px; accent-color: var(--forest-2); }
.result-box { margin-top: 18px; padding: 20px; border-radius: 17px; color: #fff; background: var(--forest); }
.result-label { color: rgba(255,255,255,.58); font-size: 12px; }
.result-box strong { display: block; margin-top: 7px; font-size: clamp(25px, 4vw, 36px); letter-spacing: -.04em; }
.result-box p { margin: 8px 0 0; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.55; }
.priority-box { margin-top: 10px; padding: 14px 16px; border-radius: 13px; color: #715817; background: #fff4d3; }
.priority-box strong { display: block; margin-top: 4px; color: #715817; font-size: 19px; }
.asset-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.asset-box h4 { margin: 0 0 10px; }
.asset-box select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }
.asset-result { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.asset-result div { padding: 13px; border-radius: 12px; background: #f3efe5; }
.asset-result span { display: block; color: var(--ink-soft); font-size: 11px; }
.asset-result strong { display: block; margin-top: 5px; font-size: 16px; }

.schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step { position: relative; min-height: 140px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.step::before { content: attr(data-step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 18px; border-radius: 50%; color: #fff; background: var(--forest-2); font-size: 12px; font-weight: 900; }
.step strong { display: block; font-size: 15px; }
.step time, .step span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.note { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,254,250,.75); }
.note strong { display: block; margin-bottom: 8px; }
.note p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
footer { margin-top: 80px; padding: 30px 0 45px; color: #718079; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 11px; color: #fff; background: #1c3a31; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; font-size: 13px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .qualification { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .notice-date { display: none; }
  .hero { gap: 28px; padding: 34px 0 74px; }
  .hero-copy { font-size: 14px; }
  .stats { gap: 6px; }
  .stat { padding: 13px 10px; }
  .filter-shell { margin-top: -42px; padding: 15px; border-radius: 20px; }
  .filter-grid { grid-template-columns: 1fr; }
  .section { padding-top: 58px; }
  .section-head { align-items: start; flex-direction: column; }
  .result-actions { width: 100%; justify-content: space-between; }
  .calc-grid, .asset-result, .schedule { grid-template-columns: 1fr; }
  .panel-pad { padding: 18px; }
  .table-card { border: 0; background: transparent; box-shadow: none; }
  .table-scroll { overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 11px; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 10px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 24px rgba(23,51,43,.05); }
  tbody tr:hover { background: var(--paper); }
  td { display: block; min-width: 0 !important; padding: 0; border: 0; }
  td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
  td.apartment { grid-column: 1 / -1; }
  td.apartment::before { display: none; }
  td.qual { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
  .split-money { font-size: 12px; }
  .table-note { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; }
}
