:root {
  --ink: #141414;
  --ink-deep: #000000;
  --accent: #c5a95e;
  --accent-strong: #7a6230;
  --accent-bright: #e2c983;
  --accent-soft: #f3ead3;
  --accent-grad: linear-gradient(135deg, #e9d6a0 0%, #c5a95e 45%, #7a6230 100%);
  --cream: #f7f5f1;
  --paper: #faf9f7;
  --text: #242a2d;
  --muted: #687178;
  --line: #dcdad5;
  --good: #2f6b4f;
  --warn: #a5652a;
  --cold: #2e6da4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(44px, 6vw, 92px); line-height: 1.08; margin: 24px 0; }
h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1.12; margin: 14px 0; }
h3 { font-size: 26px; margin: 12px 0; }
.muted { color: var(--muted); line-height: 1.8; }
.eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; color: var(--accent-strong); }
.hero .eyebrow, .page-hero .eyebrow, .contact .eyebrow { color: var(--accent-bright); }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* Announcement + header */
.announcement { background: var(--accent-grad); color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,.2); text-align: center; font-size: 10px; letter-spacing: 2px; padding: 10px; }
header.site { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 6%; background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: .025em; }
.brand { position: relative; }
.brand > span { background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, var(--accent-bright) 50%, var(--ink) 60%, var(--ink) 100%); background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brand-shine 5s ease-in-out infinite; }
.brand img { width: 46px; height: 46px; object-fit: contain; padding: 5px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff 0%, #fbf8f0 55%, #efe3c3 100%); border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px #fff, 0 0 0 5px rgba(197,169,94,.35), 0 6px 18px rgba(197,169,94,.45), inset 0 -3px 6px rgba(122,98,48,.18); transition: transform .3s, box-shadow .3s; }
.brand::after { content: ""; position: absolute; left: 0; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.95) 48%, transparent 62%); background-size: 300% 100%; background-position: 150% 0; animation: logo-gleam 5s ease-in-out infinite; mix-blend-mode: screen; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 0 2px var(--accent-bright), 0 0 0 4px #fff, 0 0 0 6px rgba(197,169,94,.5), 0 8px 26px rgba(197,169,94,.65), inset 0 -3px 6px rgba(122,98,48,.18); }
footer.site .brand img { width: 40px; height: 40px; }
footer.site .brand::after { width: 40px; height: 40px; margin-top: -20px; }
@keyframes brand-shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@keyframes logo-gleam { 0%, 45% { background-position: 150% 0; } 75%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .brand > span, .brand::after { animation: none; } }
nav.main { display: flex; gap: 26px; align-items: center; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
nav.main a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 10px 14px; font: inherit; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; color: var(--ink); }

