@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Luxury Eco-Living Color Palette */
    --primary-green: #2d5016;      /* Deep forest green */
    --secondary-green: #4a7c59;    /* Sage green */
    --accent-green: #6b8e23;       /* Olive green */
    --light-green: #a8c09a;        /* Soft mint */
    --pale-green: #f0f4f0;         /* Very light green */
    
    --gold: #d4af37;               /* Luxury gold */
    --light-gold: #f4e4bc;         /* Soft gold */
    --warm-gold: #b8860b;          /* Dark gold */
    
    --earth-brown: #8b4513;        /* Rich earth brown */
    --warm-beige: #f5f5dc;         /* Warm beige */
    --cream: #faf8f3;              /* Cream white */
    
    --text-dark: #1a1a1a;          /* Deep charcoal */
    --text-medium: #4a4a4a;        /* Medium gray */
    --text-light: #6b7280;         /* Light gray */
    
    --shadow-soft: 0 4px 20px rgba(45, 80, 22, 0.08);
    --shadow-medium: 0 8px 30px rgba(45, 80, 22, 0.12);
    --shadow-strong: 0 12px 40px rgba(45, 80, 22, 0.15);
}

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--pale-green) 100%);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px; /* Max width for content */
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: rgba(250, 248, 243, 0.95);
    color: var(--text-dark);
    padding: 0;
    min-height: 80px;
    border-bottom: 1px solid rgba(168, 192, 154, 0.2);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.4em;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    margin-right: 48px;
    letter-spacing: -0.8px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(45, 80, 22, 0.1);
}

.logo:hover {
    color: var(--gold);
    transform: translateY(-1px);
}

.main-nav ul,
.secondary-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li,
.secondary-nav li {
    display: inline-block;
    margin-left: 32px;
}

.main-nav a,
.secondary-nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 12px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.secondary-nav a {
    color: var(--text-light);
    font-size: 0.9em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--accent-green) 100%);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.secondary-nav a:hover {
    color: var(--primary-green);
}

.main-nav a:hover::after {
    width: 100%;
}

.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, var(--accent-green) 100%);
    padding: 120px 0 100px 0;
    text-align: center;
    position: relative;
    color: var(--cream);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.15) 0%, rgba(74, 124, 89, 0.1) 50%, rgba(107, 142, 35, 0.12) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    color: var(--cream);
    max-width: 1000px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
    font-size: 4.5em;
    margin-bottom: 24px;
    letter-spacing: -2px;
    font-weight: 600;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero .hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4em;
    color: var(--light-gold);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

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

.hero-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 48px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.hero-nav li {
    padding: 0;
}

.hero-nav a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2em;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hero-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.hero-nav a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.hero-nav a:hover::before {
    left: 100%;
}

.search-bar.hero-search {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    background: rgba(250, 248, 243, 0.95);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    position: relative;
    align-items: center;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.search-bar.hero-search input {
    border: none;
    background: transparent;
    padding: 20px 24px;
    font-size: 1.3em;
    flex-grow: 1;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
}

.search-bar.hero-search input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.search-bar.hero-search .filter-button {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    color: var(--primary-green);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 8px;
}

.search-bar.hero-search .filter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.search-bar.hero-search .filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.search-bar.hero-search .filter-button:hover::before {
    left: 100%;
}

.search-bar.hero-search .filter-button svg {
    transition: transform 0.3s ease;
}

.search-bar.hero-search .filter-button:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.search-bar.hero-search button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--cream);
    border: none;
    padding: 18px 32px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 12px;
    margin: 8px;
}

.search-bar.hero-search button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.search-bar.hero-search button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.4);
}

.search-bar.hero-search button:hover::before {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--light-gold);
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--gold);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrow {
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Interactive Map Search Section */
.map-search-section {
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--warm-beige) 100%);
    padding: 48px 0 56px 0;
    position: relative;
    overflow: hidden;
}

