/* 아이파크삼성동 단지전문 v2 — 기획팀 프리뷰 시안(ipark-samsung-realestate-v2 index.html 의 <style> 두 덩이) 이식, 2026-12-03 */
:root {
  --navy: #0F1C2E;
  --navy-soft: #16283d;
  --silver: #C9D1D9;
  --sky: #7FB2C9;
  --white: #fff;
  --ink: #182330;
  --muted: #657482;
  --line: #d9e0e5;
  --paper: #f4f6f7;
  --display: "Gugi", "Pretendard", sans-serif;
  --body: "Pretendard", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
  position: absolute;
  z-index: 2;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4.2%;
  color: var(--white);
}
.wordmark { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.topbar nav { display: flex; gap: 26px; font-size: 14px; }
.topbar nav a { text-decoration: none; color: rgba(255,255,255,.87); }
.hero {
  position: relative;
  min-height: 690px;
  height: min(830px, 88vh);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--navy) center 54% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(8,18,31,.78), rgba(8,18,31,0));
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 64px;
}
.eyebrow { color: var(--sky); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
h1:where(:not(.lxc *)) {
  max-width: 800px;
  margin: 15px 0 25px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.045em;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 2px;
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.button.primary { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.stats {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.12);
}
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
.stat { padding: 2px 20px; border-right: 1px solid rgba(255,255,255,.2); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat strong { display: block; color: var(--silver); font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: rgba(255,255,255,.75); font-size: 14px; }
main > section { padding: 100px 0; }
.section-kicker { color: #587b8c; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
h2:where(:not(.lxc *)) {
  margin: 8px 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.35;
  letter-spacing: -.04em;
}
.lead { max-width: 680px; margin: 0 0 34px; color: #536170; font-size: 17px; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .lead { color: rgba(255,255,255,.72); }
.section-dark .section-kicker { color: var(--sky); }
.wing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.wing-card {
  min-height: 220px;
  padding: 28px;
  color: var(--white);
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.12);
}
.wing-card h3 { margin: 0 0 22px; font-size: 18px; }
.wing-card strong { display: block; font-size: 38px; color: var(--silver); line-height: 1.2; }
.wing-card p { margin: 9px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.fact { padding: 18px; background: #fff; color: var(--ink); }
.fact span { display: block; color: var(--muted); font-size: 13px; }
.fact strong { display: block; margin-top: 5px; font-size: 16px; }
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 30px 0 12px; }
.area-card { padding: 22px 18px; background: #fff; border: 1px solid var(--line); }
.area-card strong { display: block; font-size: 21px; }
.area-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }
.area-card .area-py { margin-top: 2px; color: var(--ink); font-size: 15px; font-weight: 700; }
.area-card .area-sup { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5eaed; color: #445361; }
.area-card .area-count { margin-top: 10px; }
.area-source { margin: 0 0 40px; color: var(--muted); font-size: 12px; }
.chart-box { padding: 24px; background: #fff; border: 1px solid var(--line); }
.chart-title { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.chart-title h3 { margin: 0; font-size: 19px; }
.chart-title p { margin: 0; color: var(--muted); font-size: 13px; }
.chart-scroll { overflow-x: auto; }
.chart { width: 100%; min-width: 680px; height: auto; }
.chart text { fill: #526270; font: 13px var(--body); }
.chart .gridline { stroke: #dfe5e9; stroke-width: 1; }
.chart .line { fill: none; stroke: #397c98; stroke-width: 2.5; }
.chart .dot { fill: #397c98; stroke: white; stroke-width: 2; }
.photo-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; align-items: stretch; margin-top: 32px; }
.photo { margin: 0; background: #fff; }
.photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.photo figcaption { padding: 13px 15px; color: #586674; font-size: 12px; }
.night-feature { position: relative; margin: 34px 0 0; }
.night-feature img { width: 100%; height: clamp(330px, 52vw, 620px); object-fit: cover; }
.night-feature figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 52px 24px 16px; color: white; font-size: 12px; background: linear-gradient(0deg, rgba(8,18,31,.62), transparent); }
.photo-notes { margin-top: 14px; color: var(--muted); font-size: 12px; }
.photo-notes p { margin: 4px 0; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); }
table:where(:not(.lxc *)) { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 13px; }
th:where(:not(.lxc *)), td:where(:not(.lxc *)) { padding: 13px 14px; border-bottom: 1px solid #e5eaed; }
th:where(:not(.lxc *)) { color: #445361; background: #eef2f4; font-weight: 700; }
tbody tr:last-child td:where(:not(.lxc *)) { border-bottom: 0; }
.data-note { margin: 14px 0 22px; color: var(--muted); font-size: 12px; }
.summary-table { margin-bottom: 42px; }
.listing-note { margin: 0 0 20px; color: #556473; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 34px; }
.listing-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 27px 30px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}
.listing-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing-type { padding: 3px 10px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; }
.listing-card strong { display: block; font-size: 22px; }
.listing-spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.listing-spec dt { color: var(--muted); }
.listing-spec dd { margin: 0; }
.listing-price { margin-top: auto; padding-top: 14px; border-top: 1px solid #e5eaed; }
.listing-number { display: block; color: #3f758d; font-size: 30px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.listing-price-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.listing-actions { margin-top: 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.detail-grid h3 { margin: 0 0 14px; font-size: 19px; }
.detail-grid p { margin: 8px 0; color: #526170; }
.address { padding: 24px; background: #fff; border: 1px solid var(--line); }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.map-links a { padding: 10px 14px; border: 1px solid #bfcbd2; text-decoration: none; font-size: 14px; }
.form-panel { max-width: 820px; margin-top: 35px; padding: 34px; background: #fff; color: var(--ink); }
.form-panel fieldset { margin: 0; padding: 0; border: 0; }
.form-panel legend { margin-bottom: 18px; font-size: 19px; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: block; padding: 10px 14px; border: 1px solid #c9d2d8; cursor: pointer; }
.choice input:checked + label { border-color: #3b7188; background: #eaf3f6; color: #18394a; }
.field { margin: 18px 0; }
.field label { display: block; margin-bottom: 7px; font-weight: 700; }
.field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c9d2d8; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 22px 0; font-size: 14px; }
.consent input { width: 18px; height: 18px; margin-top: 4px; }
.send-button { min-height: 50px; padding: 0 25px; border: 0; background: var(--navy); color: white; font-weight: 700; cursor: pointer; }
#form-message { min-height: 26px; margin: 14px 0 0; color: #286b54; font-size: 14px; }
.phone-line { margin-top: 32px; font-size: 18px; }
.phone-line a { color: var(--sky); font-weight: 700; }
.faq-list { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.2); }
details:where(:not(.lxc *)) { padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
summary:where(:not(.lxc *)) { cursor: pointer; font-size: 17px; font-weight: 700; }
details:where(:not(.lxc *)) p { margin: 12px 0 0; color: rgba(255,255,255,.76); }
footer { padding: 54px 0 100px; color: #d9e1e7; background: #0a1523; font-size: 12px; }
footer h2 { font-family: var(--body); font-size: 16px; font-weight: 700; letter-spacing: 0; }
footer p { margin: 7px 0; }
.footer-rule { height: 1px; margin: 24px 0; background: rgba(255,255,255,.16); }
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 560px); }
  .topbar { padding: 18px; }
  .topbar nav { display: none; }
  .hero { min-height: 620px; height: 84svh; background-position: 53% center; }
  .hero-content { width: calc(100% - 36px); padding-bottom: 42px; }
  h1:where(:not(.lxc *)) { font-size: clamp(31px, 9vw, 44px); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 16px 0; }
  .stat { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat:first-child { padding-left: 12px; }
  main > section { padding: 70px 0; }
  .wing-grid { grid-template-columns: 1fr; }
  .wing-card { min-height: 170px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area-card:last-child { grid-column: span 2; }
  .chart-box { padding: 18px 14px; }
  .chart-title { display: block; }
  .chart-title p { margin-top: 6px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .night-feature img { height: 390px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { padding: 22px; }
  .form-panel { padding: 24px 18px; }
  .choice-row { gap: 8px; }
  .choice label { padding: 9px 11px; }
  footer { padding-bottom: 110px; }
  .mobile-cta {
    position: fixed;
    z-index: 5;
    left: 0; right: 0; bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(15,28,46,.97);
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
  }
  .mobile-cta a:last-child { background: var(--sky); color: var(--navy); }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 30px); }
  .hero-content { width: calc(100% - 30px); }
  .button { padding: 0 16px; }
  .fact { padding: 14px 12px; }
  .fact strong { font-size: 15px; }
}

/* hero-legibility-1202 */
.hero:after{inset:0;height:auto;background:linear-gradient(90deg,rgba(8,18,31,.74) 0%,rgba(8,18,31,.5) 36%,rgba(8,18,31,.14) 64%,rgba(8,18,31,0) 82%),linear-gradient(0deg,rgba(8,18,31,.66) 0%,rgba(8,18,31,.2) 42%,rgba(8,18,31,0) 68%),linear-gradient(180deg,rgba(8,18,31,.5) 0%,rgba(8,18,31,0) 20%)}
.hero h1,.hero p,.hero .eyebrow,.hero .hero-kicker{text-shadow:0 2px 16px rgba(0,0,0,.38),0 1px 3px rgba(0,0,0,.32)}
@media (max-width:760px){.hero:after{background:linear-gradient(0deg,rgba(8,18,31,.86) 0%,rgba(8,18,31,.66) 38%,rgba(8,18,31,.26) 62%,rgba(8,18,31,0) 80%),linear-gradient(180deg,rgba(8,18,31,.55) 0%,rgba(8,18,31,0) 18%)}}

/* ── 이식 보정(2026-12-03) ── */
/* 첫 화면(.hero) 바탕 사진은 서버 폴더 주소라 CSS 에서 빼고 pages/index.tsx 의 인라인 background-image 로 넣는다(위치·크기는 위 규칙 그대로) */
/* 전역 h1·h2·table·th·td·details·summary 규칙은 큐레이팅 블록(.lxc) 안쪽에 번지지 않게 :where(:not(.lxc *)) 로 한정, 'main section' 여백은 'main > section' 으로(블록 안 section 제외) */
/* 면적 카드의 거래 건수 줄(.area-count)·매매 기록 그림(.chart-box)·고정 실거래 표·목업 물건 카드(.listing-card)는 마크업이 없다(규칙만 남김) */
/* 실거래 = 공용 큐레이팅 실거래 블록 */
#trade .lxc{margin-top:22px}
/* 지금 상담 가능한 물건 = 공용 큐레이팅 리스트 — 짙은 바탕(.section-dark) 위라 흰 판에 올린다 */
#listings .lxc{background:#fff;color:var(--ink);padding:24px}
@media (max-width:760px){#listings .lxc{padding:16px 12px}}
/* 상담 양식 안내 줄 — 접수 실패·입력 확인 문구 색 */
#form-message.err{color:#9A3B2E}
/* 매물 상세(서브 페이지) — 첫 화면 사진이 없어 머리띠(.topbar)를 사진 위에 띄우지 않고 남색 바탕 줄로 둔다 */
.topbar.solid{position:static;background:var(--navy)}
.pp-main{padding:40px 0 80px}
/* 큐레이팅 블록 색 토큰 — 테마 색(navy·sky 계열·paper) */
html .lxc { --lx-gold: #0F1C2E; --lx-gold-em: #3f758d; --lx-gold-tx: #3f758d; --lx-gold-3: #f4f6f7; --lx-teal: #0F1C2E; }
