/* Scenic Realty Co - Main Stylesheet */
:root {
    --primary: #881018;
    --primary-light: #a01820;
    --primary-dark: #6e0c14;
    --accent: #c8a961;
    --accent-dark: #b89745;
    --text: #1a202c;
    --text-light: #4a5568;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --footer-bg: #1a1a2e;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

.content-narrow { max-width: 800px; }

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--primary);
    padding: 0.4rem 0;
    font-size: 0.85rem;
}
.top-bar a { color: var(--white); transition: opacity 0.2s; }
.top-bar a:hover { opacity: 0.8; color: var(--white); }

/* ========== NAVBAR OVERRIDES ========== */
.navbar { transition: box-shadow 0.2s; }
.navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    transition: color 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link.btn-primary {
    color: var(--white) !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}
.navbar .nav-link.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.bg-primary {
    background-color: var(--primary) !important;
}

/* ========== BRAND (Plan 27) ========== */
.site-brand { display: flex; align-items: center; gap: 0.65rem; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.site-brand-mark { height: 54px; width: auto; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
}
.site-brand-tagline { font-size: 0.72rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.3px; }
.site-brand:hover .site-brand-name { color: var(--primary-light); }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(rgba(30,5,8,0.35), rgba(50,10,15,0.4)), url('/assets/images/hero-banner.webp') center center / cover no-repeat;
    color: var(--white);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero-tagline { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; }

.hero-search { max-width: 600px; margin: 0 auto 2rem; }
.hero-search-inner {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.hero-search-input::placeholder { color: rgba(255,255,255,0.6); }
.hero-search-btn {
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search-btn:hover { background: var(--accent-dark); }

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; font-size: 1.05rem; }
.page-hero-sm { padding: 2rem 0; }
.page-hero-sm h1 { font-size: 1.75rem; }
/* Brand lockup above the title (Plan 27). The mark is a red house on a dark red
   band, so it sits on a white chip to stay legible. */
.page-hero-brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.page-hero-mark {
    height: 44px; width: auto;
    background: var(--white);
    border-radius: 50%;
    padding: 0.4rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.page-hero-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
}

/* ========== BREADCRUMB ========== */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.breadcrumb-custom a { color: rgba(255,255,255,0.7); }
.breadcrumb-custom a:hover { color: var(--white); }
.breadcrumb-custom i { font-size: 0.65rem; opacity: 0.5; }
.breadcrumb-custom span { opacity: 0.9; }

/* ========== SECTIONS ========== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 2rem; }

/* ========== PROPERTY CARDS ========== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }

.property-image { height: 220px; background: var(--bg-alt); overflow: hidden; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property-card:hover .property-image img { transform: scale(1.05); }

.property-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.badge-pending { background: #ed8936; color: var(--white); }
.badge-sold { background: var(--primary); color: var(--white); }
.badge-active { background: #38a169; color: var(--white); }
.badge-rental { background: #2b6cb0; color: var(--white); }

.property-info { padding: 1rem 1.25rem; }
.property-price { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.property-address { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.property-city { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }

/* Geographic Area chips (plan 26) — "Pigeon · Sand Point" */
.area-chips { display: inline-flex; gap: 0.3rem; flex-wrap: wrap; margin-left: 0.4rem; vertical-align: middle; }
.area-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: rgba(136, 16, 24, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
.area-chip i { font-size: 0.65rem; }
a.area-chip:hover { background: var(--primary); color: var(--white); }
.listing-address .area-chips { margin-left: 0.6rem; }
.listing-address .area-chip { font-size: 0.8rem; padding: 0.15rem 0.7rem; }
.city-pill-area { border-color: var(--accent); }
.area-filter-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius, 6px);
    background: rgba(136, 16, 24, 0.06);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}
.area-filter-pill a { color: var(--text-light); text-decoration: none; }
.area-filter-pill a:hover { color: var(--primary); }
.property-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}
.property-meta span { display: flex; align-items: center; gap: 0.25rem; }
.property-agent { font-size: 0.8rem; color: var(--primary); margin-top: 0.5rem; font-weight: 500; }

