
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
html {
    /* This single line is the modern, preferred way to enable smooth scrolling */
    scroll-behavior: smooth;
}

/* --- CSS for the Back to Top Button Appearance --- */
#backToTopBtn {
    /* display: none; */
     /* Hidden by default, JavaScript will show it */
    position: fixed; /* Fixed position on the screen */
    bottom: 50px; /* Distance from the bottom of the screen */
    right: 30px; /* Distance from the right of the screen */
    z-index: 999; /* Ensures it's on top of other content */
    /* border: 5px solid red; */
    outline: none;
    /* background-color: #333; */
    /* Dark background */
    color: white;
    cursor: pointer;
    /* padding: 15px 20px; */
    border-radius: 50%;
    font-size: 18px;
    /* border: 2px solid #6B4EFF; */
    text-decoration: none; /* If using <a> tag */
    transition: background-color 0.3s; /* Smooth hover effect */
}
:root {
    --text-light: #f0f0f0;
    --text-dark: #333;
    --overlay-color: rgba(0, 0, 0, 0.1); /* Darker overlay for text readability */
}
/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'system-ui', sans-serif;
}
body{
    width: 100%;
}
h1{
    text-align: center;
    color: #ffffff;
}

h2, h3 {
    color: var(--dark-text);
}

.section-title {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--dark-text);
}






/* --- Desktop / Normal View (Space Around) --- */

.realestate-navbar .container-fluid {
    display: flex;
    /* KEY CHANGE 1: Use space-around for even spacing */
    justify-content: space-around; 
    align-items: center;
    max-width: 1400px; /* Limit width for large screens */
    margin: 0 auto;
}

/* Logo */
.navbar-brand {
    /* Ensure the logo link itself doesn't have extra margins */
    padding: 0;
}

.navbar-brand img {
    width: 150px;
    height: auto;
}

/* Menu Inline */
.navbar-nav.menu {
    display: flex;
    flex-direction: row;
    gap: 25px;
    /* Remove any default Bootstrap margins that might interfere */
    margin: 0; 
}

.menu .nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #333 !important;
    padding: 0 !important;
}

.menu .nav-link:hover {
    color: #9e10a6 !important;
}

/* Phone */
.contact-info {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #444;
    flex-shrink: 0; /* Prevents phone number from disappearing */
}

/* --- Mobile / Tablet View (Max 768px) - Logo Left, Content Right --- */
@media (max-width: 768px) {
    
    .realestate-navbar .container-fluid {
        /* Set main container to flow horizontally */
        flex-direction: row; 
        flex-wrap: wrap; /* Allow wrapping if content is too wide */
        justify-content: space-between; /* Space out Logo and Right Content Group */
        align-items: flex-start; /* Align contents to the top */
        padding: 10px 15px !important; 
    }
    
    /* 1. Logo (Left Side) */
    .navbar-brand {
        flex-shrink: 0; /* Prevent the logo from shrinking */
        /* Since the phone was moved out of here in the previous step, this is just the logo. */
        width: auto;
        margin: 0;
        padding: 0;
    }

    .navbar-brand img {
        width: 100px; /* Smaller logo */
    }

    /* 2. Content Group (Right Side) */
    /* Create a container for the Menu and Phone to keep them together on the right */
    .navbar-right-mobile {
        display: flex;
        flex-direction: column; /* Stack Menu and Phone vertically on the right */
        align-items: flex-end; /* Align the content within this group to the right */
        width: auto;
        flex-grow: 1; /* Allow it to take up available space */
    }

    /* The HTML doesn't have a dedicated .navbar-right-mobile. 
       We will apply this stacking logic directly to the two right-side elements: Menu and Phone. */
    
    /* Phone Number (Top Right) */
    .contact-info {
        order: 1; /* Place phone first */
        font-size: 14px;
        margin-top: 5px; 
        margin-bottom: 5px;
        /* Ensure it aligns to the far right */
        align-self: flex-end; 
    }

    /* Menu Links (Below Phone Number) */
    .navbar-nav.menu {
        order: 2; /* Place menu second */
        
        /* Force menu items inline/horizontal wrap */
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap; 
        /* justify-content: flex-end; */
         /* Align links to the far right */
        
        width: 100%; /* Take full width to allow centering or right alignment */
        margin-top: 10px;
        margin-left: 0;
        gap: 10px; /* Compact gap */
    }

    .menu .nav-link {
        font-size: 14px; /* Compact font size */
        padding: 3px 6px !important;
        margin: 0;
    }
}

