:root {
    --primary-color: #c1ad78;
    /* iOS Blue */
    --text-main: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.15);
    /* Ultra-thin glass */
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --ios-easing: cubic-bezier(0.25, 1, 0.5, 1);
    /* Spring-like release */
    --main-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Standardized Liquid Glass Variables */
    --glass-panel-bg: rgba(255, 255, 255, 0.7);
    --glass-panel-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-panel-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --glass-panel-blur: blur(40px) saturate(180%);
}

/* GLOBAL FONT SYNC */
body,
html,
button,
input,
textarea {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    color: white;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    /* Kept from original body */
    user-select: none;
    /* Kept from original body */
}

/* === LIQUID BACKGROUND === */
.liquid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    /* Crucial for VR interaction */
    background: radial-gradient(circle at center, #0f2027, #203a43, #2d3c42);
    /* Dark Ocean */
    /* Alternative Dark: #1a1a2e, #16213e, #0f3460 */
    background-size: 200% 200%;
    animation: gradient-move 20s ease infinite;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.blob {
    position: absolute;
    filter: blur(100px);
    /* Soften blobs further */
    opacity: 0.5;
    animation: blob-float 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: rgba(19, 4, 135, 0.4);
    animation-delay: 0s;
}

.blob-2 {
    bottom: 10%;
    right: 10%;
    width: 35vw;
    height: 35vw;
    background: rgba(2, 144, 184, 0.4);
    animation-delay: -2s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: rgba(185, 54, 195, 0.4);
    animation-delay: -4s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(60px);
    opacity: 0.6;
}

@keyframes blob-bounce {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* === HOME SCREEN === */
#home-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#home-screen::-webkit-scrollbar {
    width: 2px;
}

#home-screen::-webkit-scrollbar-track {
    background: transparent;
}

#home-screen::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.home-content {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px 20px;
    flex: 1;
    /* allow it to grow and push footer down */
}

.header-title {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    text-align: center;
    margin-bottom: -5px;
    background: linear-gradient(to right, #fff, #c3cfe2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

.header-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    margin-bottom: 60px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tour-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent);
}

.tour-card:hover .card-img {
    transform: scale(1.15);
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-meta {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ad9a6a;
    box-shadow: 0 0 10px #ad9a6a;
}

/* === MENU & UI OVERLAYS === */
#vr-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#pano {
    width: 100%;
    height: 100%;
    background: #000;
}

.ui-overlay {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
}

#sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 390;
    display: none;
    opacity: 0;
    transition: 0.3s;
    pointer-events: auto;
}

#sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.side-menu {
    pointer-events: auto;
    position: absolute;
    left: 30px !important;
    top: 30px;
    /* Floating below top */
    bottom: 100px;
    /* Floating above bottom */
    width: 440px;

    background: var(--glass-panel-bg);
    backdrop-filter: var(--glass-panel-blur);
    -webkit-backdrop-filter: var(--glass-panel-blur);
    border: var(--glass-panel-border);
    box-shadow: var(--glass-panel-shadow);

    border-radius: 32px;
    transform: translateX(calc(-100% - 40px)) scale(0.9);
    transition: transform 0.6s var(--ios-easing), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Removed padding to handle internally for uniform layout */
    z-index: 400;
    opacity: 0;
}

