/* assets/css/style.css - MASTER FULL VERSION */

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #1a3c34;    /* Dark Green */
    --gold: #c5a059;       /* Luxury Gold */
    --cream: #f9f9f7;      /* Background */
    --text: #333;
    --white: #fff;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, .logo, .price {
    font-family: 'Playfair Display', serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* --- 0. TOPBAR --- */
.topbar {
    background-color: #0f241f !important; 
    color: #e0e0e0 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* NEW: Animation rules for smooth hiding */
    transition: all 0.4s ease-in-out !important;
    max-height: 60px !important; 
    overflow: hidden !important;
    opacity: 1 !important;
}

.topbar i {
    color: var(--gold);
    margin-right: 6px;
}

.topbar-right span {
    margin-left: 20px;
}

/* NEW: This class hides the topbar when scrolling */
.header-wrapper.scrolled .topbar {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    border-bottom: none !important;
}

/* We hide the topbar on mobile phones to save screen space, 
   since mobile users will likely use the WhatsApp button or menu */
@media (max-width: 768px) {
    .topbar {
        display: none;
    }
	/* Hide the close button on desktop */
.close-tooltip {
    display: none;
}
}

/* =========================================
   2. NAVIGATION (STICKY & MOBILE)
   ========================================= */
.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    transition: 0.4s;
}

.sticky-nav.scrolled {
    background: var(--primary);
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--white);
    margin: 0 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}