.map-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mapPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23a8c09a" opacity="0.1"/><circle cx="10" cy="10" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="40" cy="40" r="0.5" fill="%234a7c59" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23mapPattern)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.map-search-section .container {
    position: relative;
    z-index: 1;
}

.map-search-header {
    text-align: center;
    margin-bottom: 28px;
}

.map-search-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4em;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -1px;
}

.explore-links-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.explore-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 24px 40px;
    background: var(--cream);
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.25);
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.explore-link-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.explore-link-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    margin-bottom: 4px;
}

.explore-link-desc {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-medium);
}

.map-search-container {
    background: var(--cream);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.map-search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-chip {
    background: var(--pale-green);
    color: var(--text-medium);
    border: 2px solid transparent;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s ease;
}

.filter-chip:hover::before {
    left: 100%;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 192, 154, 0.3);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--warm-gold) 100%);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.map-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 16px 20px;
    background: var(--pale-green);
    border-radius: 16px;
    border: 1px solid rgba(168, 192, 154, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 192, 154, 0.2);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-medium);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interactive-map {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(168, 192, 154, 0.2);
    position: relative;
}

.interactive-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Responsive Design for Map Section */
@media (max-width: 768px) {
    .map-search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-stats {
        justify-content: space-around;
        gap: 16px;
    }
    
    .stat-item {
        flex: 1;
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .interactive-map {
        height: 400px;
    }
}

/* Property Listings Section */
.property-listings-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--pale-green) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.property-listings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="listingsPattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="%23a8c09a" opacity="0.08"/><circle cx="15" cy="15" r="0.5" fill="%23d4af37" opacity="0.08"/><circle cx="45" cy="45" r="0.5" fill="%234a7c59" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23listingsPattern)"/></svg>');
    opacity: 0.6;
    z-index: 0;
}

.property-listings-section .container {
    position: relative;
    z-index: 1;
}

.listings-header {
    text-align: center;
    margin-bottom: 60px;
}

.listings-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2em;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -1px;
}

.listings-search-bar {
    display: flex;
    max-width: 600px;
    margin: 40px auto 0 auto;
    background: var(--cream);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(168, 192, 154, 0.2);
}

.listings-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 20px;
    font-size: 1em;
    color: var(--text-dark);
    outline: none;
}

.listings-search-bar input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--cream);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.property-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(168, 192, 154, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.property-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.property-card-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.property-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 0.95em;
    margin-bottom: 16px;
}

.property-card-location svg {
    color: var(--gold);
    width: 16px;
    height: 16px;
}

.property-card-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 16px;
}

.property-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.property-card-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    font-size: 0.9em;
}

.property-card-detail svg {
    color: var(--accent-green);
    width: 16px;
    height: 16px;
}

.property-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.property-card-feature {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card-actions {
    display: flex;
    gap: 12px;
}

.view-details-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--cream);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-details-btn:hover::before {
    left: 100%;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.save-btn {
    background: var(--pale-green);
    color: var(--primary-green);
    border: 2px solid var(--accent-green);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn:hover {
    background: var(--accent-green);
    color: var(--cream);
    transform: translateY(-2px);
}

.listings-footer {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--warm-gold) 100%);
    color: var(--primary-green);
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.1), transparent);
    transition: left 0.6s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* User Account Section */
.user-account-section {
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--warm-beige) 100%);
    padding: 80px 0;
    position: relative;
}

.user-account-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="accountPattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23a8c09a" opacity="0.1"/><circle cx="5" cy="5" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="35" cy="35" r="0.5" fill="%234a7c59" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23accountPattern)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.user-account-section .container {
    position: relative;
    z-index: 1;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.account-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(168, 192, 154, 0.2);
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.account-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pale-green);
}

.account-card-header svg {
    color: var(--gold);
    width: 32px;
    height: 32px;
}

.account-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    color: var(--primary-green);
    font-weight: 600;
    margin: 0;
}

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

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

.account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-medium);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.account-link svg {
    color: var(--accent-green);
    width: 16px;
    height: 16px;
}