.side-menu.active {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.side-menu.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sidebar-header h3 {
    margin: 0;
    color: #1d1d1f;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.search-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 10px 16px;
    align-items: center;
    transition: 0.2s;
    border: 1px solid transparent;
}

.search-input-group:focus-within {
    background: #484848;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}



.visual-card-item {
    position: relative;
    width: 96%;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 14px auto;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    background: #f2f2f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: cardSlideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.visual-card-item:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.8);
}

.visual-card-title {
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2px;
}

.visual-card-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.visual-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 15px 12px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.visual-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.visual-card-item:hover .visual-card-img {
    transform: scale(1.1);
}

/* Mobile Menu Updates */
@media (max-width: 768px) {

    /* SIDEBAR - More Compact -> Changed to Full Panel to cover top buttons */
    .side-menu {
        top: 30px;
        /* Float from top */
        bottom: 90px;
        /* Above bottom menu */
        left: 0;
        right: 0 !important;
        transform: translateY(20px);
        width: 100%;
        max-width: 100%;
        height: calc(100% - 120px);
        /* Limited height */
        border-radius: 24px 24px 0 0;
        background: rgba(15, 18, 24, 0.95);
        /* Ensure noticeable dark bg */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 100000 !important;
    }

    .side-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* FORCE TEXT WHITE IN MOBILE DARK SIDEBAR */
    .side-menu,
    .side-menu h3,
    .side-menu span,
    .side-menu label,
    .side-menu div,
    .side-menu p {
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .side-menu input {
        color: white !important;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Landscape Mode */
    @media (max-height: 500px) and (orientation: landscape) {
        .side-menu {
            top: 10px;
            bottom: auto;
            right: 10px;
            left: auto;
            width: 300px;
            height: calc(100% - 20px);
            /* Full height in landscape */
            transform: translateX(110%);
        }

        .side-menu.active {
            transform: translateX(0);
        }
    }
}

/* === CONTROLS (VERTICAL RIGHT) === */
.vr-controls-vertical {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--glass-panel-bg);
    backdrop-filter: var(--glass-panel-blur);
    -webkit-backdrop-filter: var(--glass-panel-blur);
    border: var(--glass-panel-border);
    box-shadow: var(--glass-panel-shadow);
    padding: 15px 12px;
    border-radius: 50px;
    z-index: 310;
}

@media (max-width: 768px) {
    .vr-controls-vertical {
        right: 10px;
        padding: 10px 8px;
        gap: 10px;
    }

    .vr-controls-vertical button {
        width: 36px;
        height: 36px;
        font-size: 18px
    }
}

.vr-controls-vertical button {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.vr-controls-vertical button:hover {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.15);
}

.vr-controls-vertical .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2px 5px;
}

/* === BOTTOM MENU (iOS Dock Style) === */
.bottom-menu {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: unset;
    /* Adaptive */
    height: 70px;
    /* Reduced from 80px */

    /* Dark Glass Theme */
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 320;
    border-radius: 40px;
    padding: 0 15px;
    pointer-events: auto;
}

/* Mobile Bottom Menu Overrides */
/* Mobile Bottom Menu Overrides */
@media (max-width: 768px) {
    .bottom-menu {
        width: 92%;
        max-width: 400px;
        height: 64px;
        bottom: 15px;
        padding: 0 10px;
        justify-content: space-around;
        background: rgba(20, 20, 20, 0.6);
        /* Darker on mobile for readability */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .menu-item {
        width: 50px;
        /* Compact */
        height: 50px;
        margin: 0;
    }

    .menu-item i {
        font-size: 20px;
        color: white;
        /* Ensure white icon */
    }

    .menu-item span {
        display: none;
        /* Hide labels on mobile to save space */
    }

    /* Landscape Specific Optimization */
    @media (max-height: 500px) and (orientation: landscape) {
        .bottom-menu {
            height: 48px;
            /* Super compact */
            bottom: 10px;
            width: auto;
            min-width: 300px;
            max-width: 60%;
            background: rgba(0, 0, 0, 0.4);
            /* More transparent in landscape to see view */
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .menu-item {
            width: 44px;
            height: 44px;
        }

        /* Adjust Sidebar Text Color Globally for Mobile Dark Theme */
        .side-menu,
        .side-menu h3,
        .side-menu span,
        .side-menu div {
            color: rgba(255, 255, 255, 0.9) !important;
        }

        /* Ensure inputs are visible */
        .side-menu input {
            color: white !important;
            background: rgba(255, 255, 255, 0.1);
        }
    }
}

.menu-item {
    width: 80px;
    height: 80px;
    flex: initial;
    /* Don't stretch */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    /* White Text for Dark BG */
    transition: all 0.3s var(--ios-easing);
    margin: 0 4px;
    border-radius: 16px;
    /* Squircle */
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-5px);
}

.menu-item i {
    font-size: 26px;
    margin-bottom: 2px;
    transition: transform 0.3s;
    filter: none;
    /* Clean icon */
}

.menu-item span {
    font-size: 15px;
    font-weight: 500;
}



/* Dropups */
/* Dropups - Click Based Visibility */
/* Dropups - Click Based Visibility */
/* Dropups - Click Based Visibility */
.menu-item.show-dropdown .dropdown-content {
    display: block;
    animation: scaleIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, 15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Remove hover-only visibility to ensure persistence */
.menu-item.has-dropdown:hover .dropdown-content {
    display: none;
    /* Let JS handle it via .active class */
}

/* If already active, keep it visible */
.menu-item.has-dropdown.active:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    /* Slightly wider */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-bottom: 15px;
    /* Adjust gap to be seamless with arrow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* Arrow for seamless look */
.dropdown-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: rgba(10, 10, 12, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ffffff !important;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    transition: 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item img {
    /* 16:9 Aspect Ratio */
    width: 62px;
    height: 35px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color) !important;
    padding-left: 25px;
}

.dropdown-item:hover span,
.dropdown-item.active span {
    color: var(--primary-color) !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Seamless connection arrow (Optional, but helps visual) */
.dropdown-content::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.03);
    z-index: -1;
    /* Behind content */
}

/* Modals Extra */
.brochure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.brochure-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.brochure-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.brochure-icon {
    font-size: 40px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.brochure-item .title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bottom-menu {
        height: 60px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .menu-item {
        min-width: 65px;
        /* Smaller items */
        height: 60px;
        margin: 0 2px;
    }

    .menu-item i {
        font-size: 22px
    }

    .menu-item span {
        font-size: 15px;
        display: none;
        /* Hide text on very small screens if crowded, or keep? Let's keep if space allows, usually hide for cleaner look */
    }

    .bottom-menu {
        padding: 0 10px;
        min-width: unset;
        /* Allow shrinking */
        width: 90%;
        /* Fit screen */
    }

    .dropdown-content {
        width: 280px;
        /* Wider on mobile for touch targets */
        bottom: 80px;
        /* Adjust position */
    }

    .vr-controls-vertical {
        right: 10px;
        padding: 10px 6px;
    }

    .vr-controls-vertical button {
        width: 36px;
        height: 36px;
    }

    .action-bar {
        display: none;
    }
}

/* Active Menu State */
/* Active Menu State */
.menu-item.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    /* Solid white, no glow */
    border-radius: 24px;
    transform: translateY(-10px);
    /* Lift up effect */
}

.menu-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    /* Subtle shadow for icon only */
}

.menu-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 5px 15px rgba(0, 122, 255, 0.4);
}

/* Common Buttons */
.menu-btn {
    pointer-events: auto;
    position: absolute;
    top: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 0px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 350;
    color: white;
}

.menu-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    color: var(--primary-color);
}

