/* Color Palette Overrides */
:root {
    --bs-primary: #1b5e20; /* Deep Rich Green aligned with Avantika Greens */
    --bs-primary-rgb: 27, 94, 32;
    --bs-dark: #0f172a; /* Slate Dark background */
    --bs-dark-rgb: 15, 23, 42;
    --brand-green: #1b5e20; /* Consolidated color tracking variable */
}

/* Base Adjustments */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Dynamic Responsive Header Offset for Contact Page */
body.contact-page {
    padding-top: 130px;
}
@media (max-width: 991.98px) {
    body.contact-page { padding-top: 170px; }
}
@media (max-width: 767.98px) {
    body.contact-page { padding-top: 155px; }
}

/* Navigation button customization */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0f3d14 !important;
    border-color: #0f3d14 !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* --- Brand Image Logo Styling --- */
.navbar-brand img {
    height: 50px; /* Aligned with your local image size fallback */
    width: auto;  /* Maintains original image aspect ratio */
}
@media (min-width: 768px) {
    .navbar-brand img {
        height: 70px; /* Scale up nicely for desktop headers */
    }
}

/* Carousel Slider CSS */
#hero-carousel {
    height: 75vh;
    min-height: 550px;
    position: relative;
    overflow: hidden;
    margin-top: 104px; /* Matches the approximate combined height of both navbar tiers */
}

#hero-carousel .carousel-item {
    height: 75vh;
    min-height: 550px;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Search Widget Positioning & Overlay */
.search-widget-container {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.filter-box {
    border-radius: 12px !important;
    border-bottom: 5px solid var(--bs-primary);
}

/* Responsive Scaling for Carousel Texts */
@media (max-width: 768px) {
    #hero-carousel, #hero-carousel .carousel-item {
        height: 60vh;
        min-height: 450px;
    }
    #hero-carousel {
        margin-top: 140px; /* Responsive buffer for stacked layout on mobile */
    }
    .carousel-caption h1 {
        font-size: 2rem !important;
    }
    .carousel-caption p {
        font-size: 0.95rem !important;
    }
    .search-widget-container {
        margin-top: -40px;
    }
}

/* Custom Plots Cards styling */
.plot-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
}
.plot-card img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.plot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}
.plot-card:hover img {
    transform: scale(1.05);
}

/* Hover effects for features */
.hover-shadow {
    transition: all 0.3s ease;
    background: #ffffff;
}
.hover-shadow:hover {
    transform: scale(1.05);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08)!important;
    border-color: var(--bs-primary) !important;
}

/* --- Header & Two-Tier Navbar Customization --- */
header.fixed-top {
    z-index: 1030;
    transition: all 0.3s ease;
}

/* 1. Top Utility Bar styling */
.top-bar {
    background-color: #1c4425; 
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-bar a {
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
}

.top-bar .hover-opacity:hover {
    opacity: 0.75;
}

/* 2. Main Navigation Bar styling */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eef2f6;
}

.navbar-brand {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Nav links styling */
.navbar-nav .nav-link {
    color: #4b5563 !important;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: #1c4425 !important;
}

/* Active Page highlight */
.navbar-nav .nav-link.active-link {
    color: #1c4425 !important;
}

/* 3. Button Customization styling */
.btn-login {
    background-color: #000000;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-login:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

.btn-signup {
    background-color: #1c4425;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-signup:hover {
    background-color: #2a5a37;
    transform: translateY(-1px);
}

/* Custom Status Colors requirements */
.status-available {
    background-color: #f0f2f5 !important;
    border: 1px solid #ced4da;
    color: #495057;
}
.status-booked {
    background-color: #fff3cd !important;
    border: 1px solid #ffeeba;
    color: #856404;
}
.status-purchased {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Smooth transitions for plot blocks */
.plot-block {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 100px;
}
.plot-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Breadcrumb banner background styling */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
}

/* Dynamic space mapping for fixed headers across screen breakpoints */
.header-spacer {
    height: 120px; /* Default Desktop spacer height */
}

@media (max-width: 991.98px) {
    .header-spacer {
        height: 115px; /* Fits tablet/mobile bar wraps */
    }
}

/* Core About Us Custom Feature Styling */
.timeline-card {
    border-left: 4px solid var(--brand-green);
    background: #ffffff;
    transition: transform 0.3s ease;
}
.timeline-card:hover {
    transform: translateX(5px);
}
.feature-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(36, 90, 54, 0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.value-card {
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    border-color: var(--brand-green);
}

/* Contact Page Custom Element Components */
.contact-channel-card {
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.contact-channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--bs-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05) !important;
}
.icon-wrapper {
    width: 55px;
    height: 55px;
    background-color: rgba(27, 94, 32, 0.08);
    color: var(--bs-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.map-viewport-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ced4da;
    height: 350px;
    width: 100%;
}
@media (min-width: 992px) {
    .map-viewport-wrapper {
        height: 450px;
    }
}

.hover-primary {
    transition: color 0.2s ease-in-out;
}
.hover-primary:hover {
    color: #1b5e20 !important; /* Matches Bootstrap primary blue color */
}