/* ... (Existing styles remain, just adding new ones) ... */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Video Styling */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: opacity 0.5s ease; /* Smooth transition between videos if needed */
    opacity: 1;
}

video.loading {
    opacity: 0;
}

#startBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 30px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Quick Menu Button */
.quick-menu-btn {
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom));
    right: max(10px, env(safe-area-inset-right));
    z-index: 15;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.6);
    border: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 2px;
    text-align: center;
    line-height: 1;
}

.quick-menu-btn:active {
    transform: scale(0.85);
    background: rgba(255, 215, 0, 0.75);
    box-shadow: 0 1px 6px rgba(255, 215, 0, 0.25);
}

.quick-menu-btn.hidden {
    display: none !important;
}

.quick-menu-btn::after {
    content: 'Держи для меню';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    font-size: 9px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: normal;
    color: rgba(255, 255, 255, 0.7);
}

.quick-menu-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.quick-menu-btn.hidden {
    display: none !important;
}

/* Interface Layer */
#servicesOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    padding-top: max(20px, env(safe-area-inset-top)); 
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow-y: hidden; 
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    z-index: 20;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: white;
    color: black;
    border-color: white;
}

/* --- NAVIGATION TABS --- */
.nav-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    background: white;
    color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- CONTENT AREAS --- */
.tab-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
}

.hidden-tab {
    display: none !important;
}

.tab-content::after {
    content: '';
    flex-shrink: 0;
    height: 40px;
    display: block;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    flex-shrink: 0;
}

.room-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    min-height: 110px; 
    cursor: pointer; /* Add cursor pointer */
}

.room-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.25);
}

.room-item.full-width {
    grid-column: 1 / -1;
}

.price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.icon-box {
    margin-bottom: 8px;
    width: 50px;
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-box svg {
    fill: white;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

.room-name {
    font-size: 0.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-weight: 500;
}

.contacts-section {
    width: 90%;
    max-width: 600px;
    margin: 30px auto 0 auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contacts-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eee;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1rem;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.contact-link:last-child {
    margin-bottom: 0;
}

.contact-link:active {
    background: rgba(255, 255, 255, 0.1);
}

.contact-link svg {
    margin-right: 10px;
    fill: #ffd700;
}

/* Submenu specific styles */
.submenu-header {
    width: 90%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.submenu-header h3 {
    color: white;
    text-transform: uppercase;
    font-size: 1rem;
    margin: 0;
}

.back-btn-small {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.back-btn-small svg {
    fill: white;
}

/* --- ROOM INTERFACE (DEEP DIVE) --- */
#roomInterface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Above everything */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: rgba(0,0,0,0.3); /* Slight tint */
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Click through when hidden */
}

#roomInterface.active {
    opacity: 1;
    pointer-events: auto;
}

/* Back Button */
.back-btn {
    align-self: flex-start;
    margin-top: max(20px, env(safe-area-inset-top));
    margin-left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.back-btn svg {
    fill: white;
}

/* Room Header inside interface */
.room-header {
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    color: white;
    flex-grow: 1; /* Push gallery down */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px; /* Space from top */
}

.room-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.room-header p {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: bold;
}

/* Gallery Container */
.gallery-container {
    width: 100%;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding-top: 40px;
}

.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 20px 20px 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.gallery-item {
    flex: 0 0 80%; /* Each item takes 80% of width */
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative; /* For placeholder styling */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hint {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* ... existing styles ... */

/* --- RECOMMENDATIONS --- */
.recommendations-section {
    width: 100%;
    padding: 0 20px 20px 20px;
}

.recommendations-section h3 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rooms-grid.mini-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep 2 cols */
    gap: 10px;
}

.rooms-grid.mini-grid .room-item {
    min-height: 90px; /* Smaller height */
    padding: 10px;
    background: rgba(0, 0, 0, 0.5); /* Darker background to distinguish from gallery */
    border-color: rgba(255,255,255,0.1);
}

.rooms-grid.mini-grid .price {
    font-size: 0.8rem;
}

.rooms-grid.mini-grid .icon-box {
    width: 30px;
    height: 30px;
    transform: scale(0.8);
}

/* --- LIGHTBOX --- */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Top most */
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

#lightboxImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    user-select: none;
}

#lightbox.active #lightboxImg {
    transform: scale(1);
}

#lightboxClose {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments for Room Interface */
#roomInterface {
    overflow-y: auto; /* Allow vertical scroll if content (recs) is too tall */
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

#startBtn.hidden {
    display: none !important;
    pointer-events: none !important;
}

.fade-in {
    opacity: 1 !important;
}

/* --- PRELOADER --- */
#videoPreloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

#videoPreloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.preloader-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #ffd700;
    border-right-color: #ffd700;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.preloader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Fullscreen Gallery Styling */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.fullscreen-gallery.active {
    opacity: 1;
    pointer-events: all;
}

.fullscreen-gallery.hidden {
    display: none !important;
}

.gallery-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.gallery-image-container.zoomed {
    cursor: grab;
}

.gallery-image-container.zoomed:active {
    cursor: grabbing;
}

#galleryMainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.gallery-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    line-height: 1;
    padding: 0;
}

.gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

.gallery-arrow-left {
    left: 15px;
}

.gallery-arrow-right {
    right: 15px;
}

.gallery-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.gallery-zoom-level {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

@media (max-width: 600px) {
    .gallery-close-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
    
    .gallery-arrow {
        width: 45px;
        height: 45px;
        font-size: 32px;
    }
    
    .gallery-arrow-left {
        left: 10px;
    }
    
    .gallery-arrow-right {
        right: 10px;
    }
    
    .gallery-counter {
        font-size: 12px;
        padding: 6px 10px;
        top: 15px;
        left: 15px;
    }
    
    .gallery-controls {
        bottom: 15px;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .gallery-zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .gallery-zoom-level {
        font-size: 11px;
    }

    .send-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .chip {
        font-size: 10px;
        padding: 4px 8px;
    }
}

