/* Index Page Styles */

/* Index hero swiper - main.html과 동일한 empty-image-placeholder 사용 */
.hero-swiper img.empty-image-placeholder {
    /* main.html hero와 동일하게 기본 스타일 사용, border-radius만 0으로 */
    border-radius: 0 !important;
}

/* About 섹션 첫 번째 이미지 (프리미엄 스파) */
.about-section .about-content:nth-child(1) img.empty-image-placeholder {
    border-radius: 40px 0 40px 0 !important;
}

/* About 섹션 짝수 번째 이미지 - 반대 모서리 (데스크톱용) */
.about-section .about-content:nth-child(even) img.empty-image-placeholder {
    border-radius: 0 40px 0 40px !important;
}

/* 모바일에서는 모든 섹션이 첫 번째와 동일한 border-radius */
@media (max-width: 768px) {
    .about-section .about-content:nth-child(even) img.empty-image-placeholder {
        border-radius: 40px 0 40px 0 !important;
    }
}

/* About 섹션 세 번째 이미지 (펫 카페) */
.about-section .about-content:nth-child(3) img.empty-image-placeholder {
    border-radius: 40px 0 40px 0 !important;
}

.hero-section {
    background: linear-gradient(135deg, #a8d5d8 0%, #d4e6f1 50%, #f9f9f9 100%);
}

/* Swiper 컨테이너 overflow 방지 */
.hero-swiper {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    background-color: transparent !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.swiper-wrapper {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background-color: transparent !important;
}

.swiper-slide {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background-color: transparent !important;
}

/* Swiper fade effect fixes */
.hero-swiper .swiper-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 1s ease-in-out !important;
}

.hero-swiper .swiper-slide img {
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.hero-swiper .swiper-slide-active {
    opacity: 1 !important;
    pointer-events: auto;
}

.hero-swiper .swiper-slide-prev,
.hero-swiper .swiper-slide-next {
    opacity: 0 !important;
}

/* Swiper 초기화 전 깜빡임 방지 */
.hero-swiper:not(.swiper-initialized) {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-swiper.swiper-initialized {
    opacity: 1;
}

/* Hero Content 전체 영역이 클릭을 차단하지 않도록 */
#section1 .absolute.inset-0.flex {
    pointer-events: none !important;
}

/* 모바일에서 hero-swiper 이미지 비율 유지 */
@media (max-width: 768px) {
    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-swiper .swiper-slide {
        height: 60vh !important;
        min-height: 60vh !important;
    }

    .hero-swiper .swiper-slide img {
        height: 60vh !important;
        min-height: 60vh !important;
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
    }
}

/* Hero 텍스트가 배경 이미지 위에 보이도록 z-index 조정 */
.hero-section .hero-text {
    position: relative;
    z-index: 30 !important;
    pointer-events: none; /* 텍스트 영역이 클릭을 차단하지 않도록 */
}

.hero-section .hero-text h1,
.hero-section .hero-text p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section h1,
.hero-section p {
    position: relative;
    z-index: 31 !important;
    pointer-events: none; /* 텍스트는 클릭 불가 */
}

.hero-section button {
    position: relative;
    z-index: 31 !important;
    pointer-events: auto; /* 펜션 둘러보기 버튼만 클릭 가능 */
}

.watch-movie-btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero 섹션에서 공통 header 활성화 */
#main-header {
    display: block;
}



/* About Section Image Stack Styles */
.about-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0.75rem;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    /* 모바일에서는 모든 about-content가 동일 */
    .about-content {
        flex-direction: column !important;
    }

    .about-image {
        width: 85% !important;
        max-width: 400px !important;
        margin: 0 auto;
        order: 0 !important;
    }

    .about-text {
        width: 100% !important;
        padding: 0 1rem !important;
        margin-top: 1rem;
        order: 1 !important;
    }

    .about-text.px-16 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .about-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    .about-description {
        font-size: 1.2rem !important;
        line-height: 1.7 !important;
        color: #333;
        margin-bottom: 1.5rem !important;
    }

    .arrow-button {
        justify-content: center !important;
        margin: 2rem auto 0 auto !important;
    }

    .about-content:nth-child(1) .about-image.fade-in-scale.animate img {
        border-radius: 40px 0 40px 0 !important;
    }

    .about-content:nth-child(1) .about-image.fade-in-scale.animate::before {
        border-radius: 40px 0 40px 0 !important;
    }

    .about-image.fade-in-scale.animate img {
        border-radius: 40px 0 40px 0 !important;
    }

    .about-image.fade-in-scale.animate::before {
        border-radius: 40px 0 40px 0 !important;
    }

    /* 모바일에서는 모든 섹션이 동일한 border-radius */
    .about-image.fade-in-scale.animate img {
        border-radius: 40px 0 40px 0 !important;
    }

    .about-image.fade-in-scale.animate::before {
        border-radius: 40px 0 40px 0 !important;
    }

    /* placeholder 이미지도 동일하게 */
    .about-content img.empty-image-placeholder {
        border-radius: 40px 0 40px 0 !important;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-section {
        padding: 3.5rem 2rem;
    }

    .about-content {
        gap: 3rem;
    }

    .about-image {
        width: 45%;
    }

    .about-text {
        width: 55%;
        padding: 0 1.5rem;
    }

    .about-title {
        font-size: 2.25rem;
    }

    .about-description {
        font-size: 1.063rem;
    }
}

.about-image {
    width: 50%;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: #d2c9bf;
    border-radius: 0 0 0 0;
    z-index: -1;
    transition: all 1.5s ease-out;
}

.about-content:nth-child(even) .about-image::before {
    left: -20px;
}

/* 짝수 번째 about-content에서 텍스트와 이미지 순서 바꾸기 (동적 생성 대응) */
.about-content:nth-child(even) {
    flex-direction: row-reverse;
}

.about-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-text.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-color-primary); /* 푸터 컬러와 동일 */
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #666;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: border-radius 1.5s ease-out, opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* 홀수 번째 아이템 - 왼쪽 위, 오른쪽 아래 둥글게 */
.about-content:nth-child(odd) .about-image.fade-in-scale.animate img {
    border-radius: 45px 0 45px 0;
    opacity: 1;
    transform: translateY(0);
}

