/* v4 통합 페이지 추가 스타일 */

/* 흐르는 띠 */
.ticker {
  overflow: hidden; background: var(--navy); padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker-track {
  display: inline-flex; white-space: nowrap;
  animation: ticker 22s linear infinite;
}
.ticker-track span {
  font-size: 0.88rem; font-weight: 600; color: var(--gold-bright);
  padding-right: 48px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* 히어로 앵커 버튼 */
.hero-anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hero-anchors a {
  font-size: 0.84rem; font-weight: 600; color: var(--white);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.hero-corp-link {
  display: inline-block; font-size: 0.86rem; color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px; text-decoration: underline; text-underline-offset: 3px;
}

/* 핵심 혜택 번호 카드 */
.core-cards { display: grid; gap: 12px; }
.core-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.core-card .num {
  flex: none; font-size: 1.05rem; font-weight: 800; color: var(--gold);
  letter-spacing: 0.02em; padding-top: 2px;
}
.core-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.core-card p { font-size: 0.9rem; color: var(--muted); }

/* 소유 안내 박스 */
.own-box {
  margin-top: 16px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.own-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.own-box p { font-size: 0.88rem; color: var(--muted); }

/* 법인 재무 행 */
.fin-rows { display: grid; gap: 10px; margin: 20px 0; }
.fin-row {
  display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 14px 16px;
}
.fin-row .k { font-size: 0.95rem; font-weight: 800; color: var(--gold-bright); }
.fin-row .v { font-size: 0.88rem; color: rgba(255, 255, 255, 0.78); }

/* FAQ 뱃지 */
.q-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  background: #e3ecf5; color: var(--navy-2);
  padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 2px;
}

/* 앵커 오프셋 */
section, [id] { scroll-margin-top: 16px; }

/* 717 → 35 퍼널 */
.funnel { text-align: center; margin: 26px 0 6px; }
.funnel .f-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; max-width: 340px; margin: 0 auto;
}
.funnel .f-box .fv { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.funnel .f-box .fl { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.funnel .f-arrow { font-size: 1.3rem; color: var(--gold); padding: 8px 0; font-weight: 700; }
.funnel .f-box.hl { border-color: var(--gold); background: #fdf9ec; }
.funnel .f-box.hl .fv { color: var(--gold); }

/* 분양가 (네이비 섹션) */
.price-list { display: grid; gap: 12px; margin: 24px 0; }
.price-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 20px 22px;
}
.price-item .pn small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-bright); }
.price-item .pn b { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.price-item .pv { font-size: 1.55rem; font-weight: 800; color: var(--gold-bright); letter-spacing: -0.01em; }
.price-cond { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.price-cond span {
  font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 6px 13px;
}

/* 환매 하이라이트 칩 */
.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bb-chips span {
  font-size: 0.82rem; font-weight: 700; color: #8a6a10;
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px;
  padding: 5px 12px;
}

/* 큰 강조 한 줄 */
.big-line {
  margin-top: 18px; text-align: center;
  background: var(--navy); color: var(--gold-bright);
  border-radius: 12px; padding: 14px;
  font-size: 1.05rem; font-weight: 800;
}

/* 인트로 로고 오버레이 */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.intro img { width: 210px; max-width: 60vw; opacity: 0; transform: scale(0.94); animation: introLogo 0.9s ease 0.1s forwards; }
.intro.out { opacity: 0; visibility: hidden; }
@keyframes introLogo {
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}

/* 사진 모달 */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 14, 24, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 22px;
}
.lightbox.on { opacity: 1; visibility: visible; }
.lb-card {
  position: relative; background: var(--white); border-radius: 16px; overflow: hidden;
  max-width: min(560px, 94vw); width: 100%;
  box-shadow: 0 24px 70px rgba(8, 14, 24, 0.45);
  transform: translateY(14px); transition: transform 0.25s ease;
}
.lightbox.on .lb-card { transform: none; }
.lb-card img { display: block; width: 100%; max-height: 62vh; object-fit: cover; }
.lb-card .lb-cap { padding: 14px 18px; font-size: 0.95rem; font-weight: 700; color: var(--ink); text-align: center; }
.lb-card .lb-x {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(8, 14, 24, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.zoomable { cursor: pointer; }

/* 기명/무기명 선택 카드 */
.card[data-mode] { cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; }
.card[data-mode]:active { transform: scale(0.98); }
.card[data-mode].active { border-color: var(--gold); box-shadow: 0 8px 22px rgba(217, 168, 33, 0.18); }
#modeLine small { display: block; font-size: 0.76rem; font-weight: 500; color: rgba(243, 198, 63, 0.8); margin-top: 3px; }

/* 부대시설 사진 타일 % 뱃지 */
.gtile .pct {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold-bright); color: #241c05;
  font-size: 0.9rem; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
}

/* 밝은 배경용 조건 칩 */
.price-cond.light span { color: var(--ink); border-color: #cfc8b8; }

/* 네이비 섹션 안 흰 카드 색 상속 방지 */
.job-mock { color: var(--ink); }
.job-mock .jm-title { color: var(--ink); }

/* 기명/무기명 탭 패널 */
.mode-panel { display: none; margin-top: 14px; }
.mode-panel.on { display: block; animation: panelIn 0.35s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.panel-h { font-size: 0.95rem; font-weight: 800; color: var(--navy); margin: 18px 0 10px; }

/* 모달 사진 넘기기 */
.lb-nav {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8, 14, 24, 0.5); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 1.7rem; line-height: 1; cursor: pointer; user-select: none;
}
.lightbox.has-nav .lb-nav { display: flex; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