.account-link:hover {
    background: var(--pale-green);
    color: var(--primary-green);
    transform: translateX(8px);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.location-link {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    background: var(--pale-green);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.location-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.location-link:hover::before {
    left: 100%;
}

.location-link:hover {
    background: var(--light-green);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 192, 154, 0.3);
}

.location-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 4px;
}

.property-count {
    font-size: 0.85em;
    color: var(--text-medium);
    font-weight: 500;
}

/* Responsive Design for Property Listings */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .listings-search-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Featured Properties Carousel */
.featured-properties {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-beige) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.featured-properties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23a8c09a" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%234a7c59" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.featured-properties .container {
    position: relative;
    z-index: 1;
}

.featured-properties h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2em;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -1px;
}

.featured-properties .section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--text-medium);
    margin-bottom: 60px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    padding: 10px 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-arrow:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow svg {
    color: #333333;
    transition: color 0.2s ease;
}

.carousel-arrow:hover svg {
    color: #689f38;
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

.featured-property-card {
    flex: 0 0 380px;
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.featured-property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(168, 192, 154, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.featured-property-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--gold);
}

.featured-property-card:hover::before {
    opacity: 1;
}

.featured-property-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

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

.featured-property-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.featured-property-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-property-location {
    color: var(--text-medium);
    font-size: 1em;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.featured-property-location svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.featured-property-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 16px 0;
    text-shadow: 0 2px 4px rgba(45, 80, 22, 0.1);
}

.off-grid-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    border-radius: 20px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9em;
    width: fit-content;
}

.off-grid-rating .rating-stars {
    display: flex;
    gap: 2px;
}

.off-grid-rating .star {
    width: 16px;
    height: 16px;
    fill: var(--primary-green);
}

.off-grid-rating .rating-text {
    font-size: 0.85em;
    font-weight: 700;
}

.featured-property-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 0 20px 0;
}

.featured-property-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--pale-green);
    border-radius: 12px;
    font-size: 0.9em;
    color: var(--text-medium);
    font-weight: 500;
    border: 1px solid rgba(168, 192, 154, 0.3);
}

.featured-property-detail svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
}

.featured-property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.featured-property-feature {
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--gold) 100%);
    color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.featured-property-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: -20px;
    }
    
    .carousel-next {
        right: -20px;
    }
    
    .featured-property-card {
        flex: 0 0 280px;
    }
    
    .featured-properties h2 {
        font-size: 2em;
    }
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Increased gap */
    padding: 30px 0;
}

.main-content {
    display: flex;
    flex: 3;
    gap: 30px; /* Increased gap */
    flex-wrap: wrap;
    order: 1;
}

#map {
    height: 500px; /* Taller map */
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 30px;
    flex: 2;
    min-width: 350px; /* Slightly larger min-width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    order: 2;
}

aside.filters {
    flex: 1;
    background: #ffffff;
    padding: 25px; /* Increased padding */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    min-width: 300px; /* Slightly larger min-width */
}

aside.filters h2 {
    font-family: 'Roboto', sans-serif;
    color: #222222;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

.filter-group {
    margin-bottom: 20px; /* More spacing */
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444444;
    font-size: 1.05em;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 12px; /* Increased padding */
    border: 1px solid #cccccc; /* Softer border */
    border-radius: 5px; /* More rounded */
    background-color: #ffffff;
    color: #333;
    font-size: 1em;
}

aside.filters button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #689f38; /* Darker green for filter button */
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

aside.filters button:hover {
    background-color: #4CAF50;
    transform: translateY(-1px);
}

section.listings {
    flex: 2;
    min-width: 400px; /* Increased min-width for listings */
}

section.listings h2 {
    font-family: 'Roboto', sans-serif;
    color: #222222;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
}

.search-bar {
    display: flex;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px 0 0 6px;
    background-color: #fff;
    color: #333;
    font-size: 1.05em;
}

.search-bar button {
    padding: 12px 25px;
    background: #8bc34a;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-bar button:hover {
    background-color: #689f38;
    transform: translateY(-1px);
}

.property-card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px; /* Increased margin */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Softer, more visible shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.property-card h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    color: #222222;
    font-size: 1.7em;
    margin-bottom: 10px;
}

