:root {
    --forest: #113812;
    --mint: #6adb6c;
    /* Deep Luxury Green */
    --accent-green: #2d6a4f;
    --border: #e9ecef;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    --primary-green: #199a1b;
    --primary-color: #1b4332;
    --dark-green: #044805;
    --light-bg: #f8fafc;
    --text-gray: #6b7280;

    --text: #4b5563;

    --text-main: #333333;
    --text-light: #666666;
    --bg-body: #f4f7f6;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #f8f9fa;
    color: #1a1a1a;
    margin: 0;
    overflow-x: hidden;
}

/* btn success */
/* Override Bootstrap .btn-success with brand color #199a1b */
.btn-success {
    background-color: #199a1b !important;
    border-color: #199a1b !important;
    color: #ffffff !important;
    transition: all 0.2s ease-in-out;
}

/* Hover State */
.btn-success:hover {
    background-color: #147c15 !important; /* Slightly darker shade for natural hover contrast */
    border-color: #147c15 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(25, 154, 27, 0.25) !important; /* Elegant green shadow glow */
}

/* Focus / Active State (When clicked or navigated via keyboard) */
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active {
    background-color: #116812 !important; /* Even deeper shade for compression feedback */
    border-color: #116812 !important;
    color: #ffffff !important;
    /* Custom focus ring box-shadow utilizing a 40% transparent tint of your color */
    box-shadow: 0 0 0 0.25rem rgba(25, 154, 27, 0.4) !important;
}

/* Disabled State protection */
.btn-success:disabled,
.btn-success.disabled {
    background-color: #199a1b !important;
    border-color: #199a1b !important;
    opacity: 0.65;
}
/* btn success */
/* --- 1. MODERN PILL-HOVER NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--forest) !important;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    font-weight: 600;
    color: var(--forest) !important;
    font-size: 0.92rem;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

/* Hover Effect: The Floating Pill */
.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 183, 136, 0.1);
    /* Soft Mint */
    border-radius: 50px;
    transform: scale(0.7);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before {
    transform: scale(1);
    opacity: 1;
}

.nav-link:hover {
    color: var(--mint) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 12px;
    margin-top: 10px !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f0fdf4;
    color: var(--mint);
}

/* --- 2. GRID / LIST TOGGLE BAR --- */
.filter-section {
    background: white;
    padding: 18px 25px;
    border-radius: 24px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.toggle-group {
    background: #f8f9fa;
    padding: 5px;
    border-radius: 14px;
    display: flex;
}

.view-btn {
    border: none;
    background: transparent;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #adb5bd;
    transition: var(--transition);
}

.view-btn.active {
    background: white;
    color: var(--forest);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.hero-slider {
    height: 80vh;
    background: #000; /* Fallback */
    position: relative;
    overflow: hidden;
}

/* Added a gradient overlay so text is always readable */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Darken the image slightly */
    filter: brightness(0.7);
    transition: transform 8s ease-out;
}

/* Ken Burns Effect */
.swiper-slide-active .slide-bg {
    transform: scale(1.15);
}

.slide-content {
    position: relative;
    z-index: 10;
    color: white;
    /* Centering the content vertically */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Modern Pill Pagination */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px !important;
    border-radius: 12px !important;
}

/* 1. Define the Animation */
@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-1%, -1%);
    }
}

.hero-slider {
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8); /* Improves text contrast */
}

/* 2. Trigger animation ONLY when slide is active */
.swiper-slide-active .slide-bg {
    animation: kenburns 10s ease-out forwards;
}

/* 3. Smooth Content Fade-in */
.slide-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.5s; /* 0.5s delay for text */
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- VIEW TOGGLE --- */
.toggle-group {
    background: #fff;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.view-btn {
    border: none;
    background: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #adb5bd;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--forest);
    color: white;
}

/* --- PROPERTY CARDS BASE --- */
.property-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.img-box {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.property-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.property-card:hover .property-img {
    transform: scale(1.08);
}

.status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--forest);
    z-index: 2;
}

.content-box {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest);
}

/* --- LIST MODE: PREMIUM DESKTOP --- */
@media (min-width: 992px) {
    .list-mode .property-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .list-mode .property-card {
        flex-direction: row;
        padding: 18px;
        align-items: center;
    }

    .list-mode .img-box {
        width: 380px;
        height: 250px;
        border-radius: 20px;
        margin-right: 30px;
    }

    .list-mode .property-img {
        height: 100%;
    }

    .list-mode .content-box {
        padding: 0;
        border-left: 1px solid var(--border);
        padding-left: 30px;
    }

    .list-mode .price-text {
        font-size: 2rem;
    }
}

/* --- LIST MODE: PREMIUM MOBILE STRIP --- */
@media (max-width: 991px) {
    .list-mode .property-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .list-mode .property-card {
        flex-direction: row;
        height: 130px;
        padding: 12px;
        align-items: center;
        border-radius: 22px;
    }

    .list-mode .img-box {
        width: 110px;
        height: 106px;
        border-radius: 16px;
    }

    .list-mode .property-img {
        height: 100%;
    }

    .list-mode .content-box {
        padding: 0 15px;
        justify-content: center;
    }

    .list-mode .property-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .list-mode .details-row,
    .list-mode .btn-details,
    .list-mode .status-badge {
        display: none;
    }

    .list-mode .price-text {
        font-size: 1.2rem;
    }
}

/* --- FOOTER --- */
footer {
    background: var(--forest);
    color: rgba(255, 255, 255, 0.6);
    padding: 100px 0 40px;
    padding-top: 0px;
    border-radius: 60px 60px 0 0;
    margin-top: 100px;
}

.footer-h {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--mint);
    transform: translateX(5px);
}

.news-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    color: #fff;
    width: 100%;
    outline: none;
}

.news-input:focus {
    border-color: var(--mint);
}

/* PAGE TITLE */

.page-header {
    position: relative;
    /* background-image: url(https://images.unsplash.com/photo-1600607687940-47a0f925901e?auto=format&fit=crop&w=1920&q=80); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0 100px 0;
    margin-top: -85px;
    min-height: 400px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgb(52 161 54 / 62%), rgb(101 134 102)),
        url(https://images.unsplash.com/photo-1613490493576-7fde63acd811?q=80&w=2071&auto=format&fit=crop)
            center / cover;
}

/* Dark Overlay using your --forest color */
.header-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(8, 28, 21, 0.9),
        rgba(8, 28, 21, 0.4)
    );
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* Breadcrumb Customization for Image BG */
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 12px;
}

.hover-mint:hover {
    color: var(--mint) !important;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px 0;
        background-attachment: scroll;
    }
}