.property-image .no-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 2rem;
}

/* ========== FEATURED CAROUSEL ========== */
.property-carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.carousel-slide { min-width: 0; }

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.carousel-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: var(--text);
    font-size: 0.9rem;
}
.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.carousel-dot.active { background: var(--primary); }

@media (max-width: 767px) {
    .carousel-track { grid-template-columns: repeat(2, 1fr); }
    .carousel-track .property-card .property-image { height: 160px; }
    .carousel-track .property-info { padding: 0.75rem; }
    .carousel-track .property-price { font-size: 1rem; }
    .carousel-track .property-address { font-size: 0.8rem; }
    .carousel-track .property-meta { font-size: 0.75rem; }
}

/* ========== AGENTS GRID ========== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.agent-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.agent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }

.agent-photo { margin-bottom: 1rem; }
.agent-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}
.agent-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--text-light);
}
.agent-photo-placeholder.large { width: 150px; height: 150px; font-size: 3rem; }

.agent-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.agent-office { font-size: 0.85rem; color: var(--text-light); }
.agent-listings-count { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-top: 0.25rem; }

/* ========== AGENT ROSTER (full page) ========== */
.agents-roster { display: flex; flex-direction: column; gap: 2rem; }
.agent-roster-card {
    display: flex;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.agent-roster-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}
.agent-roster-info { flex: 1; }
.agent-roster-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.agent-roster-info h3 a { color: var(--text); }
.agent-roster-info h3 a:hover { color: var(--primary); }
.agent-roster-title { font-size: 0.9rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.agent-roster-bio { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }
.agent-roster-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ========== AGENT HERO (agent detail) ========== */
.agent-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}
.agent-hero-inner { display: flex; align-items: center; gap: 2rem; }
.agent-hero-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
}
.agent-hero-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.25rem; }
.agent-hero-info p { opacity: 0.85; }
.agent-hero-contact { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.agent-hero-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}
.agent-hero-contact a:hover { color: var(--white); }

/* ========== SPECIALTIES & ABOUT ========== */
.specialty-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.specialty-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text);
}
.specialty-tag i { color: var(--primary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.about-text p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.about-stat { text-align: center; padding: 1rem; background: var(--bg-alt); border-radius: var(--radius); }
.about-stat strong { display: block; font-size: 1.5rem; color: var(--primary); }

/* ========== OFFICES GRID ========== */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.office-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.office-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--primary); }
.office-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.office-card a { color: var(--primary); }

/* ========== REVIEWS CAROUSEL ========== */
.reviews-carousel { position: relative; max-width: 700px; margin: 0 auto; }
.review-slide { display: none; text-align: center; padding: 0 2rem; }
.review-slide.active { display: block; }
.review-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; }
.review-text { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.review-author { font-weight: 600; color: var(--text); }
.review-location { font-size: 0.85rem; color: var(--text-light); }
.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s;
}
.review-nav:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.review-prev { left: -1rem; }
.review-next { right: -1rem; }
.review-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}
.review-dot.active { background: var(--primary); }

/* ========== EXPERIENCE STATS ========== */
.experience-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
}
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-value { font-size: 2.75rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 0.9rem; opacity: 0.85; margin-top: 0.5rem; }

/* ========== CTA STRIP ========== */
.cta-strip { padding: 2.5rem 0; }
.cta-strip h4 { font-weight: 700; }