.close-sidebar-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sidebar-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Contact Button Bottom Right */
.action-bar {
    pointer-events: auto;
    position: absolute;
    bottom: 90px;
    /* Above bottom menu */
    right: 20px;
    z-index: 340;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* === PRODUCT DETAIL MODAL (LIQUID GLASS REDESIGN) === */
.product-modal-content {
    width: 95% !important;
    max-width: 1350px !important;
    /* Widen layout */
    height: 90vh !important;
    max-height: 850px;
    padding: 0 !important;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    /* Liquid Glass Theme - Lighter */
    background: rgba(229, 233, 236, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    animation: modalPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* Floating Close Button */
.close-button-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: rgb(36, 36, 36);
    /* Contrast against overlay */
    cursor: pointer;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: 0.3s;
}

.close-button-floating:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-detail-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Column */
/* Left Column */
/* Left Column */
.product-image-col {
    flex: 0.95;
    /* V6: Widened 10% */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    background: #f5f5f7;
    justify-content: center;
}

/* Removed hover zoom */
.product-image-col img {
    flex: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}

.product-image-col:hover img {
    transform: none;
}

.screenshot-btn-floating {
    position: absolute;
    top: 20px;
    right: 80px;
    /* Left of Close Button */
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
}

.screenshot-btn-floating:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.btn-download-image {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.2s;
    z-index: 5;
    text-decoration: none;
}

.btn-download-image:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.product-status-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #2ecc71;
    color: white;
    padding: 12px 30px;
    /* V4: Larger padding */
    border-radius: 12px;
    font-size: 18px;
    /* V4: Larger font */
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    z-index: 2;
}


/* Quick Stats Bar */
.product-quick-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    /* Reduced padding */
    border-radius: 0 0 20px 20px;
    z-index: 2;
    border-top: none;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
}

