/* --- Keep your Root Variables & Basic Reset from previous steps --- */
:root {
    --primary-dark: #0f1d37;
    --gold-color: #c5a47e;
    --text-gray: #666666;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --section-padding: 80px 0;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-gray); line-height: 1.6; overflow-x: hidden; }

/* Utility */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: var(--section-padding); }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-dark); color: var(--white); }
.text-center { text-align: center; }
.text-white { color: var(--white); }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--primary-dark); font-weight: 700; }
h2.section-title { font-size: 2.5rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 15px; }
h2.section-title::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--gold-color); }

/* Buttons */
.btn-gold, .btn-enquire, .btn-outline-dark { padding: 12px 30px; border: none; font-weight: 600; cursor: pointer; transition: var(--transition); text-transform: uppercase; font-size: 0.9rem; display: inline-block;}
.btn-gold { background-color: var(--gold-color); color: var(--white); }
.btn-enquire { background-color: var(--gold-color); color: var(--white); border-radius: 4px; }
.btn-outline-dark { border: 2px solid var(--primary-dark); background: transparent; color: var(--primary-dark); }
.btn-outline-dark:hover { background-color: var(--primary-dark); color: var(--white); }

/* Header & Nav */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: transparent; border-bottom: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
#main-header.scrolled { background-color: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.1); }
.header-content { display: flex; justify-content: space-between; align-items: center; height: var(--header-height); }
.logo img { height: 50px;transition: var(--transition); }
#main-header.scrolled .logo img { filter: none; }
.desktop-nav ul { display: flex; list-style: none; }
.desktop-nav ul li { margin-left: 20px; }
.desktop-nav ul li a { color: var(--white); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; }
#main-header.scrolled .desktop-nav ul li a, #main-header.scrolled .nav-phone { color: var(--primary-dark); }
.header-actions { display: flex; align-items: center; }
.nav-phone { color: var(--white); margin-right: 20px; font-weight: 600; display: flex; align-items: center; }
.mobile-toggle { display: none; color: var(--white); font-size: 1.5rem; }
#main-header.scrolled .mobile-toggle { color: var(--primary-dark); }

/* Utility for mirroring phone icon */
.fa-flip-horizontal { transform: scaleX(-1); }

/* Hero */
#hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; color: var(--white); }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 29, 55, 0.6); display: flex; align-items: center; }
.hero-text h1 { font-size: 3.5rem; color: var(--white); margin-bottom: 20px; }
.hero-text h4 { color: var(--gold-color); margin-bottom: 10px; }
.hero-text p { font-size: 1.5rem; margin-bottom: 30px; }

/* About */
.two-column-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sub-title { color: var(--gold-color); text-transform: uppercase; letter-spacing: 1px; }
.img-wrapper-style1 img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- NEW GALLERY STYLES --- */
.gallery-main {
    width: 100%;
    height: 750px; /* Increased height to show full building */
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensures the image stays centered */
}

