/* ===================================================
중앙공원 롯데캐슬 시그니처 - style.css (REFACTORED & OPTIMIZED)
   =================================================== */

@font-face {
  font-family: "Noto Serif KR";
  src: url("fonts/NotoSerifKR-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR";
  src: url("fonts/NotoSerifKR-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABLES - 계층 구조 ===== */
:root {
  /* 🎨 PRIMARY COLORS (대표 컬러 2가지 - 이 두 값만 수정하면 전체 색상이 자동 변경) */
  --primary_color1: #b89a5a;
  --primary_color2: #f4f4f6;

  /* 📊 GOLD DERIVED COLORS (--primary_color1 기반) */
  --gold: var(--primary_color1);
  --gold-light: color-mix(in srgb, var(--primary_color1) 85%, white);
  --gold-pale: color-mix(in srgb, var(--primary_color1) 10%, white);
  --gold-alpha-40: color-mix(in srgb, var(--primary_color1) 40%, transparent);
  --gold-alpha-25: color-mix(in srgb, var(--primary_color1) 25%, transparent);
  --gold-alpha-20: color-mix(in srgb, var(--primary_color1) 20%, transparent);
  --gold-alpha-15: color-mix(in srgb, var(--primary_color1) 15%, transparent);
  --gold-alpha-10: color-mix(in srgb, var(--primary_color1) 10%, transparent);
  --gold-alpha-08: color-mix(in srgb, var(--primary_color1) 8%, transparent);
  --gold-alpha-05: color-mix(in srgb, var(--primary_color1) 5%, transparent);

  /* 📊 DARK DERIVED COLORS (--primary_color2 기반) */
  --dark: #0e0e10;
  --dark-mid: color-mix(in srgb, var(--primary_color2) 100%, #1a1a1e);
  --dark-overlay-98: rgba(14, 14, 16, 0.98);
  --dark-overlay-92: rgba(14, 14, 16, 0.92);
  --dark-overlay-75: rgba(14, 14, 16, 0.75);
  --dark-overlay-50: rgba(14, 14, 16, 0.5);
  --dark-overlay-05: rgba(14, 14, 16, 0.05);

  /* 🔲 GRAYSCALE (명확한 중립 색상들) */
  --gray-800: #2c2c30;
  --gray-600: #5a5a62;
  --gray-300: #c8c8d0;
  --gray-200: #e5e5e5;
  --gray-100: #f4f4f6;
  --white: #ffffff;

  /* 🏠 SEMANTIC COLORS (컨텍스트 기반 - 모두 위의 변수로 구성) */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-100);
  --bg-tertiary: #f8f6f1; /* warm beige */
  --bg-dark: var(--dark);
  --bg-dark-mid: var(--dark-mid);
  --bg-overlay-light: var(--gold-alpha-05);
  --bg-overlay-dark: var(--dark-overlay-05);

  --text-primary: var(--dark);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-300);
  --text-light: var(--white);

  --accent: var(--gold);
  --accent-light: var(--gold-light);
  --accent-pale: var(--gold-pale);

  --border-primary: var(--gray-200);
  --border-secondary: var(--gray-300);
  --border-accent: var(--gold-alpha-15);
  --border-accent-strong: var(--gold-alpha-20);

  /* 🔤 TYPOGRAPHY */
  --font-serif: "Cormorant Garamond", "Noto Serif KR", serif;
  --font-sans: "Noto Sans KR", sans-serif;

  /* 📏 SPACING (일관된 간격) */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-2xl: 28px;
  --spacing-3xl: 32px;
  --spacing-4xl: 40px;
  --spacing-5xl: 48px;
  --spacing-6xl: 56px;
  --spacing-7xl: 64px;

  /* 📐 RESPONSIVE SIZES */
  --section-padding: 100px 0;
  --container-max-width: 1200px;
  --container-padding: 0 20px;

  /* 🎬 ANIMATIONS */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --transition-ease: ease;
  --transition-timing: all var(--transition-normal) var(--transition-ease);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== COMMON UTILITIES ===== */
.text-highlight {
  color: var(--primary_color1);
  font-weight: 700;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  height: auto;
}

.container img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

.container::after {
  content: "";
  display: block;
  clear: both;
}

section {
  padding: var(--section-padding);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 20px 0;
}

/* ===== SECTION TYPOGRAPHY ===== */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: min(560px, 100%);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ===== HEADER / NAV ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  /* 핵심: 로고는 왼쪽, 메뉴는 오른쪽으로 확실히 뺍니다 */
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none; /* 투명할 때는 블러 효과를 끄는 것이 깔끔합니다 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 투명할 땐 얇은 흰색 */
  transition: background var(--transition-fast);
}

#header.scrolled {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
/* 스크롤 시 내부 텍스트/로고 색상 변경 */
#header.scrolled .nav-link,
#header.scrolled .logo {
  /* 골드(#b89a5a) 위에서는 흰색보다 어두운색(#0e0e10)이 훨씬 눈에 잘 띕니다 */
  color: var(--white);
}
/* 1. 기본 메뉴 글자색 변경 */
#header.scrolled nav a {
  /* 배경이 #f4f4f6(밝은색)이라면 글자는 어두운색(--text-primary)으로! */
  color: var(--white) !important;
}
/* 스크롤 시 메뉴 하단 라인(After) 색상 변경 */
#header.scrolled nav a::after {
  background: var(--white); /* 골드 배경 위에서는 흰색 라인이 돋보입니다 */
}
#header.scrolled .menu-toggle span {
  /* 골드 배경 위에서 가장 잘 보이는 어두운 색상으로 변경 */
  background: var(--white);
}
/* ===== 서브 페이지 ===== */
.sub-hero {
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
}
.is-sub #header {
  background: var(--primary_color2);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-accent);
}
/* 서브페이지에서만 헤더 고정 */
.is-sub header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.is-sub .sub-wrapper {
  padding-top: 100px; /* 헤더 높이만큼 */
}
.logo {
  font-family: var(--font-serif);
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-right: 20px;
}

