/* 공통 폰트 설정 */
@import url('https://webfontworld.github.io/MaruBuri/MaruBuri.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --color-ivory-light: #fdfbf6;
    --color-ivory-dark: #f5f1e6;
    --color-brown-light: #8b7355;
    --color-brown: #6b5643;
    --color-brown-dark: #574536;
    --color-text: #2c2c2c;
}

/* 객실 상세 페이지 */
.room-detail-page {
    padding-top: var(--nav-height);
    background-color: white;
}

/* 페이지 설명 */
.page-description {
    background-color: var(--color-ivory-light);
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-description .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-description h1 {
    font-family: 'MaruBuri', serif;
    font-size: 3.5rem;
    color: var(--color-brown);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.room-subtitle {
    font-family: 'MaruBuri', serif;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

.room-info-brief {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: 'MaruBuri', serif;
    font-size: 1.1rem;
    color: var(--color-brown);
}

/* 메인 이미지 갤러리 */
.main-gallery-section {
    width: 100%;
    background-color: var(--color-ivory);
    padding: 3rem 0;
}

.main-images {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    padding: 0 2rem;
    height: 600px;
}

.main-image-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.main-image-item:first-child {
    grid-row: span 2;
}

.main-image-item:not(:first-child) {
    height: 298px;
}

.main-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.main-image-item:hover img {
    transform: scale(1.03);
}

/* Information 섹션 */
.room-info-section {
    padding: 6rem 0;
    background-color: var(--color-ivory-light);
}

.room-info-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'MaruBuri', serif;
    font-size: 2.8rem;
    color: var(--color-brown);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.info-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-item {
    background-color: white;
    padding: 3rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-family: 'MaruBuri', serif;
    font-size: 2rem;
    color: var(--color-brown);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.info-item h3 i {
    font-size: 1.8rem;
    color: var(--color-brown-light);
}

.info-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item ul li {
    font-family: 'MaruBuri', serif;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    padding-left: 2.2rem;
    position: relative;
    line-height: 1.6;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.info-item ul li i {
    position: absolute;
    left: 0;
    color: var(--color-brown-light);
    font-size: 1.2rem;
    width: 1.8rem;
    text-align: center;
}

/* 갤러리 그리드 */
.gallery-section {
    padding: 6rem 0;
    background-color: var(--color-ivory);
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item.wide {
    grid-column: span 2;
    height: 400px;
}

.gallery-item.tall {
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* 예약 버튼 */
.booking-section {
    text-align: center;
    padding: 4rem 0;
    background-color: white;
}

.book-now-button {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 4rem;
    font-family: 'MaruBuri', serif;
    font-size: 1.2rem;
    color: white;
    background-color: var(--color-brown);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.book-now-button:hover {
    transform: translateY(-2px);
    background-color: var(--color-brown-dark);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* 이미지 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2rem;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    object-fit: contain;
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .main-images {
        height: 500px;
    }
    
    .main-image-item:not(:first-child) {
        height: 248px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .main-images {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .main-image-item,
    .main-image-item:not(:first-child) {
        height: 400px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.wide {
        grid-column: auto;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-description h1 {
        font-size: 2.5rem;
    }
    
    .main-image-item,
    .main-image-item:not(:first-child) {
        height: 300px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
    
    .info-item {
        padding: 2rem;
    }
    
    .info-item h3 {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item,
    .gallery-item.wide,
    .gallery-item.tall {
        height: 300px;
    }
    
    .book-now-button {
        padding: 1rem 3rem;
        font-size: 1.1rem;
    }
}