/* ========== CONTENT PAGES ========== */
.content-page { padding: 3rem 0; }
.content-page h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.content-page h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text); }
.content-page p { color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.content-page ul { color: var(--text-light); margin-bottom: 1rem; padding-left: 1.5rem; }
.content-page li { margin-bottom: 0.5rem; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9rem; color: var(--text-light); }

.property-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.property-type-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.property-type-card:hover { transform: translateY(-2px); }
.property-type-card i { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }

.selling-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.selling-feature {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.selling-feature i { font-size: 1.5rem; color: var(--primary); flex-shrink: 0; margin-top: 0.25rem; }
.selling-feature h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.selling-feature p { font-size: 0.85rem; color: var(--text-light); }

.service-areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.service-area-tag {
    padding: 0.4rem 0.8rem;
    background: var(--bg-alt);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ========== CONTACT PAGE ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; }
.contact-form { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text); }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.info-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; color: var(--primary); }
.info-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.info-card a { color: var(--primary); }
.info-card i { width: 1.2rem; color: var(--primary); }

/* ========== SEARCH PAGE ========== */
.search-page { min-height: calc(100vh - 80px); }
.search-layout { display: flex; }

.search-filters {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
    /* Sits under the sticky navbar, which grew to ~82px with the brand lockup (Plan 27) */
    max-height: calc(100vh - 92px);
    position: sticky;
    top: 82px;
}
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.filters-header h2 { font-size: 1.1rem; }
.filters-close { display: none; background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-light); }

.filter-form { display: flex; flex-direction: column; gap: 1rem; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.search-results { flex: 1; padding: 1.5rem; }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.results-info h1 { font-size: 1.5rem; font-weight: 700; }
.results-count { font-size: 0.9rem; color: var(--text-light); }
.filters-toggle { display: none; }

.search-map {
    height: 350px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: var(--bg-alt);
}

/* ========== LISTING DETAIL ========== */
.listing-detail { padding: 2rem 0; }
.listing-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }
.listing-main { min-width: 0; }

.listing-gallery { margin-bottom: 1.5rem; }
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}
.gallery-main img { width: 100%; height: 450px; object-fit: cover; display: block; }
.gallery-main video { width: 100%; height: 450px; object-fit: cover; display: block; background: #000; }
.gallery-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 2rem;
    pointer-events: none;
    z-index: 2;
}
/* Circular auto-advance countdown (no numbers) */
.gallery-countdown {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 34px;
    height: 34px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.gallery-countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gallery-countdown .gc-track {
    fill: rgba(0,0,0,0.35);
    stroke: rgba(255,255,255,0.35);
    stroke-width: 3;
}
.gallery-countdown .gc-progress {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    /* circumference of r=16 ≈ 100.53 */
    stroke-dasharray: 100.53;
    stroke-dashoffset: 0;
}
/* Five tick marks that segment the ring into a 5-part dial. */
.gallery-countdown .gc-ticks line {
    stroke: rgba(0,0,0,0.55);
    stroke-width: 2;
}
.gallery-countdown .gc-progress.gc-run {
    animation: gcDeplete linear forwards;
}
@keyframes gcDeplete {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 100.53; }
}
.gallery-main.no-photo {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.gallery-thumb {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
    background: #000;
}
.gallery-thumb img,
.gallery-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; }
.thumb-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}
.listing-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.5rem; }
.listing-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.listing-address { font-size: 1.1rem; color: var(--text-light); }
.listing-mls { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }
.listing-status-badge {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.listing-status-badge.badge-active { background: #ebf8ff; color: #2b6cb0; }
.listing-status-badge.badge-pending { background: #fefcbf; color: #975a16; }
.listing-status-badge.badge-sold { background: #fed7d7; color: #9b2c2c; }

.listing-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.listing-stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text-light); }
.listing-stat strong { color: var(--text); }
.listing-stat i { color: var(--primary); }

.listing-section { margin-bottom: 2rem; }
.listing-section h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text); }
.listing-description { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; }
.listing-features { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-alt);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text);
}
.feature-tag i { color: var(--primary); font-size: 0.75rem; }

.listing-map { height: 300px; border-radius: var(--radius); background: var(--bg-alt); }