.logo img {
  /* 기존 42px에서 더 줄여서 메뉴 글자들과 키를 맞춥니다 */
  height: 30px;
  width: auto;
  max-width: 180px; /* 좌우 폭도 메뉴 한두 개 크기를 넘지 않게 제한 */
  display: block;
  object-fit: contain;
}

/* 대표전화 전용 스타일 */
.tel-link {
  color: var(--primary_color1);
  font-weight: 500;
  text-decoration: none; /* 밑줄 제거 */
  transition: color var(--transition-fast); /* 부드러운 색상 변경 */
}

/* 마우스를 올렸을 때 효과 */
.tel-link:hover {
  color: var(--accent-light); /* 조금 더 밝은 골드색으로 변경 */
  text-decoration: underline; /* 마우스 올릴 때만 밑줄 표시 (선택사항) */
}

/* 데스크톱: 네비게이션 표시 */
nav {
  display: flex;
  align-items: center;
  /* 메뉴가 많을 경우 대비: 유연하게 간격 조절 */
  gap: clamp(4px, 1vw, 15px);
  flex-wrap: nowrap; /* 세로로 꺾이지 않게 고정 */
}

nav a {
  /* 글자가 세로로 깨지지 않게 방지 */
  white-space: nowrap;
  font-size: 15px;
  font-weight: 400;
  color: var(--white);
  padding: 6px 10px; /* 패딩을 살짝 줄여 공간 확보 */
  border-radius: 2px;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px; /* 글자 바로 아래에 오도록 조정 */
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}

nav a:hover {
  color: var(--accent-light);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* 전화번호 버튼 최적화 */
.mobile-nav .nav-tel {
  color: var(--primary_color1) !important; /* 글자색을 프라이머리 골드로 */
  padding: 12px 30px;
  margin-top: 20px; /* 위 메뉴들과 간격 띄우기 */
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 마우스 호버 또는 터치 시 효과 (선택 사항) */
.mobile-nav .nav-tel:hover {
  background: var(--primary_color1);
  color: var(--bg-dark) !important; /* 배경이 골드가 되면 글자는 어둡게 */
}

/* 모바일 메뉴 내의 일반 a 태그와 겹치지 않게 하단 바 제거 */
.mobile-nav .nav-tel::after {
  display: none !important;
}

/* 데스크톱: 메뉴 토글 버튼 숨김 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-light);
  transition: var(--transition-timing);
}

/* 데스크톱: 모바일 네비 숨김 */
.mobile-nav {
  display: none; /* 기본적으로 숨김 */
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}
.mobile-nav.open {
  display: flex !important;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--text-light);
  padding: 12px;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
  white-space: nowrap; /* 글자 줄바꿈 방지 */
}

.mobile-nav a:hover {
  color: var(--accent-light);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

/* ===== RESPONSIVE: 768px 이하 (태블릿 & 모바일) ===== */
@media screen and (max-width: 768px) {
  /* 헤더 조정 */
  #header {
    padding: 0 20px;
  }
  .logo img {
    max-height: 32px; /* 높이도 함께 줄여야 비율이 맞습니다 */
  }
  /* 데스크톱 네비게이션 숨김 */
  nav {
    display: none;
  }

  /* 메뉴 토글 버튼 표시 */
  .menu-toggle {
    display: flex;
  }

  /* 모바일 네비게이션 기본값 설정 */
  .mobile-nav {
    display: none; /* 닫혀있는 상태가 기본값 */
  }

  /* JavaScript에서 .open 클래스 추가 시 표시 */
  .mobile-nav.open {
    display: flex;
  }
}

/* ===== RESPONSIVE: 480px 이하 (초소형 모바일) ===== */
@media screen and (max-width: 480px) {
  #header {
    padding: 0 16px; /* 더 좁은 패딩 */
    height: 64px; /* 약간 더 작은 높이 */
  }

  .logo {
    font-size: 16px;
  }
  .logo img {
    max-height: 32px; /* 높이도 함께 줄여야 비율이 맞습니다 */
  }
  .menu-toggle {
    gap: 4px;
  }

  .menu-toggle span {
    width: 20px;
    height: 1.5px;
  }

  .mobile-nav a {
    font-size: 24px;
  }

  .mobile-nav-close {
    top: 20px;
    right: 24px;
    font-size: 24px;
  }
  /* 데스크톱 상단 메뉴만 숨김 */
  nav {
    display: none;
  }
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--dark-overlay-75) 0%,
    var(--dark-overlay-50) 50%,
    rgba(14, 14, 16, 0.8) 100%
  );
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--dark-overlay-75) 0%,
    var(--dark-overlay-50) 50%,
    rgba(14, 14, 16, 0.8) 100%
  );
  z-index: 1;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  animation: fadeUp 1s ease 0.3s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-title strong {
  display: block;
  font-weight: 600;
  color: var(--accent-light);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tel-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
  padding: 16px 40px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.hero-tel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.hero-tel-btn span {
  display: block;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 2px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  animation: bounce 2s infinite;
}

.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== TABS COMMON ===== */
.section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-secondary);
  margin-top: 40px;
  margin-bottom: 0;
}

