/* =========================================
   3D PERSPECTIVE MENU EFFECT (MAYA STYLE)
   ========================================= */

/* GLOBAL HEIGHT FIX FOR 3D EFFECT */
html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent body scroll, let p-container handle it */
    margin: 0;
    padding: 0;
}

/* Main Perspective Container */
#perspective {
    background: #E6D7BE; /* BEIGE BACKGROUND */
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px; 
    overflow: hidden;
}

/* Background Pattern for Menu */
#perspective::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../img/backgroud.png'); /* Pattern Image */
    background-size: 500px; /* Adjust pattern size */
    background-repeat: repeat;
    opacity: 0.05; /* Subtle Pattern */
    pointer-events: none;
    z-index: 0;
}

/* Inner Container (The Page Content) */
#perspective .p-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: #fff;
    /* transform-style: preserve-3d;  REMOVED TO ELIMINATE GAP */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth easing */
    z-index: 10;
    overflow-y: auto; /* This is the main scrollable area */
    overflow-x: hidden;
    transform-origin: 0% 50%; /* Pivot from Left */
    margin-top: 0 !important; /* Force no top margin */
}

/* Modal View State (Triggered via JS) */
#perspective.modalview .p-container {
    position: absolute;
    overflow: hidden; /* Lock scroll when menu is open */
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 0; /* No rounded corners */
    /* box-shadow: -20px 0 50px rgba(0,0,0,0.3); REMOVED SHADOW TO LOOK LIKE FLAT SLIDE */
}

/* Wrapper */
.p-wrapper {
    position: relative;
}

/* Effect: Rotate Left (3D Effect) */
#perspective.modalview.effect-rotate-left .p-container {
    transform: rotateY(-20deg) translateX(320px) scale(0.9);
    transform-origin: 0% 50%;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.4);
    border-radius: 10px;
}

    /* Outer Nav (Hidden Menu - Now on LEFT) */
    .outer-nav {
        position: fixed; /* Fixed to viewport */
        top: 0;
        left: -320px; /* Hidden off-screen LEFT */
        width: 320px;
        height: 100%;
        background-color: #E6D7BE; /* Beige Background */
        padding-top: 80px;
        padding-left: 40px;
        padding-right: 20px;
        list-style: none;
        text-align: left;
        visibility: visible; /* Always visible to layout, just hidden by position */
        z-index: 2147483648; /* Higher than Hamburger */
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth Slide */
        box-shadow: 5px 0 30px rgba(0,0,0,0.2); /* Shadow on the menu itself */
    }

    /* Show Menu on Active */
    #perspective.modalview .outer-nav {
        left: 0; /* Slide In */
    }

    .outer-nav a {
        display: block;
        font-family: 'Cinzel', serif;
        font-size: 14px;
        color: #222 !important;
        text-decoration: none;
        margin-bottom: 25px;
        opacity: 0;
        transform: translateX(-50px) translateZ(-500px); 
        transition: transform 0.4s, opacity 0.4s, color 0.3s;
        position: relative;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .outer-nav a:hover {
        color: #aa8453; /* Gold accent */
        transform: translateX(10px) translateZ(0); /* Slight move on hover */
    }

    /* Staggered Animation for Menu Items */
    #perspective.modalview .outer-nav a {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }

    #perspective.modalview .outer-nav a:nth-child(1) { transition-delay: 0.05s; }
    #perspective.modalview .outer-nav a:nth-child(2) { transition-delay: 0.1s; }
    #perspective.modalview .outer-nav a:nth-child(3) { transition-delay: 0.15s; }
    #perspective.modalview .outer-nav a:nth-child(4) { transition-delay: 0.2s; }
    #perspective.modalview .outer-nav a:nth-child(5) { transition-delay: 0.25s; }
    #perspective.modalview .outer-nav a:nth-child(6) { transition-delay: 0.3s; }
    #perspective.modalview .outer-nav a:nth-child(7) { transition-delay: 0.35s; }
    #perspective.modalview .outer-nav a:nth-child(8) { transition-delay: 0.4s; }

/* Close Area Overlay on the tilted page */
#perspective.modalview .p-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1); /* Light overlay to match image fog/haze */
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#perspective.modalview .p-container::after {
    opacity: 1;
    pointer-events: auto; /* Allow clicking to close */
}

