/* 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;
}

/* =========================================
   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(260px, 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 */
.img-modal { display: none; position: fixed; z-index: 2100; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.img-modal-content { margin: auto; display: block; width: 80%; max-width: 800px; max-height: 80vh; object-fit: contain; border: 2px solid var(--gold); border-radius: 4px; }
.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;
    }
}