/* Horizontal alignment for Icon and Label */
/* We assume the HTML is: i, span.label, span.val */
/* We can fake the row layout depending on structure, or update HTML */
.stat-box i {
    font-size: 18px;
    color: #4a90e2;
    margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
}

.stat-box .label {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
}

/* If they are siblings, we might need a container or use pseudo-elements if text is pushed via JS */
.stat-box .val {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    text-transform: uppercase;
    margin-top: 2px;
}



/* Right Column */
/* Right Column - Grid Layout */
/* Right Column - Grid Layout */
/* Right Column - Grid Layout */
.product-info-col {
    flex: 1.05;
    /* V6: Balanced */
    padding: 30px 40px;
    /* Use Grid for layout to avoid scrolling */
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    overflow-y: hidden;
    /* Try to fit everything */
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex: 1;
    /* Take up remaining space */
}

/* Make headers stick or compact */
.header-row {
    padding-bottom: 10px;
    margin-bottom: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

/* Info Groups - Card Style */
.info-group {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
    /* Align top */
}

.info-group h3 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    /* Align Icon and Text Center */
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    min-height: 24px;
    /* Ensure uniform height for alignment */
}

.info-group h3 i {
    color: #4a90e2;
    /* Blue Accent */
    font-size: 18px
}

