/* =====================================================================
   Andrew Meurer - site stylesheet
   Based on the Milwaukee Executive Realty design system (same palette,
   type and components) with additions for this site at the end
   ("Section 3").
   ---------------------------------------------------------------------
   Original header:
   Milwaukee Executive Realty - site stylesheet
   Mobile-first responsive redesign. Section 1 is the new design system
   used by the rewritten templates (header/footer, search, details,
   communities, showing form). Section 2 keeps the legacy class names
   used by pages not yet migrated so they remain usable on phones/tablets
   in the meantime.
   ===================================================================== */

:root {
    --brand: #d81f2a;
    --brand-dark: #a4151d;
    --brand-light: #fbe3e4;
    --ink: #221f1e;
    --muted: #6b6663;
    --bg: #f7f6f5;
    --card: #ffffff;
    --border: #e6e3e0;
    --success: #2e7d46;
    --danger: #b3261e;
    --radius: 16px;
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --max-width: 1180px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Karla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

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

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.25; font-family: 'Bitter', Georgia, serif; font-weight: 700; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Buttons & form controls ---------- */

.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0.7em 1.5em;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin-bottom: 15px;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-secondary:hover { background: var(--card); color: var(--ink); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
    font-family: inherit;
    font-size: 1em;
    padding: 0.6em 0.8em;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    width: 100%;
    max-width: 100%;
}
input:focus, select:focus, textarea:focus, a:focus, button:focus {
    outline: 3px solid var(--brand);
    outline-offset: 1px;
}

label { font-weight: 600; display: block; margin-bottom: 0.25em; }

.field { margin-bottom: 1em; }
.field-row { display: flex; flex-wrap: wrap; gap: 1em; }
.field-row .field { flex: 1 1 200px; }

.form-error {
    background: #fdecea;
    border: 1px solid var(--danger);
    color: #7a1a14;
    padding: 0.8em 1em;
    border-radius: 8px;
    margin-bottom: 1em;
}
.form-success {
    background: #eaf6ee;
    border: 1px solid var(--success);
    color: #1c5a30;
    padding: 0.8em 1em;
    border-radius: 8px;
    margin-bottom: 1em;
}

/* honeypot field - hidden from sighted users, still in the tab/DOM order for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Header ---------- */

.site-header { background: var(--bg); color: var(--ink); }
.header-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.header-bar .logo img { display: block; max-height: 60px; width: auto; border-radius: 6px; }
.header-tagline { text-align: right; font-size: 0.9em; margin: 0; color: var(--muted); }
.header-tagline a { color: var(--ink); font-weight: 700; }

.site-nav-bar { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--ink);
    font-size: 1.6em;
    padding: 10px 16px;
    cursor: pointer;
}
.site-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.92em;
}
.site-nav a:hover, .site-nav a.is-current { color: var(--brand-dark); background: var(--brand-light); }

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        flex-direction: column;
    }
    .site-nav.is-open { display: flex; }
    .header-tagline { text-align: left; }
}

/* ---------- Hero / search ---------- */

.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,16,0.68) 0%, rgba(20,17,16,0.26) 60%, rgba(20,17,16,0.06) 100%); }
.hero-copy {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px 64px;
}
.hero-copy .section-eyebrow { text-align: left; color: #f4c6c9; }
.hero-copy h1 { color: #fff; font-size: 2.4em; max-width: 560px; margin: 0 0 14px; }
.hero-copy p { color: #f0ebe9; max-width: 480px; font-size: 1.05em; line-height: 1.6; margin: 0; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; display: block; z-index: 2; }

.hero-search-wrap { display: flex; justify-content: center; margin-top: -56px; position: relative; z-index: 3; padding: 0 16px; }
.hero-search {
    position: relative;
    z-index: 2;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5em;
    width: 100%;
    max-width: 480px;
    margin: 0;
}
.hero-search h2 { margin-top: 0; text-align: center; }

@media (max-width: 700px) {
    .hero { min-height: 560px; }
}

/* ---------- Property cards / grid ---------- */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.property-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.property-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.property-card-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.property-price { font-size: 1.2em; font-weight: 700; color: var(--brand-dark); }
.property-address { font-weight: 600; margin: 4px 0; }
.property-meta { color: var(--muted); font-size: 0.92em; }
.property-status {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
}
.property-card-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }

/* ---------- Content sections ---------- */

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin: 20px auto;
    max-width: var(--max-width);
}
.panel + .panel { margin-top: 0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 12px 0;
}
.stat-card {
    background: var(--brand-light);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.stat-card .stat-value { font-size: 1.4em; font-weight: 700; color: var(--brand-dark); }
.stat-card .stat-label { font-size: 0.85em; color: var(--muted); }

.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 12px;
    background: var(--brand-light);
    padding: 12px;
    border-radius: 8px;
}
.map-filters .field { margin-bottom: 0; flex: 1 1 140px; }
.map-status { font-size: 0.9em; color: var(--muted); margin: 6px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: #c9c5c2;
    padding: 44px 16px 28px;
    margin-top: 40px;
}
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }
.site-footer .container { max-width: var(--max-width); }
.footer-badges img { margin-right: 10px; vertical-align: middle; }