@media (max-width: 576px) {
     #backToTopBtn img {
        width: 30px;
        height: auto;
    }
    .brand-name img{
        width: 100px;
        height: auto;
        margin-left: -20px !important;
    }
}



/* Hero Section Styling */
.hero-section {
    /* border: 2px solid red; */
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    background: url('asset/Gemini_Generated_Image_u41ds2u41ds2u41d.png') no-repeat center center/cover; /* Replace 'hero-bg.jpg' with your image */
    display: flex;
    align-items: center;
    justify-content: center; /* Align content to the left */
    overflow: hidden; /* Important for parallax and ensuring content stays within bounds */
}

/* Background Image Parallax Effect (subtle) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* Inherit the background image */
    background-attachment: fixed; /* Makes the background fixed relative to the viewport */
    z-index: -1; /* Place behind content */
    transform: scale(1.05); /* Slightly enlarge to avoid gaps during scroll */
    filter: brightness(0.7); /* Darken the image for better text contrast */
}

/* Overlay for text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: var(--overlay-color); */
    z-index: 0; /* Above the background image, below the content */
}


.hero-title {
    font-size: 3.5em; /* Large title */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
    opacity: 0; /* Start hidden for animation */
    animation: fadeInSlideUp 1s ease-out forwards 0.2s; /* Apply animation */
}




/* Keyframe Animation for Fade In and Slide Up */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 500px;
    }
    .hero-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.5em;
    }
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 200px;
        justify-content: center; /* Center content on smaller screens */
        text-align: center;
    }
    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        max-width: 90%; /* Allow content to take more width */
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .hero-description {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hero-section {
         height: 200px;
    }
    .hero-title {
        font-size: 2.2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .hero-description {
        display: none; /* Hide description on very small screens if space is tight */
    }
}



/* --- Property Grid CSS (styles.css) --- */

.property-listing-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.listing-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Search Bar Styling (Top of the section) */
.search-bar-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
    background-color: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 50px;
    overflow: hidden;
}

.search-input-group select,
.search-input-group input {
    padding: 10px 15px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1em;
    color: var(--text-dark);
}

.search-input-group select {
    border-right: 1px solid #eee;
}

.search-input-group input {
    flex-grow: 1;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #4a4adf; /* Darker shade of primary */
}

/* Category Tabs */
.category-tabs {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tab-button {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Property Grid Layout */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

/* Card Hover Animation: Subtle lift */
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.property-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    /* Image Zoom Animation Setup */
    transition: transform 0.5s ease-in-out; 
}

/* Card Hover Animation: Image Zoom */
.property-card:hover .property-img {
    transform: scale(1.05);
}

.card-details {
    padding: 20px;
}

.card-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.card-location {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.card-price {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-features {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.card-features span i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Overlay Badge Style (for featured cards) */
.card-overlay-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
}

/* Load More Button */
.load-more-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-button:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}


/* --- Update this section in your styles.css --- */

.property-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    
    /* 🔑 KEY ADDITION: Add 'order' to the transition list */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, 
                opacity 0.5s ease-in-out, order 0.5s ease-in-out; 
    
    opacity: 1; 
    transform: scale(1);
    display: block;
    position: relative;
    
    /* Ensure the grid layout respects the order property */
    display: flex;
    flex-direction: column;
}

/* Updated Hidden State CSS (for smooth removal) */
.property-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    height: 0; 
    margin: 0;
    padding: 0;
    /* This makes the card disappear from the layout flow while maintaining the transition */
    visibility: hidden; 
    pointer-events: none; 
}


/* --- Property Grid CSS (styles.css) --- */

/* ... (Keep your existing styles above this line) ... */

/* Property Grid Layout - Base (Desktop/Large Screens) */
.property-grid {
    display: grid;
    /* DEFAULT: 3-4 cards or more on large screens, with min card width of 300px */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    /* Ensure the grid is ready for the card order/visibility transitions */
    transition: all 0.5s ease-in-out; 
}

/* ... (Keep property-card and other card-related styles here) ... */

/* ----------------------------------------
   MEDIA QUERIES FOR GRID COLUMNS
---------------------------------------- */