/* Submenu Styles */
.outer-nav .menu-item-has-children {
    position: relative;
    margin: 10px 0;
}

    .outer-nav .menu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: 'Cinzel', serif;
        font-size: 24px; /* Reduced to match links */
        font-weight: 400;
        color: #222;
        text-decoration: none;
        cursor: pointer;
        position: relative;
    }

    .outer-nav .menu-toggle::after {
        content: '\f107'; /* FontAwesome Angle Down */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 16px;
        color: #000;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .outer-nav .menu-item-has-children.active .menu-toggle::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Mobile override for icon size */
    @media (max-width: 991px) {
        .outer-nav .menu-toggle::after {
            font-size: 14px;
        }
    }

.outer-nav .sub-menu {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
}

.outer-nav .menu-item-has-children.active .sub-menu {
    display: block;
}

.outer-nav .sub-menu a {
    font-size: 24px;
    color: #444;
    margin: 5px 0;
    transform: none !important; /* Disable slide animation for submenu items */
    opacity: 1 !important;
}

.outer-nav .sub-menu a:hover {
    color: #000000;
}

/* MAYA MOBILE STYLE OVERRIDES */
@media (max-width: 991px) {
    .outer-nav.vertical.mobile-nav {
        background-color: #E6D7BE !important; /* MATCH DESKTOP BEIGE */
        width: 300px;
        padding: 30px;
        box-shadow: 5px 0 20px rgba(0,0,0,0.1);
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 2000;
    }
    
    #perspective.modalview .outer-nav.vertical {
        transform: translateX(0);
    }
    
    .outer-nav a {
        font-size: 14px;
        margin: 15px 0;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    .outer-nav .menu-toggle {
        font-size: 14px;
    }
    
    .outer-nav .menu-toggle::after {
        font-size: 16px;
    }
}

/* Extra Small Mobile Adjustment */
@media (max-width: 767px) {
    .outer-nav a {
        font-size: 13px; /* Reduced from 14px */
        margin: 12px 0;
    }
    .outer-nav .menu-toggle {
        font-size: 13px;
    }
    .outer-nav .menu-toggle::after {
        font-size: 14px;
    }
}

/* =========================================
   NEW HERO SLIDER STYLES (MATCHING MAYA)
   ========================================= */

/* Slider Image Wrapper (Ken Burns) */
.slider-img-wrap {
    width: 100%;
    height: 100vh !important; /* FORCE FULL HEIGHT */
    overflow: hidden;
    position: relative;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 7s linear !important; /* Smooth slow zoom */
}

/* Zoom Effect when Active */
.owl-item.active .slider-img {
    transform: scale(1.1) !important;
}

/* Caption Overlay */
.v-middle.caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* LEFT ALIGNED */
    z-index: 2;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 60%); /* Subtle Gradient Left to Right */
}

.v-middle.caption .container {
    width: 100%;
    max-width: 1320px; /* Standard bootstrap container */
    padding-left: 100px; /* Match Maya's indentation */
}

.v-middle.caption h1 {
    font-family: 'Cinzel', serif; /* ROYAL SERIF FONT */
    font-size: 72px; /* Large but balanced */
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    text-align: left; /* FORCE LEFT ALIGN */
}

.v-middle.caption p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    line-height: 1.8;
    max-width: 550px; /* Constrain width */
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.8s;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    text-align: left; /* FORCE LEFT ALIGN */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .v-middle.caption .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .v-middle.caption h1 {
        font-size: 42px;
    }
}

/* Animate Text on Active */
.owl-item.active .v-middle.caption h1,
.owl-item.active .v-middle.caption p {
    opacity: 1;
    transform: translateY(0);
}

/* Vertical Book Now Button */
.maya-vertical-book-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ffe100; /* Bright Yellow */
    color: #000;
    padding: 50px 14px; /* Slightly Taller */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    z-index: 100;
    text-decoration: none;
    box-shadow: none; /* Flat look */
    transition: all 0.3s ease;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.maya-vertical-book-btn:hover {
    background: #fff;
    color: #000;
    padding-right: 25px; /* Slide out effect */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .v-middle.caption h1 {
        font-size: 42px;
    }
    .v-middle.caption p {
        font-size: 14px;
    }
    .maya-vertical-book-btn {
        padding: 30px 10px;
        font-size: 12px;
    }
}