/* Thumbs Container */
.gallery-thumbs {
    width: 100%;
    max-width: 800px; /* Limit width to keep thumbs clustered in center */
    margin: 20px auto; /* Center the container horizontally */
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

/* Thumb Slides */
.gallery-thumbs .swiper-slide {
    width: 25%; /* Defines width relative to the container */
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--gold-color);
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive: Smaller height on mobile so it fits the screen */
@media (max-width: 992px) {
    .gallery-main {
        height: 450px; 
    }
}

/* --- CARDS (Shared for Amenities & Location) --- */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px; }
.amenity-card {
    background: var(--white);
    padding: 35px 25px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(197, 164, 126, 0.25); /* The Glow */
    transition: var(--transition);
    display: flex; flex-direction: column; align-items: center;
}
.amenity-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(197, 164, 126, 0.4); }
.icon-circle { width: 80px; height: 80px; background-color: #f6f1e9; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-circle i { font-size: 2rem; color: #c5a47e; }
.amenity-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 15px; color: #000; }
.amenity-card p { font-size: 0.9rem; color: #555; text-align: justify; text-justify: inter-word; margin-bottom: 0; }

/* --- MAP ZOOM EFFECT --- */
.map-hover-wrapper { overflow: hidden; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); display: inline-block; max-width: 100%; }
.zoom-image { width: 100%; height: auto; transition: transform 0.5s ease; }
.map-hover-wrapper:hover .zoom-image { transform: scale(1.05); }

/* Responsive */
@media (max-width: 992px) {
    .two-column-grid, .amenities-grid { grid-template-columns: 1fr; }
    .desktop-nav, .nav-phone { display: none; }
    .mobile-toggle { display: block; }
    .gallery-main { height: 350px; }
}

/* --- MOBILE SPECIFIC STYLES --- */

/* 1. Mobile Bottom Bar (Fixed) */
.mobile-bottom-bar {
    display: none; /* Hidden on Desktop */
}

/* 2. Mobile Menu Overlay (Hidden by default) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Slide out to right */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0; /* Slide in */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.mobile-logo { height: 40px; filter: none; }
.close-menu { font-size: 1.5rem; color: var(--primary-dark); cursor: pointer; }

.mobile-links li { margin-bottom: 20px; }
.mobile-links a {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    display: block;
}

/* --- MEDIA QUERIES FOR MOBILE (Max Width 768px) --- */
@media (max-width: 768px) {
    
    /* A. Fix Header: Hide standard Enquire button, Show Hamburger */
    .header-actions .btn-enquire { display: none; } 
    .header-actions .nav-phone { display: none; }
    .mobile-toggle { display: block; color: var(--primary-dark); font-size: 1.5rem; cursor: pointer; }
    
    /* Ensure Header background is white on mobile so icons are visible */
    #main-header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
    .logo img { filter: none; } /* Ensure logo is colored */

    /* B. Horizontal Scrolling Cards (Amenities & Location) */
    .amenities-grid {
        display: flex; /* Switch from Grid to Flex */
        overflow-x: auto; /* Enable horizontal scroll */
        scroll-snap-type: x mandatory; /* Snap effect */
        padding-bottom: 30px; /* Space for scrollbar/shadow */
        gap: 20px;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .amenities-grid::-webkit-scrollbar { display: none; }

    .amenity-card {
        min-width: 75vw; /* Card takes 85% of screen width */
        scroll-snap-align: center; /* Snap to center */
        margin-right: 0;
    }

    /* C. Show Bottom Bar */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 1000;
        background: var(--white);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .bottom-btn {
        flex: 1; /* 50% width each */
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 1rem;
        text-decoration: none;
        cursor: pointer;
        border: none;
    }

    .btn-call {
        background-color: var(--primary-dark);
        color: var(--white);
    }
    .btn-call i { margin-right: 8px; color: var(--gold-color); }

    .btn-enquire-mobile {
        background-color: var(--gold-color);
        color: var(--white);
    }
    
    /* Add padding to body so content isn't hidden behind bottom bar */
    body { padding-bottom: 60px; }
}

/* --- PRICE LIST SECTION --- */
.price-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.price-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden; /* Ensures header corners stay rounded */
    border: 1px solid #eee;
}

.price-header {
    background-color: var(--primary-dark);
    color: var(--gold-color);
    padding: 20px;
    text-align: center;
}

.price-header h3 {
    color: var(--gold-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.price-header p {
    color: var(--white);
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto; /* Allows scroll on mobile if table is wide */
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces scroll on very small screens */
}

.custom-table th, .custom-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.custom-table th {
    background-color: #f8f9fa;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover {
    background-color: #fcfcfc;
}

.text-green {
    color: #28a745;
    font-weight: 700;
}

/* Notes Styling */
.price-notes {
    background: #fdf8f3; /* Light beige bg */
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--gold-color);
}

.price-notes h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-decoration: underline;
}

.price-notes ul {
    list-style-type: disc;
    padding-left: 20px;
}

.price-notes ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
}


/* --- SWIPE INDICATOR (Mobile Only) --- */
.swipe-hint {
    display: none; /* Hidden on Desktop */
}

@media (max-width: 768px) {
    .swipe-hint {
        display: block;
        text-align: right;
        font-size: 0.85rem;
        color: var(--gold-color);
        margin-bottom: 10px; /* Space between text and cards */
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        animation: swipePulse 2s infinite; /* Subtle pulsing animation */
    }

    /* Animation Keyframes */
    @keyframes swipePulse {
        0% { transform: translateX(0); opacity: 0.7; }
        50% { transform: translateX(5px); opacity: 1; }
        100% { transform: translateX(0); opacity: 0.7; }
    }
}


/* --- POPUP MODAL STYLES --- */

/* 1. The Overlay (Background) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent bg */
    z-index: 3000; /* Highest priority (above mobile menu and header) */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Optional: blurs the background slightly */
}

/* Class to show the modal (toggled by JS) */
.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease-in-out;
}

/* 2. The Content Box */
.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-top: 5px solid var(--gold-color); /* Gold accent line at top */
}

/* 3. Typography inside Modal */
.modal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* 4. Form Fields */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--primary-dark);
    transition: var(--transition);
    background: #f9f9f9;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-color);
    background: #fff;
    box-shadow: 0 0 5px rgba(197, 164, 126, 0.2);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 80px;
}

/* 5. Submit Button */
.form-submit-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* 6. Close Button (X) */
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-dark);
    transform: rotate(90deg); /* Nice rotation effect */
}

/* 7. Success/Error Message Styling */
#form-result {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Simple Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

