﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
   
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* RERA Number */

/* Container adjustment for spacing */
/* Container for alignment */
.rera-container {
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}
.premium-rera {
    /* 1. Solid White Background (Separates text from blue bg) */
    background-color: #ffffff;
    /* 2. Dark Green Border & Text */
    border: 1px solid #198754;
    color: #198754;
    /* 3. Typography */
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    /* 4. Shape & Spacing */
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    /* 5. Subtle Shadow to lift it off the blue background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .premium-rera:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(25, 135, 84, 0.2); /* Green glow on hover */
        background-color: #f8fffb; /* Very faint green tint on hover */
    }

    .premium-rera i {
        color: #198754;
    }

    

@keyframes shine {
    100% {
        left: 125%;
    }
}

/* ✅ Responsive fix */
@media (max-width: 767px) {
    .ad-box {
        position: static !important; /* remove fixed on phones */
        width: 100% !important;
        margin: 1rem 0;
    }
}
@media (max-width: 576px) {
    .contact-btn {
        
        font-size: 1rem;
    }
}
@media (max-width: 768px) {
    .about-float-img {
        float: none;
        width: 100%;
        height: 220px;
        margin: 0 0 15px 0;
    }
}

/*  Agent profile*/

@keyframes scroll-left {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}
.agent-property-viewport {
    width: 100%;
    max-width: 960px; /* Optional max width */
    margin: 0 auto;
}

.agent-property-card {
    flex: 0 0 auto;
    min-width: 100%; /* Mobile: 1 card */
    max-width: 100%;
}

    .agent-property-card img {
        height: 160px;
        object-fit: cover;
    }

@media (min-width: 576px) {
    .agent-property-card {
        min-width: calc(50% - 0.5rem); /* Tablet: 2 cards */
        max-width: calc(50% - 0.5rem);
    }
}

@media (min-width: 992px) {
    .agent-property-card {
        min-width: calc(33.33% - 0.67rem); /* Desktop: 3 cards */
        max-width: calc(33.33% - 0.67rem);
    }
}

/* 🔹 Desktop (≥992px) - keep fixed ad */
@media (min-width: 992px) {
    .ad-box {
        position: fixed;
        top: 70px;
        right: 1rem;
        width: 270px;
    }
}

/* 🔹 Tablet & Mobile (<992px) - stack below content */
@media (max-width: 991.98px) {
    #left-section,
    #right-section {
        flex: 0 0 100%; /* Make both sections full width */
        max-width: 100%;
    }

    .ad-box {
        position: relative; /* No overlap */
        top: auto;
        right: auto;
        width: 100%; /* Stretch across screen */
        margin-top: 1rem; /* Add spacing */
    }
}
/* --- Add this to your <style> block --- */

@media (max-width: 991.98px) {
    /* 1. This targets the inner d-flex container on mobile */
    #navbarResponsiveContent .d-flex {
        background-color: white;
        border-radius: 0.375rem; /* rounded-3 */
        padding: 1rem;
        margin-top: 0.5rem; /* Space from the purple navbar */
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    /* 2. This overrides your 'color: white !important' for mobile */
    #navbarResponsiveContent .navbar-nav .nav-link {
        color: #212529 !important; /* Bootstrap dark text */
    }

        /* 3. This ensures the hover/active color is still your brand's orange */
        #navbarResponsiveContent .navbar-nav .nav-link:hover,
        #navbarResponsiveContent .navbar-nav .nav-link.active {
            color: #FFA500 !important;
        }

        /* 4. This hides the desktop underline-on-hover effect */
        #navbarResponsiveContent .navbar-nav .nav-link::after {
            display: none;
        }
}

body {
    top: 70px;
    margin: 0 0 0 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f5;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
    overflow-x:hidden;
    line-height: 1.6;
}
p {
    margin-bottom: 0.50rem
}
/*body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}*/

/* Headings - modern, stylish */
h1, h2, h4, h5, h6, h7 {
    font-family: 'Inter', sans-serif;
    
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
}
/*h1, h2, h4, h5, h6, h7 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
}*/
h3 {
    margin-bottom: 0.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 530;
    color: #000000;
    letter-spacing: 0.5px;
}
.card-title {
    margin-bottom: 0.2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 530;
    color: #000000;
    letter-spacing: 0.5px;
}


