:root {
    --color-primary: #9fcc3b;
    --color-primary-dark: #8cb534;
    --color-text-dark: #231f20;
    --color-text-light: #ffffff;
    --color-bg-light: #f7f7f7;
    --color-border: #e0e0e0;
    --font-family: 'Inter', sans-serif;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-dark);
    line-height: 1.5;
}

/* Header */
.main-header {
    height: var(--header-height);
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-text-dark);
    transition: color 0.2s;
}

.main-nav button:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    width: 100%;
    background-image: url('../assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-bottom: 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    margin-top: -60px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero h1 .highlight {
    color: #fff;
    display: block;
}

.hero-search {
    background: white;
    padding: 6px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 60px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    padding: 0 24px;
}

.search-input-wrapper input {
    width: 100%;
    height: 54px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--color-text-dark);
    font-family: inherit;
}

.search-input-wrapper input::placeholder {
    color: #757575;
}

.search-btn {
    background-color: var(--color-primary);
    border: none;
    height: 54px;
    width: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s;
    box-shadow: 0 2px 10px rgba(159, 204, 59, 0.4);
}

.search-btn:hover {
    background-color: var(--color-primary-dark);
}

.hero-subtext {
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtext h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtext p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 42px;
    }

    .header-container {
        padding: 0 20px;
    }
}

/* Markets Section */
.markets-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.markets-header {
    margin-bottom: 40px;
}

.markets-header h3 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.markets-header .highlight-text {
    font-weight: 700;
}

.markets-header p {
    font-size: 18px;
    color: #666;
}

.market-categories {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.category-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #888;
    padding-bottom: 4px;
    transition: all 0.2s;
}

.category-btn.active,
.category-btn:hover {
    color: var(--color-text-dark);
    border-bottom: 2px solid var(--color-text-dark);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.market-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
    display: flex;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 60%;
    background-size: cover;
    background-position: center;
}

.card-content {
    width: 40%;
    background: white;
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: left;
}

.card-content h4 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.section-footer {
    text-align: center;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-footer span {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.section-footer h4 {
    font-size: 28px;
    font-weight: 700;
}

.cta-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-btn:hover {
    background-color: var(--color-primary-dark);
}

/* Why Lease Section */
.why-lease-section {
    padding: 80px 0;
    background-color: white;
}

.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.feature-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-tab {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.feature-tab:hover {
    border-color: var(--color-primary);
}

.feature-tab.active {
    border-color: var(--color-primary);
    background-color: #f0f7e6;
    /* Light green tint */
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tab-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--color-dark);
}

.tab-icon {
    font-size: 20px;
}

.tab-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.split-image {
    flex: 1;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.image-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.image-overlay-content.active {
    opacity: 1;
    pointer-events: auto;
}

.image-overlay-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.image-overlay-content p {
    margin-bottom: 20px;
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .split-image {
        width: 100%;
        height: 300px;
    }
}

/* Footer */
.main-footer {
    background-color: #231f20;
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 30px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Search Page Styles */
.filter-bar {
    position: sticky;
    top: 80px;
    /* Below header */
    z-index: 99;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-search {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.filter-search input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.filter-search .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.filter-options {
    display: flex;
    gap: 12px;
    flex: 1;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-dark);
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.more-filters {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.view-toggle {
    display: flex;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 8px;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
}

.toggle-btn.active {
    background: white;
    color: var(--color-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-layout {
    display: flex;
    height: calc(100vh - 146px);
    /* Fill remaining height (Header+Filter) */
    overflow: hidden;
}

.map-panel {
    flex: 4;
    /* 40% */
    background: #e0e0e0;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #aadaff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 50px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-message {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.listings-panel {
    flex: 6;
    /* 60% */
    overflow-y: auto;
    padding: 24px 40px;
    background: #f9f9f9;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.listings-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.sort-options select {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-left: 8px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    /* Start vertical by default for these cards */
    height: auto;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.listing-card .card-image-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.listing-card .card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.badge.new {
    background: #00C853;
}

.badge.special {
    background: #FFD600;
    color: black;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-top: 4px;
}

.listing-card .card-details {
    padding: 16px;
    width: 100%;
}

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.card-price span {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.card-address {
    font-size: 14px;
    color: var(--color-dark);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-specs {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.card-amenities {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.apply-btn {
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-btn:hover {
    background: var(--color-primary);
    color: white;
}

@media (max-width: 900px) {
    .filter-options {
        display: none;
    }

    .filter-container {
        padding: 0 20px;
    }

    .search-layout {
        flex-direction: column;
        height: auto;
    }

    .map-panel {
        height: 200px;
        flex: none;
        order: -1;
    }

    .listings-panel {
        flex: none;
        padding: 20px;
    }

    .filter-bar {
        top: 0;
    }
}


/* Property Details Page */
.property-page {
    background-color: #f7f7f7;
    padding-bottom: 80px;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.back-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
}

.property-gallery {
    max-width: 1400px;
    margin: 0 auto 40px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: 500px;
}

.gallery-main {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    /* Each takes half height roughly */
    object-fit: cover;
    border-radius: 12px;
}

.gallery-more {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
}

/* Property Content Layout */
.property-content-container {
    max-width: 1200px;
    /* Slightly narrower for content focus */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
    position: relative;
}

.property-details {
    flex: 1;
}

.property-header {
    margin-bottom: 40px;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.property-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.property-city {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

.property-specs-large {
    display: flex;
    gap: 40px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
}

.spec-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.property-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.property-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.property-section p {
    margin-bottom: 16px;
    color: #444;
    line-height: 1.6;
}

.amenities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    list-style: none;
}

.amenities-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenities-list li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: 700;
}

/* Sidebar */
.property-sidebar {
    width: 350px;
    position: sticky;
    top: 100px;
    /* Below header */
    height: fit-content;
}

.sidebar-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.sidebar-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.price-period {
    color: #666;
    font-weight: 500;
}

.sidebar-status {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #00C853;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00C853;
    border-radius: 50%;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.full-width {
    width: 100%;
}

.secondary-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: #f7f7f7;
}

.sidebar-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* Similar Homes */
.similar-homes-section {
    padding: 60px 0;
    background: #f7f7f7;
}

.similar-homes-section h3 {
    font-size: 24px;
    margin-bottom: 32px;
    padding: 0 40px;
}

@media (max-width: 900px) {
    .property-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-grid {
        display: none;
        /* Simplify for mobile, just show main */
    }

    .property-content-container {
        flex-direction: column;
    }

    .property-specs-large {
        gap: 20px;
    }
}


/* Generic Content Pages */
.page-hero {
    background-color: #231f20;
    color: white;
    padding: 80px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 40px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.generic-content {
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
    color: #444;
    line-height: 1.8;
}

.generic-content h2 {
    font-size: 28px;
    color: var(--color-text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.generic-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.generic-content ul,
.generic-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.generic-content li {
    margin-bottom: 8px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.content-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.content-card h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
}