/* 색상 변수 */
:root {
    --color-ivory: #FFFFF0;
    --color-ivory-dark: #F5F5DC;
    --color-brown: #8B7355;
    --color-brown-light: #A0522D;
    --color-text: #4A4A4A;
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.5s ease-in-out;
}

.slide[style*="display: block"] img,
.slide[style*="display: block"] video {
    transform: scale(1);
}

.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.gallery-slideshow:hover .slide-prev,
.gallery-slideshow:hover .slide-next {
    opacity: 1;
}

.slide-prev:hover,
.slide-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-dot.active {
    background-color: white;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-family: 'MaruBuri', serif;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-family: 'MaruBuri', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.02em;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.4) 100%
    );
}

/* 소개 섹션 */
.intro {
    padding: var(--space-32) 0;
    background-color: var(--color-ivory);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-text {
    font-size: var(--text-lg);
    line-height: 2;
    color: var(--color-text);
    font-weight: 300;
    letter-spacing: -0.02em;
}

/* 객실 미리보기 섹션 */
.rooms-preview {
    padding: 6rem 0;
    background-color: var(--color-ivory);
    position: relative;
}

.rooms-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-brown-light), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-brown);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-brown-light);
}

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

.room-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.room-image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 비율 유지 */
    overflow: hidden;
}

.room-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room-name {
    font-family: 'MaruBuri', serif;
    font-size: 1.5rem;
    color: var(--color-brown);
    margin: 0;
}

.room-description {
    font-family: 'MaruBuri', serif;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.feature {
    font-family: 'MaruBuri', serif;
    font-size: 0.9rem;
    color: var(--color-brown);
    background-color: var(--color-ivory-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.room-card:hover .feature {
    background-color: var(--color-brown-light);
    color: white;
}

.room-link {
    display: inline-block;
    color: var(--color-brown);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.room-link:hover {
    color: var(--color-brown-light);
}

/* 예약 섹션 */
.reservation {
    padding: var(--space-32) 0;
    background-color: var(--color-ivory);
    text-align: center;
}

.reservation-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reservation-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.reservation-content h2 {
    font-size: var(--text-4xl);
    font-weight: 300;
    margin-bottom: var(--space-12);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-brown);
}

.reservation-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #2B6CB0;
    color: white;
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.reservation-button:hover {
    background-color: #2C5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 푸터 */
.site-footer {
    padding: 5rem 0 4rem;
    background-color: var(--color-ivory-dark);
    border-top: 1px solid rgba(139,115,85,0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo-img {
    width: 130px;
    height: auto;
    opacity: 0.9;
}

.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
}

.footer-info li {
    margin: 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-info span {
    font-weight: 500;
    color: var(--color-brown);
    min-width: 110px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139,115,85,0.1);
}

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

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 1.5rem 3rem;
    }

    .footer-main {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
    }

    .footer-info li {
        flex-direction: column;
        gap: 0.3rem;
        margin: 1.2rem 0;
    }

    .footer-info span {
        min-width: auto;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .hero {
        height: 50vh;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 40vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .slide-prev,
    .slide-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 부대시설 섹션 */
.facilities {
    padding: var(--space-32) 0;
    background-color: var(--color-ivory-dark);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.facility-card {
    background-color: var(--color-ivory);
    padding: var(--space-8);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.facility-icon {
    font-size: 2.5rem;
    color: var(--color-brown);
    margin-bottom: var(--space-4);
}

.facility-card h3 {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-brown);
    margin-bottom: var(--space-4);
    letter-spacing: 0.02em;
}

.facility-card p {
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.8;
    font-weight: 400;
}

/* 반응형 디자인 추가 */
@media (max-width: 1024px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .facility-card {
        padding: var(--space-6);
    }
    
    .facility-icon {
        font-size: 2rem;
    }
    
    .facility-card h3 {
        font-size: var(--text-lg);
    }
}

/* 갤러리 섹션 */
.gallery-section {
    padding: 4rem 2rem;
    background-color: var(--color-ivory);
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* 슬라이드쇼 */
.gallery-slideshow {
    width: 100%;
    height: 800px;
    position: relative;
    margin-bottom: 6rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-slideshow.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    transition: transform 0.5s ease-in-out;
}

.slide[style*="display: block"] img,
.slide[style*="display: block"] video {
    transform: scale(1);
}

/* 그리드 갤러리 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-grid-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid-item img,
.gallery-grid-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid-item:hover img,
.gallery-grid-item:hover video {
    transform: scale(1.05);
}

/* 슬라이드 컨트롤 */
.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.gallery-slideshow:hover .slide-prev,
.gallery-slideshow:hover .slide-next {
    opacity: 1;
}

.slide-prev:hover,
.slide-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slide-prev {
    left: 20px;
}

.slide-next {
    right: 20px;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-dot.active {
    background-color: white;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .gallery-slideshow {
        height: 700px;
    }
}

@media (max-width: 1024px) {
    .gallery-slideshow {
        height: 600px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-slideshow {
        height: 500px;
    }
    
    .gallery-section {
        padding: 2rem 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-slideshow {
        height: 400px;
    }
    
    .slide-prev,
    .slide-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* 라이트박스 모달 스타일 */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 1rem 0.8rem;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s;
    opacity: 0.7;
    border-radius: 3px;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .lightbox-content {
        max-width: 98%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.3rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 0.8rem 0.6rem;
        font-size: 1.5rem;
    }
}