.post-property-btn {
    position: relative;
    display: inline-flex; /* changed from inline-block */
    align-items: center;
    justify-content: flex-start; /* aligns icon & text to the left */
    gap: 2px; /* small spacing between icon and text */
    padding: 4px 36px 4px 15px;
    color: #276191;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 0;
}

    .post-property-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
        background: #FFA500;
    }

    .post-property-btn::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(120deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.4) 50%, rgba(255, 215, 0, 0.2) 100%);
        transform: rotate(25deg);
        animation: shine 3s infinite;
        z-index: 1;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    50%, 100% {
        transform: translateX(100%) rotate(25deg);
    }
}




    #locationResults {
        border-top: none;
        border-radius: 0 0 5px 5px;
        display: none;
    }

        #locationResults.show {
            display: block;
        }

        #locationResults li {
            padding: 8px 12px;
            cursor: pointer;
            transition: background 0.2s;
            text-align: left;
        }

            #locationResults li:hover {
                background: #f0f0f0;
                color: #000;
            }

    .free-label {
        position: absolute;
        top: 1px;
        right: 3px;
        background: #ff9800;
        color: white;
        font-size: 0.6rem;
        font-weight: 500;
        padding: 1px 6px;
        border-radius: 999px;
        animation: bounce 1.5s infinite;
        z-index: 2;
    }

    @keyframes bounce {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-2px);
        }
    }

    .property-heading {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        font-weight: 600;
        color: #ffffff;
        text-shadow: 0 2px 8px rgb(0,0,0);
        letter-spacing: 0.5px;
        transition: transform 0.3s;
    }

        .property-heading:hover {
            transform: translateY(-2px);
        }

