:root {
    --brand-dark: #0F172A;
    --brand-gold: #C5A028;
    --brand-gold-hover: #B8911F;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --bg-light: #F8FAFC;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn:hover { transform: translateY(-3px); }

.btn-gold {
    background-color: var(--brand-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.35);
}
.btn-gold:hover { background-color: var(--brand-gold-hover); }

.btn-dark {
    background-color: var(--brand-dark);
    color: white;
}
.btn-dark:hover { background-color: #1E293B; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-dark);
    color: var(--brand-dark);
}
.btn-outline:hover { background: var(--brand-dark); color: white; }

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #E2E8F0;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.section-padding { padding: 5rem 1.5rem; }
.container-xl { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.text-gold { color: var(--brand-gold); }

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.img-hover { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.group:hover .img-hover { transform: scale(1.08); }

/* Carousel Styles */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:active { cursor: grabbing; }
.carousel-card {
    min-width: 340px;
    max-width: 360px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

/* Gallery Grid */
.gallery-grid .gallery-item {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.gallery-grid .gallery-item img {
    transition: transform 0.7s ease;
}
.gallery-grid .gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-grid .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-grid .gallery-item:hover::after { opacity: 1; }

/* Utilities */
@media (max-width: 768px) {
    .section-padding { padding: 3rem 1.25rem; }
    .carousel-card { min-width: 290px; }
}
/* Mobile Menu Smooth Animation */
@media (max-width: 768px) {
    .our-spaces-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2px !important;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        max-width: 100vw !important;
    }
    
    .our-spaces-grid > div {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    .our-spaces-grid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    #lightbox button {
        font-size: 2rem;
    }
    
    #lightbox .max-w-5xl {
        padding-left: 3rem;
        padding-right: 3rem;
    }
        /* Immersive lightbox on mobile */
    .lightbox-container {
        max-width: 100vw !important;
        width: 100vw !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-height: 100vh !important;
    }
    
    .lightbox-image {
        max-width: 100vw !important;
        width: 100% !important;
        max-height: 95vh !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    #lightbox {
        padding: 0 !important;
    }
    
    #lightbox button {
        font-size: 1.5rem !important;
    }
    
    #lightbox button[onclick*="prevImage"],
    #lightbox button[onclick*="nextImage"] {
        width: 3rem !important;
        height: 3rem !important;
        left: 0.5rem !important;
        right: auto !important;
    }
    
    #lightbox button[onclick*="nextImage"] {
        right: 0.5rem !important;
        left: auto !important;
    }
    
    #lightbox button[onclick*="closeLightbox()"] {
        top: 1rem !important;
        right: 1rem !important;
        font-size: 2rem !important;
    }
    
    #lightbox-caption {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    #lightbox-counter {
        font-size: 0.75rem !important;
    }
}
}

/* Gallery Images Responsive */
section[style*="aspect-ratio"] img {
    transition: transform 0.7s ease;
}

/* Ensure body has padding for fixed nav */
body {
    padding-top: 5rem;
}

@media (max-width: 768px) {
    body {
        padding-top: 5rem;
    }
}
/* Our Spaces Lightbox */
#lightbox {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightbox img {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile: 2 columns side by side, full width */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    #lightbox button {
        font-size: 2rem;
    }
    
    #lightbox .max-w-5xl {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Room cards swipe sideways on phones (rows become a grid from the md breakpoint up) */
.room-swipe { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.room-swipe::-webkit-scrollbar { display: none; }
