/* 
 * 🏙️ LUXURY PROPERTY GALLERY ENGINE (SaaS Edition)
 * Optimized for Mobile Native Momentum & GPU Acceleration.
 */

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 400px; 
    overflow: hidden;
    background: #000;
}

.snap-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    gap: 2px;
}

.snap-slider::-webkit-scrollbar { display: none; }

.snap-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.snap-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 🏙️ CINEMATIC 50/50 GRID SYSTEM (Desktop) */
.airbnb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 500px; 
    gap: 10px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
    background: #fff;
}

.grid-main { height: 100%; overflow: hidden; }
.grid-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; }
.grid-item { position: relative; overflow: hidden; cursor: pointer; background: #f1f5f9; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.grid-item:hover img { transform: scale(1.08); filter: brightness(0.9); }

/* 🖼️ LUXURY ALBUM LIGHTBOX STYLES */
.ms-modal-premium {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    flex-direction: column;
    background: #000;
    animation: album-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes album-fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.modal-info { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 1px; }
.modal-close-btn { 
    width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1);
    border: none; color: #fff; cursor: pointer; transition: all 0.3s; font-size: 20px;
}
.modal-close-btn:hover { background: #fff; color: #000; transform: rotate(90deg); }

.modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-img-container {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-main-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease-out;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    font-size: 24px;
}
.nav-btn:hover { background: #fff; color: #000; }
.nav-btn.prev { left: 40px; }
.nav-btn.next { right: 40px; }

@media (max-width: 768px) {
    .nav-btn { display: none; }
    .modal-header { padding: 0 20px; }
}

.modal-footer {
    height: 120px;
    padding: 20px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.thumb-strip-container {
    width: 100%;
    overflow-x: auto;
    padding: 0 40px;
}

.thumb-strip {
    display: flex;
    gap: 12px;
    width: max-content;
}

.modal-thumb-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.modal-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb-item.active { opacity: 1; border-color: #fff; transform: scale(1.1); }

/* Generic Utility */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
