/* 서브페이지용 헤더 (흰색 배경) */
header.sub-header { background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 1px solid var(--border); }
.sub-header .logo { font-size: 22px; font-weight: 500; display: flex; align-items: center; gap: 6px; color: var(--text-main); }
.sub-header .logo .script { font-family: 'Caveat', cursive; font-size: 32px; }
.sub-header .nav-menu { display: flex; gap: 40px; font-size: 14px; font-weight: 500; color: var(--text-main); }
.sub-header .nav-menu a:hover { color: var(--primary-light); }

/* 페이지 타이틀 영역 */
.page-header { margin: 40px 0 30px; }
.page-title { font-size: 32px; font-weight: 700; color: var(--primary-light); margin-bottom: 10px; }
.page-subtitle { font-size: 16px; color: var(--text-sub); margin-bottom: 15px; }
.meta-info { display: flex; gap: 15px; font-size: 13px; color: var(--text-sub); align-items: center; }
.meta-info span { display: flex; align-items: center; gap: 5px; }

/* 레이아웃 분할 (좌측 콘텐츠 / 우측 사이드바) */
.detail-wrap { display: flex; gap: 40px; margin-bottom: 80px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-sidebar { width: 380px; flex-shrink: 0; position: sticky; top: 20px; }

/* 1. 갤러리 영역 */
.gallery { margin-bottom: 40px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.main-img { position: relative; height: 450px; }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: #fff; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nav-arrow.left { left: 10px; }
.nav-arrow.right { right: 10px; }
.gallery-thumbs { display: flex; height: 100px; gap: 2px; }
.gallery-thumbs img { flex: 1; object-fit: cover; cursor: pointer; opacity: 0.6; transition: 0.2s; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; }

.top-icons { position: absolute; top: 15px; left: 15px; display: flex; gap: 5px; }
.top-icons span { background: rgba(0,0,0,0.6); color: #fff; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 4px; font-size: 12px; }

/* 2. 섹션 공통 스타일 (Description, Details 등) */
.content-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; margin-bottom: 20px; }
.box-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.box-title i { color: #cbd5e1; cursor: pointer; }

/* Description */
.desc-text { font-size: 14px; line-height: 1.8; color: var(--text-main); }
.desc-text p { margin-bottom: 15px; }
.desc-text .notice { font-size: 13px; color: var(--text-sub); }

/* Property Details (Grid) */
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 20px; font-size: 13px; }
.details-grid li { display: flex; flex-direction: column; gap: 4px; }
.details-grid strong { color: var(--text-main); font-weight: 600; }
.details-grid span { color: var(--text-sub); }

/* Amenities */
.amenity-category { margin-bottom: 25px; }
.amenity-category:last-child { margin-bottom: 0; }
.amenity-category h5 { font-size: 15px; font-weight: 600; margin-bottom: 15px; color: var(--text-main); }
.amenity-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 13px; color: var(--text-sub); }
.amenity-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-right: 8px; color: #94a3b8; }

/* 3. 우측 사이드바 (가격 및 폼) */
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.price-row { margin-bottom: 20px; }
.price-row .label { font-size: 13px; color: var(--text-sub); margin-bottom: 5px; display: block; }
.price-row .value { font-size: 28px; font-weight: 700; color: var(--accent); }

.map-placeholder { width: 100%; height: 200px; background: #eee url('https://images.unsplash.com/photo-1524661135-423995f22d0b?q=80&w=600&auto=format&fit=crop') center/cover; border-radius: 8px; margin-bottom: 30px; border: 1px solid var(--border); }

.contact-form h4 { font-size: 14px; margin-bottom: 15px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; font-size: 13px; outline: none; }
.contact-form textarea { height: 100px; resize: none; }

.btn-action { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 10px; transition: 0.2s; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #20b858; }

.half-btns { display: flex; gap: 10px; }
.btn-gray { flex: 1; background: #f1f5f9; color: var(--text-main); }
.btn-gray:hover { background: #e2e8f0; }

/* 반응형 */
@media (max-width: 1024px) {
    .detail-wrap { flex-direction: column; }
    .detail-sidebar { width: 100%; position: static; }
    .details-grid, .amenity-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    header.sub-header { padding: 15px 20px; }
    .page-title { font-size: 24px; }
    .details-grid, .amenity-list { grid-template-columns: 1fr; }
    .gallery .main-img { height: 250px; }
    .gallery-thumbs { height: 60px; }
    .content-box { padding: 20px; }
}