/* Share Buttons */
.share-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 600; font-family: inherit;
    text-decoration: none; cursor: pointer;
    border: none; transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn-facebook { background: #1877f2; color: #fff; }
.share-btn-x { background: #000; color: #fff; }
.share-btn-copy { background: var(--bg-alt); color: var(--text); border: 1px solid #ddd; }

/* Listing Sidebar */
.listing-sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar-agent { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.sidebar-agent-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.sidebar-agent-photo.placeholder {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.sidebar-agent strong a { color: var(--text); }
.sidebar-agent strong a:hover { color: var(--primary); }
.sidebar-agent p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.sidebar-form { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-form input, .sidebar-form textarea { font-size: 0.9rem; padding: 0.65rem 0.75rem; }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ========== BLOG ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.blog-card-image { height: 200px; background: var(--bg-alt); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-card-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.blog-article { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }
.blog-article h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.blog-article-meta { font-size: 0.9rem; color: var(--text-light); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.blog-article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text-light); }
.blog-article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 2rem 0 1rem; }
.blog-article-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.75rem; }
.blog-article-content p { margin-bottom: 1rem; }
.blog-article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-article-content ul, .blog-article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ========== MORTGAGE CALCULATOR ========== */
.calculator-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}
.calculator-result {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-top: 1.5rem;
}
.calculator-result .monthly-payment {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}
.calculator-breakdown { margin-top: 1rem; display: flex; justify-content: center; gap: 2rem; font-size: 0.9rem; color: var(--text-light); }

/* ========== VALUATION SECTION ========== */
.valuation {
    min-height: 60vh;
    /* Overlay 0.4 -> 0.5: the aerial photo is busier than the old sunset (Plan 27 Part 4) */
    background: linear-gradient(rgba(136, 16, 24, 0.5), rgba(136, 16, 24, 0.5)),
                url('/assets/images/hero-banner.webp') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 5rem 1.5rem;
}
.valuation-content { max-width: 700px; }
.valuation h1 { font-size: 3rem; margin-bottom: 0.25rem; font-weight: 800; }
.valuation-tagline { font-size: 1.15rem; margin-bottom: 2rem; opacity: 0.85; }
.valuation h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 800; }
.valuation p { font-size: 1.1rem; margin-bottom: 1rem; opacity: 0.9; }
.valuation-disclaimer {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.valuation-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}
.valuation-form input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    border-radius: var(--radius);
    outline: none;
    -webkit-appearance: none;
}
.valuation-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.valuation-form input:focus { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.15); }
.valuation-form button {
    background: var(--accent);
    border: none;
    color: var(--white);
    padding: 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
    white-space: nowrap;
}
.valuation-form button:hover { background: var(--accent-dark); }

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-dialog-custom {
    background: var(--white);
    max-width: 480px;
    width: 90%;
    padding: 2.5rem;
    border-radius: var(--radius);
    position: relative;
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-dialog-custom .modal-close {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
    line-height: 1;
}
.modal-dialog-custom .modal-close:hover { color: var(--text); }
.modal-dialog-custom h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary);
}
.modal-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.modal-address {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
}
.modal-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    outline: none;
    transition: border-color 0.2s;
}
.modal-form input:focus { border-color: var(--primary); }
.modal-form button {
    width: 100%;
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background 0.2s;
}
.modal-form button:hover { background: var(--primary-dark); }
.modal-form button:disabled { background: #ccc; cursor: not-allowed; }

/* Form Messages */
.form-message {
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: none;
}
.form-message.success { display: block; background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-message.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ========== OPEN HOUSE BANNER (HOMEPAGE) ========== */
.open-house-banner {
    background: linear-gradient(135deg, #2b6cb0 0%, var(--primary) 100%);
    color: var(--white);
    padding: 2.5rem 0;
}
.open-house-banner-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.open-house-icon { font-size: 2.5rem; opacity: 0.9; }
.open-house-banner-header h2 { font-size: 1.5rem; margin-bottom: 0.15rem; color: var(--white); }
.open-house-banner-header p { opacity: 0.85; font-size: 0.95rem; }

.open-house-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.open-house-card {
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    text-decoration: none;
    color: var(--white);
    transition: background 0.2s, transform 0.2s;
}
.open-house-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: var(--white);
}
.oh-card-photo { width: 100px; min-height: 100px; flex-shrink: 0; }
.oh-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.oh-card-info { padding: 0.75rem 1rem; flex: 1; }
.oh-card-date { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.15rem; }
.oh-card-date i, .oh-card-time i { margin-right: 0.35rem; opacity: 0.7; }
.oh-card-time { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0.5rem; }
.oh-card-address { font-size: 0.85rem; font-weight: 500; }
.oh-card-city { font-size: 0.8rem; opacity: 0.75; }
.oh-card-price { font-size: 0.9rem; font-weight: 700; margin-top: 0.25rem; }

/* ========== OPEN HOUSE - LISTING DETAIL ========== */
.listing-open-houses {
    display: flex;
    gap: 1rem;
    background: #fef2f2;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.oh-callout-icon {
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
    padding-top: 0.15rem;
}
.oh-callout-content h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.oh-event { margin-bottom: 0.75rem; }
.oh-event:last-child { margin-bottom: 0; }
.oh-event-datetime {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.oh-event-datetime strong { font-size: 0.95rem; color: var(--text); }
.oh-event-datetime span { font-size: 0.9rem; color: var(--text-light); }
.oh-event-notes {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.25rem;
}

.badge-openhouse {
    background: #38a169 !important;
    color: var(--white) !important;
}

/* ========== COMMUNITY PAGE ========== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.community-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.community-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.community-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(136, 16, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}
.community-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.community-card-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}
.community-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}
.community-card-details i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--primary);
}
.community-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}
.community-card:hover .community-card-link {
    text-decoration: underline;
}

/* ========== HOME WATCH ========== */
.home-watch-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.hw-feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.hw-feature-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.hw-feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.hw-feature-card p { font-size: 0.9rem; color: var(--text-light); }

/* ========== SUBSCRIBE CALLOUT ========== */
.subscribe-callout {
    background: linear-gradient(135deg, var(--primary) 0%, #a01520 100%);
    padding: 2.5rem 0;
}
.subscribe-callout-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}
.subscribe-callout-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.subscribe-callout-icon i {
    font-size: 1.5rem;
    color: #fff;
}
.subscribe-callout-text h3 {
    color: #fff;
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}
.subscribe-callout-text p {
    color: rgba(255,255,255,0.85);
    margin: 0;
    font-size: 0.95rem;
}
.subscribe-callout-action .btn {
    white-space: nowrap;
    color: var(--primary);
    font-weight: 600;
}
@media (min-width: 768px) {
    .subscribe-callout-inner {
        text-align: left;
        flex-wrap: nowrap;
    }
    .subscribe-callout-text {
        flex: 1;
    }
}

/* ========== SUBSCRIBE PAGE ========== */
.subscribe-form-section {
    padding: 3rem 0;
}
.subscribe-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}
.subscribe-form-card h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.subscribe-form-card .lead {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.subscribe-form-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
.subscribe-form-card .form-check-label {
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; }
.site-footer h6 { color: var(--white); }
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--white);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.text-light-muted { color: rgba(255,255,255,0.7); }
.text-light-muted:hover { color: var(--white); }
a.text-light-muted { transition: color 0.2s; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.8rem;
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
}
.toast-success { background: #166534; color: var(--white); }
.toast-error { background: #991b1b; color: var(--white); }
.toast-info { background: var(--primary); color: var(--white); }
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .listing-layout { grid-template-columns: 1fr; }
    .listing-sidebar { position: static; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }

    .search-filters {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1100;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
    }
    .search-filters.open { left: 0; }
    .filters-close { display: block; }
    .filters-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3.5rem 1rem 3rem; }

    .property-grid { grid-template-columns: 1fr; }
    .agents-grid { grid-template-columns: 1fr; }
    .offices-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .experience-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-value { font-size: 2.25rem; }

    .agent-hero-inner { flex-direction: column; text-align: center; }
    .agent-hero-contact { justify-content: center; }
    .agent-roster-card { flex-direction: column; text-align: center; }
    .agent-roster-actions { justify-content: center; }

    .cta-strip h4 { font-size: 1.25rem; }

    .gallery-main img { height: 280px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .selling-features { grid-template-columns: 1fr; }

    .section { padding: 3rem 0; }
    .page-hero { padding: 2rem 0; }
    .page-hero h1 { font-size: 1.75rem; }
    .page-hero-mark { height: 36px; }
    .page-hero-name { font-size: 0.82rem; letter-spacing: 1px; }

    .site-brand-mark { height: 42px; }
    .site-brand-name { font-size: 1.05rem; }

    .valuation { min-height: auto; padding: 3rem 1rem; }
    .valuation h1 { font-size: 2rem; }
    .valuation h2 { font-size: 1.75rem; }
    .valuation-form { flex-direction: column; }
    .valuation-form input, .valuation-form button { width: 100%; }
    .modal-dialog-custom { padding: 25px; width: 95%; }

    .open-house-banner-header { flex-direction: column; text-align: center; gap: 0.75rem; }
    .open-house-cards { grid-template-columns: 1fr; }
    .listing-open-houses { flex-direction: column; }

    .blog-grid { grid-template-columns: 1fr; }
    .blog-article h1 { font-size: 1.5rem; }

    .home-watch-features { grid-template-columns: 1fr; }
}

/* Documents & Downloads (listing attachments) */
.listing-documents .document-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.document-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 1rem; background: var(--bg-alt); border: 1px solid #e2e8f0; border-radius: var(--radius); }
.document-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; width: 1.75rem; text-align: center; }
.document-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.document-name { font-weight: 600; color: var(--primary); text-decoration: none; word-break: break-word; }
.document-name:hover { text-decoration: underline; }
.document-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 0.1rem; }
.document-size { font-size: 0.8rem; color: var(--text-light); flex-shrink: 0; }

/* Search & map improvements: city pills, autocomplete, sort, pager (ported) */
.hero-city-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: -1rem auto 2rem;
    max-width: 600px;
}
.hero-city-pills a.city-pill,
.hero-city-pills a.city-pill:visited {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    color: var(--primary) !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, transform 0.15s;
}
.hero-city-pills a.city-pill:hover {
    background: #fff !important;
    transform: translateY(-1px);
    color: var(--primary-light) !important;
}
.hero-city-pills .city-pill-count {
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    text-shadow: none;
}

