:root {
    /* Palette */
    --primary-blue: #003366; 
    --accent-green: #28a745;
    --luxury-gold: #D4AF37; /* The "Fancy" touch */
    --soft-bg: #fdfdfd;
    --text-dark: #2c3e50;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--soft-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif; /* Luxury Font */
}

/* --- Navbar (Glass Effect) --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}
.navbar-brand span.green { color: var(--accent-green); }

.nav-link {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 10px;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--luxury-gold);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(45deg, var(--accent-green), #218838);
    color: white !important;
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: transform 0.3s;
    border: none;
    text-decoration: none;
}
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.6));
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 80%;
    max-width: 900px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Floating Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 100px;
    display: flex;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.search-input {
    border: none;
    background: white;
    border-radius: 50px;
    padding: 15px 25px;
    width: 100%;
    outline: none;
}
.btn-search {
    border-radius: 50px;
    padding: 15px 40px;
    background: var(--luxury-gold);
    color: white;
    border: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-search:hover {
    background: #b5952f;
}

/* --- Section Titles --- */
.section-padding { padding: 100px 0; }
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.section-header .divider {
    height: 3px;
    width: 80px;
    background: var(--luxury-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- Top Office Locations (New Section) --- */
.location-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    color: white;
    transition: 0.3s;
}
.location-card:hover img { transform: scale(1.1); }
.location-card h4 { font-size: 1.8rem; margin-bottom: 5px; color: var(--luxury-gold); }
.location-card p { font-size: 0.9rem; opacity: 0.9; margin: 0; }

/* --- Featured Properties (Luxury Cards) --- */
.property-card {
    border: none;
    border-radius: 15px;
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
}
.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.prop-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.prop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --- Gallery (Masonry Style) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    display: block;
}
.gallery-item:hover img { filter: brightness(0.8); transform: scale(1.05); }

/* --- Contact Form (Clean) --- */
.contact-section {
    background-color: white;
    position: relative;
}
.form-floating input, .form-floating textarea {
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 10px;
}
.form-floating label { color: #999; }
.form-control:focus {
    box-shadow: none;
    border-color: var(--luxury-gold);
    background: white;
}

/* --- Footer --- */
footer {
    background: var(--primary-blue);
    color: white;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 20px; display: block; color: white; text-decoration: none;}
.footer-logo span { color: var(--accent-green); }
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
}
.social-btn:hover { background: var(--luxury-gold); color: white; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .search-box { flex-direction: column; padding: 10px; border-radius: 20px; background: white;}
    .search-input { margin-bottom: 10px; border: 1px solid #eee; }
    .btn-search { width: 100%; }
}

/* --- WhatsApp Floating Button (Responsive) --- */
.whatsapp-float {
    position: fixed;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%; /* Circle shape exact rakhne ke liye */
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999; /* Ensure karein ye sabse upar rahe */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* Blinking Pulse Animation */
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1da851;
    color: #FFF;
}

.whatsapp-icon {
    /* Icon ko center karne ke liye */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Responsive Breakpoints --- */

/* 1. Large Screens (Desktops/Laptops) */
@media (min-width: 992px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 40px;
        right: 40px;
        font-size: 32px;
    }
}

/* 2. Medium Screens (Tablets / Small Laptops) */
@media (max-width: 991px) and (min-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 30px;
        right: 30px;
        font-size: 28px;
    }
}

/* 3. Small Screens (Mobiles) */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

/* 4. Extra Small Screens (Very old phones / Folded devices) */
@media (max-width: 350px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}

/* Pulse Animation Keyframes (Same as before) */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}



/* --- Property Details Page Styles --- */

.bg-gold { background-color: var(--luxury-gold); color: white; }
.text-gold { color: var(--luxury-gold); }
.bg-primary-dark { background-color: var(--primary-blue); }
.font-playfair { font-family: 'Playfair Display', serif; }
.tracking-wider { letter-spacing: 2px; }

/* Hero Section */
.hero-img {
    height: 60vh;
    object-fit: cover;
}
.overlay-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
.hero-text-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
}
.text-shadow { text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }

/* Quick Highlights */
.border-top-gold { border-top: 4px solid var(--luxury-gold) !important; }

/* Feature Box */
.feature-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}
.feature-box:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px; /* Adjust based on navbar height */
}

/* Map */
.map-container iframe { filter: grayscale(100%) invert(0%); } /* Optional: Makes map look minimal */

/* --- Category Showcase Cards --- */

.category-card {
    background: #fff;
    padding: 30px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative; /* For stretched-link */
    
    /* Flexbox to push button to bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover Effect: Lift up and add Gold Border */
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--luxury-gold);
}

.cat-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background: #fdfbf7; /* Very light gold tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--luxury-gold);
    transition: 0.3s;
}

/* On Card Hover, Icon Box becomes Gold */
.category-card:hover .cat-icon-box {
    background: var(--luxury-gold);
    color: #fff;
}

.cat-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* --- Outline Gold Button --- */
.btn-outline-gold {
    border: 2px solid var(--luxury-gold);
    color: var(--luxury-gold);
    font-weight: 600;
    background: transparent;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-outline-gold:hover {
    background: var(--luxury-gold);
    color: #fff;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.4);
}

/* Divider Centering */
.divider.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Property Card Styling --- */
.property-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Important for carousel alignment */
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.prop-img-wrapper {
    position: relative;
    height: 220px; /* Fixed height for images */
    overflow: hidden;
}

.prop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s ease;
}

.property-card:hover .prop-img-wrapper img {
    transform: scale(1.05);
}

.badge-luxury {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--luxury-gold); /* Or #c5a059 */
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.card-body {
    padding: 20px;
    flex-grow: 1; /* Pushes footer/features down if text varies */
    display: flex;
    flex-direction: column;
}

.prop-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.prop-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark); /* Or #0f1e32 */
    margin: 10px 0;
}

.prop-features {
    margin-top: auto; /* Pushes this to the bottom of the card */
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}