/* --- CSS Variables & Reset --- */
:root {
    --primary-gold: #c5a059;
    --primary-dark: #0a192f;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; }

/* --- Utilities --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.gold-text { color: var(--primary-gold); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-dark); }
.text-white { color: var(--white); }
.mt-3 { margin-top: 1rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Buttons --- */
.btn-primary {
    background: var(--primary-gold);
    color: var(--white);
    padding: 12px 30px;
    display: inline-block;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary:hover { background: #b08d45; }

.btn-link {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Header --- */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo h1 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin: 0;
    line-height: 1;
}
.logo small {
    letter-spacing: 2px;
    color: var(--primary-gold);
    text-transform: uppercase;
    font-size: 0.7rem;
}
#nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
#nav-links a:hover, #nav-links a.active { color: var(--primary-gold); }
.btn-nav {
    background: var(--primary-dark);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section & Slideshow --- */
.hero {
    height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

/* Slideshow Container */
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    
    /* Default State: Visible */
    opacity: 1;
    visibility: visible;
    
    /* Smooth fade effect */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

/* JavaScript will add this class to hide the text */
.hero-content.fade-out {
    opacity: 0;
    visibility: hidden;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* --- About & Lists --- */
.main-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.detail-list { margin-top: 20px; padding-left: 0; }
.detail-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
}
.detail-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    color: var(--primary-gold);
    position: absolute; left: 0; top: 3px;
}
.capacity-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-gold);
    padding: 20px;
    margin: 20px 0;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* --- Spaces (Cards with Images) --- */
.space-card {
    background: var(--white);
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.space-card .card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
}
.space-card h3 { margin-bottom: 10px; color: var(--primary-dark); }
.space-card p { padding: 0 20px; color: #666; font-size: 0.9rem; margin-bottom: 15px; }

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Contact Center --- */
.contact-center-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.contact-info p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.social-icons a {
    display: inline-flex;
    width: 40px; height: 40px;
    background: var(--primary-dark); color: var(--white);
    align-items: center; justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
}
.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
footer { background: #050d1a; color: #888; padding: 20px 0; border-top: 1px solid #222; }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    
    #nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: 0.3s;
    }
    #nav-links.active { right: 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .top-bar { display: none; }
    .contact-info p { flex-direction: column; }
}
/* --- Testimonial Slider & Arrows --- */
.testimonial-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonial-slider {
    width: 100%;
    overflow: hidden;
    min-height: 150px; /* Prevents jumping height */
}

/* IMPORTANT: This hides non-active items */
.testimonial-item {
    display: none;
    animation: fadeSlide 0.6s ease;
}

/* This shows the active item */
.testimonial-item.active {
    display: block;
}

/* Arrow Buttons */
.slider-arrow {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    flex-shrink: 0; /* Prevents arrows from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--primary-gold);
    color: var(--white);
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile Tweaks for Arrows */
@media (max-width: 768px) {
    .testimonial-wrapper {
        padding: 0 10px;
    }
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
/* --- Gallery Tabs --- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 30px;
    border: 2px solid var(--primary-gold);
    background: transparent;
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-gold);
    color: var(--white);
}

/* --- Gallery Grid Items --- */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Hover Overlay Effect */
.gallery-item .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(197, 160, 89, 0.7); /* Gold with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: white;
    font-size: 2rem;
}

/* --- Filter Animation Logic (NEW) --- */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Keyframes for smooth appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Lightbox Modal (Full Screen) --- */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Note: JS uses 'active' for lightbox, 'show' for grid items */
.lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Lightbox Controls */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
    z-index: 2001;
}

.lb-arrow:hover { color: #fff; }
.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 768px) {
    .lb-arrow { font-size: 2rem; padding: 10px; }
    .prev { left: 5px; }
    .next { right: 5px; }
}
/* --- Album Card Styling --- */
.album-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: #fff;
    text-align: center;
}

.gallery-item:hover .album-overlay {
    opacity: 1;
}

.album-overlay h3 {
    font-size: 1.2rem;
    margin: 10px 0 5px;
    font-family: var(--font-heading);
}

.album-overlay p {
    font-size: 0.8rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Add to style.css */

/* Style the video exactly like the image */
.lightbox-content video {
    max-width: 90vw;
    max-height: 80vh;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
    display: none; /* Hidden by default */
    background: #000;
}