/* ============================================================
  메디스파크 랜딩 — 단일 통합 CSS (dedup)
  설계 디자인: 라온 프라이빗 패턴 + 사용자 보낸 이미지 3장 (nfnfg_1, gwwq, ngd_2)
  색상: 메디스파크 자체 톤 navy(#14213d) + gold(#c8a96b)
============================================================ */

:root {
  --brand-deep: #14213d;
  --brand-deep-2: #0d182d;
  --brand-gold: #c8a96b;
  --brand-gold-2: #b69254;
  --brand-hot: #c0392b;
  --ink: #14213d;
  --ink-soft: #5a6378;
  --bg: #ffffff;
  --bg-2: #f6f7fa;
  --border: #d8dbe2;
  --border-2: #e6e8ee;
  --maxw: 1200px;
}

@page { margin: 0; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================
  1) TOP STICKY YELLOW EVENT BANNER — 사용자 nfnfg_1.JPG 디자인 그대로
  노란 박스, 큰 검정 "계약축하금 500만원 (1차)" + 그 아래 한 줄 설명
============================================================ */
#top-event {
  /* renamed to id to be unique */
}
/* ========== TOP EVENT BANNER (시안 이미지 둥근 Compact 디자인: 노란 한 줄 배너) ========== */
.top-event {
  background: var(--brand-yellow, #ffe57f);
  border-bottom: 2px solid #14213d;
  font-family: 'Noto Sans KR', sans-serif;
  color: #14213d;
  padding: 12px 18px 13px;
  text-align: center;
  position: sticky;     /* 항상 보이도록 sticky */
  top: 0;
  z-index: 9995;        /* 다른 sticky CTA보다 위 */
  box-shadow: 0 2px 10px rgba(15,20,40,0.10);
}
.top-event-1 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-event-1 em {
  font-style: normal;
  font-weight: 900;
  color: #d8311e;
  font-size: 21px;
  text-shadow: 0 0 1px rgba(255,255,255,0.4);
}
.top-event-1 .top-event-stage {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-left: 4px;
}
.top-event-2 {
  font-size: 13.5px;
  font-weight: 700;
  color: #14213d;
  text-align: center;
  display: block;
  letter-spacing: -0.005em;
}

/* ============================================================
  2) SIDEBAR (좌측 따라다니는 500만원 — sticky CTA 좌측 가로형)
============================================================ */
.side-promo {
  position: fixed;
  left: 14px;
  bottom: 110px;
  z-index: 9991;
  background: #ffe57f;
  border: 1.5px solid #d89400;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  width: 92px;
  box-shadow: 0 6px 18px rgba(184,134,11,.32), 0 2px 8px rgba(20,33,61,0.10);
  font-family: 'Noto Sans KR', sans-serif;
  text-decoration: none;
  color: var(--brand-deep);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  visibility: visible !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.side-promo-eyebrow {
  display: block;
  font-size: 10px; font-weight: 700; color: var(--brand-deep);
  letter-spacing: 0;
  margin-bottom: 4px;
}
.side-promo-amount {
  display: block;
  font-size: 13px; font-weight: 800; color: var(--brand-deep);
  line-height: 1.2;
  margin-bottom: 2px;
}
.side-promo-amount b {
  display: block;
  font-size: 18px; font-weight: 900; color: var(--brand-deep);
  margin-top: 2px;
}
.side-promo-cta {
  display: block;
  text-align: center;
  padding: 10px 12px;
  margin-top: 8px;
  background: linear-gradient(180deg, #f7f5ee 0%, #ffffff 100%);
  border: 1.5px solid #c8a96b;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #14213d;
  line-height: 1;
}
.side-promo-cta strong { color: #fff; font-weight: 900; }

/* ============================================================
  3) HERO — 풀-블리트 풀스크린 단일 이미지 + 가운데 타이틀
============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* 원본 이미지 비율 (1920x950 = 2.02:1)에 맞춤 — 가로 비율 box */
  aspect-ratio: 1920 / 950;
  max-height: 760px;
  min-height: 420px;
  padding: 80px 22px 70px;
  text-align: center; color: #fff;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,16,32,0.66) 0%, rgba(8,16,32,0.46) 45%, rgba(8,16,32,0.78) 100%),
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(8,16,32,0.34) 0%, rgba(8,16,32,0.54) 70%);
}
.hero-inner {
  position: relative;
  width: 100%; max-width: var(--maxw);
}
.brand-eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .14em;
  color: #fff; border: 1px solid rgba(245, 214, 138, 0.7);
  padding: 8px 20px; border-radius: 999px; font-weight: 700;
  margin-bottom: 22px;
  background: rgba(20, 33, 61, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  font-family: 'Noto Sans KR', sans-serif;
  text-transform: none;
}
/* 골드 토큰 */
.brand-eyebrow b {
  color: var(--brand-gold); font-weight: 800; margin: 0 4px;
}
.brand-title {
  font-family: 'Noto Serif KR', serif; font-weight: 900;
  font-size: clamp(36px, 7.6vw, 60px); line-height: 1.16;
  margin: 0 0 14px; letter-spacing: -0.025em; color: #fff;
  text-shadow:
    0 2px 14px rgba(0,0,0,0.62),
    0 4px 22px rgba(0,0,0,0.5),
    0 0 2px rgba(0,0,0,0.7);
}
.brand-accent {
  /* 메디스파크 — 골드 도장 톤 (사용자 시안과 색조) */
  display: inline-block;
  color: #f5d68a;
  font-weight: 900;
  font-family: 'Noto Serif KR', serif;
  text-shadow:
    0 0 28px rgba(245, 214, 138, 0.35),
    0 2px 6px rgba(0,0,0,0.55),
    0 4px 14px rgba(0,0,0,0.45);
  background: none !important;
  -webkit-text-fill-color: #f5d68a !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}
.brand-sub {
  margin: 14px 0 28px; font-size: 14px; color: rgba(255,255,255,0.97);
  letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
  font-weight: 500;
}
.hero-kv {
  font-size: clamp(16px, 3.8vw, 19px); color: #ffffff;
  line-height: 1.7; margin: 6px auto 32px; max-width: 560px;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0,0,0,0.60), 0 0 1px rgba(0,0,0,0.6);
}
.hero-kv strong { color: #ffd98a; font-weight: 900; }

.cta-row { display: flex; justify-content: center; }
.cta-call {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  /* 싱가 페이지 톤: 액션 green + 조금 더 사각형으로 */
  background: linear-gradient(180deg, #1ea564 0%, #157247 100%);
  color: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 18px 36px 18px;
  border-radius: 16px;
  min-width: 280px;
  font-weight: 800;
  box-shadow:
    0 12px 32px rgba(21,114,71,0.5),
    0 0 0 1.5px rgba(255,255,255,0.7) inset,
    0 1px 2px rgba(0,0,0,0.4);
  letter-spacing: 0.01em;
}
.cta-call:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(21,114,71,0.55), 0 0 0 1.5px rgba(255,255,255,0.85) inset; }
.cta-label { font-size: 12px; color: rgba(255,255,255,0.92); font-weight: 600; letter-spacing: .04em; }
.cta-num { font-size: 28px; font-weight: 900; letter-spacing: 0.02em; color: #ffffff; }
.cta-num .dash { margin: 0 2px; }
.hero-note {
  margin-top: 12px; font-size: 13px;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.hero-badges {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.40);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-badge-hot {
  background: rgba(192,57,43,0.85);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
}
.hero-scroll { display: none; }

/* ============================================================
  4) 섹션 공통
============================================================ */
.section {
  padding: 60px 0 64px;
}
.kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--brand-gold);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--brand-gold);
  margin-bottom: 14px;
}
.sec-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.3;
}
.sec-lead {
  font-size: clamp(15px, 3.6vw, 17px);
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.7;
}
.sec-lead strong { color: var(--brand-deep); font-weight: 700; }

/* ============================================================
  5) PREMIUM 7 Cards (ref-grid pattern)
============================================================ */
.ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none; margin: 16px 0 22px; padding: 0;
  border-top: 1px solid var(--brand-deep);
  gap: 0;
}
.ref-cell {
  display: flex; gap: 14px;
  padding: 22px 22px 24px;
  border-bottom: 1px solid rgba(20,33,61,.18);
  background: #ffffff; text-align: left;
}
.ref-cell-no {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 28px; font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.06em; line-height: 1; margin-top: 2px;
  flex: 0 0 auto;
}
.ref-cell-hot .ref-cell-no { color: var(--brand-hot); }
.ref-cell-body { flex: 1; min-width: 0; }
.ref-cell-label {
  display: block;
  font-size: 17px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.35;
}
.ref-cell-rule { border: 0; height: 0; border-top: 1.5px solid var(--ink); margin: 4px 0 12px; }
.ref-cell-value { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 720px) {
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-cell { border-right: 1px solid rgba(20,33,61,.12); }
  .ref-cell:nth-child(3n) { border-right: 0; }
  .ref-cell-wide { grid-column: 1 / -1; }
}