/* Buttons */
.button { display: inline-block; background: var(--accent-strong); box-shadow: 0 6px 16px rgba(122,98,48,.28); color: #fff; padding: 17px 27px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; transition: background .2s, color .2s; }
.button:hover { background: #a94608; }
.button.light { background: #fff; color: var(--ink); box-shadow: none; }
.button.light:hover { background: var(--accent-soft); }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--accent); box-shadow: none; }
.button.ghost:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.button.small { padding: 11px 18px; font-size: 10px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.link { font-size: 12px; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 5px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; color: inherit; }

/* Hero */
.hero { min-height: 640px; height: 78vh; max-height: 850px; position: relative; display: flex; align-items: center; background: linear-gradient(90deg, rgba(8,16,24,.74), rgba(8,16,24,.1)), url('/.netlify/images?url=/images/ne/hero-lake.jpg&w=2200&q=82') center/cover; }
.hero-content { color: #fff; margin-left: 9%; max-width: 760px; }
.hero p { font-size: 17px; line-height: 1.7; max-width: 500px; margin-bottom: 35px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.quick-search { margin-top: 40px; display: flex; flex-wrap: wrap; background: #fff; max-width: 640px; }
.quick-search select, .quick-search input { flex: 1 1 180px; border: 0; padding: 18px; font: inherit; min-width: 0; }
.quick-search button { flex: 0 0 auto; }

.page-hero { background: linear-gradient(90deg, rgba(8,16,24,.78), rgba(8,16,24,.25)), var(--hero-img, url('/.netlify/images?url=/images/ne/hero-street.jpg&w=2000&q=80')) center/cover; color: #fff; padding: 110px 8% 90px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); margin: 16px 0; }
.page-hero p { max-width: 560px; font-size: 17px; line-height: 1.7; color: #e3e7ea; }

/* Sections */
section { padding: 100px 8%; }
section.tight { padding-top: 60px; padding-bottom: 60px; }
.cream { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }

/* Feature tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: #fff; padding: 34px 26px; display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
.tile:hover { background: var(--paper); }
.tile { border-top: 3px solid transparent; }
.tile:hover { border-top-color: var(--accent); }
.tile .num { font-size: 13px; letter-spacing: 2px; color: var(--accent-strong); font-weight: 700; }
.tile h3 { font-size: 22px; margin: 4px 0; }
.tile p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.tile .link { align-self: flex-start; margin-top: 10px; }

/* Properties */
.properties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.property { background: var(--paper); display: flex; flex-direction: column; }
.property .photo { position: relative; }
.property img { width: 100%; height: 250px; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ink); font-size: 10px; letter-spacing: 2px; padding: 7px 10px; font-weight: 700; text-transform: uppercase; }
.badge.new { background: var(--accent-strong); color: #fff; }
.property-copy { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.property small { color: #7c7771; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.property .price { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--ink); margin: 8px 0 2px; }
.property h3 { font-size: 20px; margin: 4px 0 6px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.property .specs { display: flex; gap: 16px; color: #555d62; font-size: 13px; margin: 8px 0 14px; flex-wrap: wrap; }
.property .actions { margin-top: auto; display: flex; gap: 18px; flex-wrap: wrap; }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 570px; padding: 0; background: var(--cream); }
.split-image { background: url('/.netlify/images?url=/images/ne/home-appleton-1.jpg&w=1400&q=80') center/cover; }
.split-text { padding: 90px 12%; display: flex; flex-direction: column; justify-content: center; }
.split-text p { line-height: 1.9; color: #60686d; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 35px; }
.services article { border-top: 3px solid var(--accent); padding-top: 20px; }

/* Contact */
.contact { background: #000; border-top: 6px solid var(--accent); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact p { line-height: 1.8; color: #d1d8dc; }

/* Forms */
form.stack { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: #4c5459; }
input, textarea, select { padding: 15px 16px; background: #fff; border: 1px solid var(--line); border-radius: 0; font: inherit; width: 100%; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.contact input, .contact textarea, .contact select { border: 0; }
textarea { min-height: 110px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.checks input { width: auto; }
.form-note { font-size: 12px; color: var(--muted); }
.form-status { font-size: 14px; padding: 14px 16px; background: #eaf3ee; color: var(--good); border-left: 3px solid var(--good); }
.form-status.error { background: #f8ece6; color: #5e4c24; border-color: #5e4c24; }
.contact .form-status { background: rgba(255,255,255,.12); color: #fff; border-color: var(--accent); }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); padding: 34px; }
.panel.cream { background: var(--cream); border-color: transparent; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }

/* IDX search */
.idx-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; background: var(--cream); padding: 22px; margin-bottom: 26px; }
.idx-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.idx-bar .count { font-size: 14px; color: var(--muted); }
.idx-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.idx-layout .properties { grid-template-columns: repeat(2, 1fr); }
#map { height: 640px; position: sticky; top: 112px; background: var(--cream); border: 1px solid var(--line); }
.idx-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.empty { padding: 50px; text-align: center; background: var(--paper); color: var(--muted); grid-column: 1 / -1; }
.area-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-strong); color: #fff; font-size: 12px; padding: 8px 14px; letter-spacing: .5px; }

/* Listing dialog */
dialog.listing { border: 0; padding: 0; max-width: 860px; width: 94vw; }
dialog.listing::backdrop { background: rgba(8,16,24,.6); }
dialog.listing img { width: 100%; height: 360px; object-fit: cover; }
dialog.listing .body { padding: 30px 34px 34px; }
dialog.listing .close { position: absolute; top: 12px; right: 12px; background: #fff; border: 0; width: 40px; height: 40px; font-size: 22px; cursor: pointer; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 18px 0; }
.facts div { background: #fff; padding: 14px; font-size: 13px; color: var(--muted); }
.facts strong { display: block; font-size: 18px; color: var(--ink); font-weight: 600; }

/* Calculators */
.result-card { background: var(--ink); color: #fff; padding: 34px; }
.result-card .big { font-family: 'Playfair Display', serif; font-size: clamp(38px, 4vw, 56px); line-height: 1.1; margin: 8px 0; }
.result-card .range { color: #cfd8df; font-size: 15px; }
.result-card .eyebrow, .weather-card .eyebrow { color: var(--accent-bright); }
.result-card { border-top: 4px solid var(--accent); }
.breakdown { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.breakdown li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 10px; }
.breakdown .dot { width: 10px; height: 10px; display: inline-block; margin-right: 10px; }
.donut-wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.donut { width: 170px; height: 170px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--ink); border-radius: 50%; }
.donut span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 1; font-size: 12px; color: #cfd8df; }
.donut span strong { font-family: 'Playfair Display', serif; font-size: 26px; color: #fff; font-weight: 400; }
.range-row { display: flex; gap: 12px; align-items: center; }
.range-row input[type=range] { padding: 0; border: 0; accent-color: var(--accent); }
.range-row output { min-width: 56px; text-align: right; font-weight: 600; color: var(--ink); }
.amort { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
.amort th, .amort td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.amort th:first-child, .amort td:first-child { text-align: left; }
.amort th { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs a { padding: 14px 22px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active, .tabs a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Calendar */
.cal-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.calendar { background: #fff; border: 1px solid var(--line); padding: 26px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-head h3 { margin: 0; font-size: 26px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 18px; color: var(--ink); }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 0; font-weight: 600; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; position: relative; }
.cal-day:hover:not(:disabled) { border-color: var(--accent); }
.cal-day:disabled { color: #c3c4c4; background: var(--paper); cursor: not-allowed; border-color: transparent; }
.cal-day.today::after { content: ""; position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cal-day.selected { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.cal-day.blank { border: 0; background: none; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.slot { padding: 12px 6px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.slot:hover { border-color: var(--accent); }
.slot.selected { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.appt-types { display: grid; gap: 8px; }
.appt-type { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; background: #fff; }
.appt-type input { width: auto; margin-top: 4px; }
.appt-type strong { display: block; font-size: 15px; }
.appt-type span { font-size: 13px; color: var(--muted); }
.appt-type input { accent-color: var(--accent-strong); }
.appt-type:has(input:checked) { border-color: var(--accent); background: #faf6ec; }
.summary-box { background: #faf6ec; padding: 16px 18px; font-size: 14px; border-left: 3px solid var(--accent); }

/* Seasonal / temperature */
.weather-card { background: var(--ink); color: #fff; padding: 34px; display: grid; gap: 18px; }
.weather-now { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.weather-now .temp { font-family: 'Playfair Display', serif; font-size: 72px; line-height: 1; }
.weather-now .meta { color: #cfd8df; font-size: 14px; line-height: 1.7; }
.forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.forecast div { background: rgba(255,255,255,.08); padding: 12px 6px; text-align: center; font-size: 12px; color: #cfd8df; }
.forecast strong { display: block; color: #fff; font-size: 16px; font-weight: 600; margin-top: 4px; }
.forecast .lo { color: #9fb6ca; }
.forecast .freeze { outline: 1px solid #8ec5ff; }
.forecast .hot { outline: 1px solid #dcc58f; }
.alert { padding: 16px 18px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.1); font-size: 14px; line-height: 1.6; }
.alert strong { display: block; font-size: 15px; margin-bottom: 2px; }
.alert.cold { border-color: #8ec5ff; }
.alert.hot { border-color: #dcc58f; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.season-tabs button { background: #fff; border: 1px solid var(--line); padding: 12px 20px; font: inherit; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; }
.season-tabs button.active { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.check-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); padding: 18px; cursor: pointer; align-items: flex-start; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-strong); flex: 0 0 auto; }
.check-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.check-item span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.check-item.done { background: var(--paper); }
.check-item.done strong { text-decoration: line-through; color: var(--muted); }
.check-item .tag { display: inline-block; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 7px; margin-left: 6px; background: var(--accent-soft); color: #6f5a2a; vertical-align: middle; font-weight: 700; text-decoration: none; }
.progress { height: 6px; background: var(--line); margin: 6px 0 22px; }
.progress div { height: 100%; background: var(--accent-grad); width: 0; transition: width .3s; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, #f8f2e3, var(--cream) 60%); border-top: 3px solid var(--accent); display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.newsletter form { display: grid; gap: 12px; }
.inline-field { display: flex; }
.inline-field input { flex: 1; min-width: 0; }

/* Footer */
footer.site { padding: 50px 8% 35px; font-size: 13px; color: #71777c; line-height: 1.8; background: #fff; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-grid h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; font-weight: 700; }
.footer-grid a { display: block; }
.footer-grid a:hover { color: var(--accent-strong); }
.fine { font-size: 11px; border-top: 1px solid #efede8; padding-top: 20px; }
.eho { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }

/* Communities */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.region-card { background: #fff; padding: 26px; border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s, transform .2s; }
.region-card:hover { box-shadow: 0 10px 28px rgba(20,20,20,.12); transform: translateY(-2px); }
.region-card h3 { font-size: 22px; margin: 0; color: var(--ink); }
.region-card p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.region-card .towns { font-size: 12px; color: var(--accent-strong); font-weight: 600; line-height: 1.6; }
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip-nav a { border: 1px solid var(--line); background: #fff; padding: 9px 14px; font-size: 12px; letter-spacing: .5px; transition: background .2s, color .2s, border-color .2s; }
.chip-nav a:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.comm-map { height: 460px; border: 1px solid var(--line); background: var(--cream); margin-bottom: 10px; }
.office-finder { margin: 60px 0 10px; }
.office-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.office-controls .field { min-width: 280px; margin: 0; }
.office-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid var(--line); background: #fff; margin-bottom: 10px; }
.office-map { height: 380px; background: var(--cream); }
.office-panel { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.office-panel h3 { font-size: 24px; margin: 4px 0; }
.office-actions { margin: 14px 0 6px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .office-layout { grid-template-columns: 1fr; } .office-map { height: 300px; } .office-controls .field { min-width: 0; flex: 1 1 100%; } }
.region-block { padding-top: 70px; scroll-margin-top: 100px; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.community-card { background: var(--paper); padding: 26px; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid transparent; transition: border-color .2s, background .2s; }
.community-card:hover { border-top-color: var(--accent); background: #faf6ec; }
.community-card small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-strong); font-weight: 700; }
.community-card h3 { margin: 4px 0; font-size: 24px; color: var(--ink); }
.community-card p { margin: 0 0 6px; font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.community-card .link { align-self: flex-start; margin-top: 10px; }
.mini-stats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mini-stats li { background: #fff; padding: 10px 12px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.mini-stats strong { display: block; color: var(--ink); font-size: 16px; letter-spacing: 0; text-transform: none; }
.stat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.stat-row div { background: #fff; padding: 20px 18px; display: grid; gap: 4px; }
.stat-row span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-row strong { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 26px; color: var(--ink); line-height: 1.15; }
.stat-row small { font-size: 12px; color: var(--muted); }
.favorites { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.favorites li { padding: 14px 16px 14px 44px; background: var(--cream); position: relative; font-size: 15px; }
.favorites li::before { content: "★"; position: absolute; left: 16px; color: var(--accent); }
.tiles.four { grid-template-columns: repeat(4, 1fr); margin-top: 30px; }
.connect-band { background: var(--ink); color: #fff; border-top: 6px solid var(--accent); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; scroll-margin-top: 90px; }
.connect-band .eyebrow { color: var(--accent-bright); }
.connect-band > div > p { color: #d1d8dc; line-height: 1.8; }
.connect-band .panel { color: var(--text); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pillars div { background: rgba(255,255,255,.07); border-left: 3px solid var(--accent); padding: 16px 18px; }
.pillars strong { display: block; font-size: 15px; margin-bottom: 4px; }
.pillars span { font-size: 13px; color: #cfd8df; line-height: 1.6; }
.services.five { grid-template-columns: repeat(5, 1fr); gap: 28px; }
.services.five h3 { font-size: 22px; }
.compare th button { background: none; border: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.compare th button:hover { color: var(--accent-strong); }
.compare td { vertical-align: middle; }
.compare td a:hover strong { color: var(--accent-strong); }
.office-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.office-columns h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.office-columns a { display: block; font-size: 14px; padding: 4px 0; color: var(--muted); }
.office-columns a:hover { color: var(--accent-strong); }
.contact h1 { color: #fff; }
.contact form:not(.panel) .button { justify-self: start; }

/* Responsive */
@media (max-width: 1250px) {
  nav.main { gap: 16px; font-size: 11px; }
  .services.five { grid-template-columns: repeat(3, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .region-grid, .office-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1500px) {
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 6%; gap: 16px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
}
@media (max-width: 1150px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .idx-layout { grid-template-columns: 1fr; }
  #map { position: relative; top: 0; height: 380px; order: -1; }
  .idx-filters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px 6%; gap: 16px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  header.site { min-height: 76px; }
  .hero { min-height: 600px; height: auto; }
  .hero-content { margin: 70px 7%; }
  section { padding: 65px 6%; }
  .page-hero { padding: 80px 6% 60px; }
  .properties, .idx-layout .properties, .services, .services.five, .split, .contact, .two-col, .cal-layout, .newsletter, .footer-grid, .checklist, .connect-band, .community-grid { grid-template-columns: 1fr; }
  .tiles.four, .stat-row { grid-template-columns: 1fr 1fr; }
  .connect-band { gap: 30px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .split-image { height: 340px; }
  .split-text { padding: 60px 7%; }
  .contact, .newsletter { gap: 25px; }
  .section-heading { display: block; }
  .idx-filters { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .forecast { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .tiles, .tiles.four, .row, .row.three, .idx-filters, .region-grid, .office-columns, .pillars { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .panel, .result-card, .weather-card { padding: 24px; }
  dialog.listing img { height: 240px; }
}

/* Community events */
.ev-filters { grid-template-columns: 1.4fr 1fr 1fr 1.3fr auto; }
.ev-month { font-size: 30px; color: var(--ink); margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ev-month:first-child { margin-top: 0; }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
.event-card { display: grid; grid-template-columns: 92px 1fr; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.event-card.agent { border-top-color: var(--accent); background: #fcfaf5; }
.ev-date { background: var(--ink); color: #fff; text-align: center; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.event-card.agent .ev-date { background: var(--accent-strong); }
.ev-date span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.ev-date strong { font-family: 'Playfair Display', Georgia, serif; font-size: 40px; font-weight: 400; line-height: 1; }
.ev-date small { font-size: 11px; color: #cfd8df; line-height: 1.3; }
.event-card.agent .ev-date small { color: #f1e6c8; }
/* Home page "Coming up around Wisconsin": black date strips instead of navy (agent events stay orange). */
#events-teaser .event-card:not(.agent) { border-top-color: #000; }
#events-teaser .event-card:not(.agent) .ev-date { background: #000; }
.ev-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ev-body h3 { margin: 0; font-size: 23px; color: var(--ink); line-height: 1.25; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.ev-meta a { color: var(--muted); border-bottom: 1px solid var(--line); }
.ev-meta a:hover { color: var(--accent-strong); }
.ev-type { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 5px 9px; background: var(--cream); color: var(--ink); }
.ev-type.t-agent { background: var(--accent-strong); color: #fff; }
.ev-type.t-holiday { background: #e3eef8; color: #1d4f80; }
.ev-type.t-festival { background: #f3ead3; color: #8a3d07; }
.ev-type.t-market, .ev-type.t-food { background: #e5f0e9; color: #2f6b4f; }
.ev-type.t-outdoors { background: #e6eef2; color: #2c5566; }
.ev-type.t-music { background: #efe7f4; color: #5b3a75; }
.ev-facts { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.ev-facts div { display: grid; grid-template-columns: 58px 1fr; gap: 10px; }
.ev-facts dt { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-top: 3px; }
.ev-facts dd { margin: 0; color: var(--text); }
.ev-special { margin: 2px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ev-special strong { color: var(--ink); font-weight: 600; }
.ev-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags li { font-size: 11px; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.rsvp-detail { margin-top: 18px; padding: 16px 18px; background: #fff; border-left: 3px solid var(--accent); line-height: 1.6; font-size: 14px; }
.rsvp-detail:empty { display: none; }
@media (max-width: 1150px) { .ev-filters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .ev-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .ev-filters { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .ev-date { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 16px; text-align: left; }
  .ev-date strong { font-size: 26px; }
}

/* Social media icons */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); border: 1px solid var(--line); background: #fff; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.social a:hover, .social a:focus-visible { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; transform: translateY(-2px); }
.social.on-dark a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.social.on-dark a:hover, .social.on-dark a:focus-visible { background: var(--accent-strong); border-color: var(--accent-strong); }
.footer-grid .social a { display: grid; }
.form-status:empty { display: none; }

/* Agent portfolio */
.portfolio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; background: var(--cream); align-items: start; }
.pf-card { background: #fff; padding: 40px; border-top: 4px solid var(--accent); box-shadow: 0 18px 40px rgba(20,20,20,.08); position: sticky; top: 120px; }
.pf-photo { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent), 0 10px 26px rgba(197,169,94,.35); }
.pf-photo span { font-family: 'Playfair Display', serif; font-size: 46px; color: #fff; letter-spacing: 2px; }
.pf-card h2 { font-size: clamp(30px, 3vw, 42px); margin: 10px 0 4px; }
.pf-post { display: block; font-family: 'DM Sans', sans-serif; font-size: 13px; letter-spacing: 2px; color: var(--accent-strong); font-weight: 700; margin-top: 6px; }
.pf-role { font-size: 14px; color: var(--ink); font-weight: 600; margin: 6px 0 12px; }
.pf-body h3 { font-size: 22px; margin: 34px 0 14px; }
.pf-body h3:first-of-type { margin-top: 30px; }
.pf-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pf-stats li { background: #fff; padding: 20px 16px; }
.pf-stats strong { display: block; font-family: 'Playfair Display', serif; font-size: 32px; color: var(--ink); font-weight: 400; }
.pf-stats span { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; }
.designations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.designations li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 12px 14px; }
.designations abbr { display: block; text-decoration: none; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: .5px; }
.designations span { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.pf-awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pf-awards li { font-size: 14px; color: var(--muted); padding-left: 26px; position: relative; }
.pf-awards li::before { content: "★"; position: absolute; left: 0; color: var(--accent); }
.pf-awards strong { color: var(--text); }
.pf-sold { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pf-sold figure { margin: 0; background: #fff; position: relative; }
.pf-sold img { width: 100%; height: 120px; object-fit: cover; }
.sold-tag { position: absolute; top: 8px; left: 8px; background: var(--accent-strong); color: #fff; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; padding: 4px 7px; }
.pf-sold figcaption { padding: 10px 12px 12px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pf-sold figcaption strong { display: block; color: var(--text); font-size: 13px; }
.pf-quote { margin: 30px 0 0; padding: 22px 26px; background: var(--ink); color: #fff; font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.6; border-left: 4px solid var(--accent); }
.pf-quote cite { display: block; font-family: 'DM Sans', sans-serif; font-style: normal; font-size: 12px; letter-spacing: 1px; color: #cfd8df; margin-top: 10px; }

/* Give Back Together */
.giveback { scroll-margin-top: 90px; }
.gb-impact { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gb-impact li { border-top: 3px solid var(--accent); padding-top: 14px; }
.gb-impact strong { display: block; font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(30px, 3vw, 44px); color: var(--ink); }
.gb-impact span { font-size: 13px; color: var(--muted); }
.gb-pledge { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--accent-grad); color: #fff; padding: 30px 36px; margin-bottom: 30px; }
.gb-pledge .eyebrow { color: #fff; }
.gb-pledge h3 { margin: 8px 0 6px; font-size: 28px; }
.gb-pledge p { margin: 0; max-width: 680px; line-height: 1.7; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.gb-causes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 50px; }
.gb-causes article { background: #fff; padding: 26px 24px; }
.gb-causes h3 { font-size: 20px; margin: 10px 0 6px; }
.gb-causes p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gb-icon { font-size: 26px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 50%; }
.gb-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.gb-grid h3 { font-size: 24px; }
.gb-seasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gb-seasons li { background: var(--cream); padding: 16px 18px; border-left: 3px solid var(--ink); }
.gb-seasons strong { display: block; color: var(--ink); }
.gb-seasons span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.gb-events { grid-template-columns: 1fr; }

/* Agent CRM */
.crm-auth { min-height: 70vh; display: grid; place-items: center; background: var(--cream); }
.crm-login { width: min(460px, 100%); }
.crm-login h1 { font-size: 44px; margin: 10px 0; }
.crm-app { padding: 50px 5% 80px; }
.crm-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.crm-top h1 { font-size: clamp(36px, 4vw, 56px); margin: 8px 0 0; }
.crm-user { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.crm-upcoming { margin: 30px 0; background: var(--ink); color: #fff; padding: 26px 28px; border-top: 4px solid var(--accent); }
.crm-upcoming-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.crm-upcoming h2 { font-size: 28px; margin: 0; }
.crm-upcoming label { font-size: 13px; color: #cfd8df; }
.crm-upcoming select { padding: 6px 8px; margin-left: 6px; width: auto; }
.up-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.up-list > .muted { color: #cfd8df; }
.up-list button { width: 100%; text-align: left; display: grid; grid-template-columns: 34px 70px 1fr; gap: 10px; align-items: center; background: rgba(255,255,255,.07); border: 0; border-left: 3px solid var(--accent); color: #fff; padding: 12px 14px; font: inherit; cursor: pointer; }
.up-list button:hover { background: rgba(255,255,255,.14); }
.up-icon { font-size: 22px; }
.up-when strong { display: block; font-size: 15px; }
.up-when small, .up-text small { display: block; font-size: 11px; color: #cfd8df; }
.up-text { font-size: 14px; line-height: 1.35; }
.crm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.crm-toolbar input { flex: 1 1 280px; }
.crm-toolbar input, .crm-toolbar select { padding: 12px 14px; font: inherit; border: 1px solid var(--line); }
.crm-toolbar select { width: auto; }
.crm-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.crm-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); max-height: 75vh; overflow: auto; }
.crm-list > li.muted { padding: 18px; }
.crm-list button { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; font: inherit; cursor: pointer; }
.crm-list button:hover, .crm-list button[aria-current] { background: var(--accent-soft); }
.crm-list strong { display: block; font-size: 15px; }
.crm-list small { display: block; font-size: 12px; color: var(--muted); }
.crm-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.stage { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 4px 8px; background: var(--cream); color: var(--ink); white-space: nowrap; }
.stage.s-lead { background: #e8f0f8; color: var(--cold); }
.stage.s-active { background: var(--accent-soft); color: #8a3b07; }
.stage.s-past { background: #eaf3ee; color: var(--good); }
.crm-detail { background: #fff; border: 1px solid var(--line); padding: 30px 32px; min-height: 300px; }
.crm-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.crm-detail h2 { font-size: 36px; margin: 10px 0 4px; }
.crm-detail h3 { font-size: 20px; margin: 28px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.crm-job { margin: 0; color: var(--ink); font-weight: 600; }
.crm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; margin: 22px 0 0; }
.crm-facts dt { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.crm-facts dd { margin: 2px 0 0; font-size: 14px; }
.crm-facts a { color: var(--accent-strong); }
.crm-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.crm-items li { font-size: 14px; background: var(--paper); padding: 10px 14px; border-left: 3px solid var(--accent); }
.crm-items small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.crm-items .link { font-size: 11px; padding-bottom: 1px; margin-left: 6px; }
.crm-notes { white-space: pre-wrap; }
.crm-touch { display: grid; grid-template-columns: 150px 120px 1fr auto; gap: 8px; margin-bottom: 12px; }
.crm-touch input, .crm-touch select { padding: 10px; font: inherit; border: 1px solid var(--line); min-width: 0; }
.crm-dialog { border: 0; padding: 0; width: min(920px, 96vw); max-height: 92vh; }
.crm-dialog::backdrop { background: rgba(8,16,24,.6); }
.crm-dialog form { padding: 0 30px 26px; }
.crm-dialog-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; z-index: 2; padding: 18px 0 10px; border-bottom: 1px solid var(--line); }
.crm-dialog-head h2 { font-size: 28px; margin: 0; }
.crm-dialog .close { background: none; border: 0; font-size: 30px; cursor: pointer; color: var(--ink); }
.crm-dialog fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0; display: grid; gap: 12px; }
.crm-dialog legend { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ink); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.crm-dialog .form-note { margin: 0; }
.repeat { display: grid; gap: 10px; }
.repeat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--cream); padding: 14px; position: relative; }
.repeat-row .remove { position: absolute; top: 8px; right: 12px; font-size: 11px; }
.repeat-row .field label { font-size: 11px; }
.repeat-row + .link, fieldset > .link { justify-self: start; }
.crm-dialog-foot { display: flex; gap: 10px; align-items: center; padding-top: 18px; position: sticky; bottom: 0; background: #fff; }
.button.danger { color: #5e4c24; border-color: #5e4c24; }
.button.danger:hover { background: #5e4c24; border-color: #5e4c24; color: #fff; }

@media (max-width: 1100px) {
  .designations { grid-template-columns: repeat(2, 1fr); }
  .pf-sold { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .portfolio, .gb-grid, .crm-layout { grid-template-columns: 1fr; }
  .pf-card { position: static; }
  .pf-stats, .gb-impact { grid-template-columns: repeat(2, 1fr); }
  .gb-causes { grid-template-columns: 1fr 1fr; }
  .gb-pledge { flex-direction: column; align-items: start; }
  .repeat-row { grid-template-columns: 1fr 1fr; }
  .crm-list { max-height: 50vh; }
}
@media (max-width: 560px) {
  .gb-causes, .gb-seasons, .repeat-row, .crm-touch { grid-template-columns: 1fr; }
  .pf-card, .crm-detail { padding: 24px; }
  .crm-dialog form { padding: 0 18px 20px; }
}

/* Digital Presence Workbook (/workbook) */
.wb-statement { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.wb-terms p { line-height: 1.8; }
.wb-unlock { border-top: 4px solid var(--accent); text-align: left; }
.wb-unlock h3 { margin: 8px 0; }
.wb-unlock .button { margin: 12px 0 22px; }
.wb-unlock form { border-top: 1px solid var(--line); padding-top: 18px; }
.wb-lock { font-size: 34px; }
@media (max-width: 900px) { .wb-statement { grid-template-columns: 1fr; } }

/* Wisconsin architecture (communities hub) */
.arch { scroll-margin-top: 90px; }
.arch-sub { font-size: 28px; color: var(--ink); margin: 54px 0 22px; }
.arch .section-heading + .arch-sub { margin-top: 0; }
.arch-traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.arch-traits article { background: var(--cream); padding: 26px; border-top: 3px solid var(--accent); }
.arch-traits .num { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent-strong); }
.arch-traits h4, .arch-style h4, .arch-regions h4 { font-size: 22px; color: var(--ink); margin: 8px 0; }
.arch-traits p, .arch-style p, .arch-regions p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.arch-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.arch-style { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.arch-style img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.arch-style > div { padding: 20px 22px 24px; }
.arch-style small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-strong); font-weight: 700; }
.arch-style .where { margin-top: 10px; font-size: 13px; color: var(--text); }
.arch-regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.arch-regions article { background: var(--paper); padding: 24px; border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.arch-regions article p { flex: 1; }
.arch-regions .link { align-self: flex-start; margin-top: 10px; }
@media (max-width: 1150px) { .arch-regions { grid-template-columns: repeat(2, 1fr); } .arch-traits, .arch-styles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .arch-regions, .arch-traits, .arch-styles { grid-template-columns: 1fr; } }

/* Website tour (/tour) */
.tour-glance { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; background: var(--line); padding: 0; border-bottom: 1px solid var(--line); }
.tour-glance div { background: #fff; padding: 30px 20px; text-align: center; }
.tour-glance strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-size: 46px; line-height: 1; color: var(--ink); }
.tour-glance span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.tour { background: var(--paper); scroll-margin-top: 92px; }
.tour-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 30px; }
.tour-head .muted { max-width: 420px; margin: 0; }
.tour-progress { height: 4px; background: var(--line); margin-bottom: 30px; display: none; }
.tour-progress span { display: block; height: 100%; width: 0; background: var(--accent-grad); transition: width .4s; }
.tour-body { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.tour-nav { list-style: none; margin: 0; padding: 0; position: sticky; top: 112px; border-left: 2px solid var(--line); }
.tour-nav a { display: flex; gap: 14px; padding: 10px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--text); line-height: 1.35; transition: background .2s, border-color .2s; }
.tour-nav a:hover { background: #fff; }
.tour-nav a small { display: block; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.tour-num { font-family: 'Playfair Display', Georgia, serif; color: var(--accent-strong); font-size: 18px; min-width: 24px; }
.tour-nav a[aria-current="step"] { border-left-color: var(--accent); background: #fff; color: var(--ink); font-weight: 600; }
.tour-nav a.done .tour-num::after { content: " ✓"; font-size: 12px; color: var(--good); }
.tour-stop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 34px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 34px; margin-bottom: 30px; }
.tour-stop h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; color: var(--ink); outline: none; }
.tour-copy > p { line-height: 1.75; }
.tour-hl { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.tour-hl li { position: relative; padding-left: 28px; line-height: 1.5; }
.tour-hl li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tour-why { background: var(--cream); border-left: 3px solid var(--ink); padding: 16px 20px; }
.tour-why strong { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.tour-why p { margin: 6px 0 0; line-height: 1.7; }
.tour-preview { margin: 0; align-self: start; }
.tour-chrome { display: flex; align-items: center; gap: 6px; background: #e9e7e2; padding: 9px 12px; border: 1px solid var(--line); border-bottom: 0; }
.tour-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c9c5bd; }
.tour-chrome i:first-child { background: var(--accent); }
.tour-chrome span { flex: 1; margin-left: 8px; background: #fff; border-radius: 4px; padding: 3px 10px; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tour-screen { --scale: .5; position: relative; aspect-ratio: 1280 / 860; overflow: hidden; border: 1px solid var(--line); background: var(--cream) url('/.netlify/images?url=/images/ne/hero-street.jpg&w=800&q=60') center/cover; }
.tour-screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 860px; border: 0; background: #fff; transform: scale(var(--scale)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.tour-screen.is-loaded iframe { opacity: 1; }
.tour-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; background: rgba(0,0,0,.55); }
.tour-js .tour-placeholder { display: none; }
.tour-preview figcaption { margin-top: 14px; }
.tour-controls { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.tour-controls a:only-child { margin-left: auto; }
.tour-js .tour-progress { display: block; }
.tour-js .tour-stop { display: none; margin-bottom: 0; }
.tour-js .tour-stop.is-active { display: grid; animation: tour-in .35s ease; }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-js .tour-stop.is-active { animation: none; } .tour-progress span { transition: none; } }
.tour-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tour-checks h4 { font-size: 24px; margin: 0 0 14px; color: var(--ink); }
.tour-checks ul { margin: 0; padding-left: 20px; line-height: 1.9; }
.tour-cta { text-align: center; margin-top: 60px; }
.tour-cta h3 { font-size: clamp(30px, 3vw, 44px); color: var(--ink); margin-bottom: 6px; }
.tour-cta .hero-actions { justify-content: center; margin-top: 18px; }
@media (max-width: 1150px) {
  .tour-glance { grid-template-columns: repeat(4, 1fr); }
  .tour-body { grid-template-columns: 1fr; }
  .tour-nav { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); scrollbar-width: thin; }
  .tour-nav a { margin: 0 0 -2px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .tour-nav a[aria-current="step"] { border-bottom-color: var(--accent); }
  .tour-nav a > span:last-child { display: none; }
  .tour-nav a small { display: none; }
}
@media (max-width: 900px) {
  .tour-stop { grid-template-columns: 1fr; padding: 24px; }
  .tour-head { flex-direction: column; align-items: start; gap: 10px; }
  .tour-checks { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .tour-glance { grid-template-columns: repeat(2, 1fr); } .tour-controls { flex-direction: column-reverse; } .tour-controls a { text-align: center; } }

/* Agent alert bell (header) + mock alert center and agent calendar (contact page) */
nav.main { margin-left: auto; }
.alert-bell { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border: 2px solid var(--line); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.alert-bell:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.alert-bell.is-unread { background: #c62828; border-color: #c62828; color: #fff; animation: bell-ring 2.4s ease-in-out infinite; }
.alert-bell.is-unread::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #c62828; animation: bell-pulse 2.4s ease-out infinite; pointer-events: none; }
.alert-bell.is-clear { background: #1e7d44; border-color: #1e7d44; color: #fff; }
.alert-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: #c62828; border: 2px solid #c62828; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
@keyframes bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
@keyframes bell-pulse { 0% { opacity: .7; transform: scale(.9); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .alert-bell.is-unread, .alert-bell.is-unread::after { animation: none; } }
.alert-panel { position: absolute; top: calc(100% + 3px); right: 6%; width: min(380px, 88vw); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 20px; display: grid; gap: 14px; z-index: 60; }
.alert-panel[hidden] { display: none; }
.alert-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink); }
.alert-pill { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 5px 9px; color: #fff; }
.alert-pill.red { background: #c62828; }
.alert-pill.green { background: #1e7d44; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert-list.compact { max-height: 300px; overflow: auto; }
.alert-item { display: grid; grid-template-columns: 12px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #c62828; padding: 14px 16px; }
.alert-item.read { border-left-color: #1e7d44; opacity: .85; }
.alert-dot { width: 10px; height: 10px; border-radius: 50%; background: #c62828; margin-top: 6px; }
.alert-item.read .alert-dot { background: #1e7d44; }
.alert-item strong { display: block; color: var(--ink); font-size: 15px; }
.alert-item span { display: block; font-size: 14px; }
.alert-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.alert-when { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-strong); margin-top: 4px; border-bottom: 1px solid var(--accent); }
.alert-code-form { display: grid; gap: 6px; }
.alert-code-form label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.alert-code-form input { letter-spacing: 6px; }
.alert-code-msg { margin: 0; font-size: 13px; min-height: 1em; color: #1e7d44; font-weight: 600; }
.alert-code-msg.error { color: #b3261e; }
.alert-center { display: grid; grid-template-columns: 1.3fr .7fr; gap: 34px; align-items: start; }
.alert-state { padding: 14px 18px; margin-bottom: 14px; color: #fff; }
.alert-state.red { background: #c62828; }
.alert-state.green { background: #1e7d44; }
.alert-side { display: grid; gap: 12px; }
.alert-side h3, .alert-side h4, .ac-dayview h4 { margin: 0; }
.alert-demo-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.txt-red { color: #b3261e; }
.txt-green { color: #1e7d44; }
.ac-day { flex-direction: column; gap: 4px; }
.ac-day.past { color: var(--muted); background: var(--paper); }
.ac-day.today::after { display: none; }
.ac-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.ac-dots { display: flex; gap: 3px; min-height: 6px; }
.ac-dots i, .ac-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; }
.ac-dots i.requested, .ac-legend i.requested { background: var(--accent); }
.cal-day.selected .ac-dots i { background: #fff; }
.ac-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i.today { width: 12px; height: 12px; border-radius: 2px; background: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ac-dayview { display: grid; gap: 14px; }
.ac-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--ink); background: #fff; }
.ac-item.requested { border-left-color: var(--accent); background: #faf6ec; }
.ac-item time { font-weight: 700; color: var(--ink); font-size: 13px; }
.ac-item strong { display: block; font-size: 14px; }
.ac-item div span { font-size: 13px; color: var(--muted); }
.ac-status { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.ac-item.requested .ac-status { color: #6f5a2a; }
.ac-item [data-confirm] { grid-column: 3; justify-self: end; font-size: 11px; }
a.slot { text-align: center; }
@media (max-width: 1500px) { .nav-toggle { margin-left: auto; } }
@media (max-width: 900px) { .alert-center { grid-template-columns: 1fr; } }

/* Feature walk-through (header "Features" button, js/features.js + /api/features) */
.features-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--accent-grad); color: #fff; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 16px rgba(122,98,48,.3); transition: transform .2s, box-shadow .2s; text-shadow: 0 1px 1px rgba(120,50,0,.35); }
.features-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(122,98,48,.38); }
.features-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.features-btn[aria-expanded="true"] { background: var(--ink); text-shadow: none; }
.features-btn svg { flex: none; }
@media (max-width: 480px) { .features-btn { padding: 0 13px; } .features-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } header.site { gap: 12px; } }
.fx-ring { position: fixed; z-index: 1000; pointer-events: none; border-radius: 6px; box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(0,0,0,.55); transition: top .25s, left .25s, width .25s, height .25s; }
.fx-ring.fx-full { inset: 0; border-radius: 0; box-shadow: none; background: rgba(0,0,0,.55); }
.fx-ring.fx-off { display: none; }
.fx-card { position: fixed; z-index: 1001; width: min(390px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; background: #fff; border-top: 4px solid var(--accent); box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 22px 24px 20px; outline: none; transition: top .25s, left .25s; }
.fx-card[hidden] { display: none; }
.fx-card.fx-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); }
.fx-card.fx-dock { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 55vh; }
.fx-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.fx-eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: var(--accent-strong); }
.fx-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; margin-top: -6px; }
.fx-x:hover { color: var(--ink); }
.fx-card h3 { margin: 8px 0 6px; font-size: 24px; line-height: 1.2; color: var(--ink); }
.fx-card p { margin: 0 0 12px; line-height: 1.6; font-size: 15px; }
.fx-step { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.fx-count { color: var(--muted); font-size: 14px !important; }
.fx-why { background: var(--cream); border-left: 3px solid var(--ink); padding: 12px 14px; margin-bottom: 12px; }
.fx-why strong { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.fx-why p { margin: 4px 0 0; font-size: 14px; }
.fx-jump { display: grid; gap: 4px; margin-bottom: 14px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.fx-jump select { font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; padding: 9px 10px; border: 1px solid var(--line); background: #fff; }
.fx-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 16px; }
.fx-dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.fx-dots li.done { background: var(--accent-soft); }
.fx-dots li.on { background: var(--accent); width: 22px; border-radius: 4px; }
.fx-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-actions .button.small { padding: 12px 18px; }
.fx-loading { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fx-ring, .fx-card, .features-btn { transition: none; } }
.tour-tip { margin-top: 18px; font-size: 14px; opacity: .9; }
.tour-preview figcaption { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- ONE Portal agent portal (/one, /one/crm) ---------- */
/* ONE Portal: black instead of the site navy (bar, hub and CRM, including its dialog). */
.one-bar, main.one, main.crm { --ink: #000; --ink-deep: #000; }
.one-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 12px 5%; background: var(--ink); color: #fff; border-bottom: 3px solid var(--accent); }
.one-mark { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.one-mark strong { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; }
.one-mark strong span { color: var(--accent); font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: 1px; }
.one-mark small { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #cfd8df; }
.one-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.one-links a { color: #e4eaef; text-decoration: none; font-size: 14px; padding: 4px 0; border-bottom: 2px solid transparent; }
.one-links a:hover, .one-links a[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.one { padding: 50px 5% 80px; }
.one-hero h1 { font-size: clamp(36px, 4vw, 56px); margin: 8px 0 10px; }
.one-hero p { max-width: 720px; }
.one-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.one-upcoming .crm-upcoming-head h2 { font-size: 24px; }
.one-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.one-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.one-tile:hover { border-top-color: var(--accent); transform: translateY(-2px); }
.one-tile strong { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--ink); }
.one-tile span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.one-tile .one-ico { font-size: 26px; }
.one-tile em { font-style: normal; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-strong); font-weight: 700; margin-top: auto; }
#tile-crm { border-top-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .one-tile { transition: none; } .one-tile:hover { transform: none; } }

/* Rechat compatibility: portal hub section and CRM bar */
.one-rechat { margin: 44px 0 0; border-top: 4px solid var(--accent); background: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 32px; }
.one-rechat-head h2 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0 10px; }
.one-rechat-head p { max-width: 760px; margin: 0; }
.one-rechat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.one-rechat-col { background: var(--paper); padding: 22px 24px; }
.one-rechat-col.plus { background: var(--ink); color: #fff; }
.one-rechat-col h3 { font-size: 22px; margin: 0 0 14px; }
.one-rechat-col.plus h3 { color: #fff; }
.one-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.one-checks li { position: relative; padding-left: 30px; }
.one-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.one-rechat-col.plus .one-checks li::before { content: "+"; background: var(--accent); font-size: 15px; }
.one-checks strong { display: block; font-size: 15px; }
.one-checks span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.one-rechat-col.plus .one-checks span { color: #d6d6d6; }
.one-rechat-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rechat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; margin: 0 0 18px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.rechat-status { display: flex; gap: 12px; align-items: start; flex: 1 1 420px; }
.rechat-bar h2 { font-size: 18px; margin: 0 0 2px; }
.rechat-bar p { margin: 0; font-size: 13px; }
.rechat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rechat-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #b9b9b9; margin-top: 7px; display: inline-block; }
.rechat-dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(46,125,82,.18); }
.crm-rechat { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.crm-rechat .rechat-dot { margin-top: 0; }
.import-map-wrap { max-height: 50vh; overflow: auto; border: 1px solid var(--line); margin-top: 14px; }
.import-map { width: 100%; border-collapse: collapse; font-size: 14px; }
.import-map th, .import-map td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.import-map thead th { position: sticky; top: 0; background: var(--cream); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; z-index: 1; }
.import-map td:nth-child(2) { color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-map select { padding: 6px 8px; font: inherit; width: 100%; min-width: 180px; }
.import-dialog .muted { margin: 14px 0 6px; }
@media (max-width: 800px) { .one-rechat-grid { grid-template-columns: 1fr; } .one-rechat { padding: 24px 20px; } }

/* Contact consent under lead forms + Terms / Privacy pages */
.consent { font-size: 11.5px; line-height: 1.55; color: #6b7177; margin: 4px 0 2px; }
.consent a { color: inherit; text-decoration: underline; }
.connect-band .consent, .contact .consent, footer.site .consent { color: inherit; opacity: .8; }
main.legal section { max-width: 820px; }
main.legal h1 { font-size: clamp(38px, 5vw, 60px); }
main.legal h2 { font-size: 24px; margin-top: 36px; scroll-margin-top: 90px; }
main.legal ul { padding-left: 20px; }
main.legal li { margin-bottom: 8px; }
.legal-note { background: var(--cream, #faf7f2); border-left: 3px solid var(--accent); padding: 12px 16px; font-size: 14px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 10px; font-size: 14px; }
.legal-toc a, .legal-links a { color: var(--accent-strong); }
.legal-links { margin-top: 40px; font-size: 14px; }

/* ---------- Languages (public/js/i18n.js) ---------- */
.lang-switch { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 12px; border: 2px solid var(--line); border-radius: 22px; color: var(--ink); background: #fff; cursor: pointer; }
.lang-switch[hidden] { display: none; }
.lang-switch:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.lang-switch svg { flex: none; }
.lang-switch select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; padding: 0 14px 0 0; outline: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 6px) 55%, calc(100% - 2px) 55%; background-size: 4px 4px; background-repeat: no-repeat; }
[dir="rtl"] .lang-switch select { padding: 0 0 0 14px; background-position: 6px 55%, 2px 55%; }
@media (max-width: 480px) { .lang-switch { padding: 0 8px; } .lang-switch select { max-width: 74px; } }
.footer-langs { margin-top: 14px; font-size: 14px; }
.footer-langs[hidden] { display: none; }
.footer-grid .footer-langs a { display: inline; }
.footer-langs a[aria-current] { font-weight: 700; color: var(--accent-strong); }
/* Hidden for a moment while the first translations load (the script reveals it after 2.5s at most). */
html.i18n-loading body { opacity: 0; }
body { transition: opacity .15s; }
/* Arabic: right-to-left; letter-spacing breaks joined Arabic letters. */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: 'DM Sans', 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', sans-serif; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .leaflet-container, [dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] { direction: ltr; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { font-family: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }
:lang(zh-Hans) body { line-height: 1.75; }

/* ---------- Realty ONE Group brand layer ---------- */
.announcement { background: #111; color: var(--accent); text-shadow: none; }
.features-btn { background: #111; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.features-btn:hover { background: var(--accent); color: #111; }
.gb-pledge { background: #111; color: #fff; border-left: 4px solid var(--accent); }
/* Full ONE Luxe logo (gold foil on transparent) replaces the old mark + wordmark */
.brand::after { display: none; }
.brand img, .brand:hover img { width: auto; height: 58px; max-width: 240px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; object-fit: contain; }
.brand { transition: opacity .2s; }
.brand:hover { opacity: .85; }
footer.site .brand img { width: auto; height: 52px; }
@media (max-width: 720px) { .brand img, .brand:hover img { height: 42px; max-width: 170px; } }
