/* =============================================
   제주인포항 풀빌라 - 커스텀 CSS (고도화 버전)
   UTF-8 Encoding
   ============================================= */

/* --- 기본 설정 --- */
:root {
    --primary: #1c71a7;
    --primary-dark: #155a86;
    --gold: #c9a96e;
    --gold-dark: #b08a50;
    --dark: #1a1a1a;
    --gray: #888;
    --light-gray: #f7f6f4;
    --white: #fff;
    --green-accent: #86a17e;
    --transition: all 0.3s ease;
}

/* --- 2섹션 사진 슬라이더 --- */
.photo-slider-section {
    margin-top: 8vmin;
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.photo-swiper {
    width: 100%;
    height: 100%;
}

.photo-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 페이지네이션 */
.photo-slider-section .photo-pagination {
    position: absolute;
    bottom: 4vmin;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: calc(.9rem + .3125vw);
    font-weight: 300;
    color: #fff;
    letter-spacing: .12em;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    z-index: 10;
}

.photo-pagination .swiper-pagination-total::before {
    content: '-';
    display: inline-block;
    margin: 0 6px;
    font-size: calc(1.4rem + .3125vw);
    font-weight: 100;
    vertical-align: middle;
}

/* 화살표 버튼 */
.photo-prev,
.photo-next {
    color: rgba(255,255,255,0.85) !important;
}

.photo-prev::after,
.photo-next::after {
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

@media (max-width: 800px) {
    .photo-slider-section {
        height: 60vw;
        min-height: 260px;
    }
}

/* --- 비디오 히어로 --- */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* YouTube iframe 전체화면 처리 - 가로(landscape) 기준 cover */
.video-bg #ytplayer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 16:9 비율로 컨테이너를 항상 덮도록 */
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    border: none;
    pointer-events: none;
}

/* 모바일: 세로 화면에서도 가로 비율로 꽉 채우기 */
@media (max-width: 800px) {
    .video-hero {
        height: 56.25vw;          /* 16:9 가로 비율로 높이 고정 */
        min-height: 220px;
        max-height: 100vw;
    }

    .video-bg #ytplayer {
        width: 100vw;
        height: 56.25vw;
        min-width: unset;
        min-height: unset;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* 모바일에서 컨트롤 버튼 크기 조정 */
    .vc-btn {
        width: 38px;
        height: 38px;
    }
    .vc-btn svg {
        width: 18px;
        height: 18px;
    }
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.6) 100%
    );
    z-index: 1;
}

/* 영상 컨트롤 버튼 */
.video-controls {
    position: absolute;
    bottom: 5vmin;
    right: 3.5%;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vc-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.vc-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* 히어로 텍스트가 video-hero 안에 있을 때 */
.video-hero .m_slide_txt {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: none;
}

.video-hero .scroll {
    z-index: 10;
}

/* con_wrap.main padding 보정 (video-hero는 full-height) */
.con_wrap.main {
    padding-top: 0 !important;
}

/* --- 헤로 텍스트 오버레이 --- */
.img_area .m_slide_txt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.55) 100%
    );
}

.hero-text-wrap {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 2vmin;
    padding: 6px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: calc(.7rem + .2vw);
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: calc(3rem + 3vw);
    font-weight: 300;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    margin-bottom: 2vmin;
}

.hero-title span {
    color: var(--gold);
    font-weight: 600;
}

.hero-sub {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(.9rem + .5vw);
    font-weight: 300;
    color: rgba(255,255,255,.9);
    letter-spacing: .02em;
    margin-bottom: 4vmin;
    text-shadow: 0 1px 5px rgba(0,0,0,.3);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Poppins', sans-serif;
    font-size: calc(.8rem + .2vw);
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.hero-btn.primary {
    background: var(--gold);
    color: #fff;
    border: 2px solid var(--gold);
}

.hero-btn.primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
}

.hero-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.8);
}

.hero-btn.secondary:hover {
    background: rgba(255,255,255,.15);
    transform: translateY(-2px);
}

/* --- 통계 바 --- */
.stats-bar {
    background: var(--dark);
    padding: 4vmin 0;
}

.stats-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    flex-wrap: wrap;
    gap: 3vmin;
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 1vmin 3vmin;
    border-right: 1px solid rgba(255,255,255,.15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(2rem + 1.5vw);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: .5vmin;
}

.stat-num span {
    font-size: calc(1.2rem + .5vw);
}

.stat-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(.7rem + .2vw);
    color: rgba(255,255,255,.6);
    letter-spacing: .05em;
}

/* --- About 섹션 개선 --- */
.mcon1 .textbox {
    margin: 0 auto 6vmin;
    text-align: center;
    max-width: 700px;
}

.mcon1 .textbox .stit {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.7rem + .2vw);
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1vmin;
}

.mcon1 .textbox h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(2.5rem + 1.5vw);
    font-weight: 400;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 2vmin;
}

.mcon1 .textbox .eng {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.8rem + .2vw);
    color: var(--gray);
    letter-spacing: .05em;
    margin-bottom: 2vmin;
}

.mcon1 .textbox .kor {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(.9rem + .2vw);
    color: #555;
    line-height: 1.9;
}

/* --- 포항 여행 가이드 --- */
.pohang-guide {
    padding: 14vmin 0;
    background: var(--light-gray);
}

