:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #1d6f6f;
  --brand-dark: #155252;
  --accent: #f0f7f7;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 34px 0 30px;
}
.site-header h1 { margin: 0 0 4px; font-size: 1.9rem; letter-spacing: -.02em; }
.site-header .tagline { margin: 0; opacity: .9; }

/* Filters */
.filters {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: -24px 0 20px;
  position: relative;
}
.field { display: flex; flex-direction: column; gap: 4px; grid-column: span 3; }
.field-search { grid-column: span 6; }
.field-beds { grid-column: span 2; }
.field label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.filters input, .filters select {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field-actions { grid-column: span 12; display: flex; gap: 10px; }
.btn {
  padding: 10px 18px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent); }

/* Summary */
.summary { margin: 6px 2px 14px; color: var(--muted); font-size: .92rem; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14), 0 3px 8px rgba(16, 24, 40, .08);
  border-color: var(--brand);
}
.card-photo { position: relative; aspect-ratio: 16 / 9; background: #e8eef0; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo.is-ph img { object-fit: contain; opacity: .8; }
.card-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.06rem; letter-spacing: -.01em; }
.card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .type-badge {
  align-self: flex-start;
  font-size: .72rem; font-weight: 600;
  background: var(--accent); color: var(--brand-dark);
  padding: 3px 9px; border-radius: 999px;
}
.card .rating { font-size: .82rem; color: #d99100; white-space: nowrap; }
.card .rating em { color: var(--muted); font-style: normal; font-size: .78rem; }
.card .addr { color: var(--muted); font-size: .9rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink); margin-top: 2px; }
.card .meta b { font-weight: 600; }
.card .services { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.card .services span {
  font-size: .72rem; background: #f2f4f7; color: #475467;
  padding: 2px 7px; border-radius: 6px;
}
.card .actions { margin-top: auto; padding-top: 6px; display: flex; gap: 12px; }
.card a { color: var(--brand); text-decoration: none; font-size: .88rem; font-weight: 600; }
.card a:hover { text-decoration: underline; }

.empty, .loading { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 40px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; padding: 8px 12px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; font-size: .9rem; color: var(--ink);
}
.pager button[disabled] { opacity: .45; cursor: default; }
.pager button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .ellipsis { color: var(--muted); padding: 0 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 20px; }
.site-footer p { color: var(--muted); font-size: .84rem; padding: 18px 0; margin: 0; }

/* Vicinity modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .55);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 520px; width: 100%;
  padding: 24px 24px 20px; position: relative; box-shadow: 0 20px 50px rgba(16,24,40,.25);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 10px; right: 12px; border: none; background: none;
  font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal h2 { margin: 0 0 2px; font-size: 1.25rem; }
.vic-sub { margin: 18px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); }
.modal-sub { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.modal .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0; }
.modal .stats > div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.modal .stats dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.modal .stats dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.modal-src { margin: 16px 0 0; font-size: .76rem; color: var(--muted); }
.modal-lg { max-width: 640px; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 14px 0 16px; }
.tab {
  border: none; background: none; padding: 8px 14px; cursor: pointer;
  font-size: .92rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* Investment panel */
.inv-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 16px; }
.inv-field { display: flex; flex-direction: column; gap: 3px; }
.inv-field > span:first-child { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.inv-in { position: relative; display: flex; align-items: center; }
.inv-in input {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px;
  font-size: .92rem; background: #fff;
}
.inv-in input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.inv-in i { position: absolute; right: 9px; color: var(--muted); font-style: normal; font-size: .82rem; pointer-events: none; }
.inv-in.has-pre i.pre { left: 9px; right: auto; }
.inv-in.has-pre input { padding-left: 20px; }

.inv-out h4 { margin: 14px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); }
.inv-out .stats { grid-template-columns: 1fr 1fr; }
.inv-out .stats dd { font-size: 1.02rem; }
.inv-out .hi dd { color: var(--brand); }
.inv-out .good dd { color: #157347; }
.inv-out .bad dd { color: #b42318; }

/* Header nav */
.header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-nav { display: flex; gap: 6px; background: rgba(255,255,255,.15); padding: 4px; border-radius: 10px; }
.view-btn {
  border: none; background: none; color: #fff; opacity: .8; font-weight: 600; font-size: .9rem;
  padding: 7px 16px; border-radius: 7px; cursor: pointer;
}
.view-btn.active { background: #fff; color: var(--brand-dark); opacity: 1; }

/* Multi-select */
.ms { position: relative; }
.ms-toggle {
  width: 100%; text-align: left; padding: 9px 28px 9px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none'/></svg>") no-repeat right 10px center;
  font-size: .95rem; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ms-toggle.has-sel { border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.ms-panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
  max-height: 260px; overflow-y: auto; padding: 6px;
}
.ms.open .ms-panel { display: block; }
.ms-panel label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: .9rem; cursor: pointer; }
.ms-panel label:hover { background: var(--accent); }

/* Sort */
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.sort-wrap select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; background: #fff; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 2px 10px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: .82rem; color: var(--ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.chip span { color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--brand); }
.chip-clear { color: var(--brand); font-weight: 600; }

/* Card actions */
.btn-sm {
  font-size: .82rem; font-weight: 600; padding: 6px 11px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--brand); cursor: pointer; text-decoration: none;
}
.btn-sm:hover { background: var(--accent); border-color: var(--brand); }
.btn-contact { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-contact:hover { background: var(--brand-dark); color: #fff; }
.card .actions { flex-wrap: wrap; }

/* Skeletons */
.skeleton { pointer-events: none; }
.skeleton .sk-photo { aspect-ratio: 16/9; background: #eef1f3; }
.skeleton .sk-line { height: 12px; margin: 12px 16px 0; background: #eef1f3; border-radius: 4px; }
.skeleton .sk-line.short { width: 55%; }
.skeleton { animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Contact + Details lists */
.contact-list, .detail-list { display: grid; gap: 10px; margin: 8px 0 0; }
.detail-list { grid-template-columns: 1fr 1fr; }
.contact-list > div, .detail-list > div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.contact-list dt, .detail-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.contact-list dd, .detail-list dd { margin: 2px 0 0; font-size: .98rem; color: var(--ink); word-break: break-word; }
.contact-list dd a { color: var(--brand); }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 22px; }
.kpi-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: center; }
.kpi-val { font-size: 1.7rem; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.kpi-lbl { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.chart-card h3 { margin: 0 0 12px; font-size: 1rem; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 58px; align-items: center; gap: 10px; font-size: .82rem; }
.bar-lbl { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: #eef1f3; border-radius: 5px; height: 16px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); border-radius: 5px; }
.bar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Nav CTA + back link */
.view-btn.cta { background: #f5b301; color: #4a3800; }
.view-btn.cta:hover { background: #ffc61a; }
a.view-btn { text-decoration: none; display: inline-flex; align-items: center; }
.back-link { display: inline-block; margin: 6px 0 16px; color: var(--brand); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* Full facility page */
.fp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fp-hero { aspect-ratio: 24/9; background: #e8eef0; }
.fp-hero img { width: 100%; height: 100%; object-fit: cover; }
.fp-hero img.ph { object-fit: contain; opacity: .8; }
.fp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px 6px; }
.fp-head h1 { margin: 4px 0 2px; font-size: 1.6rem; }
.fp-addr { color: var(--muted); margin: 0; }
.fp-cta { display: flex; gap: 8px; align-items: flex-start; }
.fp-svc { padding: 6px 22px 0; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; padding: 16px 22px 6px; }
.fp-grid section h3 { margin: 0 0 8px; font-size: 1rem; }
.fp .modal-src { padding: 8px 22px 18px; }
/* Buyer's Guide */
.learn { max-width: 860px; margin: 0 auto; }
.learn h1 { font-size: 1.7rem; margin: 0 0 6px; }
.learn-lead { color: var(--muted); margin: 0 0 20px; font-size: 1.02rem; }
.calc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 24px; }
.calc-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.calc-ver { font-size: .7rem; font-weight: 400; color: var(--muted); vertical-align: middle; }
/* Mode + action buttons: colored rounded rectangles, white font, hover lift */
.calc-mode { display: flex; gap: 10px; margin-bottom: 14px; }
.mode-btn, #calc-go, #calc-clear {
  border: none; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, opacity .12s ease;
}
.mode-btn { padding: 9px 22px; font-size: .92rem; }
.mode-btn[data-mode="seller"] { background: #0e7c7b; }   /* teal */
.mode-btn[data-mode="buyer"]  { background: #2563eb; }   /* blue */
.mode-btn:not(.active) { opacity: .45; }
#calc-go    { background: #157347; }                     /* green */
#calc-clear { background: #64748b; }                     /* slate */
.mode-btn:hover, #calc-go:hover, #calc-clear:hover {
  transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16, 24, 40, .22);
  filter: brightness(1.1); opacity: 1;
}

/* Flyup tooltip */
.fly-tip {
  position: absolute; transform: translate(-50%, -100%);
  background: #1f2933; color: #fff; font-size: .8rem; font-weight: 500;
  padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  z-index: 100; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); animation: flyup .16s ease;
}
.fly-tip::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1f2933;
}
@keyframes flyup { from { opacity: 0; transform: translate(-50%, -88%); } to { opacity: 1; transform: translate(-50%, -100%); } }
.calc-sub { color: var(--muted); margin: 0 0 14px; font-size: .9rem; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.calc-field { display: flex; flex-direction: column; gap: 4px; }
.calc-field > span:first-child { font-size: .74rem; font-weight: 600; color: var(--muted); }
.calc-in { position: relative; display: flex; align-items: center; }
.calc-in input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.calc-in input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.calc-in i { position: absolute; right: 10px; color: var(--muted); font-style: normal; font-size: .82rem; pointer-events: none; }
.calc-in.has-pre i.pre { left: 10px; right: auto; }
.calc-in.has-pre input { padding-left: 22px; }
.req { color: #b42318; font-weight: 700; }
.calc-actions { display: flex; gap: 10px; margin-top: 16px; }
.calc-error { color: #b42318; font-weight: 600; font-size: .9rem; margin-top: 12px; max-width: 70ch; line-height: 1.5; }
.calc-out { margin-top: 16px; }
.calc-out .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.calc-out .stats > div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.calc-out dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.calc-out dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 600; }
.calc-out .hi dd { color: var(--brand); }
.calc-hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
.calc-note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; max-width: 70ch; line-height: 1.5; }
.calc-prompt { color: var(--muted); font-style: italic; margin: 2px 0 0; }
.learn-sec { margin: 0 0 22px; }
.learn-sec > h2 { font-size: 1.25rem; margin: 0 0 8px; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.learn-sec p { color: var(--ink); max-width: 75ch; line-height: 1.6; }
.method { margin: 12px 0; }
.method h3 { margin: 0 0 2px; font-size: 1.02rem; color: var(--brand-dark); }
.learn code { background: var(--accent); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.learn-list, .learn-steps { max-width: 75ch; line-height: 1.7; padding-left: 22px; }
.learn-steps li { margin-bottom: 6px; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.glossary dt { font-weight: 700; color: var(--brand-dark); font-size: .92rem; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* US map view */
.dash-actions { margin: 0 0 16px; }
.map-head h2 { margin: 0; }
.map-sub { color: var(--muted); margin: 2px 0 12px; font-size: .9rem; }
.us-map { height: 72vh; min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; z-index: 0; }
.map-pop strong { display: block; margin-bottom: 6px; font-size: .95rem; }
.map-pop-links { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.map-pop-links a { color: var(--brand); text-decoration: none; font-size: .82rem; font-weight: 600; }
.map-pop-links a:hover { text-decoration: underline; }

/* Vicinity + map row (spans full width; stats left, map right) */
.fp-vicinity { grid-column: 1 / -1; }
.fp-vic-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; align-items: start; }
.fp-vic-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.fp-vic-stats > div { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.fp-vic-stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.fp-vic-stats dd { margin: 2px 0 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.fp-map { display: flex; flex-direction: column; gap: 6px; }
.fp-map-canvas { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; z-index: 0; }
.fp-map-link { font-size: .82rem; color: var(--brand); text-decoration: none; align-self: flex-end; }
.fp-map-link:hover { text-decoration: underline; }

.fp-web { padding: 8px 22px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.fp-web h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.fp-web h3 a { color: var(--brand); font-weight: 600; font-size: .9rem; }
.fp-webdesc { color: var(--ink); margin: 0 0 12px; max-width: 70ch; }
.fp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
.fp-thumb { display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.fp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.fp-thumb:hover img { transform: scale(1.05); }

/* Signup / lead forms */
.su-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; max-width: 720px; margin: 0 auto; }
.su-card h1 { margin: 0 0 4px; font-size: 1.5rem; }
.su-intro { color: var(--muted); margin: 0 0 18px; }
.su-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.su-field { display: flex; flex-direction: column; gap: 4px; }
.su-field.su-full { grid-column: 1 / -1; }
.su-field span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.su-field input, .su-field select, .su-field textarea { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; font-family: inherit; }
.su-field input:focus, .su-field select:focus, .su-field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.su-consent { font-size: .8rem; color: var(--muted); margin: 16px 0 12px; }
#su-result { margin-top: 12px; }
.su-ok { color: #157347; font-weight: 600; }
.su-err { color: #b42318; font-weight: 600; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .fp-grid, .su-form, .fp-vic-wrap, .calc-grid, .glossary, .calc-out .stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .field, .field-search, .field-beds { grid-column: span 6; }
  .modal .stats, .detail-list { grid-template-columns: 1fr; }
}