/* 짝수 번째 아이템 - 오른쪽 위, 왼쪽 아래 둥글게 */
.about-content:nth-child(even) .about-image.fade-in-scale.animate img {
    border-radius: 0 45px 0 45px;
    opacity: 1;
    transform: translateY(0);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Text Sequential Animations */
.hero-title-1, .hero-title-2, .hero-description-animation, .hero-cta-animation, .hero-controls-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-title-1.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-2.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-description-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-controls-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Image Zoom Effect */
.hero-swiper .swiper-slide img {
    transform: scale(1.1);
    transition: transform 8s ease-out;
}

.hero-swiper .swiper-slide-active img {
    transform: scale(1);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-scale.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Hero Slider Controls Container - 버튼 아래 컴팩트 디자인 */
.hero-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    z-index: 200 !important;
    pointer-events: auto;
    margin-left: -20px;
}

.hero-controls > * {
    pointer-events: auto;
}

/* Navigation Buttons - 작은 원형 */
.hero-controls .swiper-button-next,
.hero-controls .swiper-button-prev {
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white !important;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: auto;
    z-index: 20;
}

.hero-controls .swiper-button-next:hover,
.hero-controls .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-controls .swiper-button-next::after,
.hero-controls .swiper-button-prev::after {
    font-size: 12px;
    font-weight: bold;
}

/* Progress Bar - 가운데 작은 바 */
.hero-progress-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.hero-progress {
    height: 100%;
    background: white;
    border-radius: 1px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Pagination 숨기기 (프로그레스 바로 대체) */
.hero-swiper .swiper-pagination {
    display: none;
}

/* Scrollbar 숨기기 */
.hero-swiper .swiper-scrollbar {
    display: none;
}

/* Arrow Button */
.arrow-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    transition: all 0.3s ease;
}

.arrow-line {
    width: 40px;
    height: 1px;
    background-color: #333;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.arrow-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-right: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.arrow-head {
    font-size: 16px;
    transition: all 0.3s ease;
}

.arrow-button:hover .arrow-line {
    width: 60px;
    background-color: #000;
}

.arrow-button:hover .arrow-text {
    color: #000;
}

.arrow-button:hover .arrow-head {
    transform: translateX(5px);
    color: #000;
}

.banner-title {
    line-height: 1.5;
    font-size: 1.6rem !important;
    margin-bottom: 0 !important;
}