/* ===== 현장 브랜드: 남성역 헤르니티 (로고 다크 올리브브라운 · 골드) — 기준 사이트 CSS 위에 색만 덮어씀 ===== */
:root {
  --main: #3a3324;
  --point: #b39a6c;
  --line: #e7e1d4;
  --bg-alt: #f4f0e7;
  --reg-dark1: #3a3324;
  --reg-dark2: #1c1810;
  --reg-gold: #d5bf8f;
  --hero-title: #2b2518;
  --sub: #7d6f55;
}
.tab-btn:hover { background: rgba(58,51,36,.06); }
.btn-primary { box-shadow: none; }
.info-table th { background: #faf7f0; }

@media (min-width: 769px) {
  body.home .hero-sky { background: #59a3eb; }
  .hero-sub { background: linear-gradient(90deg, rgba(43,37,24,.88), rgba(43,37,24,.62)) !important; }
  .hero-sub span::before { background: #d5bf8f; }
}

/* 프리미엄 4개 → 2열 */
.premium-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .premium-grid.two { grid-template-columns: 1fr; } }

/* 타입별 세대수 표 색 (06_단지배치도 범례 색) */
.type-table .t59 { background: #f5b67c; }
.type-table .t84a { background: #7fcdea; }
.type-table .t84b { background: #7e95d6; color: #fff; }
.type-table .t84c { background: #3f7c75; color: #fff; }
.type-table .t106 { background: #b47ab8; color: #fff; }

/* 로고 크기 (가로형) */
.logo img { height: 52px; }
.site-footer .footer-logo { height: 30px !important; }
@media (max-width: 768px) { .logo img { height: 34px; } }

/* 글씨가 왼쪽 타워 위에 걸림 → 흰 글씨 + 진한 그림자 */
@media (min-width: 769px) {
  .hero-copy { color: #fff; }
  .hero-copy h1 { color: #fff !important; text-shadow: 0 0 3px rgba(10,14,24,.75), 0 3px 10px rgba(10,14,24,.6), 0 6px 30px rgba(10,14,24,.55) !important; }
  .hero-lead, body.home .hero-kicker { color: #fff !important; font-weight: 700 !important; text-shadow: 0 0 2px rgba(10,14,24,.95), 0 0 6px rgba(10,14,24,.85), 0 0 18px rgba(10,14,24,.7) !important; }
  .hero-lead { font-size: 23px !important; }
  body.home .hero-kicker { color: #ead8ae !important; font-size: 15px !important; }
}
/* 동호수 표 */
.type-table.dong-sum td.sum, .type-table.dong-sum tr.total td { font-weight: 800; }
.type-table.dong-sum tbody th { background: #f1ede4; }
.dong-tabs .tab-list { margin-bottom: 14px; }
.dong-meta { margin: 0 0 10px; text-align: center; color: var(--muted); font-size: 15px; }
.dong-meta b { color: var(--main); font-size: 18px; margin-right: 6px; }
.type-table.dong-line td { font-size: 15px; }
.type-table.dong-line td[class^="t"] { font-weight: 800; }
.unit-note { margin: 10px 0 0; text-align: right; font-size: 14px; }
.unit-note a { color: var(--point); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) {
  .type-table.dong-sum th:nth-child(2), .type-table.dong-sum td:nth-child(2) { display: none; }
  .type-table.dong-line td { font-size: 12px !important; }
  .dong-tabs .tab-btn { flex: 1 1 25%; }
}
/* 프리미엄 카드 사진 (카드 위쪽 꽉 채움) */
.pcard.has-photo { padding-top: 0; overflow: hidden; }
.pcard .pc-photo { margin: 0 -26px 22px; aspect-ratio: 10 / 7; overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard .pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard.has-photo:hover .pc-photo img { transform: scale(1.04); }
@media (max-width: 768px) { .pcard .pc-photo { margin: 0 -20px 18px; } }
/* 새 평면도는 면적표가 함께 있는 가로형 → 넓게 */
.figure.plan { max-width: var(--figure-max); }

/* ===== 동호수배치도: 흰 테두리 이미지 + 동별 표 ===== */
.unit-split { max-width: var(--figure-max); margin: 0 auto 40px; }
.unit-frame img { background: #fff; padding: 26px; border: 1px solid #d6d1c6 !important; }
.dong-grid { display: grid; gap: 14px; margin-top: 16px; }
.dong-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.dong-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.dong-card { background: #fff; border: 1px solid var(--line); }
.type-table.dong-mini { min-width: 0; width: 100%; border-top: 0; font-size: 13px; table-layout: fixed; }
.type-table.dong-mini caption { caption-side: top; padding: 10px 6px; background: var(--main); color: #fff; font-weight: 800; font-size: 15px; }
.type-table.dong-mini caption small { font-weight: 500; opacity: .85; }
.type-table.dong-mini th, .type-table.dong-mini td { padding: 7px 2px; }
.type-table.dong-mini th { width: 44px; font-size: 12px; }
.type-table.dong-mini td[class^="t"] { font-weight: 800; }
.type-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 auto 18px; padding: 0; font-size: 14px; color: #444; }
.type-legend li { display: flex; align-items: center; gap: 6px; }
.type-legend i { width: 14px; height: 14px; display: inline-block; }
.type-legend li.sum { font-weight: 800; color: var(--main); }
@media (max-width: 1024px) { .dong-grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .unit-frame img { padding: 10px; }
  .dong-grid.c3, .dong-grid.c4 { grid-template-columns: 1fr; }
  .type-table.dong-mini { font-size: 12.5px !important; }
}
.dong-grid.c4 .type-table.dong-mini td[class^="t"] { font-size: 11.5px; letter-spacing: -.04em; }
