/* ── 단지안내 페이지 전용 스타일 ── */

/* ── 히어로 ── */
.cx-hero {
  background: linear-gradient(160deg, #07090e 0%, #0d1b2a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: clamp(80px, 12vw, 130px) 20px clamp(60px, 8vw, 100px);
}

.cx-hero-label {
  font-size: 0.75rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.9);
  margin-bottom: 16px;
}

.cx-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.cx-hero-sub {
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 1.5px;
  font-weight: 300;
}

/* ── 공통 섹션 헤더 ── */
.cx-section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.cx-section-label {
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 12px;
}

.cx-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

/* ── 배치도 섹션 ── */
.cx-layout-section {
  background: #0d1117;
  padding: clamp(60px, 8vw, 96px) clamp(16px, 5vw, 60px);
}

.cx-layout-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1000px;
  margin: 0 auto;
}

.cx-layout-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cx-layout-item-label {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.7);
  text-align: center;
}

.cx-layout-item img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  cursor: pointer;
  transition: box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.cx-layout-item img:hover {
  box-shadow: 0 8px 48px rgba(0,0,0,0.65);
}

/* ── 커뮤니티 섹션 ── */
.cx-community-section {
  background: #07090e;
  padding: clamp(60px, 8vw, 96px) clamp(16px, 5vw, 60px);
}

.cx-community-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1000px;
  margin: 0 auto;
}

.cx-community-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cx-community-item:hover {
  transform: scale(1.015);
  box-shadow: 0 10px 48px rgba(0,0,0,0.65);
}

.cx-community-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 커뮤니티 섹션 설명 텍스트 ── */
.cx-section-desc {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  line-height: 1.8;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 커뮤니티 시설 카드 섹션 ── */
.cx-facility-section {
  background: #0a0e16;
  padding: clamp(60px, 8vw, 96px) clamp(16px, 5vw, 60px);
}

.cx-facility-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cx-facility-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cx-facility-floor {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c9a96e;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.cx-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cx-facility-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cx-facility-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 24px;
  transition: background 0.25s, border-color 0.25s;
}

.cx-facility-card:hover {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.25);
}

.cx-facility-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cx-facility-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.85;
}

/* ── 마당 섹션 ── */
.cx-yard-section {
  background: #07090e;
  padding: clamp(60px, 8vw, 96px) clamp(16px, 5vw, 60px);
}

.cx-yard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.cx-yard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: background 0.25s, border-color 0.25s;
}

.cx-yard-card:hover {
  background: rgba(201, 169, 110, 0.05);
  border-color: rgba(201, 169, 110, 0.2);
}

.cx-yard-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9a96e;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.cx-yard-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.85;
}

@media (max-width: 720px) {
  .cx-facility-grid,
  .cx-facility-grid--2,
  .cx-yard-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 라이트박스 ── */
.cx-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cx-lightbox.open {
  display: flex;
}

.cx-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.cx-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cx-lightbox-close:hover {
  color: #fff;
}