/* ============================================================
  6) PREMIUM 입지 카드 (Park 이미지 사용 안 함)
============================================================ */

/* ============================================================
  7) 상가 feature
============================================================ */
.store-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px; margin-top: 20px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(15,20,40,0.05);
}
.store-feature-img {
  background: var(--brand-deep);
  display: block;
  text-align: center;
}
.store-feature-img img {
  width: auto; max-width: 100%;
  max-height: 480px; object-fit: contain; object-position: center bottom;
  display: inline-block;
}
.store-feature-text { padding: 22px 22px 24px; }
.store-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 5px 11px;
  background: var(--brand-deep);

  color: var(--brand-gold);
  border-radius: 6px;
  margin-bottom: 8px;
}
.store-feature-text strong {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: 22px; color: var(--ink); margin-bottom: 10px;
}
.store-feature-text p {
  font-size: 14.5px; line-height: 1.7;
  color: #3a4258;
  margin: 0 0 14px;
}
.store-list { list-style: none; margin: 0 0 16px; padding: 0; }
.store-list li {
  display: flex; gap: 10px;
  font-size: 14px; color: var(--ink);
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--border-2);
  margin-bottom: 6px;
}
.store-list .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--brand-gold);
  margin-top: 7px;
  flex: 0 0 auto;
}
.store-note {
  font-size: 12.5px;
  color: #8b94a8;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fff8e6;
  border-left: 3px solid var(--brand-gold);
  border-radius: 6px;
}

/* ============================================================
  8) 평면 안내 (type-tabs)
============================================================ */
.type-tabs {
  display: flex;
  flex-direction: row;       /* 가로 배치 명시 */
  flex-wrap: wrap;            /* 모바일에서 자동 줄바꿈 */
  justify-content: center;    /* 화면 중앙 정렬 */
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 18px 0 24px;
  padding: 6px;
  background: linear-gradient(180deg, #f4f5f7 0%, #e8eaef 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.type-tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 14px 10px;
  background: transparent; border: 0; border-radius: 10px;
  cursor: pointer;
  line-height: 1.2;
  min-width: 92px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
}
.type-tab:hover { background: #ffffff; color: var(--ink); }
.type-tab-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(20,33,61,0.10);
  border-radius: 10px;
  margin-bottom: 6px;
  color: var(--ink);
}
.type-tab-icon svg { width: 26px; height: 26px; fill: currentColor; }
.type-tab-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.type-tab-meta { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.type-tab.is-active {
  background: linear-gradient(180deg, var(--brand-deep) 0%, #1d2c4d 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20,33,61,0.30), inset 0 1px 0 rgba(255,255,255,0.06);
}
.type-tab.is-active .type-tab-label { color: #fff; }
.type-tab.is-active .type-tab-meta { color: var(--brand-gold); }
.type-tab.is-active .type-tab-icon { background: rgba(200,169,107,0.22); color: var(--brand-gold); }

.type-panel { display: block; width: 100%; margin: 18px 0 0; }
.type-panel[hidden] { display: none !important; }
.type-panel .type-floor { width: 100%; max-width: 100%; }
.type-panel .type-houses { width: 100%; }
.type-panel-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8e0;
  border-left: 3px solid var(--brand-gold, #c8a96b);
  border-radius: 4px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}
.type-floor {
  margin: 0 0 18px;
  background: #fff; border: 1px solid var(--border-2); border-radius: 12px;
  overflow: hidden;
}
.type-floor img {
  width: 100%; height: auto; display: block; max-height: 520px; object-fit: contain;
  background: #f6f7fa;
}
.type-floor figcaption {
  padding: 10px 14px;
  background: #f6f7fa;
  font-size: 13px; color: var(--ink);
  font-weight: 600;
  border-top: 1px solid var(--border-2);
}
.type-houses { margin-top: 4px; }
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-flow: dense;
  width: 100%;
  margin: 14px 0 6px;
}
.gallery-grid > .gallery-cell:has(img.is-portrait) {
  grid-row: span 2;
}
.gallery-cell {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: 10px;
  background: #1a2238;     /* default dark navy background for letterbox */
  border: 1px solid var(--border);
  text-decoration: none;
}
.gallery-cell img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
/* Portrait photos: 정방향으로 contain + 박스 변형 */
.gallery-cell img.is-portrait {
  object-fit: contain;
  background: #1a2238;
}
/* 그리고 셀 박스를 portrait_shaped 으로 변경 */
.gallery-cell:has(> img.is-portrait) {
  aspect-ratio: 3 / 4;
  grid-row: span 2;
}

.gc-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8,16,32,0.70) 100%);
  color: #fff; padding: 26px 10px 8px;
  font-size: 12px; font-weight: 600;
  text-align: center;
}
.type-houses-noimg {
  border: 1px dashed var(--brand-gold);
  background: #fff8e6;
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
}
.no-img-mark { font-size: 28px; display: block; margin-bottom: 8px; }
.no-img-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.no-img-desc { font-size: 14px; color: #4a5168; line-height: 1.6; margin: 0; }
.no-img-tel {
  display: inline-block; padding: 6px 14px; margin: 0 2px;
  background: linear-gradient(180deg, var(--brand-gold) 0%, #b69254 100%);
  color: var(--ink) !important; font-weight: 800; border-radius: 8px;
  text-decoration: none;
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-flow: dense; }
  .gallery-grid > .gallery-cell:has(img.is-portrait) { grid-row: span 2; }
}

/* ============================================================
  9) 라이트박스
============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lb-cap {
  margin-top: 14px; color: #fff; font-size: 14px; line-height: 1.6;
  text-align: center;
  background: rgba(255,255,255,0.06);
  padding: 10px 20px; border-radius: 999px;
}
.lb-type {
  display: inline-block;
  background: linear-gradient(180deg, var(--brand-gold) 0%, #b69254 100%);
  color: var(--ink); font-weight: 800;
  padding: 4px 10px; border-radius: 6px;
  margin-right: 8px; font-size: 12px;
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff; font-size: 20px; border-radius: 999px;
  cursor: pointer;
}

/* ============================================================
  10) Footer
============================================================ */
.footer {
  background: var(--brand-deep);
  color: rgba(255,255,255,0.86);
  padding: 40px 22px 90px;
  margin-bottom: 0;
}
.footer-disclaimer {
  font-size: 12.5px; line-height: 1.6;
  text-align: center;
  max-width: 720px; margin: 0 auto;
  color: rgba(255,255,255,0.65);
}
.footer-supervisor {
  margin-top: 18px;
  text-align: center;
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* ============================================================
  11) Sticky CTA (좌측 따라다니는 500만원 + 우측 전화)
============================================================ */
.sticky-cta {
  position: fixed;
  right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 9992;
  background: linear-gradient(180deg, #1ea564 0%, #157247 100%);
  color: #ffffff;
  padding: 12px 18px; border-radius: 999px;
  font-weight: 800; font-size: 13px;
  box-shadow: 0 8px 22px rgba(21,114,71,0.45), 0 2px 6px rgba(0,0,0,0.20), 0 0 0 1.5px rgba(255,255,255,0.6) inset;
}
.sticky-icon { font-size: 18px; }
.sticky-text { font-size: 12px; line-height: 1.2; color: rgba(255,255,255,0.94); }
.sticky-text strong { display: block; font-size: 17px; color: #ffffff; }

/* ============================================================
  12) Lead form (gwwq.JPG 디자인 — 단정한 박스 input 카드)
============================================================ */
.lead-split { display: flex; flex-direction: column; gap: 18px; width: 100%; }
@media (min-width: 720px) {
  .lead-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    align-items: start;
  }
}

.lead-form-card {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 24px 28px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 24px 22px;
  box-shadow: 0 4px 18px rgba(15,20,40,0.04);
}
.lead-card-head {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-2);
}
.lead-card-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px;
  background: var(--brand-deep); color: var(--brand-gold);
  border-radius: 4px;
  margin-bottom: 6px;
}
.lead-card-title {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 19px; font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.lead-card-desc {
  font-size: 13px; line-height: 1.55;
  color: #3a4258;
  margin: 0 auto;
}
.lead-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-bottom: 14px;
}
@media (min-width: 540px) {
  .lead-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.lead-field, .lead-block { margin-bottom: 14px; }
.lead-field-label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.lead-field-label em { color: var(--brand-hot); font-style: normal; font-size: 12px; margin-left: 2px; }
.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14.5px; font-weight: 500;
  padding: 12px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(200,169,107,0.18);
}
.lead-field-inline-row { display: block; }
.lead-field-inline {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.lead-field-inline input,
.lead-field-inline select {
  width: 100%;
  padding: 12px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14.5px;
}
.lead-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-chip {
  display: inline-flex; align-items: center;
  cursor: pointer;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
}
.lead-chip input { display: none; }
.lead-chip:has(input:checked) {
  background: var(--brand-deep); color: var(--brand-gold); border-color: var(--brand-deep);
}
.lead-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: #3a4258;
  padding: 10px 12px;
  background: #f6f7fa;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  margin: 14px 0 12px;
  cursor: pointer;
}
.lead-consent input { accent-color: var(--brand-gold); width: 18px; height: 18px; margin-top: 1px; }
.lead-consent small { color: #8b94a8; display: block; margin-top: 2px; }
.lead-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand-deep-2) 100%);
  border: 0; border-radius: 6px;
  padding: 16px 24px; width: 100%; cursor: pointer;
  box-shadow: 0 6px 18px rgba(20,33,61,0.25);
}
.lead-submit-arrow { width: 18px; height: 18px; color: var(--brand-gold); }
/* 상담 접수 박스 — 사용자 시안 디자인: 흰 카드 + 다크네이비 헤더 + 검정 텍스트 */
.lead-msg {
  margin-top: 18px;
  border-radius: 12px;
  font-size: 14.5px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d8dbe2;
  color: #2a2a26;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15,20,40,0.06);
}
.lead-msg::before {
  content: "✓ 접수 완료";
  display: block;
  padding: 12px 18px;
  background: #14213d;
  color: #ffffff;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
}
.lead-msg-ok {
  background: #ffffff;
}
.lead-msg-ok::after {
  content: "상담 접수되었습니다.\A 곧 연락드리겠습니다.";
  display: block;
  padding: 18px 22px 20px;
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  white-space: pre-line;
  line-height: 1.5;
}
.lead-msg-err {
  background: #fdecea;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.lead-msg-err::before {
  content: "주의";
  background: #c0392b;
}
.lead-msg-err::after {
  content: "다시 확인 후 시도해주세요.";
  display: block;
  padding: 14px 18px 16px;
  font-size: 14px;
}