.section-tab {
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
  margin-bottom: -1px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-sans);
}

.section-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-tab:hover {
  color: var(--text-primary);
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

/* ===== PANEL LAYOUT COMMON ===== */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-top: 48px;
}

.panel-image {
  position: relative;
}

.panel-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.panel-image::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid var(--accent);
  z-index: -1;
}

.panel-sub-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  margin-top: 8px;
}

.panel-sub-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== BUTTONS COMMON ===== */
.view-more-wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 48px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.btn-view-more::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  transition: transform var(--transition-fast);
}

.btn-view-more:hover {
  background: var(--accent);
  color: var(--text-light);
}

.btn-view-more:hover::after {
  transform: translateX(4px);
}

.btn-view-more--dark {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-view-more--dark:hover {
  background: var(--text-primary);
  color: var(--text-light);
}

/* ===== ① 사업안내 (OVERVIEW) ===== */
#overview {
  background: var(--bg-primary);
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.overview-table tr {
  border-bottom: 1px solid var(--border-primary);
}

.overview-table tr:first-child {
  border-top: 1px solid var(--border-secondary);
}

.overview-table th {
  text-align: left;
  padding: 14px 0;
  width: 100px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.overview-table td {
  padding: 14px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.location-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 48px;
}

.location-mini-card {
  background: var(--bg-secondary);
  padding: 28px 22px;
  border-top: 3px solid var(--accent);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.location-mini-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.loc-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.location-mini-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.location-mini-card ul {
  list-style: none;
  margin-top: 6px;
}

.location-mini-card ul li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0 3px 14px;
  position: relative;
}

.location-mini-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* ===== ② 단지안내 (COMPLEX) ===== */
#complex {
  background: var(--bg-secondary);
}

#complex .section-title {
  color: var(--text-primary);
}

.complex-img {
  width: 100%;
  height: auto;
  display: block;
}

.complex-img-panel {
  padding-top: 48px;
}

.complex-img-frame {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.complex-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1e 0%, #2c2c30 100%);
}

.complex-placeholder-icon {
  font-size: 48px;
  opacity: 0.4;
}

.complex-placeholder-sub {
  font-size: 12px;
  opacity: 0.5;
}

.bl-subtabs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

/* ===== ③ 세대안내 (UNIT) ===== */
#unit {
  background: var(--bg-primary);
}

.bl-subtabs {
  display: flex;
  gap: 12px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.bl-subtabs li {
  flex: 1 1 auto;
  min-width: 100px;
  max-width: 200px;
}

.bl-subtab {
  width: 100%;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
  cursor: pointer;
  background: none;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bl-subtab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.bl-subtab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.bl-content {
  display: none;
}

.bl-content.active {
  display: block;
  width: 100%;
  margin: 0 auto 40px;
  text-align: center;
}

.unit-info {
  display: flex;
  flex-direction: column;
}

.unit-info h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}

.unit-addr {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.unit-specs {
  margin-top: 20px;
  margin-bottom: 28px;
}

.unit-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-primary);
  font-size: 14px;
}

.unit-spec-row:first-child {
  border-top: 1px solid var(--border-secondary);
}

.unit-spec-row dt {
  color: var(--text-secondary);
  font-weight: 400;
}