.property-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: 0.3px;
    opacity: 1.9;
    text-shadow: 0 1px 5px rgb(0,0,0);
}

    .search_section {
        width: 100%;
        padding: 1px 0 4px;
    }

    .search_box {
        max-width: 860px;
        margin: 0 auto;
        background-color: #ffffff;
        border-radius: 40px;
        padding: 15px 20px;
        box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

.search_toggle_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.search_toggle {
    background-color: #ffffff;
    border: 2px solid #105bd0;
    color: #105bd0;
    border-radius: 25px;
    padding: 3px 10px; /* A bit more padding for better feel */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Softer initial shadow */
}

    /* Hover effect with inner and outer shadows */
    .search_toggle:hover {
        color: #044bba;
        /* Inset shadow (very light) */
        box-shadow: inset 0 0 4px rgba(54, 97, 145, 0.2),
        /* Outset shadow (slightly stronger) */
        0 3px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    /* Clicked/Active state: Dark blue background */
    .search_toggle.active {
        background-color: #105bd0;
        color: #ffffff;
        border-color: #105bd0;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* Inset shadow to look pressed */
        transform: translateY(0); /* Reset transform on active */
    }

    /* Optional focus style for accessibility */
    .search_toggle:focus {
        outline: none;
        box-shadow: inset 0 0 4px rgba(54, 97, 145, 0.2), 0 0 0 3px rgba(4, 75, 186, 0.3);
    }



.search_main input[type="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    width: 60%;
    border-radius: 5px 5px 5px 5px;
    outline: none;
}

    .search_main button {
        padding: 12px 20px;
        font-size: 17px;
        border: none;
        background-color: #366191;
        color: white;
        border-radius: 0 5px 5px 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .search_main button:hover {
            background-color: #272b91;
        }

    .toggle-advanced {
        background: none;
        border: none;
        color: #8b2791;
        font-size: 16px;
        cursor: pointer;
        margin-top: 15px;
        transition: color 0.3s ease;
    }

        .toggle-advanced:hover {
            color: #272b91;
        }

    .form-check-input:checked {
        background-color: #366191;
        border-color: #366191;
    }

    .noUi-horizontal .noUi-handle {
        height: 20px;
        width: 20px;
        border-radius: 50%;
        background: #8b2791;
        border: 2px solid white;
        top: -1px;
        box-shadow: 0 0 4px rgba(0,0,0,0.3);
        cursor: grab;
        transition: background 0.3s;
    }

        .noUi-horizontal .noUi-handle:hover {
            background: #a63bb0;
        }

    .noUi-connect {
        background: #8b2791;
    }

    .noUi-target {
        background: #e9d7ec;
        border-radius: 10px;
        border: none;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    }

    .form-check-input.accent-purple {
        width: 18px;
        height: 18px;
        border: 2px solid #8b2791;
        border-radius: 4px;
        cursor: pointer;
    }

        .form-check-input.accent-purple:checked {
            background-color: #8b2791;
            border-color: #8b2791;
        }

    .form-check-label {
        margin-left: 6px;
        font-size: 15px;
        color: #333;
        cursor: pointer;
    }

    .advanced_filters_drawer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        background: #f8f4fb;
        border-left: 4px solid #8b2791;
        padding: 0 15px;
        border-radius: 8px;
    }

        .advanced_filters_drawer.active {
            padding: 15px;
        }

    .search-background {
        position: relative;
        width: 100%;
        height: 528px;
        overflow: hidden;
    }

    .bg-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 372px;
        object-fit: cover;
        z-index: 0;
    }

    .search-background .container {
        position: relative;
        z-index: 1;
    }

    .trending-pill {
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(12px);
        padding: 8px 16px 8px 12px;
        border-radius: 9999px;
        color: #333;
        font-weight: 500;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: background 0.3s, box-shadow 0.3s;
        max-width: 600px;
        position: relative;
        overflow: hidden;
    }

        .trending-pill:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }

    .trending-label {
        font-weight: 600;
        margin-right: 8px;
        color: #222;
        flex-shrink: 0;
    }

    .trending-keyword-container {
        display: flex;
        overflow: hidden;
        white-space: nowrap;
        align-items: center;
    }

    .trending-keyword-list {
        display: flex;
        transition: transform 0.3s ease;
        gap: 8px;
    }

    .trending-keyword {
        background: #f0f0f0;
        padding: 4px 10px;
        border-radius: 20px;
        cursor: pointer;
        color: #333;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
        flex-shrink: 0;
    }

        .trending-keyword:hover {
            background-color: #333;
            color: #fff;
        }

    .trending-arrow {
        position: absolute;
        right: 8px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        text-align: center;
        font-size: 18px;
        cursor: pointer;
        line-height: 24px;
        transition: background 0.2s, box-shadow 0.2s;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .trending-arrow:hover {
            background: #f0f0f0;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }


.trending-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.trending-pill-v2 {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6); /* Slightly more transparent */
    border: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(16px);
    padding: 6px 6px 6px 12px; /* Reduced padding */
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    max-width: 680px; /* Reduced max-width */
    position: relative;
    overflow: hidden; /* Important for containing elements */
}


.trending-keywords-wrapper {
    overflow: hidden;
    position: relative; /* Anchor for the fade effect */
    flex-grow: 1;
}

    /* Fade-out effect */
    .trending-keywords-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 40px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8) 80%);
        pointer-events: none; /* Allows clicking through the fade */
    }

.trending-keyword-list-v2 {
    display: flex;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}