/* ============================================================
  13) Live Activity (gwwq.JPG 우측 카드)
============================================================ */
.live-activity {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 20px 14px;
  display: flex; flex-direction: column;
  font-family: 'Noto Sans KR', sans-serif;
  min-height: 360px;
}
.live-activity-head {
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-deep);
  margin-bottom: 10px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #ff3838;
  animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,56,56,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255,56,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,56,56,0); }
}
.live-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.live-now { margin-left: auto; font-size: 12px; color: #8b94a8; }
.live-sub { font-size: 12px; color: var(--ink-soft); margin: 0 0 8px; }
.live-activity-rows {
  flex: 1;
  display: flex; flex-direction: column; gap: 5px;
  min-height: 200px;
  overflow: hidden;
}
.live-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  animation: liveFadeIn .42s ease both;
}
@keyframes liveFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.live-name { font-weight: 800; color: var(--ink); }
.live-name-stars { color: var(--brand-gold); }
.live-phone { color: var(--ink); font-variant-numeric: tabular-nums; }
.live-time { color: var(--brand-hot); font-weight: 700; font-size: 13px; }
.live-foot {
  text-align: right;
  font-size: 12px; color: #8b94a8;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f3;
}

/* ============================================================
  14) 팝업 (ngd_2.JPG 디자인 — 단단한 navy + 박스 input + 큰 navy submit)
============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(8,16,32,0.74);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  animation: mpFade .2s ease;
}
.popup-overlay[hidden] { display: none !important; }
@keyframes mpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.popup-card {
  position: relative;
  width: 100%; max-width: 540px;
  background: transparent;
  border: 0; border-radius: 6px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  text-align: center;
  font-family: 'Noto Sans KR', sans-serif;
  overflow: hidden;
}
.popup-close {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.10); border: 0;
  width: 30px; height: 30px; border-radius: 999px;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.popup-close:hover { background: rgba(255,255,255,0.20); }
.popup-close svg { width: 14px; height: 14px; }

.popup-banner {
  background: var(--brand-deep);
  color: #fff;
  padding: 30px 24px 18px;
  text-align: center;
}
.popup-banner-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.popup-banner-title {
  margin: 0;
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.45;
}
.popup-banner-title em { font-style: normal; font-weight: 800; }
.popup-banner-gift {
  margin: 6px 0 10px;
  font-family: 'Noto Serif KR', serif;
  font-size: 32px; font-weight: 900;
  line-height: 1.05;
  color: #fff;
}
.popup-banner-gift .popup-gold { color: var(--brand-gold); }
.popup-banner-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-gold);
  color: var(--brand-deep);
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  margin-top: 4px;
}
.popup-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: var(--brand-deep); color: var(--brand-gold);
  border-radius: 999px;
  font-size: 10px; font-weight: 900;
}
.popup-body {
  padding: 22px 22px 18px;
  background: #ffffff;
}
.popup-body-lead {
  font-size: 13px; color: var(--ink-soft);
  text-align: center; line-height: 1.6;
  margin: 0 0 14px;
}
.popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.popup-field { display: block; margin-bottom: 10px; }
.popup-field-label {
  display: block;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.popup-field-label em { color: var(--brand-hot); font-style: normal; margin-left: 1px; }
.popup-field input,
.popup-field select,
.popup-field textarea {
  width: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.popup-field input:focus,
.popup-field select:focus,
.popup-field textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(200,169,107,0.18);
}
.popup-submit {
  width: 100%;
  background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand-deep-2) 100%);
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px; font-weight: 800;
  padding: 16px 20px;
  border: 0; border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px;
  box-shadow: 0 6px 18px rgba(20,33,61,0.30);
}
.popup-submit-arrow { color: var(--brand-gold); font-size: 18px; }
.popup-submit strong { font-weight: 800; }
.popup-disclaimer {
  font-size: 11.5px; color: #8b94a8;
  text-align: center; margin: 8px 0 0;
}
.popup-dontshow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.92);
  background: var(--brand-deep);
  padding: 10px 18px; margin: 0;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: left;
}
.popup-dontshow input { accent-color: var(--brand-gold); width: 14px; height: 14px; }

/* ============================================================
  15) Image blocks
============================================================ */
.img-block {
  margin: 0 0 18px;
  background: #fff; border: 1px solid var(--border-2); border-radius: 12px;
  overflow: hidden;
}
.img-block img { width: 100%; height: auto; display: block; }
.img-block figcaption {
  padding: 10px 14px; background: #f6f7fa;
  font-size: 13px; color: var(--ink);
  font-weight: 600;
}
.img-block-framed {
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, #f6f7fa 0%, #ffffff 100%);
  border-radius: 10px;
}
.img-block-framed img {
  width: 100%; height: auto;
  max-height: 480px; object-fit: contain;
  display: block;
}
.floor-overview {
  margin: 8px 0 18px;
  background: #ffffff;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(15,20,40,0.05);
  text-align: center;
}
.floor-overview img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 8px; }

