/* --- 기본 테마 및 컬러 변수 정의 (웜 화이트 & 소프트 그레이) --- */
:root {
    --bg-color: #fcfbfa; /* 따뜻한 느낌의 화이트 */
    --text-main: #222222;
    --text-muted: #666666;
    --accent-color: #6f9cb5; /* 오션뷰 컨셉의 차분한 블루 포인트 */
    --accent-dark: #547d94;
    --danger-color: #df5d5d; /* 경고, 취소 규정용 소프트 레드 */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* --- 기본 스타일 초기화 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable", Pretendard, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 레이아웃 공통 컨테이너 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 상단 고정 헤더 & 내비게이션 --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--header-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    transition: height 0.3s ease;
}
.logo a {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo a span {
    color: var(--accent-color);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}
.nav-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-bottom 0.2s;
    padding: 5px 0;
}
.nav-menu a:hover {
    color: var(--text-main);
}
/* 실시간 예약 버튼 (야놀자 아웃링크) */
/* .nav-menu a { padding: 5px 0 } 보다 우선하도록 .nav-menu a.btn-reservation로 명시 */
.nav-menu a.btn-reservation {
    background-color: var(--text-main);
    color: #ffffff !important;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-block;
    transition: background-color 0.2s, transform 0.2s;
}
.btn-reservation:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* 모바일 햄버거 메뉴 아이콘 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* --- 1. 히어로 섹션 (오션뷰 테마 비주얼) --- */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.25)), url('../images/naver-restore-01.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
}
.hero-content {
    padding: 0 20px;
}
.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.25);
    line-height: 1.3;
}
.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: rgba(255, 255, 255, 0.9);
}
.hero-btn {
    background-color: #ffffff;
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}
.hero-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- 2. 숙소 소개 섹션 (거금아일랜드 환영글) --- */
.intro-section {
    background-color: #ffffff;
    padding: 120px 0;
    border-bottom: 1px solid #f0edf8;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.intro-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.intro-text p {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
    word-break: keep-all;
}
.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.feature-box {
    background-color: var(--bg-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #f3efea;
    text-align: center;
}
.feature-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}
.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* --- 3. 객실 소개 섹션 (5가지 유형 그리드) --- */
.rooms-section {
    padding: 120px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 70px;
}
.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
}
.room-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #f3efea;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.room-img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #f0f0f0;
}
.room-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.room-card:hover .room-img-box img {
    transform: scale(1.06);
}
.room-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.room-info {
    padding: 30px;
}
.room-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.room-info .room-rooms {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}
.room-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 300;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #f3efea;
    padding-top: 20px;
}
.room-meta span strong {
    color: var(--text-main);
    font-weight: 600;
}

/* --- 4. 주변 관광지 섹션 (홈 미리보기 카드) --- */
.tour-section {
    background-color: #ffffff;
    padding: 120px 0;
    border-top: 1px solid #f0edf8;
}
.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.tour-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3efea;
    cursor: default;
}
.tour-img-box {
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.tour-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.tour-card:hover .tour-img-box img {
    transform: scale(1.03);
}
.tour-info {
    padding: 25px;
}
.tour-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}
.tour-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}
.tour-more-wrap {
    text-align: center;
    margin-top: 50px;
}
.tour-more-btn {
    display: inline-block;
    border: 1px solid var(--accent-color);
    color: var(--text-main);
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.tour-more-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* --- 5. 사이트 하단 (Footer) --- */
.site-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 80px 0 50px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.footer-info p {
    color: #999999;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 300;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}
.footer-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.footer-btn:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666666;
    font-size: 0.85rem;
}

/* --- 6. 전체 모달/오버레이 공통 테마 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-window {
    background-color: var(--bg-color);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    /* overflow-y:auto를 이 요소에 직접 걸면 스크롤바가 우측 상/하단 둥근 모서리를
       각지게 가려버리므로, 스크롤은 내부 컨텐츠(#page-overlay-content)에 맡기고
       여기서는 hidden으로 둥근 모서리를 유지한다. (단, #room-detail-modal은
       아래 별도 규칙에서 직각 모서리 + 자체 스크롤바로 재정의됨) */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 100;
}
.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}
.modal-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-main);
    stroke-width: 2.5;
}

/* 서브페이지 오버레이(#page-overlay-modal)의 실제 스크롤 영역 */
#page-overlay-content {
    min-height: 0;
    overflow-y: auto;
}

