/* ===== FLETCHERS CREEK VILLAGE - NEIGHBOURHOOD APP ===== */

/* Design System - Reused from property sites */
:root {
    --color-primary: #1a3c5e;
    --color-primary-light: #2a5a8a;
    --color-accent: #c9a94e;
    --color-accent-hover: #b8972f;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #f7f5f0;
    --color-bg-dark: #0f2137;
    --color-border: #e5e1d8;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --section-padding: 80px 0;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Section */
.section { padding: var(--section-padding); }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Light variants for dark sections */
.section-header-light h2 { color: #fff; }
.section-tag-light { color: var(--color-accent); }
.section-subtitle-light { color: rgba(255,255,255,0.7); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-secondary {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}
.btn-secondary:hover { background: var(--color-bg-alt); transform: translateY(-1px); }
.btn-large { padding: 16px 36px; font-size: 1.05rem; }
.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.btn-nav { padding: 10px 24px; font-size: 0.9rem; }

/* Dark outline button for listing cards */
.btn-outline.btn-small {
    color: var(--color-primary);
    border-color: var(--color-primary);
    width: 100%;
}
.btn-outline.btn-small:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s;
}
.nav-logo-icon { display: flex; }
.navbar.scrolled .nav-logo { color: var(--color-primary); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--color-accent); }
.navbar.scrolled .nav-links a { color: var(--color-text); }
.navbar.scrolled .nav-links a:hover { color: var(--color-accent); }
.navbar.scrolled .nav-links .btn-primary { color: #fff; }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}
.navbar.scrolled .nav-toggle span { background: var(--color-primary); }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2137 0%, #1a3c5e 40%, #2a5a8a 70%, #1a3c5e 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 169, 78, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(42, 90, 138, 0.2) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    z-index: 1;
}
.hero-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}
.highlight svg { color: var(--color-accent); flex-shrink: 0; }
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== LISTINGS ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.listing-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.listing-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-bg-alt);
}
.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.listing-card:hover .listing-image img { transform: scale(1.05); }
.listing-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #e8e4dc 100%);
    color: var(--color-text-light);
}
.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-active { background: #28a745; color: #fff; }
.badge-sold { background: #dc3545; color: #fff; }
.badge-coming { background: var(--color-accent); color: #fff; }
.listing-info { padding: 20px; }
.listing-address {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.listing-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.listing-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}
.listing-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Listings Empty State */
.listings-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--color-text-light);
}
.listings-empty svg { margin: 0 auto 16px; color: var(--color-border); }
.listings-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.listings-empty p { margin-bottom: 24px; }

/* ===== MARKET STATS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary) 100%);
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon {
    margin-bottom: 16px;
    color: var(--color-accent);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.stat-change.positive { color: #4ade80; }
.stat-change.negative { color: #f87171; }
.stats-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 32px;
}

/* ===== NEIGHBOURHOOD GUIDE ===== */
.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.location-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s ease;
}
.location-card:hover { transform: translateY(-4px); }
.location-card-wide { grid-column: 1 / -1; }
.location-icon {
    width: 56px;
    height: 56px;
    background: rgba(201, 169, 78, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-accent);
}
.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.location-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-light);
}
.location-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}
.location-list-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
}

/* ===== MAP ===== */
.map-section { background: var(--color-bg-alt); }
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.map-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.legend-school { background: #3b82f6; }
.legend-park { background: #22c55e; }
.legend-shop { background: #f59e0b; }
.legend-health { background: #ef4444; }

/* ===== AGENT BIO ===== */
.agent-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}
.agent-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.agent-photo img {
    width: 100%;
    height: auto;
}
.agent-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.agent-info p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}
.agent-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.credential {
    padding: 8px 16px;
    background: rgba(26, 60, 94, 0.08);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}
.credential-highlight {
    background: rgba(201, 169, 78, 0.15);
    color: var(--color-accent-hover);
}
.agent-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}
.agent-phone, .agent-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.3s;
}
.agent-phone:hover, .agent-email:hover { color: var(--color-accent); }
.agent-logo { max-width: 200px; opacity: 0.8; }

/* ===== CONTACT / CTA ===== */
.cta-section { background: var(--color-bg-alt); }
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.cta-text .section-tag { margin-bottom: 8px; }
.cta-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.cta-text > p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Forms */
.contact-form, .eval-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select,
.eval-form input, .eval-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}
.contact-form input:focus, .contact-form select:focus,
.eval-form input:focus, .eval-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 78, 0.15);
}
.form-success {
    display: none;
    padding: 14px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    color: #28a745;
    font-weight: 500;
    text-align: center;
}
.form-error {
    display: none;
    padding: 14px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #dc3545;
    font-weight: 500;
    text-align: center;
}

/* Sell Card */
.sell-card {
    background: var(--color-primary);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
}
.sell-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}
.sell-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
}
.sell-card input {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
.sell-card input::placeholder { color: rgba(255,255,255,0.5); }
.sell-card input:focus {
    border-color: var(--color-accent) !important;
    background: rgba(255,255,255,0.15) !important;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
}
.footer-content { text-align: center; }
.footer-agent {
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.footer-agent strong { color: #fff; }
.footer-agent a { color: var(--color-accent); }
.footer-agent a:hover { text-decoration: underline; }
.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    max-width: 700px;
    margin: 0 auto 12px;
    line-height: 1.5;
}
.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ===== INSTALL APP BANNER ===== */
.install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-primary);
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease;
}
.install-banner.show { display: block; }
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.install-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.install-banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 78, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}
.install-banner-text {
    flex: 1;
    color: #fff;
}
.install-banner-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.install-banner-text span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
.install-banner-text svg { color: var(--color-accent); }
.install-banner-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.install-banner-close:hover { color: #fff; }

/* ===== SCROLL ANIMATIONS ===== */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .location-grid { grid-template-columns: 1fr; }
    .location-card-wide { grid-column: 1; }
    .location-list-horizontal { grid-template-columns: repeat(2, 1fr); }
    .agent-grid { grid-template-columns: 1fr; text-align: center; }
    .agent-photo { max-width: 300px; margin: 0 auto; }
    .agent-credentials { justify-content: center; }
    .agent-contact-info { justify-content: center; }
    .agent-logo { margin: 0 auto; }
    .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px 0; }

    /* Mobile Nav */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: var(--color-text) !important; font-size: 1rem; }

    /* Hero */
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-highlights { gap: 12px; }
    .highlight { font-size: 0.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }

    /* Listings */
    .listings-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

    /* Stats */
    .stat-number { font-size: 2rem; }

    /* Map */
    .map-container { height: 350px; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }

    /* Section Headers */
    .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 20px 12px; }
    .stat-number { font-size: 1.6rem; }
    .location-list-horizontal { grid-template-columns: 1fr; }
    .sell-card { padding: 28px 20px; }
    .map-legend { gap: 12px; }
    .agent-grid { gap: 24px; }
}
