/* =====================================================================
   st-flipbook.css — 양면 펼침 플립북 (book2_section.js 스타일)
   DOM 기반: 인터랙티브 콘텐츠(지도, 폼, 갤러리) 지원
   ===================================================================== */

:root {
    /* ◀ 앞으로는 여기 숫자만 바꾸면 모든 페이지 속도가 한 번에 바뀝니다! */
    /* 속도를 빠르게 하고 싶다면 400ms 등으로 줄여보세요. */
    --flip-duration: 1700ms;
}

/* ── 플립북 섹션 래퍼 ── */
.st-flipbook-section {
    position: absolute;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: var(--label, #FFFFFF);
    font-family: "Apple SD Gothic Neo", "SF Pro KR", -apple-system, BlinkMacSystemFont, \"Noto Sans KR\", sans-serif;
    perspective: 1800px;
    pointer-events: none;
    z-index: 1;
}
.st-flipbook-section--active {
    pointer-events: auto;
    z-index: 10;
}

/* ── 무대 (페이지들이 움직이는 컨테이너) ── */
.st-flipbook-stage {
    position: absolute;
    top: 5%;
    left: 8%;
    width: 86%;
    height: 86%;
    overflow: hidden;
    transform-style: preserve-3d;
    background: transparent;
}

/* ── 개별 페이지 ── */
.st-flip-page {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    background: #2a2a2a;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;

    /* 애니메이션 기본 트랜지션 */
    transition: transform var(--flip-duration) cubic-bezier(0.2, 0.6, 0.3, 1),
    opacity var(--flip-duration) ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* 왼쪽 / 오른쪽 기본 배치 */
.st-flip-page--left {
    left: 0;
    transform-origin: left center;
}
.st-flip-page--right {
    left: 50%;
    transform-origin: right center;
}

/* 활성화 상태 (화면에 보이는 기본 상태) */
.st-flip-page--active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
    transform: rotateY(0deg);
}

/* ── 다음/이전 전환 애니메이션 (단면 제어용 변수 적용부) ── */
.st-flip-page--leaving-forward.st-flip-page--left {
    animation: stDoorOpenLeft var(--flip-duration) cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.st-flip-page--leaving-forward.st-flip-page--right {
    animation: stDoorOpenRight var(--flip-duration) cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.st-flip-page--leaving-back.st-flip-page--left {
    animation: stDoorCloseLeft var(--flip-duration) cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.st-flip-page--leaving-back.st-flip-page--right {
    animation: stDoorCloseRight var(--flip-duration) cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.st-flip-page--entering-forward.st-flip-page--left,
.st-flip-page--entering-back.st-flip-page--left {
    animation: stDoorPageIn var(--flip-duration) ease forwards;
}
.st-flip-page--entering-forward.st-flip-page--right,
.st-flip-page--entering-back.st-flip-page--right {
    animation: stDoorPageInRight var(--flip-duration) cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

/* ── 키프레임 정의들 ── */
@keyframes stDoorOpenLeft {
    0% { transform: rotateY(0deg); opacity: 1; z-index: 5; }
    100% { transform: rotateY(-120deg); opacity: 0; z-index: 1; }
}
@keyframes stDoorOpenRight {
    0%   { transform: rotateY(0deg) translateZ(0); opacity: 1; z-index: 5; }
    25%  { transform: rotateY(-45deg) translateZ(50px); opacity: 1; z-index: 5; }
    50%  { transform: rotateY(-90deg) translateZ(80px); opacity: 1; z-index: 5; }
    75%  { transform: rotateY(-135deg) translateZ(50px); opacity: 0.5; z-index: 3; }
    100% { transform: rotateY(-180deg) translateZ(0); opacity: 0; z-index: 1; }
}
@keyframes stDoorCloseLeft {
    0% { transform: rotateY(-120deg); opacity: 0; z-index: 1; }
    100% { transform: rotateY(0deg); opacity: 1; z-index: 5; }
}
@keyframes stDoorCloseRight {
    0%   { transform: rotateY(-180deg) translateZ(0); opacity: 0; z-index: 1; }
    25%  { transform: rotateY(-135deg) translateZ(50px); opacity: 0.5; z-index: 3; }
    50%  { transform: rotateY(-90deg) translateZ(80px); opacity: 1; z-index: 5; }
    75%  { transform: rotateY(-45deg) translateZ(50px); opacity: 1; z-index: 5; }
    100% { transform: rotateY(0deg) translateZ(0); opacity: 1; z-index: 5; }
}
@keyframes stDoorPageIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes stDoorPageInRight {
    0%   { opacity: 0; transform: rotateY(-180deg) translateZ(0); }
    25%  { opacity: 0.5; transform: rotateY(-135deg) translateZ(50px); }
    50%  { opacity: 1; transform: rotateY(-90deg) translateZ(80px); }
    75%  { opacity: 1; transform: rotateY(-45deg) translateZ(50px); }
    100% { opacity: 1; transform: rotateY(0deg) translateZ(0); }
}
@keyframes stSpreadFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes stSpreadFadeInRight {
    0%   { opacity: 0; transform: rotateY(-180deg) translateZ(0); }
    25%  { opacity: 0.5; transform: rotateY(-135deg) translateZ(50px); }
    50%  { opacity: 1; transform: rotateY(-90deg) translateZ(80px); }
    75%  { opacity: 1; transform: rotateY(-45deg) translateZ(50px); }
    100% { opacity: 1; transform: rotateY(0deg) translateZ(0); }
}
.st-page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.st-flip-page--left .st-page-content {
    border-right: 1px solid rgba(0,0,0,0.2);
}
.st-flip-page--right .st-page-content {
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* ── 스프레드(양면 페이지 쌍) 내비게이션 ── */
/* ◀ 이 영역들의 0.8s 고정값들을 모두 var(--flip-duration) 변수로 수정했습니다. */
.st-flip-spread {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: none;
    opacity: 0;
    transition: opacity var(--flip-duration) ease;
}
.st-flip-spread--active {
    display: block;
    opacity: 1;
    z-index: 4;
}
.st-flip-spread--entering {
    display: block;
}
.st-flip-spread--entering .st-flip-page--left {
    opacity: 1;
    pointer-events: auto;
    animation: stSpreadFadeIn var(--flip-duration) ease forwards;
}
.st-flip-spread--entering .st-flip-page--right {
    opacity: 1;
    pointer-events: auto;
    animation: stSpreadFadeInRight var(--flip-duration) cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.st-flip-spread--leaving-forward,
.st-flip-spread--leaving-back,
.st-flip-spread--entering-back {
    display: block;
    pointer-events: none;
}
.st-flip-spread--leaving-forward .st-flip-page--left {
    animation: stDoorOpenLeft var(--flip-duration) cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.st-flip-spread--leaving-forward .st-flip-page--right {
    animation: stDoorOpenRight var(--flip-duration) cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}
.st-flip-spread--entering-back .st-flip-page--left {
    animation: stDoorCloseLeft var(--flip-duration) cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.st-flip-spread--entering-back .st-flip-page--right {
    animation: stDoorCloseRight var(--flip-duration) cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

/* ── 페이지 내부 ── */
.st-flip-page-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding: clamp(10px, 3vw, 10px);
    box-sizing: border-box;
}

/* [공통 설정] 배경 속성 정의 (이미지 경로는 제외) */
.st-flip-page-inner--book-bg {
    background-repeat: no-repeat ;
    background-size: cover ;
    transition: background-size 0.5s ease ;
}

/* [왼쪽 페이지] 왼쪽 전용 이미지 등록 및 정렬 */
.st-flip-page-inner--book-bg-left {
    background-image: url('http://localhost/wp-media/golf/bg_left.png');
    background-position: left center ;
}

/* [오른쪽 페이지] 오른쪽 전용 이미지 등록 및 정렬 */
.st-flip-page-inner--book-bg-right {
    background-image: url('http://localhost/wp-media/golf/bg_right.png');
    background-position: right center ;
}

/* 북 컨테이너 기본 배경 (페이지 넘김 시 보이는 바탕) */
.book-pages-container {
    position: relative;
    background: url('../img/golf/bg1.png') no-repeat center center;
    background-size: contain;
}

/* ── 페이지 헤더 ── */
.st-flip-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding-bottom: 16px;
    height: 50px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    margin-bottom: 16px;
}

.st-flip-page-header h2,
.st-flip-page-header-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--gold-color, #d4af37);
    margin: 0;
    letter-spacing: 0.04em;
}

.st-flip-page-header p {
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ── 페이지 본문 ── */
.st-flip-page-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* ── 입구 스타일 ── */
.st-flip-page--cover .st-flip-page-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.st-flip-cover-icon {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--gold-color, #d4af37);
    margin-bottom: 24px;
    opacity: 0.9;
}

.st-flip-page--cover h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold-color, #d4af37);
    margin-bottom: 12px;
}

.st-flip-page--cover p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
}

/* ── 네비게이션 화살표 ── */
.st-flip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(28, 28, 30, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: none ;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.st-flip-arrow:hover {
    color: var(--gold-color, #d4af37);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.st-flip-arrow:disabled,
.st-flip-arrow.disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.st-flip-prev { left: 16px; }
.st-flip-next { right: 16px; }

/* ── 페이지 인디케이터 ── */
.st-flip-indicator {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(16px);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none ;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .st-flipbook-section {
        min-height: 100dvh;
        height: 100dvh;
    }
    .st-flip-page {
        width: 100%;
        left: 0 ;
        height: 100%;
    }
    .st-flip-page--right {
        top: 0;
        display: none; /* 모바일에서는 한 페이지씩 보기 */
    }
    .st-flip-page--active.st-flip-page--right {
        display: block;
    }
    .st-flip-arrow {
        width: 36px;
        height: 36px;
    }
    .st-flip-prev { left: 8px; }
    .st-flip-next { right: 8px; }
    .st-flip-page-inner {
        padding: 14px;
    }
}

/* ── 인쇄 ── */
@media print {
    .st-flipbook-section {
        height: auto;
        overflow: visible;
        background: #fff;
        color: #000;
    }
    .st-flip-page {
        position: relative ;
        display: block ;
        left: 0 ;
        width: 100% ;
        page-break-after: always;
        break-after: page;
        background: #fff;
        color: #000;
        height: auto;
        min-height: 100vh;
        opacity: 1 ;
        transform: none ;
    }
    .st-flip-arrow,
    .st-flip-indicator {
        display: none ;
    }
}
/* =====================================================================
   New Book Layout — sidebar + main + floating menu
   ===================================================================== */

/* Scope to book-layout so old .book-container styles on other pages stay intact */
.book-layout {
    position: relative;
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

/* ── Left Sidebar ── */
.book-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 100%;
    flex-shrink: 0;
    padding: 5px 14px;
    gap: 16px;
    background: linear-gradient(rgba(10, 10, 14, 0.75), rgba(10, 10, 14, 0.85)), center center / cover no-repeat;
    border-right: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: rgba(255, 255, 255, 0.92);
    z-index: 50;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.sidebar-logo {
    flex: 0 0 auto;
    text-align: center;
    padding: 8px 0 4px;
}
.sidebar-logo img {
    max-width: 78%;
    max-height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.sidebar-logo a {
    display: inline-block;
    transition: transform 0.2s ease;
}
.sidebar-logo a:hover { transform: scale(1.04); }

.sidebar-toc {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.sidebar-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.82);
    font-size: 1.2rem;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.toc-item:hover,
.toc-item.active {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-color, #d4af37);
}
.toc-item i {
    width: 20px;
    text-align: center;
    color: rgba(212, 175, 55, 0.85);
}

/* Unified page navigation bar: prev + indicator + next centered at bottom */
.book-page-nav {
    position: relative;
    z-index: 200;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}
/* 내부 버튼/인디케이터는 클릭 가능하도록 pointer-events 복원 */
.book-page-nav-btn,
.book-page-nav-indicator {
    pointer-events: auto;
}
.book-page-nav-btn {
    padding: 5px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(28, 28, 30, 0.72);
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.book-page-nav-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.22);
    color: var(--gold-color, #d4af37);
    transform: scale(1.05);
}
.book-page-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}
.book-page-nav-btn i {
    font-size: 0.75rem;
}
.book-page-nav-indicator {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    padding: 1px;
    border-radius: 999px;
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.65rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .book-page-nav {
        gap: 8px;
        padding: 6px 10px;
    }
    .book-page-nav-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .book-page-nav-btn span {
        display: none;
    }
    .book-page-nav-indicator {
        font-size: 0.75rem;
        min-width: 44px;
    }
}

.sns-list { flex: 1 1; display: flex; flex-direction: row; flex-wrap: nowrap; gap: var(--space-2, 8px); padding: 3px 0; font-size: var(--type-caption2, 12px);}
.event-thumb-list, .blog-list {
                  display: flex;
                  flex-direction: column;
                  gap: 8px;
                  padding-top: 10px;}
/* 갤러리 폴더 목록: 2x2 그리드로 공간 활용 */
.gallery-folder-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 10px;
}
.sns-item, .event-thumb, .blog-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}
/* 갤러리 폴더 버튼: 세로 정렬 + 카운트 배지 */
.gallery-folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    position: relative;
}
.gallery-folder i {
    font-size: 1.4rem;
}
.gallery-folder span {
    font-size: 0.82rem;
    font-weight: 600;
}
.gallery-folder-count {
    position: absolute;
    top: 6px; right: 6px;
    min-width: 20px; height: 20px;
    line-height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(212,175,55,0.25);
    color: var(--gold-color, #d4af37);
    font-size: 0.68rem;
    font-weight: 700;
}
.sns-item.active, .event-thumb.active, .gallery-folder.active, .blog-item.active,
.sns-item:hover, .event-thumb:hover, .gallery-folder:hover, .blog-item:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-color, #d4af37);
}
.sns-item i, .gallery-folder i { width: 22px; text-align: center; }
.event-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.event-thumb-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.event-thumb-title { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-thumb-period { font-size: 0.72rem; color: rgba(212,175,55,0.85); }
.event-thumb-period i { margin-right: 3px; }
.event-thumb-badge { font-size: 0.68rem; font-weight: 700; color: #81c784; }

.sns-panel, .event-panel, .gallery-panel, .blog-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}
.sns-panel.active, .event-panel.active, .gallery-panel.active, .blog-panel.active {
    display: flex;
}

.channel-card, .event-detail-body, .blog-panel-body {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}
.channel-card strong, .event-detail-body h3, .blog-panel-title {
    color: var(--gold-color, #d4af37);
    margin-bottom: 6px;
}
.channel-actions { display: flex; gap: 8px; margin-top: 8px; }
.channel-actions a {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-color, #d4af37);
    font-size: 0.78rem;
    text-decoration: none;
}
.event-detail-img, .blog-panel-img {
    flex: 0 0 auto;
    width: 100%;
    max-height: 87%;
    min-height: 100px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}
.event-detail-img img, .blog-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 이벤트 상세 본문이 이미지 아래에서 자동 확장 */
.event-panel { display: none; flex-direction: column; height: 100%; gap: 8px; }
.event-panel.active { display: flex; }
.event-detail-body { flex: 1 1 auto; overflow-y: auto; }
/* 이벤트 상세 이미지 내 뱃지 */
.event-detail-img { position: relative; }
.event-detail-img .co_badge {
    position: absolute;
    top: 8px; right: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.event-detail-img .co_badge.open {
    background: rgba(76,175,80,0.85); color: #fff;
}
/* 이벤트 기간 표시 */
.event-period {
    font-size: 0.78rem ;
    color: rgba(212,175,55,0.9) ;
    margin-top: 4px;
}
.event-period i {
    margin-right: 4px;
}
/* 패키지 스프레드: 세로 이미지 비율에 맞게 이미지 영역 조정 */
.pkg-spread .event-detail-img {
    max-height: 87%;
    min-height: 150px;
}
.pkg-spread .event-detail-img img {
    object-fit: contain;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}
/* 갤러리 이미지 그리드 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 100%;
    overflow-y: auto;
    padding: 4px 8px 8px 0;
    align-content: start;
}
.gallery-grid-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    transition: transform 0.2s ease;
}
.gallery-grid-item:hover {
    transform: scale(1.04);
}
.gallery-lazy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-lazy-img.gallery-loaded {
    opacity: 1;
}
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 40px 20px;
    font-size: 0.85rem;
}

/* 갤러리 Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.gallery-lightbox.show {
    display: flex;
}
.gallery-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-lightbox-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-filter {
    display: flex; gap: 6px; margin-bottom: 10px;
}
.blog-cat {
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem; cursor: pointer;
}
.blog-cat.active, .blog-cat:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-color, #d4af37);
}
.blog-item-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.blog-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blog-item-title { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow:
        ellipsis; }
.blog-item-date, .blog-item-cat { font-size: 0.7rem; }
.blog-item-cat { color: var(--gold-color, #d4af37); }
.blog-panel-content { font-size: 0.8rem; line-height: 1.6; overflow-y: auto; }

/* ── 코스 안내 ── */
.co_overview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(100% - 60px);
    overflow-y: auto;
}
.co_course-img {
    width: 100%;
    height: 200px;
    background-size: cover ;
    background-position: center ;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}
.co_course-img .co_badge {
    position: absolute;
    top: 8px; right: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.co_course-img .co_badge.open {
    background: rgba(76,175,80,0.85); color: #fff;
}
.co_course-img .co_badge.soon {
    background: rgba(212,175,55,0.85); color: #fff;
}
.co_detail {
    padding: 10px 4px;
}
.co_detail h3 {
    color: var(--gold-color, #d4af37);
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.co_detail p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
}

.co_holes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
    height: calc(100% - 60px);
    overflow-y: auto;
    padding-bottom: 8px;
}
.co_hole-card {
    text-align: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}
.co_hole-card:hover {
    background: rgba(212,175,55,0.12);
    transform: translateY(-2px);
}
.co_hole-number {
    color: var(--gold-color, #d4af37);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 4px;
}
.co_hole-info {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
}
.co_hole-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    display: block;
}

.directions-search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dir-input, .dir-select {
    padding: 8px 10px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3); color: #fff; font-size: 0.85rem;
}
.dir-btn {
    padding: 8px 12px; border-radius: 6px; border: none;
    background: rgba(212, 175, 55, 0.85); color: #000;
    font-weight: 700; cursor: pointer;
}
.directions-info { display: flex; flex-direction: column; gap: 10px; }
.dir-info-item { display: flex; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.dir-info-item i { color: var(--gold-color, #d4af37); margin-top: 2px; }
.directions-map { width: 100%; height: 100%; min-height: 300px; border-radius: 12px; background: rgba(0,0,0,0.3); }

.reservation-form { display: flex; flex-direction: column; gap: 8px; }
.res-field { display: flex; flex-direction: column; gap: 3px; }
.res-field label { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.res-field input, .res-field select, .res-field textarea {
    padding: 7px 9px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3); color: #fff; font-size: 0.85rem;
}
.res-submit {
    padding: 9px; border-radius: 6px; border: none;
    background: rgba(212, 175, 55, 0.85); color: #000;
    font-weight: 700; cursor: pointer;
}
.res-calendar {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center;
    min-height: 180px;
}
.res-calendar .cal-day { padding: 8px 4px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; }
.res-calendar .cal-day:hover, .res-calendar .cal-day.active { background: rgba(212,175,55,0.2); color: #d4af37; }
.res-calendar .cal-day.other { color: rgba(255,255,255,0.3); }
.res-status-list { margin-top: 12px; }
.res-status-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid
rgba(255,255,255,0.08); }
.res-badge { padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.res-badge.available { background: rgba(76,175,80,0.2); color: #81c784; }
.res-badge.booked { background: rgba(244,67,54,0.2); color: #e57373; }
.res-badge.limited { background: rgba(255,152,0,0.2); color: #ffb74d; }

.sidebar-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 4px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
}
.sidebar-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}
.sidebar-footer a:hover { color: var(--gold-color, #d4af37); }
.footer-divider { opacity: 0.4; }

/* ── Main Area ── */
.book-main {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    z-index: 20;
}

.book-top-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 8px 20px;
    background: rgba(10, 10, 14, 0.55);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.book-top-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Override old .book-container when inside new layout */
.book-layout .book-container {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100vh;
    max-width: none;
    max-height: none;
    flex: 1 1 auto;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    perspective: 1800px;
}

/* Override section height inside layout */

/* ── Floating Quick Menu ── */
.floating-quick-menu {
    position: absolute;
    top: 5px;
    right: 18px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.floating-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(10, 10, 14, 0.78);
    color: var(--gold-color, #d4af37);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}
.floating-toggle:hover { transform: scale(1.08); }
.floating-links {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    padding: 5px;
    min-width: 160px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(10, 10, 14, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.floating-links.is-open { display: flex; }
.floating-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.88);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.floating-link:hover {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-color, #d4af37);
}
.floating-link i {
    width: 18px;
    text-align: center;
    color: rgba(212, 175, 55, 0.85);
}
.floating-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.floating-group:first-child { border-top: none; padding-top: 0; }
.floating-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
    color: rgba(212, 175, 55, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .book-sidebar { width: 220px; }
    .toc-item { font-size: 0.86rem; padding: 8px 10px; }
}
@media (max-width: 768px) {
    .book-layout { flex-direction: column; }
    .book-sidebar {
        width: 100%;
        height: auto;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.25);
        padding: 12px;
        gap: 10px;
    }
    .sidebar-logo img { max-height: 44px; }
    .sidebar-toc { overflow-y: auto; max-height: 22vh; }
    .sidebar-controls { padding: 8px; }
    .sidebar-footer { font-size: 0.7rem; }
    .book-top-logo { height: 52px; }
    .book-top-logo img { max-height: 36px; }
    .floating-quick-menu { top: 10px; right: 10px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .book-layout { flex-direction: row; }
    .book-sidebar { width: 190px; height: 100%; max-height: none; border-bottom: none; border-right: 1px solid rgba(212, 175, 55, 0.25); }
    .book-top-logo { height: 48px; }
    .floating-quick-menu { top: 8px; right: 8px; }
}


/* ── 비활성 섹션의 페이지는 숨김 ── */
.st-flipbook-section:not(.st-flipbook-section--active) .st-flip-page,
.st-flipbook-section:not(.st-flipbook-section--active) .st-flip-page--active {
    opacity: 0 ;
    pointer-events: none ;
}


/* Header overlays the book area so the book can use full viewport height */
.book-layout .book-top-logo {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 60;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}
.book-layout .book-top-logo img {
    max-height: 42px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

/* Pages use auto scroll so inner content (forms, lists, maps) stays usable */
.book-layout .st-flip-page-inner,
.st-flip-page-inner {
    overflow-y: auto ;
    overflow-x: hidden ;
}

/* Scale down cover page content so it fits without scrolling */
.st-flip-cover--logo .cover-logo {
    max-height: 220px;
    max-width: 220px;
}
.st-flip-cover--logo h1 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.st-flip-cover--logo p {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
}

/* Ensure the main book uses full height */
.book-layout .book-main {
    height: 100vh;
}
.book-layout .st-flipbook-section {
    height: 100vh;
    min-height: 100vh;
}
.book-layout .st-flip-page {
    height: 100vh;
}
.book-layout .st-flip-page-inner {
    height: 91vh;
    min-height: 90vh;
}

@media (max-width: 768px) {
    .page-nav-pair {
        left: 10px;
        right: 10px;
    }
    .page-nav-side span {
        display: none;
    }
}

/* 스프레드 전환: 대문 열림 — 넘길 때 bg1 기본 배경 노출 */
.st-flip-spread--leaving .st-flip-page,
.st-flip-spread--entering .st-flip-page,
.st-flip-spread--leaving-forward .st-flip-page,
.st-flip-spread--leaving-back .st-flip-page,
.st-flip-spread--entering-forward .st-flip-page,
.st-flip-spread--entering-back .st-flip-page {
    transition: none ;
    backface-visibility: visible ;
}

.st-flip-spread--leaving {
    opacity: 1 ;
    pointer-events: none ;
    z-index: 3 ;
}


.st-flip-spread--entering-back {
    opacity: 1 ;
    pointer-events: auto ;
    z-index: 3 ;
}

.st-flip-spread--leaving-back {
    opacity: 1 ;
    pointer-events: none ;
    z-index: 2 ;
}
.st-flip-spread--leaving-back .st-flip-page {
    animation: none ;
}

@keyframes stSpreadFadeIn {
    0% { opacity: 0; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* 스프레드 내부 페이지는 항상 활성 (스프레드가 보이면 페이지도 보임) */
.st-flip-spread .st-flip-page {
    opacity: 1;
    pointer-events: auto;
}

/* 비활성 섹션의 스프레드 페이지는 숨김 */
.st-flipbook-section:not(.st-flipbook-section--active) .st-flip-spread,
.st-flipbook-section:not(.st-flipbook-section--active) .st-flip-spread .st-flip-page {
    opacity: 0 ;
    pointer-events: none ;
}

/* 스프레드 전환 버튼 (섹션 내부 하단 중앙) */
.st-flip-spread-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.st-flip-spread-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(28, 28, 30, 0.72);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.st-flip-spread-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.22);
    color: var(--gold-color, #d4af37);
    transform: scale(1.08);
}

.st-flip-spread-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.st-flip-spread-indicator {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* 스프레드가 1개인 섹션은 네비 숨김 (st-flip-spread 클래스가 정확히 1개일 때만) */
.st-flipbook-section.single-spread .st-flip-spread-nav {
    display: none;
}

@media (max-width: 768px) {
    .st-flip-spread-nav {
        bottom: 10px;
        gap: 8px;
        padding: 5px 10px;
    }
    .st-flip-spread-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}

/* ── 오시는길 지도 ── */
.leaflet-map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    flex: 1 1 auto;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
    background: #ddd;
}
.map-search-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}
.map-input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.85rem;
}
.map-input::placeholder { color: rgba(255,255,255,0.4); }
.map-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.map-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.map-btn:hover { background: rgba(212,175,55,0.18); color: var(--gold-color, #d4af37); }
.map-btn-primary { background: rgba(16,185,129,0.25); border-color: rgba(16,185,129,0.5); color: #10b981; }
.map-btn-primary:hover { background: rgba(16,185,129,0.4); }
.map-btn-danger { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #ef4444; }
.map-btn-danger:hover { background: rgba(239,68,68,0.35); }
.map-status-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
}
.directions-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dir-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}
.dir-info-item i {
    color: var(--gold-color, #d4af37);
    font-size: 1rem;
    margin-top: 2px;
}
.dir-info-item strong {
    display: block;
    font-size: 0.82rem;
    color: var(--gold-color, #d4af37);
    margin-bottom: 2px;
}
.dir-info-item p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ── 공지&안내 카테고리 배지 ── */
.blog-cat-notice {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}
.blog-cat-news {
    background: rgba(16,185,129,0.2);
    color: #10b981;
}
.blog-item-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.blog-panel-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.blog-panel-content {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    overflow-y: auto;
}
.blog-panel-content p { margin-bottom: 8px; }
.blog-panel-content h3, .blog-panel-content h4 { color: var(--gold-color, #d4af37); margin: 12px 0 6px; }

/* ── 예약 달력 ── */
.res-calendar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: calc(100% - 60px);
    overflow-y: auto;
}
.res-cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4px 0;
}
.res-cal-nav {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: var(--gold-color, #d4af37);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.res-cal-nav:hover { background: rgba(212,175,55,0.25); }
.res-cal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-color, #d4af37);
    min-width: 120px;
    text-align: center;
}
.res-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
}
.res-cal-weekdays span:nth-child(1) { color: #ff6b6b; }
.res-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.res-cal-cell {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
    position: relative;
}
.res-cal-cell.empty { background: transparent; border: none; cursor: default; }
.res-cal-cell.day-available { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.2); }
.res-cal-cell.day-available:hover { background: rgba(16,185,129,0.3); transform: scale(1.05); }
.res-cal-cell.day-unavailable { color: rgba(255,255,255,0.3); }
.res-cal-cell.day-waiting { color: rgba(255,200,0,0.5); }
.res-cal-cell.day-ended { color: rgba(255,255,255,0.2); }
.res-cal-cell.today { border-color: var(--gold-color, #d4af37); border-width: 2px; }
.res-cal-cell.selected { background: var(--gold-color, #d4af37) ; color: #000 ; }
.res-cal-num { font-weight: 600; }
.res-cal-label { font-size: 0.55rem; color: rgba(16,185,129,0.8); margin-top: 2px; }
.res-cal-cell.selected .res-cal-label { color: rgba(0,0,0,0.7); }
.res-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.6);
}
.res-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.res-legend-dot {
    width: 10px; height: 10px;
    border-radius: 3px;
    display: inline-block;
}
.res-legend-dot.available { background: rgba(16,185,129,0.5); }
.res-legend-dot.unavailable { background: rgba(255,255,255,0.15); }
.res-legend-dot.waiting { background: rgba(255,200,0,0.4); }
.res-legend-dot.ended { background: rgba(255,255,255,0.1); }

/* ── 예약 타임 패널 ── */
.res-time-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}
.res-course-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.res-course-tab {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.res-course-tab.active, .res-course-tab:hover {
    background: rgba(212,175,55,0.2);
    border-color: rgba(212,175,55,0.4);
    color: var(--gold-color, #d4af37);
}
.res-selected-date {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-color, #d4af37);
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}
.res-time-list-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
.res-time-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,14,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.res-time-overlay-main {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}
.res-time-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.res-time-table th {
    padding: 8px 6px;
    background: rgba(212,175,55,0.1);
    color: var(--gold-color, #d4af37);
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
}
.res-time-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
}
.res-book-btn {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.15);
    color: #10b981;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.res-book-btn:hover { background: rgba(16,185,129,0.35); }
.res-book-btn.disabled {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    cursor: default;
}

/* ── 예약 모달 ── */
.res-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.res-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 24px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.res-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-color, #d4af37);
    text-align: center;
    margin-bottom: 16px;
}
.res-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.res-modal-table th {
    padding: 8px;
    text-align: right;
    color: rgba(255,255,255,0.6);
    width: 90px;
    vertical-align: middle;
}
.res-modal-table td {
    padding: 8px;
    color: rgba(255,255,255,0.85);
}
.res-modal-input, .res-modal-select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.res-modal-notice {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 12px 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}
.res-modal-btns {
    display: flex;
    gap: 10px;
}
.res-modal-submit {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: var(--gold-color, #d4af37);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}
.res-modal-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 0.9rem;
}