/* --- 7. 객실 상세 슬라이더 모달 디자인 --- */
.room-modal-body {
    display: flex;
    flex-direction: column;
}
/* 객실소개 팝업은 4모서리 전부 직각 + 자체 스크롤바 사용 (요청에 따라 둥근 모서리 처리 제외) */
#room-detail-modal .modal-window {
    display: block;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background-color: #222;
}
.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.slide-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}
.slider-arrow:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}
.slider-arrow-prev { left: 20px; }
.slider-arrow-next { right: 20px; }
.slider-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-main);
    stroke-width: 2.5;
    fill: none;
}
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, width 0.2s;
}
.slider-dot.active {
    background-color: #ffffff;
    width: 22px;
    border-radius: 5px;
}
.room-detail-info {
    padding: 40px;
}
.room-detail-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0edf8;
    padding-bottom: 20px;
}
.room-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}
.room-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.detail-tag {
    background-color: #f3efea;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}
.room-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.room-detail-desc h4, .room-detail-amenities h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}
.room-detail-desc p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    white-space: pre-wrap;
}
.amenity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.amenity-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.amenity-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- 8. 시설 소개 및 이용 안내 / 주변관광 페이지 공통 디자인 --- */
.info-modal-header {
    padding: 40px 40px 20px 40px;
    border-bottom: 1px solid #eef0f3;
}
.info-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-modal-title span {
    font-size: 0.9rem;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.info-modal-tabs {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    border-bottom: 1px solid #eef0f3;
    flex-wrap: wrap;
}
.info-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.info-tab-btn:hover {
    color: var(--text-main);
}
.info-tab-btn.active {
    color: var(--accent-color);
}
.info-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}
.info-modal-content {
    padding: 40px;
}
.info-tab-pane {
    display: none;
}
.info-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.info-block {
    background-color: #ffffff;
    border: 1px solid #f0ecf3;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 25px;
}
.info-block:last-child {
    margin-bottom: 0;
}
.info-block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.info-block-content p {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 300;
    word-break: keep-all;
}
.info-block-content p:last-child {
    margin-bottom: 0;
}
.info-sub-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.warning-text {
    color: var(--danger-color);
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    margin-top: 8px;
}

/* 테이블 구조 스타일링 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.92rem;
}
.info-table th, .info-table td {
    border: 1px solid #f0ece6;
    padding: 12px 15px;
    text-align: left;
}
.info-table th {
    background-color: #faf8f5;
    font-weight: 600;
    color: var(--text-main);
    width: 25%;
}
.info-table td {
    color: var(--text-muted);
    font-weight: 300;
}

/* 예약 및 안내 전용 리스트 스타일 */
.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notice-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}
.notice-list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: var(--accent-color);
    font-weight: bold;
}
.notice-list li.strong-warn {
    color: var(--danger-color);
    font-weight: 500;
}
.notice-list li.strong-warn::before {
    color: var(--danger-color);
}

/* --- 9. 독립 서브페이지(info.html / tour.html) 전용 레이아웃 --- */
/* 오버레이로 삽입될 때는 modal-window(최대 900px)가 감싸주고,
   직접 방문 시에는 이 wrap 자체가 본문 폭/여백을 잡아준다. */
.page-content-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 20px 100px;
}
.page-content-wrap .info-modal-header,
.page-content-wrap .info-modal-content {
    padding-left: 0;
    padding-right: 0;
}

/* 주변관광 페이지 전용 카드 그리드 (2열) */
.tour-grid-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 10px;
}
.tour-page-intro {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 30px;
    word-break: keep-all;
}

/* --- 모바일 기기 반응형 스타일링 --- */
@media (max-width: 968px) {
    .header-container {
        height: 70px;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-menu a {
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    .menu-toggle {
        display: flex;
        /* .nav-menu가 position:fixed로 빠지면서 부모 <nav>가 폭 0으로 축소되어,
           DOM 순서상 그 앞에 있는 menu-toggle이 space-between 배치상 가운데로
           밀려 보이는 문제가 있어 순서를 뒤로 밀어 우측 끝에 고정한다. */
        order: 1;
    }
    /* 햄버거 메뉴 애니메이션 */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .tour-grid-page {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-links {
        align-items: flex-start;
    }
    .room-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .info-modal-header, .info-modal-content {
        padding: 25px 20px;
    }
    .page-content-wrap {
        padding: 110px 16px 70px;
    }
    .info-block {
        padding: 20px;
    }
    .info-table th {
        width: 35%;
    }
}