/* ============================================================
  16) Honor / trust cards
============================================================ */
.trust-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 18px 16px;
}
.trust-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-deep); color: var(--brand-gold);
  border-radius: 10px;
  font-weight: 800; font-size: 16px;
  margin-bottom: 10px;
}
.trust-title {
  font-size: 16px; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.trust-desc {
  font-size: 13px; color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
  17) BRAND timeline (3단지 phase)
============================================================ */
.tl-list {
  list-style: none;
  margin: 24px 0; padding: 0;
  display: grid; gap: 10px;
}
.tl-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 14px 16px;
}
.tl-item.now {
  background: linear-gradient(180deg, #fff8e6 0%, #fff2c8 100%);
  border-color: var(--brand-gold);
}
.tl-no {
  width: 32px; height: 32px; flex: 0 0 auto;
  background: var(--brand-deep); color: var(--brand-gold);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.tl-item.now .tl-no { background: var(--brand-gold); color: var(--brand-deep); }
.tl-phase { font-size: 15px; font-weight: 800; color: var(--ink); }
.tl-state { font-size: 12.5px; color: var(--ink-soft); }
.tl-state-hot { color: var(--brand-hot); font-weight: 800; }
.tl-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ============================================================
  18) Site plan
============================================================ */
.siteplan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.siteplan-img {
  border: 1px solid var(--border-2);
  border-radius: 12px; overflow: hidden;
  background: #fff;
}

/* ============================================================
  19) Community
============================================================ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.community-item {
  background: #fff; border: 1px solid var(--border-2);
  border-radius: 12px; overflow: hidden;
}

/* ============================================================
  20) CTA inline
============================================================ */
.p7-cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.p7-cta-call, .p7-cta-lead {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-weight: 800; font-size: 15px;
  border-radius: 999px; text-decoration: none;
  transition: transform .15s ease;
}
.p7-cta-call {
  background: linear-gradient(180deg, #1ea564 0%, #157247 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(21,114,71,.40), 0 0 0 1.5px rgba(255,255,255,0.6) inset;
}
.p7-cta-lead {
  background: var(--brand-deep); color: var(--brand-gold);
  box-shadow: 0 6px 18px rgba(20,33,61,0.32);
}
.section-cta { background: var(--brand-deep); }
.section-cta .sec-title { color: #fff; }
.section-cta .sec-lead { color: #d6d9e0; }
.section-cta .kicker { color: var(--brand-gold); }

/* ============================================================
  21) Responsive (mobile breakpoints)
============================================================ */
/* premium-grid uses the multi-fraction layout defined above (2.4fr 1fr 1fr) — keep media rules verbatim */
@media (min-width: 760px) {
  .premium-grid { gap: 18px; }
}
@media (max-width: 720px) {
  .premium-hover-frame { height: 280px; }
  .premium-hover-overlay { padding: 18px 18px 20px; }
  .premium-hover-overlay strong { font-size: 16px; }
  .premium-hover-overlay p { font-size: 12.5px; line-height: 1.55; }

  .hero { aspect-ratio: 18 / 11; max-height: none; min-height: 360px; padding: 70px 18px 60px; }
}

/* Hide scroll inside body when popup open — handled via JS */

/* ============ emoji-styled section title ============ */
.sec-title-emoji {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}
.sec-title-em {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  font-size: 28px;
  background: linear-gradient(180deg, var(--brand-gold) 0%, #b69254 100%);
  color: #fff;
  border-radius: 14px;
  margin-right: 16px;
  box-shadow: 0 6px 18px rgba(200,169,107,0.32);
  font-weight: 400;
  letter-spacing: 0;
  position: relative;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .sec-title-em { width: 38px; height: 38px; font-size: 22px; margin-right: 12px; }
}

/* ========== 단지내 상가 안내 heading spans ========== */
.store-hl {
  background: linear-gradient(180deg, #ffe57f 0%, #ffc107 100%);
  color: #14213d;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* 로그 카드 hero spacing — 작은 텍스트 제거 후 hero 패딩 조정 */
.hero-inner > .hero-kv,
.hero-inner > .hero-note,
.hero-inner > .hero-badges { display: none; }

/* ========== 페이지 하단 박스 디자인 (사용자 33_1.JPG 그대로) ========== */
.section-contract-box { padding: 40px 0; background: #ffffff; }
.container-contract-box { display: flex; justify-content: center; }
.contract-info-box {
  display: inline-flex; justify-content: center;
  max-width: 880px; width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15,20,40,0.06);
  padding: 24px;
}
.contract-info-box img {
  width: 100%; height: auto; max-width: 100%; object-fit: contain;
}

/* ========== ref-grid 이모티콘 prefix 지원 ========== */
.ref-grid-em .ref-cell { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: flex-start; }
.ref-cell-em {
  font-size: 36px; line-height: 1;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fff8e6 0%, #ffe7a6 100%);
  border-radius: 16px;
  flex: 0 0 auto;
  align-self: flex-start;
}
.ref-cell-hot .ref-cell-em {
  background: linear-gradient(180deg, #ffd8d4 0%, #f5b1a8 100%);
}
.ref-cell-no-text {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.ref-cell-hot .ref-cell-no-text { color: var(--brand-hot); }

/* 기존 ref-cell padding은 그대로 살림 */
.ref-grid-em .ref-cell { padding: 22px 20px 24px; }
.ref-grid-em .ref-cell-hot { border-left: 4px solid var(--brand-hot); padding-left: 16px; }

@media (max-width: 540px) {
  .ref-cell-em { font-size: 24px; width: 44px; height: 44px; }
  .ref-grid-em .ref-cell { grid-template-columns: 44px 1fr; gap: 10px; }
}

/* ========== 갤러리 세로 사진 박기 ========== */
.gallery-cell img.is-portrait {
  /* 세로형: 가로 폭에 맞춰 contain 하고 위아래 padding으로 가는 식 */
  width: 100%; height: 100%;
  object-fit: contain;
  background: #1a2238;
  border-radius: 0;
}

/* ========== 사이트 플랜 동일 박스 패턴 (.img-block 통일) ========== */
.section-siteplan.section-bleed {
  padding: 60px 0 64px;
  background: #ffffff;
}
.section-siteplan.section-bleed .container {
  max-width: var(--maxw);
  padding-left: 22px;
  padding-right: 22px;
  margin: 0 auto;
  width: 100%;
}
.bleed-image {
  margin: 18px 0;
  background: #ffffff;
  border: 1px solid #d8dbe2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(15,20,40,0.05);
}
.bleed-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.bleed-image figcaption {
  padding: 10px 14px;
  background: #f6f7fa;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  border-top: 1px solid var(--border-2);
  text-align: center;
}

/* ========== 최종 상담 CTA (사용자 시안 디자인: 다크 네이비 + 가운데 정렬) ========== */
.section-cta-centered {
  background: #14213d;
  color: #ffffff;
  padding: 70px 0 56px;
}
.container-cta-centered {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center;
}
.cta-centered-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 5.4vw, 40px);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.cta-centered-sub {
  margin: 0; font-size: 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.7;
  max-width: 700px;
}
.cta-centered-btn {
  background: linear-gradient(180deg, #1ea564 0%, #157247 100%) !important;
  color: #ffffff !important;
  padding: 18px 36px !important;
  font-size: 22px !important;
  margin-top: 4px;
  box-shadow: 0 10px 30px rgba(21,114,71,0.45), 0 0 0 1.5px rgba(255,255,255,0.7) inset;
  border-radius: 999px;
  min-width: 280px;
}
.cta-centered-btn:hover {
  transform: translateY(-1px); 
  box-shadow: 0 14px 36px rgba(21,114,71,0.55), 0 0 0 1.5px rgba(255,255,255,0.7) inset;
}
.cta-centered-btn .cta-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
}
.cta-centered-btn .cta-num { font-size: 32px !important; font-weight: 900 !important; color: #fff !important; }


/* ========== Premium 카드 hover 디스플레이 ========== */
.premium-card { cursor: pointer; display: flex; flex-direction: column; }
.premium-card > .premium-hover-frame { flex: 1; }
.premium-card > .premium-cap { margin-top: 12px; }
.premium-hover-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  height: 340px;
  background: #1a2238;
}
.premium-hover-frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .35s ease;
}
.premium-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,33,61,0.0) 0%, rgba(20,33,61,0.78) 38%, rgba(20,33,61,0.92) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px 26px 26px;
  color: #ffffff;
  opacity: 0;
  transition: opacity .35s ease;
  -webkit-transform: translateZ(0);
}
.premium-hover-overlay .pt-kicker {
  background: rgba(255, 230, 122, 0.95);
  color: #1a1a1a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.premium-hover-overlay strong {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  color: #ffffff;
  display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.45);
  margin-bottom: 12px;
  line-height: 1.35;
}
.premium-hover-overlay p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.94);
  line-height: 1.62;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  font-weight: 400;
}

/* Hover state */
.premium-card:hover .premium-hover-overlay {
  opacity: 1;
}
.premium-card:hover .premium-hover-frame > img {
  transform: scale(1.04);
  filter: brightness(0.85);
}
/* Touched (mobile) — keep overlay visible always */
@media (hover: none) {
  .premium-hover-overlay { opacity: 1; }
  .premium-card:hover .premium-hover-frame > img { transform: none; filter: none; }
}

/* ========== <strong> 글자 사이즈 통일 — user: 도보5분 안 굵게만, 사이즈X ========== */
.store-list li strong,
[class^="sec-"] li strong,
[class^="ref-"] li strong,
.cta-feature-list strong,
.premium-list li strong {
  font-weight: 800 !important;
  font-size: inherit !important;
  color: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  /* brand color highlight */
  color: var(--brand-deep);
}
/* store-list 의 도보 5분 다크 navy 강조 */
.store-list li strong {
  background: rgba(200, 169, 107, 0.18);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ============================================================
   Premium 민박 4 박스 (호버 없음 · 사용자 시안 디자인 그대로)
============================================================ */
.premium-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  margin-top: 22px;
  align-items: stretch;
}
.premium-item {
  background: #ffffff;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,20,40,0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* 1 큰 박스 + 3 작은 박스를 우측 세로 stack 으로 배치 */
.premium-large  { grid-column: 1 / 2; grid-row: 1 / span 3; }
.premium-item:nth-of-type(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.premium-item:nth-of-type(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.premium-item:nth-of-type(4) { grid-column: 2 / 3; grid-row: 3 / 4; }

.premium-image-frame {
  width: 100%;
  background: #1a2238;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.premium-large .premium-image-frame { aspect-ratio: 4 / 3; }
.premium-item:nth-of-type(2) .premium-image-frame,
.premium-item:nth-of-type(3) .premium-image-frame,
.premium-item:nth-of-type(4) .premium-image-frame { aspect-ratio: 16 / 10; }
.premium-image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.premium-text-block {
  padding: 14px 16px 16px;
  background: #14213d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}
.premium-kicker {
  background: var(--brand-gold);
  color: #14213d;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-block;
  align-self: flex-start;
}
.premium-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 16.5px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 2px;
}
.premium-large .premium-title { font-size: 22px; }
.premium-body {
  font-size: 12.5px;
  color: rgba(245, 214, 138, 0.95);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}
.premium-large .premium-body { font-size: 13.5px; color: rgba(255,255,255,0.88); }

@media (max-width: 880px) {
  .premium-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .premium-large,
  .premium-item:nth-of-type(2),
  .premium-item:nth-of-type(3),
  .premium-item:nth-of-type(4) { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* =====================================
   메인 nav menu (sticky 황색 박스 바로 아래)
===================================== */
.section-nav {
  background: linear-gradient(180deg, #14213d 0%, #0a1628 100%);
  border-bottom: 2px solid var(--brand-gold);
  position: sticky;
  top: 0;             /* top-event 가 상자에서 따라 sticky 처리됨 — 아래 위치시 조정 */
  z-index: 800;
  box-shadow: 0 4px 14px rgba(15,20,40,0.10);
}
.section-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; height: 0; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 12px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.06);
  flex: 1 0 auto;
  position: relative;
  transition: background 0.16s ease;
}
.nav-link:last-child { border-right: none; }
.nav-link:hover {
  background: rgba(200,169,107,0.10);
  color: var(--brand-gold);
}
.nav-link.active {
  background: var(--brand-gold);
  color: #14213d !important;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand-gold);
}
.nav-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-gold);
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
}
.nav-link:hover .nav-num,
.nav-link.active .nav-num {
  background: rgba(255,255,255,0.12);
  color: #14213d;
}
.nav-label {
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.nav-link-cta {
  background: linear-gradient(180deg, #1ea564, #157247);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 900;
}
.nav-link-cta:hover {
  background: linear-gradient(180deg, #1ea564, #157247);
  color: #ffffff !important;
}
.nav-link-cta .nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  width: 18px; height: 18px;
  padding: 0;
}
@media (max-width: 720px) {
  .nav-label { font-size: 12px; }
  .nav-link { padding: 10px 10px 9px; }
  .nav-num { font-size: 10px; padding: 1px 4px; }
  .section-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.tl-block-no {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(200,169,107,0.18);
  color: var(--brand-gold);
  border: 1px solid rgba(200,169,107,0.5);
  border-radius: 999px;
  vertical-align: middle;
}
.tl-item.now .tl-block-no {
  background: var(--brand-gold);
  color: #14213d;
  border-color: var(--brand-gold);
}

/* === section-lead 안 sec-lead/lead-form 카드 색상 강제 === */
.section-lead .sec-lead { color: rgba(255,255,255,0.92); }
.section-lead .lead-form-card { background: #ffffff; color: var(--ink); }
.section-lead .lead-msg-ok::after { color: var(--ink); }

/* 평면도와 관심고객 강하게 분리 */
.section-floor { padding-bottom: 110px; }

/* === 관심고객 등록 섹션 navy 풀 배경 (평면도와 강하게 시각 분리) === */
/* === 관심고객 등록 섹션 — 가장 강하게 시각 분리 === */
.section-lead {
  background:
    linear-gradient(180deg, rgba(255,229,127,0.08) 0%, transparent 12%),
    linear-gradient(180deg, #050b1a 0%, #0a1628 8%, #14213d 30%, #14213d 70%, #0a1628 92%, #050b1a 100%);
  padding: 110px 0 90px;
  color: #ffffff;
  position: relative;
  border-top: 8px solid var(--brand-gold);
  border-bottom: 4px solid var(--brand-gold);
  margin-top: 0;
}
/* 큰 gold bar (16px) outline outside the section to make the gap visible */
.section-lead::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 8px;
  background: var(--brand-gold);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.85);
  z-index: 4;
}
.section-lead::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-gold) 30%, var(--brand-gold) 70%, transparent 100%);
}
/* Decorative chapter label surrounds the lead title */
.section-lead .container {
  position: relative;
}
.section-lead::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-gold) 30%, var(--brand-gold) 70%, transparent 100%);
}
.section-lead::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-gold) 30%, var(--brand-gold) 70%, transparent 100%);
}