.unit-spec-row dd {
  font-weight: 500;
  color: var(--text-primary);
}

.unit-img {
  width: 100%;
  height: auto;
  display: block;
}

.unit-img-placeholder {
  background: var(--bg-secondary);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 24px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-primary);
  overflow: hidden;
}

.unit-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.unit-img-frame {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
}

.unit-options-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.unit-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.unit-option-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.unit-option-btn:hover {
  border-color: var(--accent);
  background: var(--gold-alpha-08);
  color: var(--accent);
}

.unit-option-btn.active {
  background: var(--text-primary);
  color: var(--text-light);
  border-color: var(--text-primary);
}

.unit-option-btn:active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

/* 인테리어 그리드 */
.interior-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 32px;
}

.interior-tabs {
  margin-bottom: 25px;
}

.interior-tabs ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.interior-tabs li {
  flex: 1 1 calc(25% - 12px);
  min-width: 90px;
  max-width: 180px;
}

.interior-tabs .bl-subtab {
  width: 100%;
  padding: 12px 5px;
  font-size: 0.95rem;
  border: 1px solid var(--border-primary);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-align: center;
}

.interior-tabs .bl-subtab.active {
  background: var(--accent);
  color: var(--text-light);
  border-color: var(--accent);
}

.interior-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.interior-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.interior-img:hover img {
  transform: scale(1.06);
}

.interior-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eae8e3, #f4f2ee);
  color: var(--text-secondary);
  font-size: 13px;
}

.interior-placeholder-icon {
  font-size: 32px;
  opacity: 0.5;
}

/* ===== ④ 프리미엄 (PREMIUM) ===== */
#premium {
  background: var(--bg-tertiary);
}

#premium .section-title {
  color: var(--text-primary);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-accent);
  margin-top: 64px;
}

.premium-item {
  background: var(--bg-primary);
  padding: 40px 28px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e0d0;
}

.premium-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.premium-item:hover {
  background: var(--accent-pale);
}

.premium-item:hover::before {
  transform: scaleX(1);
}

.premium-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
}

.premium-item h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.premium-item p {
  font-size: 11px;
  color: var(--text-secondary);
}

.premium-tab-wrap {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-secondary);
  margin-bottom: 40px;
  margin-top: 40px;
}

.premium-tab-btn {
  padding: 14px 32px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.04em;
}

.premium-tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.premium-tab-btn:hover {
  color: var(--text-primary);
}

.premium-tab-panel {
  display: none;
}

.premium-tab-panel.active {
  display: block;
}

/* ===== SLIDESHOW COMMON ===== */
.slideshow-wrap {
  margin-top: 48px;
  margin-bottom: 64px;
}

.slideshow-viewport {
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slideshow-viewport::-webkit-scrollbar {
  display: none;
}

.slideshow-track {
  display: flex;
  width: 100%;
}

.slide-item {
  min-width: 100%;
  min-height: 400px;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; /* 양쪽 컬럼의 높이를 동일하게 맞춤 */
  border: none;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-primary);
  box-sizing: border-box;
}

.slide-img-wrap {
  width: 100%;
  height: 100%; /* 높이를 부모인 slide-item에 맞춤 */
  overflow: hidden;
  position: relative;
}

.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* 사진의 중심을 기준으로 맞춤 */
  display: block;
  transition: transform var(--transition-slow);
}

.slide-item:hover .slide-img-wrap img {
  transform: scale(1.04);
}

.slide-info {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: var(--bg-primary);
}

.slide-counter {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: var(--font-serif);
}

.slide-counter .current {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.slide-counter .sep {
  margin: 0 4px;
  opacity: 0.4;
}

.slide-counter .total {
  opacity: 0.5;
  font-size: 14px;
}

.slide-info-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.slide-info-title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: keep-all;
}

.slide-info-divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.slide-info-desc {
  font-size: clamp(12px, 1.2vw, 13px);
  color: var(--text-secondary);
  line-height: 1.75;
  word-break: keep-all;
}

.slide-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.slide-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--gold-alpha-40);
  color: var(--accent-light);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
  flex-shrink: 0;
}

.slide-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-light);
}

.slide-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-alpha-25);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
  padding: 0;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* ===== ⑤ 핵심정보 (KEY-INFO) ===== */
#key-info {
  background: var(--bg-primary);
  padding: 100px 0;
}

#key-info .section-title {
  color: var(--text-primary);
}

#key-info .section-desc {
  color: var(--text-secondary);
}

#key-info .section-eyebrow {
  color: var(--accent);
}

.key-info-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  margin-bottom: 40px;
}

.key-card {
  background: var(--bg-tertiary);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  border: 1px solid var(--border-accent-strong);
}

.key-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: left;
}

.key-card:hover {
  background: #f3efe6;
}