/* ---------- Homepage: community cards, feature split ---------- */

.section-eyebrow {
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
.section-heading { text-align: center; margin: 0 0 32px; font-size: 1.7em; }

.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.county-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
}
.county-card .county-name {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.county-card .county-towns { font-size: 0.92em; line-height: 1.9; margin: 0; }
.county-card .county-towns a { color: var(--ink); text-decoration: none; }
.county-card .county-towns a:hover { color: var(--brand-dark); }

.feature-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
}
.feature-card h3 { margin: 0 0 10px; font-size: 1.2em; }
.feature-card h3 a { text-decoration: none; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95em; }

@media (max-width: 700px) {
    .feature-split { grid-template-columns: 1fr; }
}

/* =====================================================================
   Section 2: legacy compatibility layer for pages not yet rebuilt.
   Restyled for readability and mobile use; will be retired page-by-page.
   ===================================================================== */

.banner2 { background: var(--ink); color: #fff; padding: 10px 16px; overflow: hidden; }
.bannernavl { float: left; }
.bannernavl img { max-height: 56px; width: auto; }
.bannernavr { float: right; text-align: right; font-size: 1em; margin: 10px 0; color: #f1f1f1; }
@media (max-width: 600px) {
    .bannernavl, .bannernavr { float: none; text-align: center; }
}

.bannernav2 { background: var(--brand); }
.topNav { max-width: var(--max-width); margin: 0 auto; overflow: hidden; }
.topNav .navbars { display: flex; flex-wrap: wrap; }
.topNav a {
    color: #fff; text-decoration: none; padding: 12px 16px;
    font-weight: 600; font-size: 0.95em; display: inline-block;
}
.topNav a:hover, .topNav a.hmLink { background: var(--brand-dark); }
.topNav .icon { display: none; }

@media (max-width: 760px) {
    .topNav .navbars { flex-direction: column; display: none; }
    .topNav.responsive .navbars { display: flex; }
    .topNav .icon {
        display: inline-block; background: none; border: 0; padding: 10px 16px;
        cursor: pointer;
    }
    .topNav .icon img { height: 20px; filter: invert(1); }
}

.welleft, .welltop {
    max-width: var(--max-width);
    width: 92%;
    margin: 16px auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}
.welltop { background-size: cover; background-position: center; color: #fff; min-height: 260px; }

/* full-bleed page body (homepage hero) - opts out of the boxed .welleft card */
.site-main { display: block; }

.ctext { text-align: center; }

.psearch { max-width: 640px; margin: 0 auto; }
.psearchcol { display: inline-block; width: 46%; min-width: 180px; vertical-align: top; margin-bottom: 10px; }
.psearchitem { width: 100%; max-width: 240px; }

.cntyholder { max-width: var(--max-width); margin: 0 auto; }
.commblockrow { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.commblockdiv { flex: 1 1 260px; }
.commblock {
    display: inline-block; font-weight: 700; color: var(--brand-dark);
    background: var(--brand-light); border-radius: 6px; padding: 4px 10px; margin-bottom: 6px;
}
.commblocklist { text-align: left; margin: 6px 0 0; }

.dsrd { text-align: center; margin: 12px 0; }
.dsrc1 { text-align: center; margin-bottom: 10px; }
.dsrc1 a { margin: 0 6px; }

.searchresults { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.dsrapi, .dsrapione {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); width: 330px; max-width: 100%; padding: 10px; margin-bottom: 16px;
}
.dsrapihead { font-weight: 700; text-align: center; padding: 4px 0; }
.dsrapipic img { border-radius: 6px; }
.apiicons { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.rdhd { color: var(--danger); }
.courtesy { display: block; font-size: 0.8em; color: var(--muted); margin-top: 6px; }

.dsrwrap { display: flex; flex-wrap: wrap; gap: 20px; max-width: var(--max-width); margin: 0 auto; }
.dsrapipad { flex: 1 1 320px; }
.dsrh1 { flex: 1 1 320px; }
.detailr2 { text-align: center; }

.realestatecharttable { width: 100%; border-collapse: collapse; }
.realestatechartrow { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.realestatechartcell { flex: 1 1 22%; padding: 6px; }

.citylist { width: 100%; border-collapse: collapse; margin: 12px 0; }
.citylist td, .citylist th { padding: 6px 10px; border: 1px solid var(--border); text-align: left; }

.centerimg { text-align: center; }
.census { font-size: 0.8em; color: var(--muted); text-align: center; }

.feat { max-width: var(--max-width); margin: 0 auto; }
.feattypediv { font-size: 1.3em; font-weight: 700; color: var(--brand-dark); margin: 14px 0 6px; }
.featcity { font-weight: 700; }
.featimg { border-radius: 6px; }
.feat1 { overflow: hidden; padding: 6px 0; }

.real_estate_agents_div { width: 100%; border-collapse: collapse; }
.real_estate_agents_cell { display: inline-block; width: 220px; max-width: 100%; vertical-align: top; margin: 10px; text-align: center; }
.agenttab { width: 100%; }
.agenttab img { max-width: 200px; border-radius: 8px; }

.showingswrap { max-width: 480px; margin: 0 auto; }
.showings { width: 100%; margin-bottom: 10px; }

.srcopy { text-align: center; font-size: 0.85em; color: var(--muted); }

.nearbys {
    border: 1px solid var(--border); border-radius: var(--radius); max-width: 480px;
    margin: 16px auto; padding: 14px; background: var(--card); text-align: left;
}

.mySlides { display: none; }
.mySlides.is-active, .mySlides:first-child { display: block; }

@media (max-width: 700px) {
    .psearchcol { width: 100%; }
    .dsrapi, .dsrapione { width: 100%; }
}


/* =====================================================================
   Section 3: Andrew Meurer site components
   ===================================================================== */

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.container.narrow { max-width: 860px; }
.lead { font-size: 1.12em; line-height: 1.6; }
.section-eyebrow.left { text-align: left; }
.text-link { font-weight: 700; text-decoration: none; margin-left: 6px; }
.fine-print { font-size: 0.85em; color: var(--muted); }

/* Header brand (text wordmark in place of the office logo) */
.agent-brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.agent-brand-name { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.55em; line-height: 1.1; }
.agent-brand-title { font-size: 0.85em; color: var(--muted); letter-spacing: 0.02em; }
.agent-brand:hover .agent-brand-name { color: var(--brand-dark); }
.header-phone { font-size: 1.15em; }

/* Buttons for dark bands */
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hero-actions .btn, .section-actions .btn { margin-right: 8px; }

/* Home hero */
.agent-hero {
    position: relative;
    background: linear-gradient(135deg, #2b2625 0%, #3a2f2d 55%, #5a2226 100%);
    color: #f0ebe9;
    padding: 56px 0 96px;
    overflow: hidden;
}
.agent-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
.agent-hero h1 { color: #fff; font-size: 2.3em; margin: 0 0 18px; max-width: 700px; }
.agent-hero .section-eyebrow { color: #f4c6c9; }
.agent-hero .lead { color: #f0ebe9; max-width: 640px; }
.agent-hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.7); }
.agent-hero .btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

.agent-card {
    background: var(--card);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    align-self: start;
}
.agent-headshot { display: block; width: 100%; height: auto; }
.agent-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.95em; }
.agent-card-body strong { font-family: 'Bitter', Georgia, serif; font-size: 1.2em; }
.agent-card-body a { font-weight: 700; text-decoration: none; }

@media (max-width: 820px) {
    .agent-hero { padding: 36px 0 80px; }
    .agent-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .agent-hero h1 { font-size: 1.8em; }
    .agent-hero .agent-card { display: grid; grid-template-columns: 160px 1fr; align-items: center; max-width: 480px; }
    .agent-hero .agent-card-body { padding: 12px 14px; }
}

/* Page hero for inner pages */
.page-hero { background: var(--card); border-bottom: 1px solid var(--border); padding: 40px 0 28px; }
.page-hero h1 { margin: 0 0 8px; font-size: 2em; }
.page-hero .lead { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 700px) { .page-hero h1 { font-size: 1.55em; } }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-grid.two { grid-template-columns: repeat(2, 1fr); }
.service-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 4px solid var(--brand);
    transition: transform 0.15s ease;
}
.service-card:hover { transform: translateY(-2px); color: var(--ink); }
.service-card-eyebrow { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.2em; }
.service-card-text { color: var(--muted); font-size: 0.95em; flex: 1; }
.service-card-more { color: var(--brand); font-weight: 700; }
@media (max-width: 860px) { .service-grid, .service-grid.two { grid-template-columns: 1fr; } }

/* Home: one section per service */
.service-section { padding: 56px 0; }
.service-section:nth-of-type(even) { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-section h2 { font-size: 1.6em; margin: 0 0 14px; }
.service-section-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.service-side { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .service-section-grid { grid-template-columns: 1fr; gap: 24px; } .service-section { padding: 40px 0; } }

.question-card { background: var(--brand-light); border-radius: var(--radius); padding: 20px 22px; }
.question-card p { font-family: 'Bitter', Georgia, serif; font-size: 1.15em; font-weight: 700; margin: 6px 0 10px; }
.question-card a { font-weight: 700; text-decoration: none; }
.question-card-label { font-size: 0.75em; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--brand-dark); }

.resource-link {
    display: flex; gap: 14px; align-items: center;
    background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; text-decoration: none; color: var(--ink);
}
a.resource-link:hover { border-color: var(--brand); color: var(--ink); }
.resource-link strong { display: block; }
.resource-link small { display: block; color: var(--muted); font-size: 0.85em; }
.resource-icon {
    flex: 0 0 auto; width: 44px; height: 52px; border-radius: 6px; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8em; letter-spacing: 0.05em;
}
.resource-link.is-pending .resource-icon { background: var(--muted); }

/* Video */
.video-block { margin: 0 0 20px; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-block figcaption { font-weight: 700; margin-top: 8px; font-size: 0.95em; }

/* Process */
.process-band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.process-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.process-steps li { background: var(--bg); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.process-steps li span:last-child { color: var(--muted); font-size: 0.93em; }
.process-steps strong { font-family: 'Bitter', Georgia, serif; font-size: 1.05em; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.process-steps.vertical { grid-template-columns: 1fr; }
.process-steps.vertical li { background: var(--card); box-shadow: var(--shadow); padding-left: 72px; }
.process-steps.vertical .step-num { position: absolute; left: 20px; top: 20px; }
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.partner-note { max-width: 760px; margin: 0 auto; text-align: center; }
.partner-note h3 { margin-bottom: 6px; }

/* Closing band */
.closing-band { background: var(--brand-dark); color: #fff; padding: 56px 0; text-align: center; margin-top: 56px; }
.closing-band h2 { color: #fff; margin: 0 0 8px; font-size: 1.7em; }
.closing-band p { font-size: 1.1em; }

/* Service page */
.service-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 32px; }
.service-copy { font-size: 1.05em; }
.service-copy h2 { font-size: 1.35em; margin-top: 28px; }
.service-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.aside-card.question-card { background: var(--brand-light); box-shadow: none; }
.aside-heading { font-size: 1em; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-dark); font-family: 'Karla', sans-serif; }
.aside-card .resource-link { border: 0; padding: 0; background: none; }
.agent-mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; font-size: 0.92em; }
.agent-mini img { width: 96px; height: auto; border-radius: 8px; }
.other-services { padding-top: 56px; }
@media (max-width: 900px) { .service-page-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 12px 0 20px; }
.check-list li { position: relative; padding: 6px 0 6px 30px; border-bottom: 1px solid var(--border); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* About */
.about-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; padding-top: 32px; font-size: 1.05em; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-grid .agent-card { max-width: 360px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 32px; }
.contact-form-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.form-error ul { margin: 0; padding-left: 1.2em; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1em; }
fieldset.field legend { font-weight: 600; margin-bottom: 0.3em; padding: 0; }
.inline-choices label { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; margin-right: 16px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid .agent-card { max-width: 360px; } }

/* Communities */
.county-section { margin-bottom: 36px; scroll-margin-top: 16px; }
.county-section h2 { border-bottom: 2px solid var(--brand); padding-bottom: 6px; }
.community-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.community-card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.community-card:hover { color: var(--ink); outline: 2px solid var(--brand); }
.community-card strong { font-family: 'Bitter', Georgia, serif; font-size: 1.1em; }
.community-card-type { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-dark); font-weight: 700; }
.community-card-stats { font-size: 0.88em; color: var(--muted); }

.breadcrumbs { font-size: 0.9em; margin-bottom: 8px; }
.breadcrumbs a { text-decoration: none; }
.community-meta { color: var(--muted); margin: 0; font-weight: 600; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 28px; }
.community-main h2 { font-size: 1.35em; margin-top: 32px; }
.community-intro { font-size: 1.05em; }
.community-photo { margin: 0 0 20px; }
.community-photo img { width: 100%; border-radius: var(--radius); display: block; }
.community-photo figcaption { font-size: 0.8em; color: var(--muted); margin-top: 4px; }
.community-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-links { list-style: none; padding: 0; margin: 0 0 14px; }
.aside-links li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.aside-links a { text-decoration: none; font-weight: 600; }
.aside-links.columns { columns: 2; column-gap: 16px; }
.aside-links.columns li { break-inside: avoid; }
.aside-phone { text-align: center; font-weight: 700; margin: 0; }
@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } }

.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--brand-light); font-size: 0.9em; }
.quick-search { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.quick-search a { background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-weight: 600; font-size: 0.92em; }
.quick-search a:hover { border-color: var(--brand); }
.map-filters fieldset.field { flex: 1 1 100%; }

/* Footer */
.site-footer { position: relative; }
.footer-wave { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 44px; display: block; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 16px; }
.footer-logo { border-radius: 6px; }
.footer-legal { border-top: 1px solid #3a3533; margin-top: 12px; padding-top: 12px; font-size: 0.88em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Alignment: hero eyebrow left; inner-page titles line up with the content column */
.agent-hero .section-eyebrow { text-align: left; }
.page-hero .container.narrow { max-width: var(--max-width); }
.page-hero h1, .page-hero .lead { max-width: 860px; }

/* ---------- Saved ("liked") properties ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.property-card { position: relative; }
.save-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 0.9em; cursor: pointer; color: var(--brand); }
.save-btn svg { fill: none; stroke: var(--brand); stroke-width: 2; }
.save-btn.is-saved svg { fill: var(--brand); }
.save-btn--icon { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.save-btn--icon svg { width: 22px; height: 22px; }
.save-btn--icon .save-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.save-btn--full { border: 2px solid var(--brand); padding: 0.6em 1.3em; border-radius: 999px; background: #fff; }
.save-btn--full.is-saved { background: var(--brand); color: #fff; }
.save-btn--full.is-saved svg { fill: #fff; stroke: #fff; }
.save-btn--popup { margin-top: 4px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 16px; }
.detail-actions .btn { margin-bottom: 0; }

.tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--ink); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2); }
.tray[hidden] { display: none; }
.tray__inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tray__text { font-weight: 700; }
.tray__text svg { fill: var(--brand); stroke: #fff; stroke-width: 1.5; vertical-align: -3px; margin-right: 6px; }
.tray .btn { margin: 0 0 0 auto; padding: 0.55em 1.3em; }
body.has-tray { padding-bottom: 72px; }

.saved-items { display: grid; gap: 10px; margin-bottom: 16px; }
.saved-item { display: grid; grid-template-columns: auto 88px 1fr; gap: 12px; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px; background: #fff; font-weight: normal; margin: 0; cursor: pointer; }
.saved-item--link { grid-template-columns: 88px 1fr; text-decoration: none; color: var(--ink); }
.saved-item img, .saved-item__nophoto { width: 88px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; display: block; background: var(--border); }
.saved-item input { width: 22px; height: 22px; accent-color: var(--brand); }
.saved-item strong { color: var(--brand-dark); }
.saved-item small { display: block; color: var(--muted); }
.notice { background: var(--brand-light); border-radius: 10px; padding: 12px 14px; }

.request-panel { max-width: 640px; margin: 32px auto 8px; text-align: center; background: var(--brand-light); border-radius: var(--radius); padding: 24px; }
.request-panel h2 { margin-top: 0; }
@media (max-width: 480px) { .saved-item { grid-template-columns: auto 64px 1fr; } .saved-item img, .saved-item__nophoto { width: 64px; } }