.property-card p {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.property-card button {
    background: #689f38;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.property-card button:hover {
    background-color: #4CAF50;
    transform: translateY(-1px);
}

.extra-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    flex: 1;
    min-width: 300px; /* Slightly larger min-width */
}

.extra-content h2 {
    font-family: 'Roboto', sans-serif;
    color: #222222;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.9em;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

.extra-content ul {
    list-style: none;
    padding: 0;
}

.extra-content li {
    margin-bottom: 10px;
}

.extra-content a {
    color: #689f38;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.extra-content a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

footer {
    background: #222222; /* Darker footer for more contrast */
    color: #eeeeee;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: left;
    max-width: 1200px;
}

.footer-section {
    flex: 1;
    min-width: 220px; /* Adjusted min-width */
    margin: 15px;
}

.footer-section h3 {
    color: #8bc34a; /* Light green headings in footer */
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid #444444;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    margin: 0;
    color: #999999;
    font-size: 0.9em;
}

/* Property Details Page Specific Styles */
.property-details-main {
    background: #ffffff;
    min-height: 100vh;
}

.property-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 32px 0;
}

.property-header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.property-title-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.property-subtitle {
    font-size: 1.2em;
    color: #6b7280;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.property-status {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.property-gallery-section {
    background: #f9fafb;
    padding: 0;
}

.gallery-container {
    max-width: 100%;
    margin: 0 auto;
}

.main-gallery {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-gallery:hover .gallery-overlay {
    opacity: 1;
}

.gallery-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.thumbnail-gallery {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    overflow-x: auto;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.thumbnail-gallery img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumbnail-gallery img:hover,
.thumbnail-gallery img.active {
    border-color: #689f38;
    transform: scale(1.05);
}

.property-details-section {
    padding: 48px 0;
    background: #ffffff;
}

.property-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.property-info {
    min-width: 0;
}

.property-location {
    font-size: 1.1em;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.property-price {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.1;
}

.property-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.property-fact {
    text-align: center;
    padding: 16px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.property-fact-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.property-fact-label {
    font-size: 0.9em;
    color: #6b7280;
    font-weight: 500;
}

.property-description {
    font-size: 1.1em;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 32px;
}

.property-sidebar {
    position: sticky;
    top: 100px;
}

.agent-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.agent-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-details h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.agent-details p {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0 0 2px 0;
}

.agent-license {
    font-size: 0.8em !important;
    color: #9ca3af !important;
}

.agent-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: #689f38;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary:hover {
    background: #5a8a2f;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #689f38;
    border: 1px solid #689f38;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
}

.property-features-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.property-features-card h4 {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9em;
    color: #374151;
}

.feature-item::before {
    content: '✓';
    color: #689f38;
    font-weight: 600;
    font-size: 1.1em;
}

.property-map-section {
    background: #f9fafb;
    padding: 48px 0;
}

.property-map-section h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    text-align: center;
}

.property-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-section {
    background: #ffffff;
    padding: 48px 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 32px 0;
    text-align: center;
}

.contact-form {
    background: #f9fafb;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #689f38;
    box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-details-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .property-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .property-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .property-title-section h1 {
        font-size: 2em;
    }
    
    .property-price {
        font-size: 2.5em;
    }
}

.property-gallery {
    flex: 2; /* Takes more space for images */
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-gallery .main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-gallery img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbnail-gallery img:hover,
.thumbnail-gallery img.active {
    border-color: #689f38;
    transform: translateY(-2px);
}

.property-summary {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.property-summary h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: #222222;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.1;
}

.property-summary h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    color: #555555;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
}

.key-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8fdf8;
    border-radius: 6px;
    border: 1px solid #e6ffe6;
}

.key-facts div {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    font-size: 0.95em;
    color: #444;
    font-weight: 500;
    text-align: center;
}

.key-facts div strong {
    display: block;
    font-size: 1.1em;
    color: #222;
    margin-bottom: 3px;
}

.property-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #689f38;
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: #e6ffe6;
    border-radius: 8px;
}

.property-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.property-description,
.property-features {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.property-description h3,
.property-features h3,
.property-map h3,
.contact-agent h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    color: #222222;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
}

.property-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.property-features li {
    background-color: #f8fdf8;
    padding: 10px 15px;
    border-left: 3px solid #8bc34a;
    border-radius: 4px;
    color: #444;
    font-size: 0.95em;
}

.property-map {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

#detail-map {
    width: 100%;
    height: 500px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.contact-agent {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    background-color: #fdfdfd;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8bc34a;
    outline: none;
    box-shadow: 0 0 5px rgba(139, 195, 74, 0.5);
}

.contact-agent button {
    background: #689f38;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-agent button:hover {
    background-color: #4CAF50;
    transform: translateY(-1px);
}

/* Modal (Filter Pop-up) Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Optional: blur background */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    width: 90%; /* Could be more responsive */
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
}

.close-button:hover,
.close-button:focus {
    color: #689f38;
    text-decoration: none;
    cursor: pointer;
}

.filters-popup {
    padding: 10px;
}

.filters-popup h2 {
    font-family: 'Roboto', sans-serif;
    color: #222222;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 15px;
    text-align: left;
}

.filters-popup .filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filters-popup .filter-group:last-of-type {
    border-bottom: none;
}

.filters-popup .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444444;
    font-size: 1.05em;
}