.key-card:hover::after {
  transform: scaleX(1);
}

.key-card-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.key-card-value {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.key-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.key-spec-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.key-spec-box {
  border: 1px solid var(--border-accent-strong);
  padding: 28px;
  background: var(--bg-tertiary);
}

.key-spec-box:first-child .key-spec-table tr:nth-last-child(2) td {
  color: var(--primary_color1);
  font-weight: 700;
}

.key-spec-table td a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.key-spec-box:last-child .key-spec-table tr:nth-last-child(2) td a {
  color: var(--primary_color1);
  font-weight: 700;
}

.key-spec-table td a:hover {
  text-decoration: underline;
}

.key-spec-box h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-accent);
}

.key-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.key-spec-table tr {
  border-bottom: 1px solid var(--border-primary);
}

.key-spec-table tr:last-child {
  border-bottom: none;
}

.key-spec-table th {
  text-align: left;
  padding: 10px 0;
  width: 110px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.key-spec-table td {
  padding: 10px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== ⑥ 뉴스 (NEWS) ===== */
#news {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.news-card {
  background: var(--bg-primary);
  overflow: hidden;
  border-bottom: 3px solid transparent;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.news-card:hover {
  border-bottom-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8e6e1 0%, #f0ede8 100%);
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.news-thumb-icon {
  font-size: 36px;
  opacity: 0.4;
}

.news-body {
  padding: 24px 20px 28px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.news-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--accent);
  padding: 3px 8px;
}

.news-date {
  font-size: 11px;
  color: var(--text-secondary);
}

.news-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 10px;
  word-break: keep-all;
}

.news-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  word-break: keep-all;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* ===== ⑦ 홍보영상 (VIDEO) ===== */
#video {
  background: var(--bg-primary);
  padding: 80px 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  background: var(--bg-dark);
  margin: 40px auto 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.video-wrap iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* ===== ⑧ 오시는길 (MAP) ===== */
#map {
  background: var(--bg-primary);
}

.map-wrap {
  width: 100%;
  height: 420px;
  background: var(--bg-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 40px auto 0;
  position: relative;
}

.map-link-wrap {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-image:
    linear-gradient(var(--gold-alpha-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold-alpha-08) 1px, transparent 1px),
    linear-gradient(135deg, #eae8e3 0%, #f4f2ee 50%, #e8e5df 100%);
  background-size:
    40px 40px,
    40px 40px,
    100% 100%;
}

/* 인라인 SVG 핀 스타일 */
.map-pin-svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  margin-bottom: 4px; /* gap 조절용 */
}

.map-pin-svg .pin-fill {
  fill: var(--primary_color1); /* 변수와 연동되어 색상이 바뀝니다 */
  transition: fill var(--transition-fast);
}

/* 호버 시 핀 색상 변경 효과 (선택사항) */
.map-link-wrap:hover .pin-fill {
  fill: var(--accent-light);
}
/* 오버레이 버튼 아이콘도 동일한 방식 적용 */
.map-overlay-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  /* ⭐ 핵심: 평소 아이콘 색상을 변수로 설정 */
  background-color: var(--primary_color1);

  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.map-link-wrap:hover .map-overlay-btn::before {
  /* ⭐ 마우스 올리면 아이콘 색상을 흰색으로 변경 */
  background-color: var(--white);
}

.map-placeholder-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.map-placeholder-addr {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, var(--dark-overlay-50), transparent);
}

.map-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  /* 평소 상태: 테두리와 글자색을 골드 변수로 */
  background: var(--white);
  color: var(--primary_color1);
  border: 1px solid var(--primary_color1);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition-fast);
}

/* ⭐ 마우스 올렸을 때(Hover) 스타일 전환 */
.map-link-wrap:hover .map-overlay-btn {
  background: var(--primary_color1);
  color: var(--white);
}

.map-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-secondary);
}

.map-info-item {
  padding: 24px 28px;
  border-right: 1px solid var(--border-secondary);
}

.map-info-item:last-child {
  border-right: none;
}

.map-info-item strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.map-info-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
/* 지도 섹션 내 전화번호 링크 공통 스타일 */
.map-tel-link,
.map-info-item a {
  color: var(--primary_color1) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.map-tel-link:hover,
.map-info-item a:hover {
  color: var(--accent-light) !important;
  text-decoration: underline;
}

/* ===== ⑨ FAQ ===== */
#faq {
  background: var(--bg-tertiary);
}

#faq .section-title {
  color: var(--text-primary);
}

#faq .section-desc {
  color: var(--text-secondary);
}

.faq-list {
  max-width: min(800px, 100%);
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 0 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.faq-item {
  border-bottom: 1px solid var(--border-primary);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-sans);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-light);
  background: #fafafa;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== ⑩ 관심고객 등록 (CONTACT) ===== */
