* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    /*overflow-x: hidden;  This stops the "shaking" or side-scrolling */
}

:root {
    --primary-color: #1c5fac;
    --secondary-color: #061299;
    --text-dark: #414042;
    --light-bg: #f4f7f6;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    color: var(--text-dark);
}

h1, h2, h3 { font-family: 'Manrope', sans-serif; }

/* --- Standardized Glass Navbar --- */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 10% !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;

    /* Background must come BEFORE the filter */
    background-color: rgba(255, 255, 255, 0.15) !important;

    /* The Filter - No spaces allowed between blur and ( */
    -webkit-backdrop-filter: blur(15px) !important;
    backdrop-filter: blur(15px) !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Make text white so it pops against the image background */
.logo a { font-weight: 700; font-size: 1.8rem; text-decoration: none; color: #ffffff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #ffffff; font-weight: 500; transition: color 0.3s; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.nav-links a:hover { color: var(--primary-color); }

/* --- SINGLE PARALLAX BACKGROUND FOR HOME PAGE --- */
.home-global-parallax {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/parallax-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 100vh;
}

/* --- UPGRADED HERO (With Parallax) --- */
/* --- FULL SCREEN PARALLAX HERO --- */
.hero {
    /* Background removed - defaults to transparent */
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}
/* Let's make sure the content inside the hero is layered correctly */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.btn-primary { background: var(--primary-color); color: white; padding: 12px 25px; border-radius: 5px; text-decoration: none; }

.container { width: 85%; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; color: var(--secondary-color); }


/* --- HOME ABOUT SECTION --- */
.home-about-section {
    /* Background removed - defaults to transparent */
    padding: 100px 0;
    color: white;
}
.home-about-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}
.home-about-text {
    flex: 1;
    max-width: 550px;
}
.home-about-text .subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}
.home-about-text h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: white;
}
.home-about-text .accent-line {
    width: 40px;
    height: 3px;
    background: #d4af37; /* The sleek gold/yellow accent line */
    margin-bottom: 30px;
}
.home-about-text .lead-text {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    text-transform: uppercase;
}
.home-about-text .body-text {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 0.95rem;
}
.btn-read-more {
    background: white;
    color: var(--secondary-color);
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn-read-more:hover {
    background: #f4f4f4;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.home-about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.home-about-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4); /* Gives the image depth */
}

/* Mobile Responsiveness for this section */
@media (max-width: 768px) {
    .home-about-flex {
        flex-direction: column;
    }
    .home-about-text {
        max-width: 100%;
        text-align: left;
    }
    .home-about-image {
        justify-content: flex-start;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    padding: 40px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: 0.3s;
}
.service-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* About Flex */
.about-flex { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-image { flex: 1; }

/* --- RESET & FIX BANNER --- */
.page-banner {
    position: relative;
    width: 100%;
    height: 60vh; 
    min-height: 400px;
    padding-top: 80px; 
    
    /* These ensure the image fills the space correctly */
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed; 
    background-repeat: no-repeat !important;
    
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* The Dark Tint Overlay */
.page-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Ensure Text stays above the tint */
.page-banner h1, 
.page-banner p,
.category-filter-container {
    position: relative;
    z-index: 2;
    margin: 0;
}

.page-banner h1 { font-size: 3rem; margin-bottom: 10px; }

/* --- SPECIFIC PAGE BACKGROUNDS --- */
/* Added !important to prevent the strikethrough in Inspect */
.bg-properties { background-image: url('/images/properties-bg.jpg') !important; }
.bg-plots      { background-image: url('/images/plots-bg.jpg') !important; }
.bg-agents     { background-image: url('/images/agents-bg.jpg') !important; }
.bg-contact    { background-image: url('/images/contact-bg.jpg') !important; }
.bg-about      { background-image: url('/images/about-bg.jpg') !important; }
.bg-faq        { background-image: url('/images/faq-bg.jpg') !important; }

/* Mobile Fix */
@media (max-width: 768px) {
    .page-banner {
        background-attachment: fixed !important;
        height: 50vh !important;
    }
    .page-banner h1 { font-size: 2.2rem !important; }
}
/* --- UPGRADED FOOTER --- */
.main-footer { background: #1a1a1a; color: #f4f4f4; padding: 60px 0 20px; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); width: 85%; margin: 0 auto; gap: 40px; }
.footer-section h4 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-section p, .footer-section ul li a { color: #bbb; text-decoration: none; transition: 0.3s; line-height: 1.8; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a:hover { color: white; padding-left: 5px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; color: #777; font-size: 0.9rem; }



/* --- Contact Page --- */
.contact-grid { display: flex; gap: 50px; }
.contact-info, .contact-form { flex: 1; }
.info-item { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.info-item i { font-size: 2rem; color: var(--primary-color); }
.info-item h4 { margin: 0 0 5px 0; }
.info-item p { margin: 0; color: #666; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}
.contact-form button { border: none; cursor: pointer; font-size: 1rem; }

/* --- FAQ Page --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
.faq-item h3 { color: var(--secondary-color); margin-top: 0; }


/* --- FULL PAGE ADMIN BACKGROUND --- */
.admin-main-wrapper {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/admin-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 140px; /* Accounts for the floating header */
    padding-bottom: 80px;
}

.admin-header-text {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}
.admin-header-text h1 { font-size: 3rem; margin-bottom: 10px; color: white; }

/* The Glass Container for the Tables/Forms */
.admin-content-box {
    background: rgba(255, 255, 255, 0.92); /* Mostly white so your tables/text are easy to read */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- Search & Filter Bar --- */
.search-filter-box {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}
.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.filter-input {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}
.search-btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 12px 30px;
}

/* Mobile tweak for search bar */
@media (max-width: 768px) {
    .filter-input, .search-btn { flex: 100%; }
}

/* --- Properties Grid --- */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Forces cards in the same row to be equal height */
}
.property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}



/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}
.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(28, 95, 172, 0.3); /* Glowing shadow using your primary color */
}


/* --- Single Property Details --- */
.property-detail-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.property-gallery .main-image { width: 100%; height: 500px; object-fit: cover; border-radius: 8px; margin-bottom: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.property-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }

.features-list { list-style: none; padding: 0; }
.features-list li { padding: 15px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.features-list i { color: var(--primary-color); margin-right: 10px; width: 20px; }

.property-contact-box { background: var(--light-bg); padding: 30px; border-radius: 8px; height: fit-content; border: 1px solid #e0e0e0; }
.form-control { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; box-sizing: border-box; }


.property-card:hover { transform: translateY(-5px); }
.property-image { position: relative; height: 220px; flex-shrink: 0; }
.property-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 15px; left: 15px; background: var(--secondary-color); color: white; padding: 5px 15px; border-radius: 4px; font-weight: bold; }
.property-content { 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* FORCES this div to take up all remaining vertical space */
}
.property-content h3 { 
    margin: 0 0 10px; 
    font-size: 1.2rem;
    min-height: 2.8em; /* Ensures titles always take up 2 lines of space */
    line-height: 1.4;
}
.location { color: #777; margin-bottom: 10px; font-size: 0.9rem; }
.price { 
    color: var(--primary-color); 
    font-size: 1.3rem; 
    font-weight: bold;
    margin: 10px 0; 
}
.property-specs { 
    margin-top: auto; /* THE MAGIC LINE: Pushes everything below it to the bottom */
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid #eee; 
    padding: 15px 0; 
    font-size: 0.85rem; 
    color: #555; 
}
.property-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .property-gallery .main-image { height: 300px; }
    
    .btn-primary.btn-view {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
}

    /* --- PARALLAX SECTION --- */
.parallax-banner {
    /* Background removed - defaults to transparent */
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 60px 0;
}
.parallax-banner h2 { font-size: 3rem; margin-bottom: 15px; color: white; }
.parallax-banner p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; color: #eee; }



/* =========================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================= */
@media (max-width: 768px) {
    /* --- 1. THE NAVBAR RESET --- */
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 70px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 5% !important;
        
        /* THE FIX: Solid background, no blur for mobile performance */
        background: rgba(255, 255, 255, 0.95) !important; 
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        
        z-index: 3000 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    /* --- 2. HIDE THE SPILLED LINKS --- */
    .nav-links {
        display: none !important; /* HIDDEN BY DEFAULT ON MOBILE */
        position: fixed !important;
        top: 70px !important;
        left: 0;
        width: 100% !important;
        height: auto !important;
        background: white !important;
        flex-direction: column !important;
        padding: 20px 0 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 2999 !important;
    }

    /* --- 3. SHOW LINKS ONLY WHEN ACTIVE --- */
    .nav-links.active {
        display: flex !important; /* ONLY SHOWS WHEN CLIKED */
    }

    .nav-links li {
        margin: 15px 0 !important;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: var(--secondary-color) !important;
        font-size: 1.2rem !important;
    }

    /* --- 4. THE HAMBURGER (The Fix) --- */
    .hamburger {
        display: flex !important; /* Center the icon inside the glass box */
        align-items: center;
        justify-content: center;
        
        /* The Glass Box */
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.2) !important; /* Very faint tint */
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        
        /* The Thin Hollow Border */
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 10px; /* Sleek rounded corners */
        
        /* Icon color and shadow */
        color: var(--secondary-color) !important;
        font-size: 1.2rem !important;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 3001 !important;
    }

    /* Subtle glow when you tap it */
    .hamburger:active {
        background: rgba(255, 255, 255, 0.4) !important;
        transform: scale(0.95);
    }

   /* --- HERO SECTION FIXED --- */
    .hero {
        padding-top: 100px !important; /* Space for the fixed header */
        height: auto !important;
        min-height: 80vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-content {
        width: 100% !important;
        padding: 0 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
        max-width: 90% !important;
    }

    /* --- BUTTONS STACKING FIX --- */
    .hero-btns {
        display: flex !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important; /* Space between the two buttons */
        width: 100% !important;
        align-items: center !important;
    }

    .hero-btns a {
        display: block !important;
        width: 240px !important; /* Fixed width for consistent look */
        padding: 12px 0 !important;
        text-align: center !important;
        border-radius: 5px !important;
        font-size: 1rem !important;
        margin: 0 !important; /* Remove any old margins */
    }

   /* --- PROPERTY CARD DYNAMIC HEIGHT FIX --- */
    .properties-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 10px 0 !important;
    }

    .property-card {
        display: flex !important;
        flex-direction: row !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        /* THE FIX: Remove fixed height, use min-height instead */
        height: auto !important; 
        min-height: 190px !important; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
        border: 1px solid #eee !important;
    }

    .property-image {
        width: 38% !important;
        /* Ensures image stretches to match text height */
        align-self: stretch !important; 
        flex-shrink: 0 !important;
        position: relative;
    }

    .property-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .property-content {
        width: 100% !important;
        padding: 12px 15px !important;
        display: flex !important;
        flex-direction: column !important;
        /* Evenly spaces out title, specs, and button */
        justify-content: space-between !important; 
    }

    /* Keep text tight so button has room */
    .property-content h3 {
        font-size: 1rem !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .price {
        font-size: 1.2rem !important;
        margin: 5px 0 !important;
        font-weight: 800 !important;
        color: var(--secondary-color) !important;
    }

    .property-specs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 0.7rem !important;
        padding: 5px 0 !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    /* THE BUTTON FIX: Ensure it doesn't overflow */
    .property-content .btn-primary {
        width: 100% !important;
        padding: 10px 0 !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
        text-align: center !important;
        display: block !important;
    }

    /* --- LIGHTBOX MOBILE FIX --- */
    #customLightbox {
        padding: 0 10px;
    }

    .lightbox-content {
        max-width: 95vw !important; /* Forces it to fit phone width */
        max-height: 70vh !important; /* Leaves room for arrows/close button */
        width: auto !important;
        height: auto !important;
    }

    .lightbox-close {
        top: 10px !important;
        right: 20px !important;
        font-size: 40px !important;
    }

    .lightbox-arrow {
        font-size: 40px !important;
        padding: 10px !important;
    }
    .lightbox-title {
        top: 15px;
        left: 15px;
        font-size: 1rem;
    }

    .prev-arrow { left: 5px !important; }
    .next-arrow { right: 5px !important; }
}

/* --- Admin Panel --- */
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid #ddd; text-align: left; }
.admin-table th { background-color: var(--light-bg); color: var(--secondary-color); }
.admin-form { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }


/* --- CATEGORY TOGGLE BUTTONS (Properties & Plots Pages) --- */
.btn-sort {
    transition: all 0.3s ease !important;
}

/* Hover effect for the unselected button */
.btn-sort:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2) !important; 
    color: white !important;
}

/* The solid style for the currently selected category */
.btn-sort.active {
    background-color: white !important;
    color: #333 !important; /* Dark text so it pops against the white background */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* --- PROPERTIES & PLOTS GRID PARALLAX --- */
.bg-grid-parallax {
    /* Uses the same deep blue overlay as your About section */
    background: linear-gradient(rgba(18, 30, 56, 0.5), rgba(18, 30, 56, 0.5)), url('/images/properties-bg.jpg'); 
    background-attachment: fixed; /* The Parallax Magic */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0 100px 0;
    min-height: 80vh; /* Ensures it looks good even if there are only 1 or 2 properties */
}

.bg-grid-parallax-plots {
    /* Uses the same deep blue overlay as your About section */
    background: linear-gradient(rgba(18, 30, 56, 0.5), rgba(18, 30, 56, 0.5)), url('/images/plots-bg.jpg'); 
    background-attachment: fixed; /* The Parallax Magic */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0 100px 0;
    min-height: 80vh; /* Ensures it looks good even if there are only 1 or 2 properties */
}




/* --- FULL PAGE MOBILE GLASS WRAPPER --- */
.unified-parallax-page {
    /* Uses the same background from your property list page */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/hero-bg.jpg');
    background-attachment: fixed; /* Parallax effect */
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding-top: 100px; /* Accounts for floating header */
    padding-bottom: 80px;
}

/* Glass Wrapper that holds all the content */
.glass-panel-wrapper {
    background: rgba(255, 255, 255, 0.9); /* Lighter background so your dark title/text works */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Make the title area dark again for contrast against the glass */
.page-title-area {
    text-align: center;
    margin-bottom: 30px;
}
.page-title-area h1 { font-size: 2.8rem; color: #333; }
.page-title-area p { color: #555; font-size: 1rem; margin-top: 5px; }

/* --- GLASSY CATEGORY TOGGLE --- */
.glass-btn-sort {
    display: inline-flex;
    border-radius: 30px;
    overflow: hidden;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.4); /* Transparent glass base */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative; 
    z-index: 50;
}

.glass-btn-sort a {
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    color: #333; /* Dark text for unselected button */
    transition: all 0.3s ease;
}

/* Active/Selected button: Lighter glass with dark text */
.glass-btn-sort a.active {
    background: rgba(255, 255, 255, 1);
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hover effect for unselected button */
.glass-btn-sort a:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
    color: #333;
}

.grid-search-title {
    color: rgb(0, 0, 0);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.plot-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    color: white;
    
    /* Make banners take up 60% of the screen height */
    height: 40vh; 
    padding-top: 80px; /* Accounts for floating header */
    
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.plot-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.plot-banner h1, .plot-banner p {
    position: relative;
    z-index: 2;
    margin: 0;
}
.plot-banner h1 { font-size: 3rem; margin-bottom: 10px; }

.plot-gallery .main-image { width: 100%; height: 500px; object-fit: cover; border-radius: 8px; margin-bottom: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- LIGHTBOX SYSTEM (DESKTOP) --- */
#customLightbox {
    display: none; /* Hidden until JS triggers it */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox-title {
    position: absolute;
    top: 25px;
    left: 25px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    z-index: 10002;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 60%; /* Prevents it from hitting the close button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-content {
    max-width: 80%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
    user-select: none;
    object-fit: contain; /* Keeps image proportions perfect */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: 0.3s;
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.lightbox-arrow:hover { color: var(--primary-color); }



/* --- VISION & MISSION GRID --- */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
/* --- PARALLAX UTILITY --- */
.parallax-row {
    padding: 100px 0;
    background-attachment: fixed; /* Keep background stationary */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Background Overlay for Parallax Sections */
.parallax-row::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Darkens the image so glass cards pop */
    z-index: 1;
}

.parallax-row .container {
    position: relative;
    z-index: 2; /* Content above the overlay */
}

/* --- GLASS CARD BRIGHTNESS --- */
.glass-card {
    /* 1. Increased background opacity slightly for better "pop" */
    background: rgba(255, 255, 255, 0.18) !important;
    
    /* 2. Increased Blur and Brightness for that "Frosted" look */
    backdrop-filter: blur(15px) brightness(1.3) !important;
    -webkit-backdrop-filter: blur(15px) brightness(1.3) !important;
    
    /* 3. Gradient Border: Makes the top edge look like it's catching light */
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.7) !important; /* Brighter top edge */
    
    padding: 40px;
    border-radius: 20px; /* Slightly rounder for modern feel */
    color: white !important;
    
    /* 4. Outer Glow: Makes the card lift off the dark background */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 
                0 0 15px rgba(255, 255, 255, 0.1); 
    
    transition: all 0.4s ease;
}

/* 5. Hover Effect: Makes the client feel the "Interactivity" */
.glass-card:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(255, 255, 255, 0.2);
}

.glass-card h3, .glass-card h4 {
    color: #ffffff !important;
    font-weight: 800;
    margin-bottom: 15px;
}

.glass-card p {
    color: #f8f9fa !important;
    opacity: 1 !important;
}

.glass-card i {
    color: #ffffff !important;
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

/* Responsibilities Overlay Numbers */
.resp-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -10px;
    right: 20px;
}

/* --- GLOBAL PRESENCE --- */
.presence-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.presence-text { flex: 1; }
.presence-map { flex: 1; }
.presence-map img { width: 100%; filter: grayscale(100%) opacity(0.7); }

.location-list { list-style: none; padding: 0; margin-top: 20px; }
.location-list li { margin-bottom: 10px; font-weight: 600; }
.location-list i { color: var(--primary-color); margin-right: 10px; }

/* --- RESPONSIBILITIES --- */
.resp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.resp-item {
    position: relative;
    padding-top: 30px;
}
.resp-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(28, 95, 172, 0.1); /* Very faint primary color */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.resp-item h4 { font-size: 1.3rem; margin-bottom: 10px; color: var(--secondary-color); }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .vision-mission-grid, .presence-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .accent-line.center { margin: 0 auto 30px auto; }

    /* 1. Stop the clipping: change fixed height to auto */
    .parallax-row, .page-banner {
        height: auto !important;
        min-height: 100vh; /* Optional: ensures it still feels big */
        padding: 80px 0 !important;
    }

    /* 2. Shrink that massive title */
    .section-title h2 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    /* 3. Stack the cards and fix width */
    .resp-grid {
        grid-template-columns: 1fr !important; /* Forces single column */
        gap: 20px !important;
        width: 100%;
        padding: 0 10px;
    }

    .resp-item.glass-card {
        padding: 30px 20px !important;
        margin-bottom: 0 !important;
    }

    /* 4. Fix the 01, 02 numbers from overlapping text */
    .resp-number {
        font-size: 3rem !important;
        top: 5px !important;
        right: 15px !important;
        opacity: 0.15 !important;
    }
}


/* --- CONTACT PAGE MOBILE STACKING --- */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column !important; /* Stack info and form vertically */
        gap: 40px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .contact-info, .contact-form {
        width: 100% !important; /* Force full width for both sections */
        flex: none !important;
    }

    /* Adjust the spacing for the icons/info items */
    .info-item {
        margin-bottom: 20px !important;
        text-align: left;
    }

    /* Make the form box look clean on mobile */
    .contact-form {
        background: #fdfdfd;
        padding: 25px 20px !important;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

    /* Ensure inputs don't zoom the screen on iPhone */
    .form-group input, 
    .form-group textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        width: 100% !important;
    }
}

/* ==========================================
   CONSOLIDATED ADMIN MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {
    /* 1. General Layout Fixes */
    .admin-main-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers children horizontally */
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

    .admin-header-text h1 {
        font-size: 1.8rem !important;
        text-align: center;
        padding-top: 80px;
    }

    .admin-content-box {
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 12px;
    }

    /* 2. Admin Form Grid Stacking */
    .admin-form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .form-group input, .form-group select, .form-group textarea {
        font-size: 16px !important; /* iOS zoom fix */
    }

    /* 3. Table to Card Transformation */
    .admin-table, 
    .admin-table thead, 
    .admin-table tbody, 
    .admin-table tr, 
    .admin-table td { 
        display: block !important; 
        width: 100% !important;
    }

    /* Hide Desktop Headers */
    .admin-table thead { 
        display: none !important;
    }

    /* The Card Container */
    .admin-table tr {
        background: #fff !important;
        margin-bottom: 25px !important;
        border-radius: 15px !important;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.08) !important;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08) !important;
        padding: 10px 0 !important;
    }

    /* 4. The Flex Cell (Label Left, Data Right) */
    .admin-table td {
        display: flex !important;
        justify-content: space-between !important; 
        align-items: center !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #f5f5f5 !important;
        min-height: 50px !important;
        text-align: right !important;
    }

    /* Labels styling */
    .admin-table td::before {
        content: attr(data-label);
        font-weight: 800 !important;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: #999;
        flex-shrink: 0;
        text-align: left !important;
        margin-right: 15px;
    }

    /* 5. Special Row Overrides */
    
    /* Image Row: Centered */
    .admin-table td[data-label="Image"],
    .admin-table td[data-label="Photo"] {
        padding: 0 !important; /* Remove padding so image hits edges */
        overflow: hidden;
        background: #000; /* Black background for any empty space */
        height: 200px !important; /* Set a consistent height for all cards */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Target the actual image tag */
    .admin-table td[data-label="Image"] img,
    .admin-table td[data-label="Photo"] img,
    .admin-list-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* This is the magic: it crops instead of stretching */
        border-radius: 0 !important; /* Looks cleaner when image is full-width of card top */
    }

    /* Hide the "Image" label on top of the actual image */
    .admin-table td[data-label="Image"]::before,
    .admin-table td[data-label="Photo"]::before {
        display: none !important;
    }

    /* Title Row: Bold and Highlighted */
    .admin-table td[data-label="Title"] {
        background: rgba(28, 95, 172, 0.03);
        font-weight: 700;
        justify-content: center !important;
    }
    .admin-table td[data-label="Title"]::before { display: none; }

    /* Action Row: No Label, Centered Buttons */
    .admin-table td[data-label="Actions"] {
        justify-content: center !important;
        border-bottom: none !important;
        padding: 20px !important;
    }
    .admin-table td[data-label="Actions"]::before { display: none; }

    /* 6. Button Styling */
    .admin-actions-flex {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .btn-edit-link, .btn-delete-link {
        padding: 8px 20px !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
    }
}

/* --- ULTIMATE DESKTOP RESTORE (PC VIEW) --- */
@media screen and (min-width: 769px) {
    /* Force the table container back */
    table.admin-table {
        display: table !important;
        border-collapse: collapse !important;
        margin-top: 20px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Force headers to show in a row */
    table.admin-table thead {
        display: table-header-group !important;
    }

    table.admin-table thead tr {
        display: table-row !important;
        position: static !important; /* Undo the 'absolute' hide from mobile */
    }

    table.admin-table th {
        display: table-cell !important;
        background: #f8f9fa !important;
        padding: 15px !important;
        color: #333 !important;
        font-weight: 700 !important;
        border-bottom: 2px solid #dee2e6 !important;
        text-align: left !important;
    }

    /* Force body rows back to horizontal */
    table.admin-table tbody {
        display: table-row-group !important;
    }

    table.admin-table tbody tr {
        display: table-row !important;
        background: #fff !important;
        border-bottom: 1px solid #eee !important;
    }

    /* Force cells to be side-by-side */
    table.admin-table tbody td {
        display: table-cell !important;
        padding: 15px !important;
        width: auto !important; /* Undo the 100% width from mobile */
        text-align: left !important;
        vertical-align: middle !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
    }

    /* REMOVE THE MOBILE LABELS COMPLETELY */
    table.admin-table td::before {
        display: none !important;
        content: none !important;
    }

    /* Fix the Image sizing for desktop */
    .admin-list-img {
        width: 80px !important;
        height: auto !important;
    }

    /* Re-align actions in one line */
    .admin-actions-flex {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-top: 0 !important;
    }
}

/* --- ADMIN FORM CONTAINER --- */
.admin-content-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

/* THE GRID SYSTEM */
.admin-form-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 20px 30px; /* Vertical and Horizontal gaps */
    margin-top: 25px;
}

/* Form groups that should take up the full width (like Title and Description) */
.full-width {
    grid-column: span 2;
}

/* INDIVIDUAL FIELD STYLING */
.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group label {
    font-weight: 700;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form-group input, 
.admin-form-group select, 
.admin-form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: all 0.3s ease;
}

/* Focus effect for better UX */
.admin-form-group input:focus, 
.admin-form-group select:focus, 
.admin-form-group textarea:focus {
    border-color: #1c5fac;
    box-shadow: 0 0 0 4px rgba(28, 95, 172, 0.1);
    outline: none;
    background: #fff;
}

/* FEATURED CHECKBOX STYLING */
.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* BUTTONS */
.submit-btn {
    grid-column: span 2; /* Stretch button across the bottom */
    background: #1c5fac;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #164a88;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Expand the white box to fit the screen */
    .admin-content-box {
        width: 95% !important; /* Take up 95% of screen width */
        margin: 10px auto !important; /* Center it */
        padding: 20px 15px !important; /* Reduce padding so content doesn't squash */
        box-sizing: border-box !important;
    }

    /* 2. Force inputs to stay INSIDE the box */
    .admin-form-group input, 
    .admin-form-group select, 
    .admin-form-group textarea {
        width: 100% !important; /* Fill the available space */
        max-width: 100% !important;
        box-sizing: border-box !important; /* Includes padding in the width calculation */
        font-size: 16px !important; /* Prevents iOS from zooming in when typing */
    }

    /* 3. Stack the Grid */
    .admin-form-container {
        display: flex !important;
        flex-direction: column !important; /* Stack every field vertically */
        gap: 15px !important;
    }

    /* 4. Fix the Title overflow */
    .admin-header-text h1 {
        font-size: 1.5rem !important;
        text-align: center;
    }
}

/* --- TESTIMONIAL STAR RATING --- */
/* 1. Fix the stars size and alignment */
.testimonial-rating {
    display: flex;
    justify-content: center; /* Center the stars */
    gap: 5px;
    margin-bottom: 15px;
}

.testimonial-rating i {
    font-size: 14px; /* Make the stars much smaller */
    color: #FFD700;  /* Gold color */
}

/* 2. Style the quote text */
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

/* 3. Refine the Glass Card container */
.testimonial-item.glass-card {
    max-width: 450px; /* Keep it compact */
    padding: 40px;
    border-radius: 20px;
    margin: 20px auto;
    text-align: center; /* Center everything inside */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 4. Fix the client meta alignment */
.client-meta {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the name and photo */
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.client-img img, .img-placeholder {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevents image from squishing */
}
.img-placeholder {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.client-details strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1rem;
    text-transform: capitalize;
}


/* Admin Table Image Constraints */
.admin-table img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px; /* Makes it a nice rounded square */
    border: 1px solid #ddd;
}

/* If you are using the circular placeholder in the table */
.admin-agent-placeholder, .admin-agent-thumb {
    width: 50px !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
}


.admin-filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-flex {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group input, .filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.price-inputs {
    display: flex;
    gap: 5px;
}

.price-inputs input {
    width: 100px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
}

.main-filter-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -50px; /* Pulls it up into the banner area */
    position: relative;
    z-index: 10;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: flex-end;
}

.filter-input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.filter-input-group input, .filter-input-group select { 
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.btn-reset {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    text-decoration: none;
}

/* Mobile View */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    .main-filter-card {
        margin-top: 20px;
    }
}
.badge.agricultural {
    background-color: #27ae60; /* A "Grass Green" for agriculture */
    color: white;
}
.badge.residential {
    background-color: var(--primary-color);
}
.badge.commercial {
    background-color: #2980b9;
}


/* Container for the pills (unchanged flex settings) */
.category-filter-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* --- THE GLASS PILL STYLE --- */
.cat-pill {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* 1. Light, semi-transparent border */
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap;
    
    /* THE GLASS EFFECT TRINITY: */
    background: rgba(255, 255, 255, 0.15); /* 2. Super light, transparent background */
    backdrop-filter: blur(10px); /* 3. THE MAGIC: Blurs whatever is BEHIND the pill */
    -webkit-backdrop-filter: blur(10px); /* Required for older Safari/iOS */

    transition: all 0.4s ease; /* Adds a smooth transition on hover */
}

/* Subtle Hover Effect */
.cat-pill:hover {
    background: rgba(255, 255, 255, 0.25); /* Brightens slightly on hover */
    box-shadow: 0 5px 15px rgba(255,255,255,0.05); /* Adds a very soft glow */
}

/* Active State (unchanged premium look) */
.cat-pill.active {
    background: white;
    color: #28a745; /* Uses your green theme */
    border-color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Adds depth when active */
}

/* Mobile Adjustments (unchanged) */
@media (max-width: 600px) {
    .cat-pill {
        padding: 6px 16px;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 20px); 
        text-align: center;
    }
}

.price-range-display {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.price-range-display span {
    color: #888;
    margin-left: 2px;
}

@media (max-width: 992px) {
    .details-grid-wrapper {
        grid-template-columns: 1fr !important; /* Forces single column */
        gap: 20px;
    }

    .details-sidebar {
        position: static !important; /* Removes sticky behavior on mobile */
        width: 100%;
    }

    .plot-gallery img {
        max-height: 350px; /* Adjust image height for mobile */
    }

    .contact-card-sticky {
        margin-top: 20px;
        padding: 20px; /* Reduce padding to save space */
    }
}

@media (max-width: 768px) {
    /* Target the home-swipe-wrapper with maximum priority */
    .home-swipe-wrapper.row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        /* Prevents vertical movement within the container */
        overflow-y: hidden !important; 
        
        /* Ensures all cards stay at the same top level */
        align-items: flex-start !important; 
        
        /* Stops the "diagonal" scroll jump */
        overscroll-behavior-x: contain; 
        
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 10px 20px 40px 20px !important;
    }

    /* Hide the scrollbar */
    .home-swipe-wrapper::-webkit-scrollbar {
        display: none !important;
    }

    /* Target the card container to prevent vertical stacking */
    .home-swipe-wrapper .property-card {
        flex: 0 0 88% !important; /* Fixed width for the card */
        min-width: 88% !important;
        scroll-snap-align: center !important;
        margin-bottom: 0 !important; /* Remove the gap that creates vertical lists */
        display: block !important;
    }
    
    /* Ensure images and content don't stretch weirdly */
   .home-swipe-wrapper .property-image {
        width: 100% !important; /* Image container fills the card */
        height: 250px !important; /* Give it a fixed, tall height */
        overflow: hidden !important; /* Ensure nothing leaks out */
        border-radius: 12px 12px 0 0 !important; /* Keeps the top corners rounded */
    }

    .home-swipe-wrapper .property-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* THE MAGIC: Fills the space, crops if needed, doesn't stretch */
        object-position: center !important; /* Centers the image content */
    }
}

@media (min-width: 769px) {
    .home-swipe-wrapper {
        display: grid !important;
        /* Change from 3 to 4 columns */
        grid-template-columns: repeat(4, 1fr) !important; 
        gap: 20px !important; /* Reduced gap slightly to save space */
        overflow: visible !important;
    }

    .home-swipe-wrapper .property-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important; /* Slightly smaller padding inside card */
    }
    
    .home-swipe-wrapper .property-image {
        height: 180px !important; /* Shorter height for 4-column layout */
    }

    /* Adjust font sizes so 4 cards look clean */
    .home-swipe-wrapper .property-content h3 {
        font-size: 1.1rem !important;
    }

    .home-swipe-wrapper .price {
        font-size: 1.1rem !important;
    }

    .home-swipe-wrapper .property-specs span {
        font-size: 0.8rem !important;
    }
}

/* This kills the white gap permanently */
.testimonials-section {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.main-footer, footer {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    /* THE FIX: Target the new wrapper so Android actually stops rendering the fixed background */
    .home-global-parallax {
        background-attachment: scroll !important;
    }
    
    /* Hardware acceleration for your swipe wrapper to stop scroll conflicts */
    .home-swipe-wrapper.row {
        -webkit-overflow-scrolling: touch !important; 
        transform: translateZ(0); 
    }
}