/* === 짧은 핵심 sec-lead (siteplan/community) === */

.sec-lead-short {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft, #6B7280);
  margin: 0 auto 28px;
  max-width: 720px;
}
.sec-lead-short strong {
  color: var(--ink, #14213d);
  font-weight: 800;
}
@media (max-width: 720px) {
  .sec-lead-short { font-size: 15px; }
}


/* === 관심고객 등록 섹션 chapter 마크 (페이지 내에서 가장 큰 chip) === */
.lead-chapter-mark {
  display: block;
  width: max-content;
  margin: 0 auto 24px;
  padding: 14px 36px 13px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #ffe57f 0%, #f7d34e 100%);
  color: #14213d;
  border: 1.5px solid #c8a96b;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15,20,40,0.18), inset 0 0 0 2px rgba(255,255,255,0.4);
  text-align: center;
  position: relative;
  z-index: 3;
}


/* ============================== VIDEO 섹션 ============================== */
.section-video {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f1 100%);
  padding: 64px 0 56px;
  text-align: center;
  border-top: 1px solid rgba(200,169,107,0.15);
}
.section-video .sec-title { margin-bottom: 14px; }
.section-video .video-frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 18px auto 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15,20,40,0.16), 0 0 0 4px rgba(255,255,255,0.9), 0 0 0 5px var(--brand-gold);
  background: #0a1628;
  aspect-ratio: 16 / 9;
}
.section-video .video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  max-width: 720px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: #6B7280;
}
@media (max-width: 720px) {
  .section-video { padding: 48px 0 44px; }
  .section-video .video-frame { box-shadow: 0 8px 22px rgba(15,20,40,0.18); }
}