/* ========== SEARCH AUTOCOMPLETE ========== */
.suggest-wrap { position: relative; }
.suggest-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 60;
    overflow: hidden;
    text-align: left;
}
.suggest-panel.open { display: block; }
.suggest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
}
.suggest-item i { color: var(--primary); width: 1rem; text-align: center; flex-shrink: 0; }
.suggest-item.highlighted { background: var(--bg-alt); }
.suggest-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.suggest-count { margin-left: auto; font-size: 0.75rem; color: var(--text-light); flex-shrink: 0; }
.sort-select {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
}
.filters-toggle { display: none; }

/* ========== SEARCH PAGER ========== */
.search-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
}
.pager-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.pager-link:hover { background: var(--primary); color: var(--white); }
.pager-current { background: var(--primary); color: var(--white); border-color: var(--primary); cursor: default; }
.pager-ellipsis { color: var(--text-light); padding: 0 0.2rem; }

.hero-city-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: -1rem auto 2rem;
    max-width: 600px;
}

/* Very narrow phones: keep the brand and the hamburger on one line (Plan 27) */
@media (max-width: 360px) {
    .site-brand { gap: 0.5rem; }
    .site-brand-mark { height: 38px; }
    .site-brand-name { font-size: 0.95rem; letter-spacing: 0.3px; }
}
