/* 1. 기본 레이아웃 (Layout) */
.view-container { 
  max-width: 1100px; 
  margin: 120px auto 80px; 
  padding: 0 20px; 
  font-family: 'Pretendard', sans-serif;
}

.view-header { 
  border-bottom: 2px solid #222; 
  padding-bottom: 20px; 
  margin-bottom: 30px; 
}

.view-title { 
  font-size: 2rem; 
  font-weight: 800; 
  color: #222; 
  margin-bottom: 10px; 
}

.view-meta { 
  color: #888; 
  font-size: 0.9rem; 
}

.view-content { 
  display: grid; 
  grid-template-columns: 1.5fr 1fr; 
  gap: 40px; 
}

/* 2. 갤러리 영역 (Gallery) */
.gallery-container { 
  width: 100%; 
  margin-bottom: 20px; 
  position: relative; /* 오버레이 기준점 */
}

.gallery-main { 
  width: 100%; 
  aspect-ratio: 4 / 3; 
  background: #f5f5f5; 
  border-radius: 12px; 
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
}

/* 이미지 복사 방지 핵심 CSS */
.gallery-main img, .thumb-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: opacity 0.3s ease; 
  
  /* 드래그 및 선택 차단 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto; /* 클릭은 가능해야 함 */
}

/* 투명 가림막 (선택 사항: 더 강력한 방어를 원할 때 사용) */
/* .gallery-main::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5;
} */

/* 썸네일 리스트 */
.p-thumb-list { 
  display: flex; 
  gap: 10px; 
  margin-top: 12px; 
  overflow-x: auto; 
  padding-bottom: 8px;
}

.p-thumb-list::-webkit-scrollbar { height: 4px; }
.p-thumb-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.thumb-item { 
  width: 80px; 
  height: 60px; 
  flex-shrink: 0; 
  cursor: pointer; 
  border-radius: 4px; 
  border: 2px solid transparent; 
  overflow: hidden;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.thumb-item:hover { opacity: 1; }
.thumb-item.active { border-color: #e0af4e; opacity: 1; }

/* 3. 정보 테이블 및 가격 (Info & Price) */
.price-tag { 
  font-size: 2.2rem; 
  color: #e0af4e; 
  font-weight: 900; 
  margin-bottom: 20px; 
  display: block; 
}

.info-table { 
  width: 100%; 
  border-collapse: collapse; 
}

.info-table th, .info-table td { 
  padding: 15px; 
  border-bottom: 1px solid #eee; 
  text-align: left; 
}

.info-table th { 
  width: 120px; 
  color: #666; 
  font-weight: 500; 
  background: #fafafa; 
}

.info-table td { 
  font-weight: 700; 
  color: #222; 
}

/* 5. 상세 설명 (Description) */
.description { 
  line-height: 1.8; 
  color: #444; 
  white-space: pre-wrap; 
  padding: 30px 0; 
  border-top: 1px solid #eee; 
  margin-top: 40px; 
  font-size: 1.05rem;
}

/* 6. 반응형 디자인 (Responsive) */
@media (max-width: 768px) {
  .view-content { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  .view-container { margin-top: 100px; }
  .view-title { font-size: 1.6rem; }
  .price-tag { font-size: 1.8rem; }
}

.contact-box { margin-top: 30px; }
.btn-call {
  display: block;
  background: #222;
  color: #fff;
  text-align: center;
  padding: 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.btn-call:hover { background: #444; }