.filters-popup .input-with-clear,
.filters-popup .select-with-clear {
    display: flex;
    align-items: center;
    position: relative;
}

.filters-popup .input-with-clear input,
.filters-popup .select-with-clear select {
    flex-grow: 1;
    padding-right: 40px; /* Space for clear button */
}

.filters-popup .input-with-clear .clear-input,
.filters-popup .select-with-clear .clear-select {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.filters-popup .input-with-clear .clear-input:hover,
.filters-popup .select-with-clear .clear-select:hover {
    color: #689f38;
}

.filters-popup .range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.filters-popup .range-inputs input {
    flex: 1;
}

.filters-popup .range-inputs span {
    color: #666;
    font-size: 0.95em;
}

.filters-popup .range-inputs .clear-range {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: -30px; /* Adjust as needed */
    transition: color 0.2s ease;
}

.filters-popup .range-inputs .clear-range:hover {
    color: #689f38;
}

.filters-popup .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 10px;
}

.filters-popup .checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

.filters-popup .checkbox-group label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    color: #555;
}

.filters-popup .clear-checkbox-group {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 0.9em;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.filters-popup .clear-checkbox-group:hover {
    color: #689f38;
}

.filters-popup .modal-apply-filters {
    display: block;
    width: 100%;
    padding: 15px;
    background: #689f38;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filters-popup .modal-apply-filters:hover {
    background-color: #4CAF50;
    transform: translateY(-1px);
}

/* Tighter layout: property details & listings */
.property-header {
    padding: 20px 0 24px 0;
}

.property-details-section {
    padding: 28px 0 32px 0;
}

.property-details-grid {
    gap: 32px;
}

.property-price {
    margin-bottom: 16px;
}

.property-facts {
    margin-bottom: 20px;
    padding: 16px;
    gap: 12px;
}

.property-fact {
    padding: 12px 10px;
}

.property-description {
    margin-bottom: 24px;
}

.contact-section {
    padding: 28px 0 40px 0;
}

.contact-form-container {
    padding: 0;
}

.contact-form-container h3 {
    margin-bottom: 20px;
}

.property-listings-section .listings-header {
    margin-bottom: 32px;
}

.property-listings-section .listings-header h2 {
    margin-bottom: 12px;
}

#land-section .listings-header {
    margin-bottom: 28px;
}

.property-gallery-section .main-gallery {
    min-height: 320px;
    height: 45vh;
}