#contact {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

#contact .section-eyebrow {
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#contact .section-title {
  color: var(--text-primary);
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

#contact .divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 20px auto;
}

#contact .contact-description {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
}

.contact-tel {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 24px 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-tel:hover {
  color: var(--accent-light);
}

/* --- Form 영역 수정 --- */
.contact-form {
  max-width: min(
    560px,
    100%
  ); /* 박스 형태일 때는 좌우 여백을 고려해 폭을 살짝 넓히는 것이 예쁩니다 */
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;

  /* --- 박스 형태 및 그림자 핵심 설정 --- */
  background: var(--white); /* 박스 내부 배경색 */
  padding: 40px; /* 박스 내부 여백 (중요: 이미지처럼 보이게 함) */
  border: 1px solid #e1e1e1; /* 아주 연한 실선 테두리 */
  border-radius: 12px; /* 모서리를 부드럽게 곡선 처리 */

  /* 그림자 효과: (가로, 세로, 번짐정도, 크기, 색상) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  box-sizing: border-box; /* 패딩이 포함된 크기 계산 */
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="date"] {
  width: 100%;
  padding: 14px 20px;
  background: #f8f8f8; /* 아주 연한 회색 배경으로 변경 */
  border: 1px solid #cccccc; /* 연한 테두리 추가 */
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
  border-radius: 2px;
  box-sizing: border-box;
  min-height: 44px;
}
.contact-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 20px;
  background: #f8f8f8; /* 아주 연한 회색 배경으로 변경 */
  border: 1px solid #cccccc; /* 연한 테두리 추가 */
  color: var(--text-secondary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition-fast);
  border-radius: 2px;
  box-sizing: border-box;
  resize: vertical;
  margin-bottom: 15px;
}

.contact-form input::-webkit-calendar-picker-indicator,
.contact-form input::-webkit-inner-spin-button {
  display: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:placeholder-shown {
  color: var(--text-secondary) !important;
}

.contact-form input[type="date"]:valid {
  color: var(--text-secondary);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="date"]:focus {
  border-color: var(--accent);
  background: #f8f8f8;
}

.contact-form input::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

.privacy-wrapper {
  margin-top: 15px;
  text-align: left;
}
.privacy-agreement-header {
  margin-bottom: 10px;
}
/* [내용보기] 버튼 스타일: 버튼 느낌 제거 */
.btn-privacy-toggle {
  background: transparent; /* 배경 투명 */
  border: none; /* 테두리 제거 */
  padding: 0; /* 여백 제거 */
  margin: 0;
  color: #333; /* 문구와 동일한 색상 (혹은 #666) */
  font-size: 13px; /* 문구와 동일한 크기 */
  font-weight: 500;
  cursor: pointer;
  text-decoration: none; /* 밑줄 제거 (원하시면 underline으로 변경 가능) */
  display: inline-block;
  vertical-align: middle;
}

.btn-privacy-toggle:hover {
  color: #000; /* 호버 시에만 약간 진하게 */
}
.privacy-text {
  background: #f8f8f8; /* 아주 연한 회색 배경으로 변경 */
  border: 1px solid #cccccc; /* 연한 테두리 추가 */
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.privacy-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  cursor: pointer;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.btn-submit {
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 2px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: 4px;
  width: 100%;
  min-height: 44px;
}

.btn-submit:hover {
  background: var(--accent-light);
}

.btn-submit:active {
  transform: translateY(1px);
}

/* ===== FOOTER ===== */
footer {
  background: #f4f4f6;
  padding: 48px 0 112px;
  border-top: 1px solid var(--border-accent);
}
footer .container {
  margin-left: 0; /* 왼쪽으로 붙임 */
  margin-right: auto; /* 오른쪽은 자동으로 비움 */
  max-width: 100%; /* 전체를 다 쓰고 싶다면 100%, 아니면 기존 유지 */
  padding-left: 40px; /* (선택) 화면 끝에 너무 붙으면 답답하니 적당한 여백만 부여 */
}

.footer-inner {
  display: flex;
  justify-content: flex-start; /* 왼쪽부터 차례대로 배치 */
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-info {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.footer-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 상단 구분선 */
  padding-bottom: 20px;
  margin-bottom: 30px;
  justify-content: flex-start;
}
.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* 모바일 대응 */
  gap: 24px; /* 메뉴 간격 */
  justify-content: flex-start;
}

.footer-menu-list li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary); /* 기본 회색 */
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.footer-family {
  position: relative;
  align-self: flex-end; /* 푸터 하단에 정렬 */
}

.family-wrapper {
  position: relative;
  width: 200px;
  margin-left: 0; /* 강제로 왼쪽 밀착 */
  margin-right: auto;
}

/* 패밀리 사이트 버튼 스타일 */
.family-btn {
  width: 100%;
  padding: 10px 15px;
  background: #f4f4f6;
  border: 1px solid var(--primary_color1);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-sans);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-timing);
  margin-left: 0; /* 왼쪽으로 붙임 */
}