/* 💻 Tablet View (e.g., up to 1024px) - 3 Cards per Row */
@media (max-width: 1024px) {
    .property-grid {
        /* Force 3 columns */
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px; /* Slightly reduce gap on tablets */
    }
}

/* 📱 Mobile View (e.g., up to 768px) - 2 Cards per Row */
@media (max-width: 768px) {
    .property-grid {
        /* Force 2 columns */
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; /* Further reduce gap */
    }
    
    .listing-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .card-details {
        padding: 15px;
    }
}

/* 📱 Small Mobile View (e.g., up to 480px) - 1 Card per Row */
@media (max-width: 480px) {
    .property-grid {
        /* Single column stacking for very small screens */
        grid-template-columns: 1fr; 
    }
}










:root {
    --primary-color: #5d5dff; /* A common accent color for links/icons */
    --light-bg: #f4f6fa; /* Background for the header/contact section */
    --footer-bg: #e6e8f4; /* Background for the footer section */
    --dark-text: #333;
    --light-text: #555;
    --footer-heading-color: #333;
}
/* ----------------------------------------
   2. FOOTER SECTION STYLING
---------------------------------------- */

.main-footer {
    background-color: var(--footer-bg);
    padding: 60px 5%;
    color: var(--light-text);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2.5fr; /* Define column widths */
    gap: 30px;
}

.footer-heading {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--footer-heading-color);
    margin-bottom: 20px;
}

/* Footer Column 1: About/Logo */
.footer-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Basic logo shape from image */
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: transparent;
    position: relative;
}

.footer-description {
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Social Links Animation */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    /* Animation: Subtle scale and shadow change on hover */
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer Links Animation (Columns 2 & 3) */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

/* Animation: Underline slide-in on hover */
.footer-links li a::before {
    content: '\f0da'; /* Font Awesome right arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
}

.footer-links li a:hover::before {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* Office Details (Column 4) */
.office-location {
    margin-bottom: 25px;
}

.office-contact-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.office-contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ----------------------------------------
   MEDIA QUERIES (Responsiveness) - UPDATED
---------------------------------------- */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    /* ... other styles remain the same ... */
}

@media (max-width: 600px) {
    .footer-grid {
        /* CORRECTED: Set grid to 2 equal columns on the smallest screens */
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; /* Reduce gap slightly for smaller screens */
    }

    .footer-about {
        /* To maintain a 2/2 grid, we need to span the largest column (footer-about) 
           across both columns of the grid. It should take the full width of the first row. */
        grid-column: 1 / span 2; 
        order: 4; /* Keep the about section at the bottom (as requested in original CSS) */
        
        /* If you want the 'About' section to remain large but appear in the first row, 
           you would change 'order: 4' to 'order: 1'. */
    }

    .footer-office-details {
        /* Force the contact details to span both columns so it occupies a full row
           at the bottom, ensuring a 2/2/1 layout (2 links, 2 offices, 1 about) */
        grid-column: 1 / span 2;
    }
    
    /* Optional: If you want 2/2/2 layout (2 links, 2 offices, 2 about/social) */
    /* You may need to remove the 'grid-column: 1 / span 2;' from footer-about 
       and re-evaluate the order based on the required layout. */
    
    /* Default flow (without specific grid-column/order) will be:
       Row 1: Sister Concern | Quick Links
       Row 2: Dhaka Office | Gazipur Office (if split)
       Row 3: About (if it spans 2 columns) 
    */
    
    /* By default (no 'order' or 'span' on middle columns), the grid will flow as:
       1. Sister Concern (Col 1) | Quick Links (Col 2) 
       2. Footer About (Col 1) | Footer Office Details (Col 2)
    */

    /* We will stick to the default two-column flow without spanning the office details
       to guarantee the **2/2** result (4 items in a 2x2 grid), with the 'About' section 
       (the widest original column) spanning the bottom: */
    
    /* Final flow with this code:
       Row 1: Sister Concern | Quick Links
       Row 2: Dhaka/Gazipur Office 1 | Dhaka/Gazipur Office 2
       Row 3: Footer About (full width)
    */
    
    /* Since the office details is one combined div, we remove the span from footer-office-details 
       and let it naturally take the next column spot. */

    .footer-office-details {
        /* Remove the spanning to allow 4 columns to flow into 2x2 grid */
    }
}



.footer-links li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}