/* === 시공사 양대 브랜드 박스 (대광로제비앙 + 모아엘가) === */
.brand-partnership {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .brand-partnership { grid-template-columns: 1fr; }
  .brand-card-divider { padding: 8px 0; }
}
.brand-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 26px 24px 24px;
  border: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-card-primary {
  border-top: 4px solid var(--brand-gold);
  box-shadow: 0 8px 26px rgba(15,20,40,0.08);
  position: relative;
}
.brand-card-primary::before {
  content: "LEAD";
  position: absolute;
  top: -10px; right: 24px;
  padding: 4px 12px;
  background: var(--brand-gold);
  color: #14213d;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  letter-spacing: 0.18em;
}
.brand-card-secondary {
  background: linear-gradient(180deg, #faf8f1 0%, #ffffff 100%);
}
.brand-card-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-gold);
  background: rgba(200,169,107,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  width: max-content;
}
.brand-card-logo {
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.04);
}
.brand-card-logo svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
.brand-card-kicker {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #14213d);
  margin-top: 4px;
}
.brand-card-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}
.brand-card-desc strong { color: var(--ink, #14213d); font-weight: 800; }
.brand-card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-card-divider-x {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: var(--brand-gold);
  color: #14213d;
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(200,169,107,0.4);
}

/* === 시공사 소개 이미지 그리드 === */
.trust-feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(180deg, #faf8f1 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-2);
  box-shadow: 0 4px 14px rgba(15,20,40,0.04);
}
@media (max-width: 720px) {
  .trust-feature-grid { grid-template-columns: 1fr; }
}
.trust-feature-img {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1a2238;
}
.trust-feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.trust-feature-img figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(15,20,40,0) 0%, rgba(15,20,40,0.85) 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
}
.trust-feature-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-feature-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 900;
  color: #14213d;
  margin: 0;
}
.trust-feature-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #374151;
}
.trust-feature-lead strong { color: var(--brand-gold); font-weight: 800; }
.trust-feature-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-feature-list li {
  font-size: 13.5px;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.trust-feature-list .dot {
  display: inline-flex;
  margin-top: 7px;
  width: 6px; height: 6px;
  background: var(--brand-gold);
  border-radius: 999px;
  flex: 0 0 auto;
}


/* === 브랜드 로고 박스 (기본 SVG, 이미지도 받을 수 있음) === */
.brand-card-logo {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 220px;
  height: 56px;
  overflow: hidden;
}
.brand-card-logo svg {
  width: 200px;
  height: 40px;
  display: block;
}
.brand-card-logo img.brand-logo-img {
  max-height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}


/* === 브랜드 카드 list (LOGEBIEN / MOA ELGA 실적 표시) === */
.brand-card-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* === 브랜드 카드 bullet list — wrap 정렬 보장 === */
.brand-card-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: block;        /* flex 대신 block 으로 */
}
.brand-card-list li {
  font-size: 12.5px;
  color: #374151;
  display: block;        /* block (단일 line-level 박스로 처리) */
  position: relative;
  padding: 0 0 6px 22px;     /* 들여쓰기: dot 4px + gap 8px + padding-left 10px 텍스트 시작 */
  line-height: 1.6;
  word-break: keep-all;
  hyphens: manual;
  min-height: 18px;          /* 줄 높이 또는 dot 위치 잡기 */
}
.brand-card-list .b-dot {
  display: inline-block;
  position: absolute;
  top: 8px;             /* 첫 줄 중앙 정렬 — 글자 baseline 기준 보정 */
  left: 4px;
  width: 6px; height: 6px;
  background: var(--brand-gold);
  border-radius: 999px;
  flex: none;
  margin-top: 0;       /* flex 마진 제거 */
}
.brand-card-list li strong {
  color: var(--brand-gold);
  font-weight: 800;
  display: inline;        /* 강제 inline — 혹시 다른 곳에서 block 상속 안하도록 */
  white-space: normal;   /* 강제 그렇지 않으면 nowrap */
}
.brand-card-list .b-dot {
  display: inline-flex;
  margin-top: 7px;
  width: 5px; height: 5px;
  background: var(--brand-gold);
  border-radius: 999px;
  flex: 0 0 auto;
}


/* === PC 데스크탑 너비: nav-link 간격 압축해서 9개 항목이 1280px 안에 모두 깨끗하게 들어맞도록 === */
@media (min-width: 1025px) {
  .section-nav-inner .nav-link {
    padding: 12px 12px 11px;
    gap: 6px;
  }
  .section-nav-inner .nav-num {
    font-size: 9.5px;
    padding: 2px 5px;
  }
  .section-nav-inner .nav-label {
    font-size: 13px;
    letter-spacing: 0.01em;
  }
  .section-nav-inner {
    overflow-x: hidden;
  }
}