.project-name {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-row h2 {
    font-size: 48px;
    margin: 0;
    color: #1d1d1f;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Contact card at bottom */
.contact-card {
    margin-top: 5px;
    padding: 15px;
}

/* Header & Price Redesign V3 */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Finer border */
    padding-bottom: 15px;
    /* Balanced padding */
    margin-bottom: 20px;
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Product Code */
/* Product Code */
/* Product Code */
.header-row h2 {
    font-size: 42px;
    line-height: 1.1;
    margin: 0;
    color: #e74c3c;
    font-weight: 900;
    /* V7: Extra Bold */
    letter-spacing: -1px;
    /* font-family inherit from body */
}

/* Project Name */
.project-name {
    font-size: 15px;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-name i {
    font-size: 16px;
    color: #666;
}

/* Price Badge Card */
.price-badge {
    background: #f5f5f7;
    padding: 10px 20px;
    /* Reduced padding */
    border-radius: 16px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    min-width: 0;
    width: fit-content;
    /* V3: Fit content */
    max-width: fit-content;
}

/* Label */
.price-label {
    font-size: 15px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
}

/* Value */
/* Value */
.price-value {
    font-size: 28px;
    font-weight: 800;
    color: #2ecc71;
    /* V5: Green */
    line-height: 1;
    letter-spacing: -0.5px;
    display: block;
    white-space: nowrap;
}

/* Info Groups */
.info-group {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.info-group:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.info-group h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-group h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row span:first-child {
    color: #666;
    font-weight: 500;
}

.info-row .val {
    font-weight: 700;
    color: #111;
    text-align: right;
    font-size: 16px
}

/* 2. Unified Contact Section (Liquid Glass V4) */
/* 2. Unified Contact Section (Liquid Glass V7) */
/* 2. Unified Contact Section (Liquid Glass V8 - New Class) */
.contact-glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    /* Subtle Blue-ish Shadow */
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: 20px;
}

.contact-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info .name {
    font-weight: 800;
    color: #1d1d1f;
    font-size: 18px
}

.contact-info .role {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

.contact-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    /* Square-ish */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action.phone {
    background: #2ecc71;
    /* Green */
}

.btn-action.chat {
    background: #3498db;
    /* Blue */
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-action {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-action.phone {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-action.chat {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-action:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
/* Footer */
/* Removed global footer logic, now specific to contact section */

/* 1. Stats Bar Overlay (Liquid Glass) */
.glass-overlay-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    /* Auto width */
    min-width: 300px;
    max-width: 90%;

    display: flex;
    /* Force horizontal */
    flex-direction: row;
    justify-content: center;
    /* Center items */
    gap: 40px;
    /* Spacing between items */
    align-items: center;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 40px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
    opacity: 1;
    visibility: visible;
}

.glass-overlay-bar.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hover Logic: Hide on Image Hover */
.product-image-col:hover .glass-overlay-bar {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    /* Slide down slightly */
}

/* Toggle Button */
.btn-toggle-stats {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-toggle-stats:hover {
    background: rgba(0, 0, 0, 0.6);
}



.contact-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-top-row img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-top-row .contact-info {
    flex: 1;
}

.contact-top-row .name {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
}

.contact-top-row .role {
    font-size: 15px;
    color: #86868b;
}

.contact-direct-btns {
    display: flex;
    gap: 10px;
}

.contact-actions-row {
    display: flex;
    gap: 10px;
}

.contact-actions-row button {
    flex: 1;
    /* Distribute width */
    height: 44px;
    /* Consistent height */
    justify-content: center;
}

.contact-actions-row .btn-booking {
    flex: 1.5;
    /* Larger */
}

.footer-stats-left {
    display: flex;
    gap: 30px;
}

.footer-stats-left .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.footer-stats-left .stat-box i {
    font-size: 20px;
    color: #4a90e2;
    margin: 0;
}

.footer-stats-left .stat-box .label {
    font-size: 15px;
    color: #888;
    text-transform: uppercase;
}

.footer-stats-left .stat-box .val {
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
}

.footer-btns-right {
    display: flex;
    gap: 10px;
}

.btn-footer-secondary {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    width: auto;
    /* Allow auto width for compact */
    flex: 0 0 auto;
}

.btn-footer-secondary:hover {
    background: #e5e5ea;
    box-shadow: none;
    transform: none;
}

.btn-booking {
    padding: 10px 30px;
    border-radius: 12px;
    border: none;
    background: #f39c12;
    /* Golden/Orange */
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: 0.2s;
    text-transform: uppercase;
    width: auto;
    flex: 0 0 auto;
}

.btn-booking:hover {
    background: #ffffff;
    transform: translateY(-2px);
}


/* Responsive */
.mobile-title {
    display: none;
}

@media (max-width: 900px) {
    .product-detail-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .product-info-col {
        overflow: visible;
        padding: 25px 20px;
    }

    .product-image-col {
        min-height: 350px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .product-footer-actions {
        padding: 15px 20px;
    }

    .header-row h2 {
        font-size: 28px
    }

    .price-value {
        font-size: 28px
    }
}


.icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 26px;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.btn-zalo {
    color: #d0a064;
    position: relative;
}

.btn-zalo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #d0a064;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.btn-zalo:hover {
    background: #d0a064;
    color: #00000066;
    border-color: #d0a064;
}

/* Search Area & Modals */
.search-content-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-top: 20px;
    mask-image: linear-gradient(to bottom, transparent, black 10px, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10px, black 95%, transparent);
    padding-top: 10px;
    padding-bottom: 10px;
}

.search-content-area::-webkit-scrollbar {
    width: 4px;
}

.search-content-area::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.search-section-title {
    position: relative;
    z-index: 20;
    /* Ensure visibility above overlays */
    font-size: 15px;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    margin: 10px 0 15px 0;
    letter-spacing: 1px;
    padding-left: 5px;
}

.search-icon-btn {
    background: transparent;
    border: none;
    color: #86868b;
    font-size: 18px;
    cursor: pointer;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    z-index: 20000;
    display: flex;
    /* Changed from none */
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    justify-content: center;
    align-items: center;
}

.modal.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0s;
}

.modal-content {
    background: var(--glass-panel-bg);
    backdrop-filter: var(--glass-panel-blur);
    -webkit-backdrop-filter: var(--glass-panel-blur);
    border: var(--glass-panel-border);

    width: 90%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 40px;
    /* Larger radius */
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    position: relative;
    color: #1d1d1f;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 32px;
    cursor: pointer;
    color: #86868b;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #fff;
    background: var(--primary-color);
    transform: rotate(90deg);
}

#gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #fff;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 30000;
    display: none;
    opacity: 0;
    transition: 0.3s;
    touch-action: none;
}

.lightbox-overlay.active {
    display: block;
    opacity: 1;
}

.lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    cursor: pointer;
    z-index: 30002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 30005;
    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-toolbar {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(30px);
    padding: 15px 40px;
    border-radius: 100px;
    display: flex;
    gap: 30px;
    z-index: 30005;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-toolbar button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-toolbar button:hover {
    color: white;
    transform: scale(1.2);
}

/* Vertical Alignment Fix for Zalo Button */
.action-bar {
    position: absolute;
    bottom: 120px;
    right: 32px;
    z-index: 310;
}

.action-bar .icon-btn {
    width: 80px;
    height: 80px;
    bottom: -100px;
    right: -15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.288);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 40px;
    color: #d0a064;
}

/* === MOBILE OPTIMIZATION === */

/* SIDEBAR FIXES (Portrait) */
@media (max-width: 768px) {
    .side-menu {
        width: 85%;
        /* Slightly narrower */
        max-width: 320px;
        left: 50%;
        transform: translate(-50%, 120%);
        /* Center horiz, hide vert */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .side-menu.active {
        transform: translate(-50%, 0);
    }

    /* Fix Clipping on Active Item */
    .menu-item {
        overflow: visible;
        /* Allow glow/shadow to bleed */
    }
}

/* Portrait & General Mobile */
@media (max-width: 768px) {

    /* Home Screen */
    .header-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .header-subtitle {
        font-size: 1rem
    }

    /* Bottom Menu - CLEANER LAYOUT */
    .bottom-menu {
        min-width: unset;
        width: 95%;
        /* Wider */
        max-width: 500px;
        bottom: 20px;
        padding: 0 10px;
        height: 64px;
        /* Optimized height */
        overflow-x: auto;
        justify-content: center;
        /* Try to center */
        gap: 15px;
        /* Better spacing */
        background: rgba(255, 255, 255, 0.9);
        /* More opaque */
        backdrop-filter: blur(20px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .bottom-menu::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        width: auto;
        /* Auto width based on content */
        min-width: 50px;
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 12px;
    }

    .menu-item i {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .menu-item span {
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
    }

    .menu-item .tag-hot {
        top: -10px;
        right: 0;
        left: 0;
        margin: auto;
        width: max-content;
    }

    /* Vertical Controls (Right) - COMPACT */
    .vr-controls-vertical {
        right: 12px;
        padding: 8px 6px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.85);
        width: 44px;
        /* Fixed container width */
        align-items: center;
    }

    .vr-controls-vertical button {
        width: 32px;
        height: 32px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Action Bar (Zalo) */
    .action-bar {
        right: 18px;
        bottom: 100px;
        /* Above bottom menu */
    }

    .action-bar .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 18px
    }

    /* === MODAL OPTIMIZATION === */
    .modal-content {
        width: 95%;
        /* Full width */
        max-width: unset;
        /* Remove desktop constraints */
        margin: 10px;
        height: auto;
        max-height: 85vh;
        /* Safety for navbar */
        border-radius: 20px;
        padding: 20px;
    }

    .close-button-floating,
    .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        /* Larger touch target */
        height: 36px;
        background: rgba(0, 0, 0, 0.1);
        /* Visible background */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* === GRID OPTIMIZATION (2 Columns) === */
    .tour-grid,
    .brochure-grid,
    #gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        /* Allow 2 cols on >300px screens */
        gap: 15px;
    }

    .tour-card {
        border-radius: 16px;
        /* Slightly smaller radius */
    }

    .card-img {
        height: 140px;
        /* Reduced height */
    }

    .card-body {
        padding: 15px;
    }

    .card-title {
        font-size: 1.1rem
    }

    /* === LIGHTBOX TOUCH === */
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 0;
        background: rgba(0, 0, 0, 0.4);
        margin: 0 10px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }

    .lightbox-toolbar {
        padding: 8px 20px;
        bottom: 20px;
        gap: 15px;
    }

    .lightbox-toolbar button {
        padding: 8px;
        font-size: 18px;
    }
}

/* Landscape Mode (Mobile) - ULTRA COMPACT */
@media (max-height: 500px) and (orientation: landscape) {

    /* Home Screen - Compact Side-by-Side */
    #home-screen {
        padding: 10px 30px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        justify-content: flex-start;
    }

    .home-content {
        margin: 0;
        text-align: left;
        align-items: flex-start;
        width: 30%;
        /* Less width for title */
        min-width: 200px;
        flex-shrink: 0;
    }

    .header-title {
        font-size: 1.5rem !important;
        margin-bottom: 5px;
    }

    .header-subtitle {
        font-size: 1rem !important;
        margin-bottom: 10px;
    }

    .tour-grid {
        width: 70%;
        flex: 1;
        height: 80vh;
        overflow-y: auto;
        padding-right: 15px;
        display: grid;
        /* Fit wider cards so images aren't squished vertically */
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        align-content: start;
    }

    /* Product Modal - ULTRA COMPACT SPLIT VIEW */
    .modal-content {
        max-height: 95vh;
        padding: 10px;
    }

    .product-detail-wrapper {
        display: flex;
        flex-direction: row;
        height: 100%;
        gap: 15px;
        overflow: hidden;
    }

    .product-image-col {
        width: 35%;
        height: 100%;
        flex-shrink: 0;
        display: flex;
        /* Center the contained image */
        align-items: center;
        /* Center vertically */
        justify-content: center;
        /* Center horizontally */
        background: rgba(0, 0, 0, 0.03);
        /* Subtle bg for empty space */
        border-radius: 8px;
    }

    .product-image-col img {
        height: 100%;
        width: 100%;
        object-fit: contain;
        /* FIT VERTICALLY - No Cropping */
        border-radius: 8px;
    }

    .product-info-col {
        width: 65%;
        height: 100%;
        overflow-y: auto;
        padding-right: 5px;
    }

    /* Force Small Fonts in Landscape Modal */
    .product-info-col h2,
    #pd-title-mobile {
        font-size: 1rem !important;
        /* Even smaller */
        margin-bottom: 5px;
        margin-top: 0;
        line-height: 1.2;
    }

    .product-info-col .price,
    .product-info-col .area {
        font-size: 1rem !important;
        margin-right: 10px;
    }

    .product-info-col p,
    .product-info-col .li {
        font-size: 1rem !important;
        /* Smaller text */
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .product-info-col .btn-contact {
        padding: 4px 10px;
        font-size: 1rem;
        margin-top: 5px;
    }

    .btn-download-image {
        display: none;
    }

    /* Bottom Menu - Mini Dock */
    .bottom-menu {
        height: 40px;
        bottom: 5px;
        width: auto;
        padding: 0 15px;
        gap: 15px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
    }

    .menu-item {
        width: 36px;
        min-width: 36px;
    }

    .menu-item i {
        font-size: 18px;
        margin: 0;
    }

    .menu-item span {
        display: none;
    }

    /* Fix Active State in Landscape */
    .menu-item.active {
        background: transparent !important;
        /* Remove distorted pill */
        box-shadow: none !important;
        transform: scale(1.1);
        color: var(--primary-color);
    }

    .menu-item.active i {
        color: var(--primary-color);
        /* Highlight icon only */
        text-shadow: 0 0 10px rgba(0, 104, 255, 0.4);
    }

    /* Vertical Controls */
    .vr-controls-vertical {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px 4px;
        gap: 5px;
        width: 32px;
    }

    .vr-controls-vertical button {
        width: 24px;
        height: 24px;
        font-size: 15px
    }

    .menu-btn {
        top: 10px;
        width: 30px;
        height: 30px;
        font-size: 15px
    }

    .action-bar {
        right: 18px;
        bottom: 55px;
    }

    /* === LIGHTBOX TOUCH LANDSCAPE === */
    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
        padding: 0;
        background: rgba(0, 0, 0, 0.4);
        margin: 0 10px;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
        top: 10px;
        right: 15px;
    }

    .lightbox-toolbar {
        padding: 6px 15px;
        bottom: 10px;
        gap: 15px;
    }

    .lightbox-toolbar button {
        padding: 6px;
        font-size: 16px;
    }
}

/* Hide Control Panel on Mobile Devices (Portrait & Landscape) */
@media (max-width: 1024px),
(max-height: 500px) and (orientation: landscape) {

    #vrControls,
    .vr-controls-vertical {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
}