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

/* ── 히어로 ── */
.ug-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);
}

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

.ug-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);
}

.ug-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;
}

/* ── 평형 선택 탭 ── */
.ug-section {
  background: #0d1117;
  padding: clamp(60px, 8vw, 96px) clamp(16px, 5vw, 60px);
}

.ug-section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

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

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

.ug-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;
}

.ug-selector {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: clamp(40px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.ug-selector-btn {
  padding: 14px clamp(32px, 5vw, 64px);
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.ug-selector-btn:last-child {
  border-right: none;
}

.ug-selector-btn:hover:not(.active) {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
}

.ug-selector-btn.active {
  background: #c9a96e;
  color: #0d1117;
}

/* ── 유닛 패널 ── */
.ug-panel {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.ug-panel.active {
  display: flex;
}

/* 평면도 / ISO 블록 공통 래퍼 */
.ug-plan-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ug-plan-label {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.7);
}

/* 평면도 */
.ug-floorplan {
  text-align: center;
  width: 100%;
}

.ug-floorplan img {
  width: 100%;
  max-width: 860px;
  height: auto;
  border-radius: 12px;
  display: inline-block;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.ug-floorplan img:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* ISO 3D 배치도 */
.ug-iso {
  text-align: center;
  width: 100%;
}

.ug-iso img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 16px;
  display: inline-block;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.ug-iso img:hover {
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

/* ── 공간별 사진 탭 ── */
.ug-room-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ug-room-header {
  text-align: center;
}

.ug-room-label {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.7);
  margin-bottom: 20px;
}

.ug-room-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ug-room-tab {
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.ug-room-tab:hover:not(.active) {
  border-color: rgba(201, 169, 110, 0.4);
  color: rgba(255,255,255,0.8);
}

.ug-room-tab.active {
  border-color: #c9a96e;
  background: rgba(201, 169, 110, 0.12);
  color: #c9a96e;
}

/* 사진 패널 */
.ug-room-panel {
  display: none;
}

.ug-room-panel.active {
  display: block;
}

/* 사진 그리드 */
.ug-photos {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(8px, 1.5vw, 16px);
}

.ug-photos img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  aspect-ratio: auto;
  object-fit: contain;
  justify-self: center;
  border-radius: 8px;
  display: block;
  background: rgba(255,255,255,0.03);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

@media (max-width: 540px) {
  .ug-photos img {
    max-height: 55vh;
  }
}

.ug-photos img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* 준비중 플레이스홀더 */
.ug-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(60px, 8vw, 100px) 24px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.ug-pending-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.ug-pending-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

/* ── 라이트박스 ── */
.ug-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;
}

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

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

.ug-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;
}

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