/* 회원권 라운지 2026-12 개편 테마 — style.css 위에 덮어씁니다 */
:root {
  --ink: #1d2420;
  --strong: #123a2f;
  --dark: #0d2c23;
  --paper: #f7f5ef;
  --light: #ebe7dc;
  --line: #dcd6c8;
  --muted: #56605a;
  --accent: #1f5a46;
  --accent-hover: #154535;
  --accent-soft: #e2eee7;
  --focus: #b8862f;
  --field-border: #a9b2ab;
  --field: #fff;
  --gold: #c49a4a;
  --gold-deep: #9c7630;
  --gold-soft: #f5ecd9;
  --forest: #123a2f;
  --forest-deep: #0b241d;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
body { background: var(--paper); }
.kicker { color: var(--gold-deep); }

/* ---------- 상단 유틸바 + 헤더 ---------- */
.util-bar { background: var(--forest-deep); color: #d9e3dd; font-size: .82rem; }
.util-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.util-inner p { margin: 0; letter-spacing: -.01em; }
.util-inner strong { color: #fff; font-weight: 700; }
.util-links { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.util-links a { color: #d9e3dd; }
.util-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.util-links .util-tel { color: var(--gold); font-weight: 800; }

.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { min-height: 72px; }
.brand-mark { background: var(--forest); color: var(--gold); border-radius: 6px; }
.brand-person { color: var(--gold-deep); }
.top-links { gap: clamp(16px, 2.6vw, 38px); font-size: .97rem; }
.top-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.top-links a:hover { text-decoration: none; border-bottom-color: var(--gold); }
.head-cta.tel-cta { background: var(--forest); color: #fff; border-color: var(--forest); gap: 6px; }
.head-cta.tel-cta:hover { background: var(--forest-deep) !important; }
.head-cta.tel-cta b { color: var(--gold); font-weight: 800; }

/* ---------- 버튼 ---------- */
.button { border-radius: 6px; }
.button.gold { background: var(--gold); color: #1b1608; }
.button.gold:hover:not(:disabled) { background: #d4ab5b; }
.button.ghost-light { border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.button.ghost-light:hover { background: rgba(255,255,255,.16); }

/* ---------- 메인 히어로 ---------- */
.x-hero { position: relative; color: #fff; background: var(--forest-deep); isolation: isolate; overflow: hidden; }
.x-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/hero.webp") center 55% / cover no-repeat; }
.x-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8,30,24,.92) 0%, rgba(8,30,24,.78) 45%, rgba(8,30,24,.35) 100%); }
.x-hero-inner { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.x-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(196,154,74,.16); border: 1px solid rgba(196,154,74,.5); color: var(--gold); font-size: .9rem; font-weight: 750; }
.x-badge::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.x-hero h1 { margin-top: 22px; font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 850; letter-spacing: -.06em; line-height: 1.12; }
.x-hero h1 em { font-style: normal; color: var(--gold); }
.x-hero-copy { margin-top: 20px; max-width: 640px; color: #dbe5df; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.75; word-break: keep-all; }
.x-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.x-hero-actions .button { min-height: 50px; padding-inline: 22px; }

/* 거래신청 바 */
.trade-bar { margin-top: clamp(32px, 4vw, 48px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.28); display: grid; grid-template-columns: 1fr 1.6fr 1fr auto; overflow: hidden; }
.trade-bar label { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-right: 1px solid var(--line); font-size: .78rem; font-weight: 750; color: var(--muted); }
.trade-bar select, .trade-bar input { border: 0; padding: 4px 0; font-size: 1.02rem; font-weight: 650; color: var(--ink); background: transparent; min-width: 0; }
.trade-bar select:focus, .trade-bar input:focus { outline: none; }
.trade-bar label:focus-within { background: var(--accent-soft); }
.trade-bar button { border: 0; background: var(--gold); color: #1b1608; font-weight: 850; font-size: 1.05rem; padding: 0 34px; min-height: 68px; }
.trade-bar button:hover { background: #d4ab5b; }
.trade-note { margin-top: 12px; font-size: .84rem; color: #bccbc3; }

/* 신뢰 지표 */
.trust-strip { background: var(--forest); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 22px 18px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong { display: block; color: var(--gold); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 850; letter-spacing: -.04em; }
.trust-grid span { display: block; margin-top: 4px; color: #cfdbd4; font-size: .9rem; }

/* ---------- 섹션 공통 ---------- */
.x-section { padding: clamp(56px, 7vw, 92px) 0; }
.x-section.alt { background: #fff; border-block: 1px solid var(--line); }
.x-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.x-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 830; }
.x-head p { margin-top: 10px; color: var(--muted); word-break: keep-all; }
.x-head .kicker { margin-bottom: 10px; }

/* 담당자 + 유형 타일 */
.desk-grid { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); gap: 16px; }
.manager-card { background: var(--forest); color: #fff; border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.manager-top { display: flex; gap: 16px; align-items: center; }
.manager-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--forest-deep); border: 2px solid var(--gold); flex: none; }
.manager-photo.fallback { display: grid; place-items: center; color: var(--gold); font: 400 2rem/1 Georgia, serif; }
.manager-card small { color: var(--gold); font-weight: 750; font-size: .82rem; }
.manager-card h3 { font-size: 1.6rem; font-weight: 850; margin-top: 2px; }
.manager-card p { color: #cfdbd4; font-size: .93rem; line-height: 1.65; word-break: keep-all; }
.manager-contact { display: grid; gap: 8px; margin-top: auto; }
.manager-contact a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-weight: 750; }
.manager-contact a:hover { background: rgba(255,255,255,.14); }
.manager-contact b { color: var(--gold); }
.type-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: 12px; overflow: hidden; color: #fff; padding: 22px; isolation: isolate; }
.type-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.type-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,30,24,0) 30%, rgba(8,30,24,.88) 100%); }
.type-tile:hover img { transform: scale(1.05); }
.type-tile small { color: var(--gold); font-weight: 800; letter-spacing: .14em; font-size: .75rem; }
.type-tile strong { font-size: 1.45rem; font-weight: 850; letter-spacing: -.04em; margin-top: 4px; }
.type-tile span { color: #dce6e0; font-size: .9rem; margin-top: 6px; word-break: keep-all; }
.type-tile .go { margin-top: 14px; font-weight: 800; color: #fff; font-size: .9rem; }

/* 시세표 */
.rate-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--forest); }
.rate-tabs button { border: 1px solid var(--line); border-bottom: 0; background: #fff; padding: 12px 24px; font-weight: 800; border-radius: 8px 8px 0 0; color: var(--muted); }
.rate-tabs button[aria-selected="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.rate-table-wrap { background: #fff; border: 1px solid var(--line); border-top: 0; overflow-x: auto; }
.rate-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 640px; }
.rate-table th, .rate-table td { padding: 14px 16px; border-bottom: 1px solid var(--light); text-align: left; vertical-align: middle; }
.rate-table thead th { background: #f3f1ea; font-size: .84rem; color: var(--muted); font-weight: 800; }
.rate-table td.price { font-weight: 850; color: var(--forest); white-space: nowrap; font-size: 1.02rem; }
.rate-table td.date { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.rate-table .m-date { display: none; color: var(--muted); font-size: .76rem; font-weight: 600; margin-top: 3px; }
.rate-table .name a { font-weight: 800; }
.rate-table .name a:hover { text-decoration: underline; }
.rate-table .name small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.rate-table .row-cta { border: 1px solid var(--field-border); background: #fff; border-radius: 6px; padding: 7px 12px; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.rate-table .row-cta:hover { background: var(--accent-soft); border-color: var(--accent); }
.rate-more-wrap { display: flex; justify-content: center; margin-top: 16px; }
.rate-more-wrap .button { min-width: 260px; background: #fff; }
.rate-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: .86rem; }

/* 매매 절차 / 비용 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; counter-increment: step; }
.steps li::before { content: "STEP " counter(step, decimal-leading-zero); display: block; color: var(--gold-deep); font-weight: 850; font-size: .78rem; letter-spacing: .12em; }
.steps strong { display: block; margin-top: 8px; font-size: 1.15rem; font-weight: 830; letter-spacing: -.03em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .93rem; line-height: 1.65; word-break: keep-all; }
.cost-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cost-grid div { background: var(--gold-soft); border-radius: 12px; padding: 20px; }
.cost-grid strong { display: block; font-weight: 830; }
.cost-grid p { margin-top: 6px; font-size: .9rem; color: #5a4f3c; line-height: 1.6; word-break: keep-all; }
.cost-grid a { text-decoration: underline; text-underline-offset: 3px; }

/* 블로그 밴드 */
.blog-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.blog-band a { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-height: 160px; }
.blog-band a:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(18,58,47,.08); }
.blog-band small { color: #03a94f; font-weight: 800; font-size: .78rem; }
.blog-band strong { font-size: 1.08rem; font-weight: 800; line-height: 1.45; letter-spacing: -.03em; word-break: keep-all; }
.blog-band span { margin-top: auto; color: var(--muted); font-size: .85rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); line-height: 1.7; word-break: keep-all; }

/* 상담 섹션 재스타일 */
#consultation.guide { background: var(--forest); color: #fff; border-radius: 14px; padding: clamp(28px, 4vw, 48px); margin-block: clamp(48px, 6vw, 80px); }
#consultation.guide .consult-prep dd, #consultation.guide p { color: #cfdbd4; }
#consultation.guide .text-link { color: var(--gold); }
#consultation.guide .button.outline { color: #fff; border-color: rgba(255,255,255,.45); }
#consultation.guide .button.outline:hover { background: rgba(255,255,255,.12); }
#consultation.guide .button.accent { background: var(--gold); color: #1b1608; }
#consultation.guide .contact-address { color: #cfdbd4; }

/* 푸터 */
.footer.x-footer { background: var(--forest-deep); color: #b9c7bf; padding: 44px 0 110px; border-top: 0; }
.x-footer .brand { color: #fff; }
.x-footer .footer-links a { color: #dbe5df; }
.x-footer .biz { margin-top: 18px; display: grid; gap: 4px; font-size: .88rem; line-height: 1.6; }
.x-footer .biz b { color: #fff; font-weight: 700; }
.x-footer .note { margin-top: 16px; font-size: .82rem; color: #8fa198; }

/* 빠른 상담 (고정) */
.quick-menu { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30; display: flex; flex-direction: column; width: 96px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18); background: #fff; }
.quick-menu a, .quick-menu button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 6px; border: 0; border-bottom: 1px solid var(--light); background: #fff; font-size: .78rem; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.25; }
.quick-menu a:hover, .quick-menu button:hover { background: var(--accent-soft); }
.quick-menu .q-head { background: var(--forest); color: var(--gold); font-size: .74rem; padding: 10px 6px; letter-spacing: .02em; }
.quick-menu .q-tel b { color: var(--forest); font-size: .72rem; letter-spacing: -.02em; }
.quick-menu .q-kakao { background: #fee500; }
.quick-menu .q-kakao:hover { background: #f5dc00; }
.quick-menu .q-ico { font-size: 1.15rem; line-height: 1; }
.quick-menu .q-top { border-bottom: 0; color: var(--muted); }

.mobile-quick { display: none; }

/* 서브 페이지 보정 */
.sub-main { padding-top: 10px; }

@media (max-width: 1280px) { .quick-menu { right: 8px; width: 84px; } }
@media (max-width: 1100px) {
  .desk-grid { grid-template-columns: 1fr 1fr; }
  .manager-card { grid-column: 1 / -1; }
  .type-tile { min-height: 220px; }
}
@media (max-width: 960px) {
  .quick-menu { display: none; }
  .mobile-quick { display: grid; grid-template-columns: .8fr 1fr 1fr 1fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .mobile-quick a { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 8px; font-weight: 800; font-size: .95rem; }
  .mobile-quick .m-tel { background: var(--forest); color: #fff; }
  .mobile-quick .m-kakao { background: #fee500; color: #191600; }
  .mobile-quick .m-form { background: var(--gold); color: #1b1608; }
  .mobile-quick a { font-size: .88rem; letter-spacing: -.02em; }
  .mobile-quick .m-add { background: #191600; color: #fee500; }
  .mobile-inquiry { display: none !important; }
  .trade-bar { grid-template-columns: 1fr 1fr; }
  .trade-bar label:nth-child(2) { grid-column: 1 / -1; order: -1; border-bottom: 1px solid var(--line); border-right: 0; }
  .trade-bar label:nth-child(3) { border-right: 0; }
  .trade-bar button { grid-column: 1 / -1; min-height: 56px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .steps { grid-template-columns: 1fr 1fr; }
  .cost-grid { grid-template-columns: 1fr 1fr; }
  .blog-band { grid-template-columns: 1fr; }
  .util-inner p { display: none; }
  .util-inner { justify-content: center; }
}
@media (max-width: 760px) {
  .top-links { display: none; }
  .x-head { flex-direction: column; align-items: start; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .desk-grid { grid-template-columns: 1fr; }
  .steps, .cost-grid { grid-template-columns: 1fr; }
  .rate-tabs button { padding: 10px 6px; flex: 1; white-space: nowrap; font-size: .9rem; }
  .rate-table { min-width: 0; font-size: .92rem; }
  .rate-table th:nth-child(2), .rate-table td:nth-child(2), .rate-table th:nth-child(4), .rate-table td.date { display: none; }
  .rate-table th, .rate-table td { padding: 12px 10px; }
  .rate-table .m-date { display: block; white-space: normal; }
  .util-links { gap: 12px; font-size: .78rem; }
  .util-links .util-blog { display: none; }
  .head-cta.tel-cta span { display: none; }
}

/* 404 페이지 */
.nf { max-width: 760px; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.nf h1 { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 850; }
.nf-copy { margin-top: 16px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; word-break: keep-all; }
.nf-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.nf-links { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nf-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 750; }
.nf-links a::after { content: "→"; color: var(--gold-deep); }
.nf-links a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* 저널 본문 표 (content/articles JSON 글) */
.journal-body table { margin: 14px 0 10px; font-size: .95rem; border-top: 2px solid var(--forest, #123a2f); }
.journal-body th { background: #f1ede3; text-align: left; padding: 10px 12px; font-weight: 800; border-bottom: 1px solid #ddd5c4; }
.journal-body td { padding: 10px 12px; border-bottom: 1px solid #e6e0d3; background: #fff; }
.journal-body tbody tr td:first-child { font-weight: 700; }

/* 카카오톡 채널 친구 추가 (모든 페이지 푸터 위 + 빠른 메뉴) */
.kakao-band { background: #fee500; color: #191600; padding: 30px 0; }
.kakao-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.kb-kicker { margin: 0 0 4px; font-size: .8rem; font-weight: 800; opacity: .72; }
.kb-title { margin: 0 0 10px; font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.3; }
.kb-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .93rem; font-weight: 600; }
.kb-list li::before { content: "✓ "; font-weight: 900; }
.kb-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 10px; background: #191600; color: #fee500; font-weight: 900; font-size: 1rem; white-space: nowrap; text-decoration: none; }
.kb-btn:hover, .kb-btn:focus-visible { background: #000; color: #fee500; }
.quick-menu .q-kakao-add { background: #191600; color: #fee500; }
.quick-menu .q-kakao-add:hover { background: #000; }
.quick-menu .q-kakao-add b { color: #fee500; font-size: .68rem; font-weight: 700; opacity: .85; }
@media (max-width: 760px) {
  .kakao-band { padding: 22px 0 24px; }
  .kb-title { font-size: 1.12rem; }
  .kb-list { font-size: .86rem; flex-direction: column; gap: 4px; }
  .kb-btn { width: 100%; }
}

/* 담당자 사진 (카카오 친구 추가 띠) */
.kb-left { display: flex; align-items: center; gap: 18px; }
.kb-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #191600; flex: none; background: #fff; }
@media (max-width: 760px) {
  .kb-left { align-items: flex-start; gap: 12px; }
  .kb-photo { width: 54px; height: 54px; border-width: 2px; }
}