.btn-gold:hover {
    background: #b08d4a;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

.mobile-only { display: none; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    z-index: -2;
    pointer-events: none;
}

.video-background iframe {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

/* Fix for Video Button Clickability */
.hero-content {
    position: relative;
    z-index: 10; 
    margin-bottom: 80px; 
}

.hero h1 {
    font-size: 4rem;
    margin: 0 0 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-outline-small {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline-small:hover {
    background: white;
    color: var(--primary);
}

/* =========================================
   4. BOOKING WIDGET (COMPACT)
   ========================================= */
.booking-widget {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    width: auto;
    max-width: 95%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.booking-widget form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
}

.form-row {
    display: flex;
    gap: 10px;
}

.b-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.b-item label {
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    margin-left: 10px;
}

.booking-widget input, 
.booking-widget select {
    width: 140px;
    padding: 10px 15px;
    border: none;
    background: white;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary);
    outline: none;
    cursor: pointer;
}

.booking-widget button {
    padding: 10px 30px;
    background: var(--gold);
    color: white;
    border: none;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 25px;
    transition: 0.3s;
    height: 38px;
    margin-top: 13px;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.4);
}

.booking-widget button:hover {
    background: #b08d4a;
    transform: translateY(-2px);
}

/* Availability Results Dropdown */
.availability-results {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.availability-results:not(:empty) {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
    max-height: 300px;
    overflow-y: auto;
}

.avail-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.avail-card {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 180px;
    text-align: left;
    border-left: 3px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.avail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.avail-header strong {
    font-size: 0.85rem;
    color: var(--primary);
}

.avail-qty {
    font-size: 0.65rem;
    background: #e6ffed;
    color: #28a745;
    padding: 2px 6px;
    border-radius: 10px;
}

.avail-cap {
    font-size: 0.7rem;
    margin-bottom: 5px;
    color: #666;
}

.avail-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.btn-book-small {
    width: 100%;
    padding: 6px 0;
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.loading-text { color: white; font-style: italic; }
.error-text { color: #ff9999; }

/* =========================================
   5. GENERAL SECTIONS
   ========================================= */
.section-padding { padding: 80px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); }
.bg-light { background: white; }

/* Section Subheadings */
.section-sub {
    font-size: 1.1rem;
    color: #777;
    margin-top: -40px; /* Pull closer to H2 */
    margin-bottom: 60px;
    font-style: italic;
    font-family: 'Lato', sans-serif;
}

.white-text .section-sub {
    color: rgba(255,255,255,0.8);
}

/* =========================================
   6. FEATURE STRIP
   ========================================= */
.feature-section { padding-top: 80px; }
.feature-strip { display: flex; flex-wrap: wrap; gap: 20px; }

.feature-box {
    flex: 1 1 300px;
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer; /* Clickable */
    z-index: 10;
}

.f-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: white; opacity: 0; transition: 0.3s;
}

.feature-box:hover .f-overlay { opacity: 1; }

.f-overlay h3 { font-family: 'Playfair Display'; margin-bottom: 15px; font-size: 1.5rem; }

/* Prevent buttons inside from blocking the parent click */
.feature-box a, .feature-box button { pointer-events: none; }

/* =========================================
   7. VILLAS & SLIDER
   ========================================= */
.villa-split { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.row-reverse { flex-direction: row-reverse; }

.villa-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }

.slide-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }

.villa-text { flex: 1; padding: 20px; }
.villa-text h3 { font-size: 2rem; color: var(--primary); margin-top: 0; }
.villa-text .price { font-size: 1.5rem; color: var(--gold); font-weight: bold; }
.btn-text { color: var(--primary); font-weight: bold; border-bottom: 2px solid var(--gold); }

/* =========================================
   8. SERVICES (LARGE CARDS)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.svc-img { width: 100%; height: 300px; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .svc-img img { transform: scale(1.05); }

.svc-content { padding: 30px; flex-grow: 1; }
.svc-content h3 { margin: 0 0 15px 0; color: var(--primary); font-size: 1.4rem; }

/* =========================================
   9. AMENITIES (VISUAL GRID)
   ========================================= */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.amenity-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.4s;
    cursor: pointer; /* Clickable */
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 5;
}

.amenity-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.amenity-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

.amenity-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.amenity-card:hover .amenity-img-wrapper img { transform: scale(1.1); }

.amenity-title {
    padding: 20px;
    text-align: center;
    font-family: 'Playfair Display';
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: white;
    border-top: 3px solid var(--gold);
}

/* =========================================
   10. PACKAGES, REVIEWS, GALLERY
   ========================================= */
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.package-card { background: var(--cream); border: 1px solid #eee; text-align: center; }
.pkg-img img { width: 100%; height: 220px; object-fit: cover; }
.pkg-content { padding: 30px; }

.dark-section { background: var(--primary); color: var(--white); padding: 80px 5%; }
.white-text h2 { color: var(--white); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; text-align: center; }
.stars { color: var(--gold); margin-bottom: 15px; }

.no-padding { padding: 0; }
.gallery-strip { display: flex; flex-wrap: wrap; }
.g-item { flex: 1 0 25%; height: 250px; cursor: pointer; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.g-item:hover img { opacity: 0.8; transform: scale(1.05); }

/* =========================================
   11. CTA SECTION
   ========================================= */
.cta-section {
    position: relative;
    background: url('../images/hero-fallback.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
    color: white;
}
.cta-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(26, 60, 52, 0.85); }
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 3rem; margin-bottom: 20px; font-family: 'Playfair Display'; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

footer { background: #112520; color: rgba(255,255,255,0.6); padding: 60px 20px; text-align: center; }

/* =========================================
   12. MODALS (ALL)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
}
.modal-content { width: 90%; max-width: 1000px; position: relative; }
.modal-content video { width: 100%; display: block; }
.close-modal { position: absolute; top: -40px; right: 0; color: var(--white); font-size: 40px; cursor: pointer; }

/* Image Modal */
/* --- PERFECTLY CENTERED IMAGE MODAL --- */
.img-modal { 
    display: none; /* JavaScript changes this to 'flex' when opened */
    position: fixed; 
    z-index: 2100; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    
    /* These two lines force perfect dead-center alignment */
    align-items: center; 
    justify-content: center; 
}

.img-modal-content { 
    display: block; 
    width: 80%; 
    max-width: 1000px; 
    max-height: 90vh; 
    object-fit: contain; 
    border: 2px solid var(--gold); 
    border-radius: 4px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Optional: Adds a nice shadow behind the image */
}

/* Ensure the close button stays in the top right, relative to the screen */
.close-img { 
    position: absolute; 
    top: 20px; 
    right: 35px; 
    color: #f1f1f1; 
    font-size: 40px; 
    font-weight: bold; 
    cursor: pointer; 
    z-index: 2102; /* Keep it above everything */
}
.img-caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 10px 0; height: 150px; }
.close-img { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }

/* Booking Modal */
.booking-modal-content { background: white; padding: 40px; width: 100%; max-width: 400px; text-align: center; border-radius: 8px; }
.booking-modal-content input, .booking-modal-content textarea { width: 100%; margin-bottom: 15px; padding: 12px; border: 1px solid #ddd; box-sizing: border-box; }

/* Feature Modal */
.feature-modal-content { background: white; width: 80%; max-width: 800px; border-radius: 8px; overflow: hidden; padding: 0; }
.f-modal-grid { display: flex; flex-direction: row; }
#f-modal-img { width: 50%; height: 400px; object-fit: cover; }
.f-modal-text { width: 50%; padding: 40px; box-sizing: border-box; overflow-y: auto; max-height: 400px; }
.close-feature { color: #333; top: 10px; right: 20px; }
@media(max-width:768px){ .f-modal-grid{flex-direction:column;} #f-modal-img{width:100%; height:200px;} .f-modal-text{width:100%;} }

/* Success Modal */
.success-modal-content {
    background: white;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    border-radius: 8px;
    border-top: 5px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.success-icon { font-size: 4rem; color: var(--primary); margin-bottom: 20px; animation: popIn 0.5s ease; }
.success-title { font-family: 'Playfair Display'; font-size: 2rem; color: var(--primary); margin: 0 0 15px 0; }
.success-message { font-size: 1rem; color: #555; line-height: 1.6; margin-bottom: 25px; }
.success-details { background: #f9f9f7; padding: 15px; border-radius: 4px; margin-bottom: 30px; font-weight: bold; color: var(--primary); border: 1px solid #eee; }
.close-success { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #999; cursor: pointer; }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* =========================================
   13. MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    /* NAV: Hamburger */
    .menu-toggle { display: flex; }
    .desktop-only { display: none; }
    
    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%;
        width: 100%;
        height: auto;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links a { display: block; margin: 15px 0; font-size: 1.1rem; width: 100%; text-align: center; }
    .mobile-only { display: inline-block; }

    /* BOOKING WIDGET */
    .booking-widget { width: 90%; border-radius: 20px; padding: 20px; bottom: 20px; }
    .booking-widget form { flex-direction: column; width: 100%; gap: 10px; }
    .form-row { width: 100%; flex-direction: column; }
    .booking-widget input, .booking-widget select { width: 100%; }
    .booking-widget button { width: 100%; margin-top: 5px; }

    /* LAYOUTS */
    .villa-split { flex-direction: column !important; gap: 20px; }
    .villa-slider, .villa-text { width: 100%; }
    .services-grid, .package-grid, .reviews-grid, .amenities-grid { grid-template-columns: 1fr; }
    .feature-strip { flex-direction: column; }
    
    /* MODALS */
    .f-modal-grid { flex-direction: column; }
    #f-modal-img { width: 100%; height: 200px; }
    .f-modal-text { width: 100%; padding: 20px; }
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- NEW ELEGANT BUTTON (FOR PACKAGES) --- */
.btn-elegant {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 15px;
    border: 1px solid var(--gold); /* Gold Outline */
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s ease;
    background: transparent;
    border-radius: 2px;
}

.btn-elegant:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4); /* Soft Gold Glow */
    transform: translateY(-2px);
}

/* --- QUICK PERKS STRIP --- */
.perks-section {
    background-color: var(--primary); /* Dark Green Background */
    color: white;
    padding: 40px 0;
    border-bottom: 4px solid var(--gold); /* Luxury Gold Border */
}

.perks-grid {
    display: flex;
    justify-content: space-around; /* Spread evenly */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 30px;
}

.perk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 200px; /* Responsive width */
}

.perk-item i {
    font-size: 2.5rem; /* Large Icon */
    color: var(--gold);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.perk-item:hover i {
    transform: translateY(-5px); /* Little hop on hover */
}

.perk-item span {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Mobile Adjustments for Perks */
@media (max-width: 768px) {
    .perks-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2x2 Grid on phones */
        gap: 20px;
    }
    
    .perk-item i {
        font-size: 2rem;
    }
    
    .perk-item span {
        font-size: 0.7rem;
    }
}
/* --- YOUTUBE MODAL FIXES --- */
.video-modal-content {
    width: 90%;
    max-width: 1000px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Forces 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-video {
    top: -40px;
    right: 0px;
    z-index: 2001;
    font-size: 40px;
    color: white;
}
/* --- UPGRADED IMAGE MODAL (GALLERY SLIDER) --- */
.slide-img {
    cursor: pointer; /* Makes it obvious they are clickable */
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 30px;
    cursor: pointer;
    z-index: 2101;
    transition: 0.3s;
    border-radius: 4px;
}

.modal-prev:hover, .modal-next:hover {
    background-color: var(--gold);
}

.modal-prev { left: 5%; }
.modal-next { right: 5%; }

/* Hide arrows if there's only 1 image */
.modal-prev.hidden, .modal-next.hidden {
    display: none !important;
}

/* Mobile Adjustments for Modal Arrows */
@media (max-width: 768px) {
    .modal-prev { left: 10px; padding: 10px; font-size: 20px; }
    .modal-next { right: 10px; padding: 10px; font-size: 20px; }
    .img-modal-content { width: 95%; }
}

/* --- VIDEO GALLERY SECTION --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.vid-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.vid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.video-card:hover .vid-thumb img {
    filter: brightness(0.7);
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(197, 160, 89, 0.9); /* Gold */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.video-card:hover .play-overlay {
    background: var(--primary); /* Turns Dark Green on hover */
    transform: translate(-50%, -50%) scale(1.1);
}

.vid-info {
    padding: 20px;
    text-align: center;
    border-top: 2px solid #eee;
}

.vid-info h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}
/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57; /* Slightly darker green on hover */
    transform: scale(1.1);
    color: white;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}

/* Make it slightly smaller and adjust position on mobile phones */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
/* =======================================================
   BULLETPROOF HEADER & MENU FIX
   ======================================================= */

/* 1. The Wrapper (Forces Topbar and Menu to stack safely) */
.header-wrapper {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important; /* Stacks Topbar above Nav safely */
    background-color: #1a3c34 !important; /* Solid Dark Green */
    background-image: none !important; /* Kills the ugly white gradient */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. The Topbar */
.topbar {
    background-color: #0f241f !important; /* Darker green for contrast */
    color: #e0e0e0 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.topbar i { color: #c5a059 !important; margin-right: 8px !important; }
.topbar-right span { margin-left: 20px !important; }

/* 3. The Main Nav (Fixes the crashing and overlapping) */
.sticky-nav {
    position: relative !important; /* Stops it from flying into the topbar */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 5% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important; /* Clears any remaining white smudges */
    background-image: none !important; 
    box-shadow: none !important;
    border: none !important;
}

/* 4. Fix Logo squishing */
.sticky-nav .logo {
    flex-shrink: 0 !important; /* Prevents the menu from squishing the logo */
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
}

.sticky-nav .logo img {
    height: 50px !important;
    max-width: 250px !important;
    object-fit: contain !important;
}

/* 5. Fix Menu Links Layout */
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important; /* Perfect spacing between links */
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: 0.3s !important;
}

.nav-links a:hover {
    color: #c5a059 !important; /* Gold hover */
}

/* 6. Fix Button Squishing */
.sticky-nav .btn-gold {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Hide Topbar on Mobile */
@media (max-width: 900px) {
    .topbar { display: none !important; }
    .nav-links { gap: 15px !important; }
}
/* =======================================================
   QUICK PRICE GUIDE & TOOLTIP (Under Booking Bar)
   ======================================================= */
.quick-price-guide {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px; /* Spacing from the search bar */
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    flex-wrap: wrap; /* Allows wrapping on small mobile screens */
}

.price-pill {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.price-pill strong {
    color: var(--gold);
    font-weight: 700;
}

/* --- THE TOOLTIP (Question Mark) --- */
.capacity-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.3rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: 0.3s ease;
}

.capacity-tooltip:hover {
    background: var(--gold);
    color: #fff;
}

.tooltip-text {
    visibility: hidden;
    width: 320px;
    background-color: rgba(26, 60, 52, 0.98); /* Luxury Dark Green */
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 18px;
    position: absolute;
    z-index: 100;
    bottom: 140%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--gold);
    text-shadow: none; /* Removes text shadow for clean reading */
}

/* The little arrow pointing down from the tooltip box */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(26, 60, 52, 0.98) transparent transparent transparent;
}

.capacity-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .quick-price-guide {
        font-size: 0.8rem;
        gap: 8px;
    }
    .tooltip-text {
        width: 260px;
        font-size: 0.85rem;
    }
}
/* =======================================================
   MODAL OVERLAP FIX (Keep popups above the sticky header)
   ======================================================= */

/* Force all popup backgrounds to be higher than the header's 9999 z-index */
.modal, 
.img-modal {
    z-index: 99999 !important; 
}

/* Force all close (X) buttons to be the absolute highest so they can be clicked */
.close-modal, 
.close-img, 
.close-video, 
.close-feature, 
.close-booking, 
.close-success {
    z-index: 100000 !important;
}

/* Ensure the arrows in the image gallery slider are also above everything */
.modal-prev, 
.modal-next {
    z-index: 100000 !important;
}

/* =======================================================
   MASTER MOBILE OVERRIDES (Phones & Tablets)
   ======================================================= */
@media (max-width: 900px) {
    /* 1. HEADER & MENU FIXES */
    .topbar { 
        display: none !important; 
    }
    .desktop-only { 
        display: none !important; 
    }
    
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 3000;
    }
    
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: white;
        border-radius: 3px;
    }

    /* Hide menu by default, stack it vertically when active */
    .nav-links {
        display: none !important; 
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: rgba(26, 60, 52, 0.98) !important;
        flex-direction: column !important;
        padding: 20px 0 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }

    .nav-links.active {
        display: flex !important; /* JS will trigger this class */
    }

    .nav-links a {
        padding: 15px 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 2. BOOKING WIDGET (Stop the squishing & overflowing) */
    .booking-widget {
        width: 90% !important;
        margin: -40px auto 30px auto !important;
        padding: 20px !important;
        height: auto !important;
    }

    .booking-widget form {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .form-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .b-item {
        width: 100% !important;
    }

    .b-item input, 
    .b-item select {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .booking-widget button {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* 3. QUICK PRICE GUIDE & TOOLTIP FIX (Perfectly Centered Popup) */
    .quick-price-guide {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .capacity-tooltip .tooltip-text {
        position: fixed !important;
        top: 50% !important;
        bottom: auto !important; /* CRITICAL FIX: Kills the desktop 'bottom' rule */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85% !important;
        max-width: 320px !important;
        margin: 0 !important;
        z-index: 9999999 !important; /* Absolute top layer */
        box-shadow: 0 0 0 9999px rgba(0,0,0,0.7) !important; /* Darkens the screen behind it */
    }

    /* Hide the little pointer arrow on mobile */
    .capacity-tooltip .tooltip-text::after {
        display: none !important;
    }

    /* 4. MODALS & FORMS FIX (Contact & Booking Forms) */
    .modal-content {
        width: 95% !important;
        padding: 25px 15px !important;
    }

    /* Target the inline flex divs in your modals and force them to stack */
    .modal-content form div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .modal-content input, 
    .modal-content select, 
    .modal-content textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. VIDEO MODAL FIX */
    .video-modal-content {
        width: 100% !important;
    }
    
    .close-video {
        top: -40px !important;
        right: 10px !important;
    }
}
/* =======================================================
   ULTIMATE MASTER OVERRIDES (Fixes Header, Modals & Mobile)
   ======================================================= */

/* --- 1. DESKTOP HEADER OVERLAPPING FIX --- */
.header-wrapper {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #1a3c34 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    padding-top: 100px !important; 
}

.sticky-nav {
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.topbar {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* --- 2. MODALS Z-INDEX FIX (Keeps popups over the header) --- */
.modal, .img-modal { z-index: 999999 !important; }
.close-modal, .close-img, .close-video, .close-booking { z-index: 1000000 !important; }

/* --- 3. TOOLTIP DESKTOP SETTINGS --- */
.close-tooltip {
    display: none; /* Keep the X button hidden on computer screens */
}

/* --- 4. MOBILE RESPONSIVE FIXES (Phones & Tablets) --- */
@media (max-width: 900px) {
    
    body { padding-top: 70px !important; } 
    .desktop-only, .topbar { display: none !important; }

    /* Fix Booking Widget Spilling Off-Screen */
    .booking-widget {
        width: 92% !important;
        max-width: 100% !important;
        margin: -30px auto 30px auto !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Force Booking Inputs to Stack */
    .booking-widget form, .booking-widget .form-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
        margin: 0 !important;
    }

    .booking-widget .b-item, 
    .booking-widget input, 
    .booking-widget select, 
    .booking-widget button {
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    /* Fix Contact/Booking Modal Forms Squishing */
    .modal-content form div[style*="display:flex"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Keep the '?' Button a perfect circle */
    .quick-price-guide {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .capacity-tooltip {
        flex-shrink: 0 !important; 
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        border-radius: 50% !important;
    }

    /* --- THE NEW MOBILE JAVASCRIPT POPUP --- */
    
    /* Disable the buggy CSS hover on mobile */
    .capacity-tooltip:hover .tooltip-text {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* The actual Mobile Modal layout (triggered by Javascript) */
    .capacity-tooltip .tooltip-text.active-modal {
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important; 
        max-width: 340px !important;
        height: auto !important;
        white-space: normal !important; 
        margin: 0 !important;
        padding-top: 35px !important; /* Make room for the X button */
        z-index: 9999999 !important;
        box-shadow: 0 0 0 9999px rgba(0,0,0,0.85) !important; /* Dark overlay */
        text-align: left !important;
        cursor: default !important;
    }

    /* Show the Close Button on mobile */
    .close-tooltip {
        display: block !important;
        position: absolute !important;
        top: 5px !important;
        right: 15px !important;
        font-size: 28px !important;
        color: #fff !important;
        cursor: pointer !important;
        font-weight: bold !important;
    }
    
    .capacity-tooltip .tooltip-text::after {
        display: none !important; /* Hides the little arrow on mobile */
    }
}