.trending-keyword-container-v2 {
    overflow: hidden;
    max-width: 520px; /* adjust based on pill size */
}
.trending-keyword-v2 {
    background: rgb(236 243 248);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    
    /* Updated transition for smoother effects */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

    .trending-keyword-v2:hover {
        color: #fff; /* White text for contrast against the gradient */
        /* A beautiful, soft gradient */
        background: linear-gradient(84deg, #4fa0fe 0%, #334eff 100%);
        
        /* A subtle shadow that matches the gradient's color */
        box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    }

.trending-arrow-v2 {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px;
    transition: background-color 0.2s ease;
    z-index: 2; /* Ensures arrow is above the fade effect */
}

    .trending-arrow-v2:hover {
        background-color: rgba(0, 0, 0, 0.08);
    }

    .banner-img {
        height: 110px;
        object-fit: cover;
    }

    .hamburger-button {
        background-color: white;
        border: none;
        border-radius: 9px;
        padding: 3px 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
        transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    }

        .hamburger-button:hover {
            background-color: #FFA500;
            box-shadow: 0 0 12px rgba(0,0,0,0.15);
            transform: translateY(-1px);
        }

        .hamburger-button:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(139, 39, 145, 0.3);
        }

    .navbar-toggler-icon {
        filter: invert(20%);
    }

    .offcanvas-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 1.3rem;
        border-left: 4px solid #8b2791;
        padding-left: 10px;
        color: #333;
    }

    .offcanvas-body ul {
        padding-left: 0;
        margin-top: 10px;
    }

    .offcanvas-body li {
        list-style: none;
    }

    .offcanvas-link-box {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        background-color: #f8f9fa;
        color: #333;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

        .offcanvas-link-box:hover {
            background-color: #e2d8e8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 39, 145, 0.2);
            text-decoration: none;
            color: #8b2791;
        }



.my-5 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* --- Section Styling --- */
.perfect-property {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 550;
    color: #121212;
    margin-bottom: 1rem;
    text-align: left;
}

/* --- Tabs Styling --- */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .tab:hover {
        color: #000;
    }

    .tab.active {
        color: #007aff; /* A nice blue for the active state */
        border-bottom-color: #007aff;
    }

/* --- Property Carousel & List Styling --- */
/* --- New Carousel Wrapper & Buttons --- */
.carousel-wrapper {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s ease;
}

    .carousel-btn:hover {
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .carousel-btn.prev {
        left: -22px;
    }

    .carousel-btn.next {
        right: -22px;
    }

    .carousel-btn.visible {
        display: flex; /* Made visible by JS */
    }

    .carousel-btn[disabled] {
        opacity: 0.4;
        cursor: not-allowed;
    }


/* --- Adjusted Carousel & List Styling --- */
.home-property-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

    .home-property-carousel::-webkit-scrollbar {
        display: none; /* Hide scrollbar for WebKit browsers */
    }

.home-property-list {
    padding-top:20px;
    padding-bottom:20px;
    display: flex;
    gap: 1rem; /* CHANGE: Reduced gap for a tighter layout */
    width: max-content;
}

/* --- Property Card Styling (Adjusted for ~5 cards + crispness) --- */
/* For Commercial Pill  */
.commercial-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: rgb(245 166 34); /* Tailwind green-600 */
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.home-property-card {
    display: block;
    flex: 0 0 260px; /* FIXED WIDTH */
    max-width: 260px; /* PREVENT EXPANSION */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgb(194 187 187 / 24%);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .home-property-card:hover {
        transform: translateY(-2px); /* Slightly less lift for a subtle effect */
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
    }

.card-image-container {
    overflow: hidden;
    position: relative;
}

    .card-image-container img {
        width: 100%;
        height: 150px; /* CHANGE: Reduced image height */
        object-fit: cover;
        transition: transform 0.4s ease;
    }
.home-property-card:hover .card-image-container img {
    transform: scale(1.08); /* Smooth zoom */
}

.home-card-content {
    padding: 0.75rem; /* CHANGE: Reduced padding */
}

.home-card-title,
.home-card-location {
    font-size:1.0rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

/* --- Price --- */
.home-card-price {
    font-size: 1.0rem; /* CHANGE: Reduced font size */
    font-weight: 700;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

/* ==================================================== */
/* ============  NEW: Featured Card Styling ============ */
/* ==================================================== */

/* --- Carousel Container --- */
.carousel-wrapper {
    position: relative;
}

.featured-carousel {
    /* --- THIS IS THE KEY FIX --- */
    overflow-x: auto; /* Changed from overflow-y */
    /* --- End Fix --- */

    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .featured-carousel::-webkit-scrollbar {
        display: none;
    }

.featured-list {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* --- Featured Card Base Style (Unchanged) --- */
.featured-card {
    display: flex;
    width: 560px;
    height: 268px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: visible; /* Allows the tooltip to escape the card boundaries */
    position: relative; /* Maintains positioning context */
    z-index: 1;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .featured-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgb(0 0 0 / 20%);
        z-index: 10;
    }

/* --- Image and Content Sections (Unchanged) --- */
.featured-card-image {
    flex: 0 0 45%;
    position: relative;
}

    .featured-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.featured-card-content {
    flex: 0 0 55%;
    max-width: 55%;
    min-width: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;

    overflow: visible !important; /* Allows children to float outside this box */
    position: relative; /* Helps with z-index stacking context */
    z-index: 2; /* Ensure text content sits above the image/background */
}


/* --- Text and Amenity Styling (Unchanged) --- */
.card-description {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
}

.card-amenities {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #333;
}

    .card-amenities span strong {
        font-weight: 700;
    }

/* --- Price Styling --- */
/* --- Title Styling --- */
/* 1. YOUR EXISTING CSS (Modified slightly) */
/* 1. Base Styles (Unchanged) */
.featured-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2f2936;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

    /* 2. HOVER STATE - NOW CONDITIONAL */
    /* Only apply hover effects if the 'is-truncated' class was added by JS */
    .featured-card-title.is-truncated:hover {
        overflow: visible;
        z-index: 100;
        color: transparent; /* Hide the messy background text */
    }

        /* 3. TOOLTIP VISIBILITY - NOW CONDITIONAL */
        .featured-card-title.is-truncated:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

/* 4. THE TOOLTIP STYLING (Same as before) */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -24px;
    left: -10px;
    width: max-content;
    max-width: 290px;
    white-space: normal;
    /* Force color back to black since parent is transparent */
    background-color: #fff;
    color: #2f2936;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 7px -3px 10px rgb(114 114 114 / 20%);
    transition: opacity 0.2s ease;
    z-index: 9999;
    cursor: pointer;
}
/*.featured-card-title {*/
    /* Your existing font styles */
    /*font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2f2936;
    margin-bottom: 0.4rem;
    line-height: 1.3;*/
    /* Truncation styles */
    /*white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;*/
    /* Anchoring */
    /*position: relative;
    overflow: hidden;*/ /* Default state: hidden to show ellipsis */
/*}*/

    /* 3. HOVER STATE */
    /*.featured-card-title:hover {
        overflow: visible;*/ /* Allows tooltip to pop out */
        /*z-index: 100;*/ /* Puts the title/tooltip above everything else */
        /*color: transparent;
        text-shadow: none;
        max-width: 100%;
    }*/

    /* 4. THE TOOLTIP (The Overlay) */
/*.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -24px;*/ /* Adjust to float slightly above the title */
    /*left: -10px;*/
    /* --- THE FIX FOR WIDTH --- */
    /* 'max-content' forces the div to be as wide as the TEXT requires, 
       ignoring the 55% width of the parent container. */
    /*width: max-content;*/
    /* Optional: Set a hard limit so it doesn't go off the entire screen */
    /*max-width: 290px;
    white-space: normal;*/ /* Allow text to wrap naturally inside the tooltip */
    /* Styling */
    /*background-color: #fff;
    color: #2f2936;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 7px -3px 10px rgb(114 114 114 / 20%);*/ /* Stronger shadow for "overlay" feel */

    /*transition: opacity 0.2s ease;
    z-index: 9999;
}

    .featured-card-title:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }*/


/* --- Price & Location Row --- */
.meta-row {
    display: flex;
    align-items: center; /* Vertically center them */
    gap: 15px; /* Gap between Price and Location */
    margin-bottom: 1rem;
}

.featured-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #2f2936; /* Professional Blue (or use your brand color) */
    letter-spacing: -0.5px;
}

.card-location {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Stats Box (Beds, Sqft) - Modern Look --- */
.stats-container {
    width: 270px;
    background-color: #f8fafc; /* Very light grey bg */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-item {
    font-size: 0.85rem;
    color: #475569;
    
    flex-direction: column; /* Stack Label and Value if needed, or keep inline */
    line-height: 1.2;
}

    .stat-item strong {
        font-size: 0.9rem;
        color: #1e293b;
        font-weight: 700;
    }

/* --- Amenities Badges (Crisp) --- */
.amenity-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Subtle depth */
}

/* --- NEW: Carousel Button Styles --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: #333;
}

    .carousel-btn:hover,
    .carousel-btn:focus {
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        color: #000;
        outline: none;
    }

    .carousel-btn.prev {
        left: -21px; /* Adjust as needed */
    }

    .carousel-btn.next {
        right: -38px; /* Adjust as needed */
    }

    .carousel-btn svg {
        width: 20px; /* Adjust icon size */
        height: 20px;
    }


/*.card-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transition: none;
}*/
.card-status {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 0 12px 0 12px;
    position: absolute;
    top: 0px;
    right: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

    .card-status.rent {
        background-color: rgba(52, 199, 89, 0.9); /* Yellow/Orange for Sale */
    }

    .card-status.sale {
        background-color: rgba(0, 122, 255, 0.9); /* Green for Rent */
    }

/* Container */
.home-card-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: -0.5rem;
    color: #444;
    font-size: 0.82rem;
}

/* Icon wrapper */
.icon-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

/* REFINED PROFESSIONAL COLORS */
.icon-blue {
    color: #1e40af !important;  
}

.icon-purple {
    color: #6d28d9 !important;
}

.icon-orange {
    color: #b45309 !important;
}

.icon-teal {
    color: #0f766e !important;  
}

.icon-green {
    color: #15803d !important;  
}
.icon-location {
    color: #e36c20 !important;
}

/* Default icon size */
.icon-item i {
    font-size: 0.9rem;
}
.home-card-price {
    font-size: 1.15rem; /* Slightly larger than text */
    font-weight: 700; /* Bold */
    color: #111827; /* Dark Charcoal (looks sharper than pure black) */
    margin-top: 0.5rem;
    letter-spacing: -0.02em; /* Makes numbers look tighter/better */
    display: flex;
    align-items: baseline; /* Aligns symbol with text base */
    gap: 4px;
}

/* Specific styling for the Rupee symbol */
.currency-symbol {
    font-weight: 400; /* Lighter weight for symbol */
    color: #6b7280; /* Grey color for symbol so number pops */
    font-size: 1rem;
}

/* Specific styling for the Unit (Lacs/Cr) */
.price-unit {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Footer of HomePage Cards */
/*.home-card-footer {
    background-color:grey;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

    .home-card-footer .agent-logo {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 8px;
        border: 1px solid #ddd;
    }

    .home-card-footer .agent-name {
        font-weight: 600;
        color: #333;
    }
*/
/* Deep Navy Footer styling like reference image */
.home-card-footer {
    background-color: #18549a; /* Professional Deep Navy */
    padding: 8px 16px; /* Balanced padding */
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    /* Rounded corners at the bottom only, to match the card shape */
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    /* Optional: Ensure it sticks to bottom if card height varies */
    margin-top: auto;
}

    /* Logo styling */
    .home-card-footer .agent-logo {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        /* A subtle white border makes the logo pop against dark blue */
        border: 1.5px solid rgba(255, 255, 255, 0.8);
    }

    /* Text styling */
    .home-card-footer .agent-name {
        font-weight: 600;
        font-size: 0.9rem;
        color: #ffffff; /* White text is essential on Navy background */
        letter-spacing: 0.02em;
        text-transform: capitalize;
    }

:root {
    --error-accent: #e11d48; /* Sophisticated Rose/Crimson */
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
}

/* Modal Container Styling */
.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

/* Refined Header */
.error-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    background: white;
}

.modal-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

/* Custom Icon Circle */
.error-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #fff1f2;
    color: var(--error-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #ffe4e6;
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.2);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(225, 29, 72, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

.modal-body {
    padding: 2rem;
}

.error-heading {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.error-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons Styling */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-primary-error {
    background-color: var(--error-accent);
    border: none;
    color: white;
}

    .btn-primary-error:hover {
        background-color: #be123c;
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
        color: white;
    }

.btn-outline-custom {
    border: 1.5px solid #e2e8f0;
    background: white;
    color: var(--text-main);
}

    .btn-outline-custom:hover {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        transform: translateY(-2px);
    }

.btn-close:focus {
    box-shadow: none;
}

/* Decoration */
.modal-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    pointer-events: none;
}