:root {
    --primary-green: #1F6B2A;
    --secondary-green: #7FBF32;
    --gold: #C8A542;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-text: #222222;
    --gray: #6C757D;
    --border-radius: 12px;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(31, 107, 42, 0.4);
    color: var(--white);
}

.btn-outline-custom {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: var(--border-radius);
    padding: 8px 24px;
    font-weight: 600;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Header & Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    color: var(--dark-text) !important;
    font-weight: 600;
    position: relative;
    padding: 8px 0 !important;
    margin: 0 12px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-green) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.hover-gold {
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    height: 80vh;
    position: relative;
    color: var(--white);
    background-color: #333; /* Fallback color */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--gold);
}

/* Search Box (Glassmorphism) */
.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
}

.hero-search-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 10;
    width: 100%;
}

@media (max-width: 991px) {
    .hero-search-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: -30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        height: auto !important;
        min-height: 80vh;
        padding-bottom: 60px;
    }
    
    .hero-content {
        padding-top: 15vh;
        text-align: center;
    }
    
    .hero-content .d-flex {
        justify-content: center;
        flex-direction: column;
    }
}

.search-box .form-control, .search-box .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--secondary-green);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Property Cards */
.property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

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

.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.badge-featured {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-premium {
    background-color: var(--gold);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-urgent {
    background-color: #dc3545;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-price {
    color: var(--primary-green);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 15px 0 5px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.property-location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

.agent-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Call to Action Sections */
.cta-box {
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-sell {
    background: linear-gradient(135deg, var(--primary-green), #144d1e);
}

.cta-invest {
    background: linear-gradient(135deg, var(--gold), #a58632);
}

.cta-box h3 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* Stats Section */
.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.stat-info h4 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--dark-text);
}

.stat-info p {
    margin: 0;
    color: var(--gray);
}

/* Footer */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* Utilities */
.text-primary-custom { color: var(--primary-green) !important; }
.text-secondary-custom { color: var(--secondary-green) !important; }
.text-gold { color: var(--gold) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }

/* Spacing */
.section-padding { padding: 80px 0; }
.mt-100 { margin-top: 100px; } /* For content below absolute search box */

@media (max-width: 991px) {
    .search-box {
        position: relative;
        transform: none;
        margin-top: -30px;
        margin-bottom: 40px;
    }
    .mt-100 { margin-top: 0; }
    .hero-content h1 { font-size: 2.5rem; }
}