.guide-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.pohang-guide .textbox {
    text-align: center;
    margin-bottom: 7vmin;
}

.pohang-guide .stit {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.7rem + .2vw);
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1vmin;
}

.pohang-guide h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(2.5rem + 1.5vw);
    font-weight: 400;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 2vmin;
}

.pohang-guide .eng {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.8rem + .2vw);
    color: var(--gray);
    letter-spacing: .05em;
    margin-bottom: 1.5vmin;
}

.pohang-guide .kor {
    font-size: calc(.9rem + .2vw);
    color: #555;
    line-height: 1.8;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5vw;
}

.guide-card {
    background: #fff;
    padding: 4vmin 3vmin;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s ease;
}

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

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-icon {
    font-size: calc(1.8rem + 1vw);
    margin-bottom: 2vmin;
    display: block;
}

.guide-card h4 {
    font-family: 'Noto Serif KR', serif;
    font-size: calc(.9rem + .4vw);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5vmin;
}

.guide-card p {
    font-size: calc(.75rem + .2vw);
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2vmin;
}

.distance {
    display: inline-block;
    padding: 4px 12px;
    font-size: calc(.65rem + .1vw);
    font-family: 'Poppins', sans-serif;
    letter-spacing: .05em;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
}

/* --- 리뷰 섹션 --- */
.review-section {
    padding: 14vmin 0;
    background: #fff;
}

.review-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.review-section .textbox {
    text-align: center;
    margin-bottom: 4vmin;
}

.review-section .stit {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.7rem + .2vw);
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1vmin;
}

.review-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(2.5rem + 1.5vw);
    font-weight: 400;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 2vmin;
}

.review-section .eng {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.8rem + .2vw);
    color: var(--gray);
    letter-spacing: .05em;
}

.review-stars {
    text-align: center;
    margin-bottom: 6vmin;
}

.star-score {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: calc(2rem + 1vw);
    font-weight: 700;
    color: var(--dark);
    margin-right: 1vmin;
    vertical-align: middle;
}

.review-stars .stars {
    display: inline-block;
    font-size: calc(1rem + .5vw);
    color: #f5a623;
    vertical-align: middle;
    margin-right: 1vmin;
}

.review-count {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(.8rem + .2vw);
    color: var(--gray);
    vertical-align: middle;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3vw;
}

.review-card {
    background: var(--light-gray);
    padding: 4vmin;
    border-radius: 4px;
    position: relative;
}

.review-card::before {
    content: '"';
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(3rem + 2vw);
    color: var(--gold);
    opacity: .3;
    position: absolute;
    top: 2vmin;
    left: 3vmin;
    line-height: 1;
}

.review-stars-small {
    color: #f5a623;
    font-size: calc(.8rem + .2vw);
    margin-bottom: 2vmin;
}

.review-card p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: calc(.8rem + .2vw);
    color: #555;
    line-height: 1.8;
    margin-bottom: 2vmin;
    position: relative;
    z-index: 1;
}

.reviewer {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.65rem + .1vw);
    color: var(--gray);
    letter-spacing: .05em;
    font-weight: 500;
}

/* --- 공통 TextBox 스타일 --- */
.textbox {
    margin: 0 auto 6vmin;
    width: 94%;
    max-width: 1800px;
    padding: 0 3%;
}

.stit {
    font-family: 'Poppins', sans-serif;
    font-size: calc(.7rem + .2vw);
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1vmin;
}

/* --- 푸터 개선 --- */
footer .ft_rsvt .kor {
    font-size: calc(.95rem + .3125vw);
    line-height: 2.2;
}

footer .ft_info li p {
    font-size: calc(.75rem + .2vw);
    color: #555;
    line-height: 1.8;
}

/* --- 버튼 호버 효과 --- */
.btn span {
    display: inline-block;
    width: 2vmin;
    height: 1px;
    background-color: currentColor;
    margin-left: 1vmin;
    transition: width .3s ease;
    vertical-align: middle;
}

.btn:hover span {
    width: 4vmin;
}

/* --- 반응형 --- */
@media (max-width: 1200px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3vw;
    }
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .hero-title {
        font-size: calc(2.5rem + 3vw);
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-btn {
        padding: 12px 28px;
        width: 200px;
        text-align: center;
    }
    .stats-inner {
        gap: 4vmin;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.15);
        padding: 2vmin 0;
        width: 45%;
    }
    .stat-item:last-child,
    .stat-item:nth-child(even) {
        border-bottom: none;
    }
    .guide-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4vw;
    }
    .review-grid {
        grid-template-columns: 1fr;
        gap: 5vw;
    }
    .pohang-guide,
    .review-section {
        padding: 10vmin 0;
    }
    .hero-badge {
        font-size: .65rem;
        letter-spacing: .15em;
        padding: 5px 15px;
    }
}

@media (max-width: 480px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    .stats-inner {
        flex-direction: column;
        align-items: center;
    }
    .stat-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.1);
        padding: 3vmin 0;
    }
}

/* --- 스크롤 애니메이션 개선 --- */
[data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0);
}

/* --- 선택 색상 --- */
::selection {
    background: var(--gold);
    color: #fff;
}

/* --- 스크롤바 스타일 (Webkit) --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
