/**
 * Layout — panel stack, left nav, right nav
 * Z-index hierarchy: panels 1-8, nav 10000, drawer 10001
 */

/* ========== PANEL STACK ========== */
.panel-stack {
    position: relative;
    width: 100%;
}

.panel-stack__item {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Hero: sticky, centered, single viewport */
.panel-stack__item[data-panel-index="0"] {
    justify-content: center;
    overflow: hidden;
}

/* Intro: ikut scroll halaman — konten naik sampai habis, baru Hotel naik */
.panel-stack__item[data-panel-index="1"] {
    position: relative;
    min-height: 0;
    justify-content: flex-start;
    overflow: visible;
}

/* Index panels: normal flow — shell follows content, only inner sticky (strip+main) sticks */
.panel-stack__item[data-panel-index="2"],
.panel-stack__item[data-panel-index="3"],
.panel-stack__item[data-panel-index="4"],
.panel-stack__item[data-panel-index="5"],
.panel-stack__item[data-panel-index="6"] {
    position: relative;
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
}

.panel-stack__item--footer {
    overflow: visible;
}

.panel-stack__item[data-panel-index="0"] { z-index: 1; }
.panel-stack__item[data-panel-index="1"] { z-index: 2; }
.panel-stack__item[data-panel-index="2"] { z-index: 3; }
.panel-stack__item[data-panel-index="3"] { z-index: 4; }
.panel-stack__item[data-panel-index="4"] { z-index: 5; }
.panel-stack__item[data-panel-index="5"] { z-index: 6; }
.panel-stack__item[data-panel-index="6"] { z-index: 7; }
.panel-stack__item[data-panel-index="7"] { z-index: 8; }

.panel-stack__item[data-panel-index="1"],
.panel-stack__item[data-panel-index="2"],
.panel-stack__item[data-panel-index="3"],
.panel-stack__item[data-panel-index="4"],
.panel-stack__item[data-panel-index="5"],
.panel-stack__item[data-panel-index="6"] {
    box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.25);
}

.panel-stack__item--hero {
    justify-content: stretch;
}

.panel-stack__item--footer {
    min-height: 50vh;
    justify-content: flex-end;
}

/* ========== RIGHT STICKY NAV ========== */
.bali-page .nav-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    visibility: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--space-xl) var(--space-lg);
    /* Let clicks pass through empty area so carousel buttons work */
    pointer-events: none;
}

.bali-page .nav-right .nav-right__block {
    pointer-events: auto;
}

.nav-right__block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.nav-right__btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.nav-right__label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    transition: color 0.25s ease;
}

.nav-right__btn:hover .nav-right__label {
    color: rgba(255, 255, 255, 1);
}

.nav-right__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.nav-right__line-h {
    display: block;
    width: 100%;
    min-width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}