.family-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.family-btn .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

/* 활성화 시 화살표 회전 */
.family-wrapper.active .family-btn .arrow {
  transform: rotate(180deg);
}

/* 드롭업 리스트 스타일 */
.family-list {
  position: absolute;
  bottom: 100%; /* 위로 나타나게 설정 */
  left: 0;
  width: 100%;
  background: #f4f4f6;
  border: 1px solid var(--border-accent);
  border-bottom: none;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}

/* 활성화 시 리스트 나타남 */
.family-wrapper.active .family-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.family-list li a {
  display: block;
  padding: 10px 15px;
  font-size: 12px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.family-list li a:hover {
  background: var(--gold-alpha-08);
  color: var(--accent-light);
  padding-left: 20px; /* 살짝 밀리는 효과 */
}

/* 모바일 대응 */
@media screen and (max-width: 768px) {
  .footer-family {
    align-self: flex-start;
    margin-top: 20px;
    width: 100%;
  }
  .family-wrapper {
    width: 100%;
  }
}
/* ===== FLOATING CTA ===== */
.float-cta {
  position: fixed;
  bottom: 20px; /* 바닥에서 살짝 띄움 */
  left: 15px; /* 좌우 여백 */
  right: 15px;
  z-index: 999;
  display: flex;
  gap: 10px; /* 버튼 사이의 간격 */
  /* 배경과 그림자는 버튼 각각에 줄 것이므로 제거하거나 투명하게 설정 */
  /* --- 추가된 부분: 처음 상태는 숨김 --- */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* 살짝 아래에 대기 */
  transition: all 0.3s ease-in-out; /* 부드러운 애니메이션 */
}
/* --- 추가된 부분: 활성화 되었을 때 상태 --- */
.float-cta.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 제자리로 올라옴 */
}