/* === 데스크탑 nav 좁은 link (영상 투어) — padding 약간 더 작게 === */
@media (min-width: 1025px) {
  .section-nav-inner .nav-link[data-target="video"] {
    padding: 12px 8px 11px;
  }
}


/* === 브랜드 카드 단순 텍스트 이름 표시 (로고 제거) === */
.brand-card-name {
  background: transparent;
  padding: 6px 4px 8px;
  max-width: none;
  display: block;
}
.brand-card-name-text {
  display: inline-block;
  font-family: 'Noto Serif KR', 'Times New Roman', serif;
  font-weight: 900;
  font-size: 26px;
  color: #14213d;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #c8a96b;
  padding-bottom: 4px;
}
.side-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1ea564, #157247);
  border-radius: 8px;
  border-top: 0;
  width: 100%;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(21,114,71,0.30);
  transition: transform .15s ease, box-shadow .15s ease;
}
.side-promo-cta strong { color: #ffffff; font-weight: 800; }
.side-promo:hover .side-promo-cta {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21,114,71,0.40);
  background: linear-gradient(180deg, #26bb75, #178f55);
}
.side-promo-cta-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #ffffff;
}


/* === siteplan-summary: 4-cell grid with emoji + label + value === */
.siteplan-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 4px 0;
}
@media (max-width: 720px) {
  .siteplan-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
.siteplan-summary-cell {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 3px solid var(--brand-gold);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15,20,40,0.04);
}
.siteplan-summary-emoji {
  font-size: 24px;
  margin-bottom: 2px;
  display: inline-block;
  line-height: 1;
}
.siteplan-summary-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.siteplan-summary-value {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #14213d;
  line-height: 1.4;
}
.siteplan-summary-value strong {
  color: #14213d;
  font-weight: 900;
}


/* === section-lead 본문 안에서 <strong> 문구가 navy-bg에 안 보이는 문제 해결 === */
.section-lead .sec-lead strong { color: var(--brand-gold); }
/* 모바일에서 sec-lead 본문 폰트 사이즈 명시적으로 보장 */
.section-lead .sec-lead { color: #f5f7fa; }


/* === 시공사 브랜드 카드 모바일 정리 === */
/* 희망: '주 시공사' / '공동 시행' 등 라벨 제거 */
.brand-card-eyebrow { display: none !important; }

/* 모바일 bullet list 가독성 — flex 단순화로 text break 개선 */
@media (max-width: 720px) {
  .brand-card-list li {
    font-size: 12px;
    line-height: 1.5;
    display: flex;
    gap: 6px;
    word-break: keep-all;        /* 한글 단어 단위 줄바꿈 보존 */
    overflow-wrap: anywhere;
  }
  .brand-card-list li strong { display: inline; }
  .brand-card-list .b-dot {
    margin-top: 6px;
    flex: 0 0 auto;
  }
  /* brand-partnership grid가 모바일에서 1열 — 각 카드 가독성 보강 */
  .brand-card {
    padding: 22px 18px 20px;
  }
  .brand-card-desc {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .brand-card-name-text {
    font-size: 22px;
  }
  .brand-card-kicker {
    font-size: 13.5px;
  }
  .brand-card-divider {
    padding: 4px 0;
  }
}
.premium-grid {
  grid-template-columns: 2.4fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

/* === PREMIUM ZONE 2개로 분리 (브레인시티 자체 / 의료 호재) === */
.premium-subzone { margin: 0 0 32px; }
.premium-subzone:last-child { margin-bottom: 0; }
.premium-subzone-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.premium-subzone-no {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-gold);
  background: rgba(200,169,107,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.premium-subzone-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 900;
  color: #14213d;
  letter-spacing: 0.01em;
}
.premium-subzone-sub {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ZONE ① — 브레인시티 메디스파크 자체 입지 (3-card grid) */
.premium-subzone-area { background: linear-gradient(180deg, #faf8f1 0%, #ffffff 100%); padding: 24px 22px; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; border-left: 4px solid var(--brand-gold); }
.premium-subzone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .premium-subzone-grid { grid-template-columns: 1fr; }
  .premium-subzone-area { padding: 18px 14px; }
}

/* ZONE ② — 의료 호재 (full-width single card, navy 배경으로 시각 분리) */
.premium-subzone-medical {
  background: linear-gradient(135deg, #14213d 0%, #0d182d 100%);
  padding: 28px 24px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  margin-top: 36px;
}
.premium-subzone-medical::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,229,127,0.08) 0%, transparent 18%);
  pointer-events: none;
}
.premium-subzone-medical .premium-subzone-head {
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.premium-subzone-medical .premium-subzone-no {
  color: var(--brand-gold);
  background: rgba(200,169,107,0.20);
}
.premium-subzone-medical .premium-subzone-title { color: #ffffff; font-size: 24px; }
.premium-subzone-medical .premium-subzone-sub { color: rgba(255,255,255,0.80); font-size: 14px; }

/* 의료 standalone article: white card inside navy */
.premium-medical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .premium-medical-grid { grid-template-columns: 1fr; }
}

.premium-medical {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
  position: relative;
}
.premium-medical .premium-image-frame {
  aspect-ratio: 4 / 3;
  background: #f6f7fa;
  border-radius: 0;
}
.premium-medical .premium-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.premium-medical .premium-text-block {
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.premium-medical .premium-kicker {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(200,169,107,0.18);
  color: #7d5a25;
  margin: 0;
}
.premium-medical .premium-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 18px;
  font-weight: 900;
  color: #14213d;
  margin: 0;
}
.premium-medical .premium-body {
  font-size: 13px;
  color: #1f2937;       /* 이전 #374151 → #1f2937 (더 진한 검정톤, 가독성 ↑) */
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 720px) {
  .premium-subzone-medical { padding: 20px 16px; }
  .premium-medical .premium-text-block { padding: 16px 16px 18px; }
  .premium-medical .premium-body { font-size: 13px; }
}

/* 모바일에서 minmax 더 작게 자동 조정 */
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .type-tab { min-width: 84px; padding: 10px 12px 9px; }
  .type-tab-label { font-size: 14px; }
  .type-tab-meta { font-size: 10px; }
}


/* ===== 3D Flip Card (ZONE ① 자체 입지 카드) ===== */
.premium-subzone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1500px;       /* 3D 원근감 — 부모에서 지정해야 자식에 적용됨 */
}
@media (max-width: 720px) {
  .premium-subzone-grid { grid-template-columns: 1fr; }
}

.flip-card {
  position: relative;
  width: 100%;
  min-height: 320px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.flip-card:focus-visible { box-shadow: 0 0 0 3px rgba(200,169,107,0.6); border-radius: 14px; }

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 14px;
}
.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner { transition: none; }
}

.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  box-shadow: 0 14px 36px rgba(15,20,40,0.10);
}

/* === FRONT: 이미지 + 타이틀 + 배지 === */
.flip-card-front {
  background: #14213d;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.flip-card-front .flip-card-img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.flip-card:hover .flip-card-front .flip-card-img { transform: scale(1.05); }

.flip-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(15,20,40,0.85) 100%);
  pointer-events: none;
}
.flip-kicker {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  background: rgba(20,33,61,0.78);
  color: var(--brand-gold);
  border-radius: 999px;
  border: 1px solid rgba(200,169,107,0.4);
}
.flip-arrow {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(20,33,61,0.78);
  color: var(--brand-gold);
  font-size: 16px; font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(200,169,107,0.4);
  transition: transform .3s ease;
}
.flip-card:hover .flip-arrow { transform: translateX(2px); }

