:root {
    --primary-color: #026C51; /* 8BHK Dark Green */
    --primary-hover: #04b388;
    --bg-color: #0f1c1a; /* Dark background */
    --text-main: #ffffff;
    --text-muted: #A1A8B6;
    --card-bg: rgba(20, 40, 35, 0.4);
    --border-color: rgba(255, 255, 255, 0.12);
    --accent: #E8B451; /* Gold accent */
    --success: #10b981;
    
    --font-main: 'Sora', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: rgba(15, 28, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Michroma', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.nav-item.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.badge {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 1rem;
    position: absolute;
    top: -8px;
    right: -25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
}

.btn-admin {
    background-color: var(--text-main);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-admin:hover {
    background-color: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


/* Mobile Menu */
.mobile-menu-toggle { display: none; }
.hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 21px; cursor: pointer; z-index: 101; margin-left: auto;
}
.hamburger span {
    display: block; height: 3px; width: 100%; background-color: var(--text-main);
    border-radius: 3px; transition: all 0.3s ease;
}
/* Ensure proper alignment on desktop if styles exist inline for mobile */
.nav-links {
    display: flex; gap: 2rem; align-items: center; justify-content: flex-end; width: 100%;
}

/* Main Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background: linear-gradient(to right, rgba(2, 108, 81, 0.15), rgba(232, 180, 81, 0.05));
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Michroma', sans-serif;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8b451 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 2.5rem;
}

/* Search Filters */
.search-container {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-color);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.filter-group select {
    padding-right: 2rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    margin-top: 1.5rem; /* align with inputs that have labels */
}

.btn-search:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Properties Grid */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.prop-badge {
    background: rgba(15, 28, 26, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    text-transform: capitalize;
    border: 1px solid var(--border-color);
}

.prop-badge.rent {
    color: var(--primary-color);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-features {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.feature-icon {
    font-weight: bold;
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    grid-column: 1 / -1;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.empty-state p {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.property-card {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 1002; position: relative; }
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 280px;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(15, 28, 26, 0.98); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px); flex-direction: column;
        justify-content: center; align-items: center; gap: 2rem;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, opacity 0.4s; z-index: 1001;
        box-shadow: -10px 0 40px rgba(0,0,0,0.6); border-left: 1px solid var(--border-color);
    }
    .mobile-menu-toggle:checked ~ .nav-links { transform: translateX(0); visibility: visible; opacity: 1; pointer-events: auto; }
    .mobile-menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .mobile-menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    footer { text-align: center; }
    footer > div:first-child > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
    footer > div:first-child ul { align-items: center; }
    footer > div:first-child .logo { justify-content: center; }
    footer > div:first-child div[style*="display: flex; gap: 1rem;"] { justify-content: center; }
    footer > div:last-child { justify-content: center !important; flex-direction: column; text-align: center; gap: 1rem; }

    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-search {
        margin-top: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
}

html, body { overflow-x: hidden; width: 100%; max-width: 100vw; overscroll-behavior-x: none; }

/* Blog Section Styles */
.blog-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background: linear-gradient(to right, rgba(2, 108, 81, 0.15), rgba(232, 180, 81, 0.05));
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Michroma', sans-serif;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8b451 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 180, 81, 0.4); /* Gold hover effect */
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.blog-card-footer svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-footer svg {
    transform: translateX(5px);
}

/* Single Blog Reading Container */
.blog-reading-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    font-family: 'Michroma', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.blog-post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.blog-content {
    color: #cbd5e1; /* Slightly brighter than muted for readability */
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    color: var(--text-main);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--accent); /* Brand gold */
}

.blog-content h3 {
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 180, 81, 0.3);
    transition: all 0.2s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--accent);
}

/* Blog FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.25rem 1.5rem 1.25rem 3rem;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: '+';
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-main);
    line-height: 1;
}

.faq-question::after {
    content: '›';
    font-size: 1.5rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    line-height: 1;
}

.faq-item[open] > .faq-question {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item[open] > .faq-question::before {
    content: '−';
}

.faq-item[open] > .faq-question::after {
    content: 'v';
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    transform: translateY(-50%);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.3);
}

.faq-answer p {
    margin: 0;
}