.float-btn {
  flex: 1;
  display: flex;
  flex-direction: column; /* 아이콘을 위로, 글자를 아래로 */
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;

  /* ⭐ 배경색을 프라이머리 컬러로 통일 */
  background: var(--primary_color1);
  color: var(--white);

  /* ⭐ 모서리 둥글게 */
  border-radius: 12px;
  border: none;
  text-decoration: none;

  /* 개별 버튼 입체감 부여 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
}
.float-btn:hover {
  filter: brightness(1.1);
}

.float-btn .float-icon {
  font-size: 20px;
  line-height: 1;
}

.float-btn strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

/* 컬러는 유지하되 테두리 제거 */
.float-tel {
  background: var(--accent);
  color: var(--white);
  border: none;
}

/* ===== NAVIGATION TABS - SUB_NAV_BAR ===== */
.sub_nav_bar {
  width: 100%;
  background-color: transparent;
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.sub_nav_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 800px;
}

.sub_nav_list li {
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  transition: all var(--transition-normal);
  box-sizing: border-box;
}

.sub_nav_list a {
  display: block;
  padding: 12px 10px;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub_nav_list li:hover {
  border-color: var(--primary_color1);
}

.sub_nav_list li:hover a {
  color: var(--primary_color1);
}

.sub_nav_list li.on {
  background-color: var(--primary_color1);
  border-color: var(--primary_color1);
}

.sub_nav_list li.on a {
  color: var(--white) !important;
}

/* ===== 섹션별 배경 특정 설정 ===== */
.section-bg-light {
  background: color-mix(in srgb, var(--primary_color2) 95%, #fff);
}

.section-bg-mid {
  background: color-mix(in srgb, var(--primary_color2) 90%, #fff);
}

.section-bg-dark {
  background: var(--dark-mid);
}

/* ===== RESPONSIVE: 1024px 이상 ===== */
/* 태블릿 및 데스크톱에서는 위의 기본 스타일이 적용됨 */

/* ===== RESPONSIVE: 768px 이하 (태블릿) ===== */
@media screen and (max-width: 768px) {
  #header {
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .container {
    padding: 0 20px;
  }

  section {
    padding: 60px 0;
  }

  .section-tabs {
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 20px;
  }

  .section-tab {
    padding: 12px 20px;
    font-size: 13px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .panel-image::before {
    display: none;
  }

  .location-mini-grid {
    grid-template-columns: 1fr;
  }

  .complex-img-frame {
    aspect-ratio: 4/3;
  }

  .bl-subtabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 32px 0 24px;
  }

  .bl-subtabs::-webkit-scrollbar {
    display: none;
  }

  .bl-subtabs li {
    flex: 0 0 110px;
    min-width: 110px;
  }

  .bl-subtab {
    width: 100%;
    padding: 10px 4px;
    font-size: 12px;
  }

  .bl-subtab span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .interior-grid {
    grid-template-columns: 1fr;
  }

  .interior-tabs li {
    flex: 1 1 calc(25% - 12px);
  }

  .interior-tabs .bl-subtab {
    padding: 10px 3px;
    font-size: 0.9rem;
  }

  .premium-grid {
    grid-template-columns: 1fr;
  }

  .premium-item {
    padding: 28px 20px;
  }
  .premium-num {
    font-size: 24px; /* 숫자 크기 축소 (기존 48px) */
    margin-bottom: 8px;
    font-family: var(--font-serif);
  }

  .slideshow-wrap {
    margin-top: 32px;
    margin-bottom: 40px;
  }

  .slide-item {
    grid-template-columns: 1fr;
  }

  .slide-img-wrap {
    aspect-ratio: 16/9;
  }

  .slide-info {
    padding: 20px 16px;
    gap: 8px;
  }

  .key-info-top {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .key-card {
    padding: 28px 20px;
  }

  .key-card-label {
    font-size: 11px;
    margin-bottom: 5px;
    opacity: 0.8;
  }

  .key-card-value {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 700;
  }

  .key-card-sub {
    font-size: 11px;
    line-height: 1.4;
    word-break: keep-all;
  }

  .key-spec-wrap {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-grid h3 {
    font-size: 13px;
  }
  .map-wrap {
    height: 220px;
  }

  .map-info-grid {
    grid-template-columns: 1fr;
  }

  .map-info-item {
    border-right: none;
    border-bottom: 1px solid var(--border-secondary);
    padding: 20px 24px;
  }

  .map-info-item:last-child {
    border-bottom: none;
  }

  #contact {
    padding: 60px 0;
  }

  #contact .section-title {
    font-size: clamp(24px, 4vw, 36px);
  }

  .contact-tel {
    font-size: clamp(28px, 5vw, 48px);
    margin: 20px 0;
  }

  .contact-form input[type="text"],
  .contact-form input[type="tel"],
  .contact-form input[type="date"] {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  .contact-form input[type="date"],
  .contact-form input[type="text"].date-input-field {
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    color: var(--text-light);
  }

  .contact-form textarea {
    font-size: 14px;
    min-height: 100px;
    padding: 12px 16px;
  }

  .privacy-text {
    font-size: 11px;
    padding: 10px 12px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .float-btn {
    padding: 14px 0;
    font-size: 14px;
  }

  .sub_nav_list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .sub_nav_list a {
    font-size: 12px;
    padding: 10px 8px;
  }

  /* 공통 word-break 적용 */
  .section-title,
  .section-desc,
  .premium-item p,
  .location-mini-card li {
    word-break: keep-all;
  }
}

/* ===== RESPONSIVE: 1024px 이상 (데스크톱 조정) ===== */
@media (max-width: 1024px) {
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .interior-grid {
    grid-template-columns: 1fr 1fr;
  }

  .key-info-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .key-spec-wrap {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bl-subtabs li {
    flex: 1 1 auto;
    min-width: 90px;
    max-width: 180px;
  }

  .bl-subtab {
    padding: 11px 6px;
    font-size: 13px;
  }
}

/* ===== RESPONSIVE: 480px 이하 (모바일) ===== */
@media screen and (max-width: 480px) {
  .key-info-top {
    /* 한 줄에 2개씩 배치 유지 */
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* 카드 사이 간격 */
    margin-bottom: 64xp;
  }

  .key-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* 중앙 정렬 (왼쪽 정렬 원하시면 flex-start) */
    text-align: center;
    padding: 20px 10px;
    min-height: 160px; /* 카드 높이 균일화 */
    justify-content: center;
  }

  .key-card-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    padding-right: 0;
    border-right: none; /* 기존 구분선 제거 */
    opacity: 0.7;
  }

  .key-card-value {
    padding-left: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: keep-all; /* 단어 단위 줄바꿈 */
  }

  .key-card-sub {
    padding-left: 0;
    grid-column: auto; /* 그리드 설정 해제 */
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    word-break: keep-all;
  }

  .bl-subtabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
  }

  .bl-subtabs::-webkit-scrollbar {
    display: none;
  }

  .bl-subtabs li {
    flex: 0 0 95px;
    min-width: 95px;
  }

  .bl-subtab {
    padding: 8px 3px;
    font-size: 11px;
  }

  .interior-tabs li {
    flex: 1 1 calc(50% - 8px);
  }

  .interior-tabs .bl-subtab {
    font-size: 0.85rem;
    padding: 10px 0;
  }

  .bl-subtabs ul {
    gap: 6px;
  }

  .sub_nav_list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .sub_nav_list a {
    font-size: 11px;
    padding: 10px 6px;
  }
}