.flip-card-title {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 2;
  margin: 0;
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* === BACK: 어두운 배경 + 상세 설명 + stat === */
.flip-card-back {
  background: linear-gradient(160deg, #14213d 0%, #0d182d 100%);
  color: #f5f7fa;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotateY(180deg);
}
.flip-card-back::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-gold), #e2c98e, var(--brand-gold));
}
.flip-back-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--brand-gold);
  background: rgba(200,169,107,0.16);
  padding: 4px 10px;
  border-radius: 999px;
  width: max-content;
}
.flip-back-title {
  margin: 0;
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
}
.flip-back-body {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  margin: 0 0 4px;
}
.flip-back-stats {
  list-style: none;
  margin: auto 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed rgba(200,169,107,0.35);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.flip-back-stats li {
  display: flex; flex-direction: column; gap: 2px;
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid rgba(200,169,107,0.18);
}
.flip-back-stats li:last-child { border-right: 0; }
.flip-back-stats .flip-stat-eyebrow,
.flip-back-stats li > span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  white-space: nowrap;
}
.flip-back-stats .flip-stat-main,
.flip-back-stats li > strong {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  font-weight: 900;
  color: var(--brand-gold);
  white-space: nowrap;
}
.flip-back-stats .flip-stat-sub,
.flip-back-stats li > em {
  font-style: normal;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
}
.flip-back-stats li span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.flip-back-stats li strong {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 900;
  color: var(--brand-gold);
}
.flip-back-stats li em {
  font-style: normal;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
}

/* Mobile-only hint: tap → flip */
.flip-card .flip-card-front::before {
  content: "터치하여 상세 보기";
  position: absolute;
  bottom: 50px; left: 18px;
  z-index: 3;
  font-size: 10.5px;
  color: rgba(255,255,255,0.7);
  background: rgba(20,33,61,0.6);
  padding: 4px 9px;
  border-radius: 999px;
}
@media (min-width: 721px) {
  .flip-card .flip-card-front::before { display: none; }
}


/* PC 데스크탑: brand card 너비 충분 → bullet 줄바꿈 최소화 */
@media (min-width: 1025px) {
  .brand-card-list li {
    font-size: 12.5px;
    line-height: 1.6;
    word-break: keep-all;
  }
  .brand-partnership {
    gap: 18px;
  }
}


/* === 의료·연구 2-card 그리드 (AJOU + KAIST) === */
.premium-medical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .premium-medical-grid { grid-template-columns: 1fr; gap: 18px; }
}

.premium-medical-card {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.10);
}
.premium-medical-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  display: inline-block;
  width: max-content;
  background: rgba(200,169,107,0.20);
  color: var(--brand-gold);
  border-radius: 999px;
  margin: 0 0 14px;
}
.premium-medical-title {
  margin: 0 0 16px;
  font-family: 'Noto Serif KR', serif;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.005em;
  line-height: 1.25;
}
.premium-medical-img {
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.10);
}
.premium-medical-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.premium-medical-caption {
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(15,20,40,0.4) 0%, rgba(20,33,61,0.7) 100%);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(200,169,107,0.25);
  text-align: center;
}

/* === 입지도 (지도 이미지) — PREMIUM 첫 번째 이미지 (Editorial 디자인) === */
.img-block-overview {
  position: relative;
}

/* 골드 accent strip (상단 + 하단 얇은 띠 — 페이지 theme 통일) */
.img-block-overview::before,
.img-block-overview::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(200,169,107,0) 0%,
    rgba(200,169,107,0.55) 50%,
    rgba(200,169,107,0) 100%);
  z-index: 2;
  pointer-events: none;
}
.img-block-overview::before { top: -3px; }
.img-block-overview::after { bottom: -3px; }

.img-block-overview .img-block-framed {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20,33,61,0.10);
  box-shadow:
    0 2px 6px rgba(15,20,40,0.04),
    0 12px 32px rgba(15,20,40,0.08);
  position: relative;
}

/* 이미지: native 2:1 aspect 유지, 잘림 없이 */
.img-block-overview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 720px) {
  .img-block-overview img {
    aspect-ratio: 16 / 9;
    max-height: 360px;
  }
}


/* === 모델하우스 사진 갤러리 (현장감 + privacy) === */
.section-modelhouse {
  background: linear-gradient(180deg, #faf8f1 0%, #ffffff 100%);
  padding: 80px 0;
}
.section-modelhouse .sec-title { text-align: center; }
.section-modelhouse .sec-lead { text-align: center; margin-bottom: 36px; }

.modelhouse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .modelhouse-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .modelhouse-grid { grid-template-columns: 1fr; gap: 14px; }
}

.modelhouse-card {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0d182d;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(15,20,40,0.10);
  transition: transform 0.35s cubic-bezier(0.4,0.0,0.2,1);
}
.modelhouse-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(15,20,40,0.16); }
.modelhouse-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}
.modelhouse-tag {
  display: none !important;   /* 사용자 지시: 이미지에 텍스트 넣지 마 */
}


/* === SITE PLAN 내 단지 녹지 / 자연 조경 상세 sub-section === */
.siteplan-landscape {
  margin-top: 56px;
  padding: 36px 24px 40px;
  background: linear-gradient(180deg, rgba(250, 248, 241, 0.6) 0%, rgba(255, 255, 255, 0.0) 100%);
  border-radius: 14px;
  border: 1px solid rgba(120, 110, 90, 0.08);
}
.siteplan-landscape-head {
  text-align: center;
  margin-bottom: 28px;
}
.siteplan-landscape-no {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 33, 61, 0.08) 0%, rgba(20, 33, 61, 0.14) 100%);
  color: var(--brand-deep);
  margin-bottom: 12px;
}
.siteplan-landscape-title {
  display: block;
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--brand-deep);
  margin-bottom: 12px;
  line-height: 1.25;
}
.siteplan-landscape-sub {
  font-size: clamp(13px, 1.6vw, 15px);
  color: #4a5468;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 720px;
}

.siteplan-landscape-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .siteplan-landscape-grid { grid-template-columns: 1fr; gap: 14px; }
}

.landscape-card {
  background: #ffffff;
  padding: 22px 24px 20px;
  border-radius: 12px;
  border: 1px solid rgba(120, 110, 90, 0.10);
  box-shadow: 0 4px 14px rgba(15,20,40,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}
.landscape-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(15,20,40,0.10);
}
.landscape-emoji {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 4px;
}
.landscape-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-deep);
  line-height: 1.3;
  margin: 0;
}
.landscape-card-body {
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}
.landscape-card-meta {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200,169,107,0.22) 0%, rgba(255,229,127,0.18) 100%);
  color: #7d5a25;
  display: inline-block;
  align-self: flex-start;
  border: 1px solid rgba(200,169,107,0.30);
}

/* === Sticky CTA phone icon — red color override === */
.sticky-icon {
  font-size: 18px;
  color: #e74c3c;  /* 빨간색 전화기 */
  display: inline-flex;
  align-items: center;
}
.sticky-icon svg {
  color: #e74c3c;  /* svg icon 빨간색 */
}

/* === VIDEO TOUR 모바일 타이틀 줄바꿈 보정 === */
@media (max-width: 720px) {
  .section-video .sec-title {
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .section-video .sec-title span.kicker {
    margin-bottom: 8px;
  }
  .section-video .sec-lead {
    line-height: 1.55;
    word-break: keep-all;
  }
  .section-video .sec-lead br { display: none; }   /* 모바일 br 제거 → 자연 wrap */
  .video-frame {
    margin: 0 -16px;
  }
  .video-caption {
    text-align: left;
    word-break: keep-all;
  }
}
@media (max-width: 360px) {
  .section-video .sec-title {
    font-size: 22px;
  }
}

