/* HOVER EFFECTS - Safely scoped to avoid layout breakage */
.nt-hover-image {
    cursor: pointer;
    /* CSS scale removed to be handled by JS/GSAP for better compatibility with scroll zoom */
    transition: filter 0.4s ease;
    border-radius: 6px; /* User requested 6px radius */
}

/* Container shadow and radius - to avoid clipping by overflow:hidden */
.image-parallax-mask {
    transition: box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: box-shadow;
    border-radius: 6px; /* Match image radius */
    overflow: hidden;   /* Ensure clipping follows the radius */
}

/* Specific fix for images that are large/scroll-zoom */
.scroll-zoom-image, 
.parallax-image-medium,
#big-image-03 {
    border-radius: 6px !important;
}

/* MOBILE OVERRIDES (≤767px) */
@media screen and (max-width: 767px) {
    #main-tour-image,
    #fullscreen-img2,
    #big-image-03,
    .parallax-image-medium,
    .scroll-zoom-image {
        height: 86vh !important;
        min-height: 86vh !important; /* Force reset of the 1000px min-height */
        max-height: 86vh !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 0 !important; /* Remove radius for edge-to-edge feel */
    }

    /* Reset container radius for these images on mobile */
    .image-parallax-mask:has(#main-tour-image),
    .image-parallax-mask:has(#fullscreen-img2),
    .image-parallax-mask:has(#big-image-03) {
        border-radius: 0 !important;
    }

    /* Ensure containers don't force height */
    .mini-parallax-wrapper,
    .parallax-wrapper,
    .mini-image-container {
        height: auto !important;
        min-height: auto !important;
    }
}

.image-parallax-mask:has(.nt-hover-image:hover) {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.nt-hover-image:hover {
    filter: brightness(1.05);
}

.nt-hover-image:active {
    transform: scale(0.98);
}

/* LIGHTBOX VIEWER - Advanced Layout */
.nt-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Semi-transparent black */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999999 !important;
    display: flex;
    flex-direction: row; /* Desktop: side by side */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nt-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* Main Display Area */
.nt-lightbox-main {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* Minimized padding */
}

.nt-lightbox-img {
    max-width: 98%; /* Maximize horizontal space */
    max-height: 95vh; /* Maximize vertical space */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nt-lightbox.active .nt-lightbox-img {
    transform: scale(1);
}

/* Thumbnails Strip */
.nt-lightbox-thumbs {
    width: 120px;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.nt-lightbox-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nt-lightbox-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.nt-lightbox-thumb.active {
    opacity: 1;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* Navigation Buttons */
.nt-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem; /* Moved to right per user request */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nt-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.nt-lightbox-prev,
.nt-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    z-index: 100;
}

.nt-lightbox-prev { left: 1rem; }
.nt-lightbox-next { right: 1rem; }

/* GLASS PILLAR NAVIGATION (Indicator Fix) */
.index {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; 
    align-items: flex-end !important;
    position: relative !important;
    width: auto !important;
}

/* Ensure the wrapper divs for links are also transparent without killing the indicator */
.index > div:not(.div-block-140) {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.div-block-142 {
    background: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    position: fixed !important;
    right: 2.5rem !important;
    top: 45% !important; /* Slightly higher than center for better optical balance */
    transform: translateY(-50%) !important;
    padding-top: 0 !important; 
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
}

/* Vertical Track - Ultra-refined profile */
.div-block-140 {
    position: absolute !important;
    right: -12px !important;
    top: 0 !important; /* Set to 0 to match container start */
    bottom: 0 !important;
    width: 1px !important;
    background: rgba(4, 46, 77, 0.1) !important;
    display: block !important;
}

/* Animated Indicator Bar - Sleek & Focused */
.div-block-141 {
    position: absolute !important;
    background-color: #042e4d !important;
    width: 3px !important;
    height: 24px !important;
    border-radius: 4px !important;
    right: -1px !important;
    top: 0 !important; /* Base position for transform */
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    z-index: 2 !important;
}

/* Navigation Labels - Glass Pills (ALL STATES) */
.index p.body-medium {
    font-size: 12.5px !important;
    font-weight: 400 !important; /* Lighter weight as requested (-100 from 500) */
    letter-spacing: 0.02em !important;
    text-transform: none !important; /* Lowercase (normal text) */
    color: #475569 !important;
    margin: 0 !important;
    padding: 7px 16px !important; /* Slightly tighter padding for smaller font */
    border-radius: 50px !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    
    /* Base Glass Background - Improved contrast */
    background: rgba(255, 255, 255, 0.6) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 0.4px solid rgba(4, 46, 77, 0.15) !important; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important; /* Light shadow for depth */
}

.index p.body-medium:hover {
    color: #042e4d !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(4, 46, 77, 0.2) !important;
    transform: translateX(-4px) !important;
}

/* Active Section Label - Premium Focus */
.index p.body-medium:not(.f-grey) {
    color: #042e4d !important;
    font-weight: 600 !important; 
    background: #ffffff !important; /* Solid white for active on any background */
    border: 0.4px solid rgba(4, 46, 77, 0.25) !important; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateX(-8px) !important;
}

/* Responsive: Hide on smaller screens */
@media screen and (max-width: 991px) {
    .div-block-142 {
        display: none !important;
    }
}
/* Mobile Lightbox Adjustments */
@media screen and (max-width: 767px) {
    .nt-lightbox {
        flex-direction: column; /* Stack image on top, thumbs below */
    }

    .nt-lightbox-main {
        padding: 0.5rem;
        padding-top: 3.5rem; /* Space for close button and header spacing */
        flex: 1; /* Take all available space remaining */
        height: auto;
    }

    .nt-lightbox-img {
        width: 100%;
        height: 65vh !important; /* Force a tall vertical area */
        max-height: 65vh !important;
        object-fit: cover !important; /* Crop to fill the vertical space */
        object-position: center !important;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nt-lightbox-thumbs {
        width: 100%;
        height: 100px;
        flex-direction: row; /* Horizontal scroll */
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.75rem;
    }

    .nt-lightbox-thumb {
        height: 100%;
        width: auto;
        aspect-ratio: 1;
    }

    .nt-lightbox-close {
        top: 1rem;
        left: 1rem;
    }

    .nt-lightbox-prev,
    .nt-lightbox-next {
        width: 40px;
        height: 40px;
    }
}
/* Revelation Class for Subtitle/Chips/Title */
.h-1.nt-ready,
.tour-subtitle.reveal, 
.chip-tour-info-wrapper.reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
