:root {
  --ink: #17241f;
  --muted: #64736c;
  --paper: #f3f6f2;
  --cream: #fbfcfa;
  --line: #dce5de;
  --forest: #174b3b;
  --forest-2: #10382d;
  --gold: #c5a46a;
  --white: #ffffff;
  --danger: #8a3b2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: rgba(16, 56, 45, 0.97);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 0.1rem;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7c7a4;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  color: #eadfcd;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a.btn-nav {
  background: var(--gold);
  color: var(--forest-2);
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
  font-weight: 650;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid #5a6d60;
  padding: 0.4rem 0.65rem;
  font: inherit;
}

main {
  flex: 1;
}

.hero {
  background:
    linear-gradient(90deg, rgba(11, 38, 30, 0.88), rgba(11, 38, 30, 0.40)),
    url("https://images.unsplash.com/photo-1574391444247-3e3e7b6ba689?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  color: var(--cream);
  padding: 7rem 0 5.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 14ch;
  margin: 0 0 0.75rem;
}

.hero p {
  max-width: 38rem;
  color: #ece4d6;
}

.search-bar {
  margin-top: 1.75rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.7fr auto;
  gap: 0.6rem;
  border-radius: 0.65rem;
  box-shadow: 0 1.2rem 3rem rgba(9, 28, 21, 0.2);
}

.search-bar label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.search-bar input,
.search-bar select,
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}

button,
.btn {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn,
.search-bar button {
  background: var(--forest);
  color: var(--paper);
  padding: 0.75rem 1.15rem;
  font-weight: 650;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
  padding: 0.65rem 1rem;
  font-weight: 650;
}

.section {
  padding: 4.25rem 0;
}

.section h2,
.page-title h1 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 650;
}

.page-title {
  padding: 2.4rem 0 0.5rem;
}

.page-title p {
  color: var(--muted);
  max-width: 40rem;
}

.grid-3,
.grid-2,
.property-grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
}

.property-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.property-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: 0 0.55rem 1.8rem rgba(25, 55, 41, 0.055);
}

.card,
.panel {
  padding: 1.2rem 1.25rem;
}

.property-card {
  text-decoration: none;
  overflow: hidden;
  display: grid;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.2rem rgba(25, 55, 41, 0.13);
}

.property-card img,
.detail-hero img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.property-card-image {
  display: block;
  overflow: hidden;
}

.property-card-image img,
.property-card-image .property-image-placeholder {
  display: block;
}

.property-image-placeholder {
  min-height: 230px;
  display: grid;
  place-items: center;
  color: #eef3ee;
  background: linear-gradient(135deg, #254a3d, #6f8c7d);
  font: 500 1.2rem var(--serif);
}

.property-card .meta,
.detail-copy {
  padding: 1.1rem 1.15rem 1.2rem;
}

.property-action {
  text-align: center;
}

.property-action .btn {
  width: 100%;
}

.price {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0.15rem 0;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 650;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1.4rem;
}

.filters input,
.filters select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
  flex: 1;
  min-width: 150px;
}

.detail-hero img {
  height: 380px;
}

.stats {
  display: flex;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-copy h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.detail-copy ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-copy ul li {
  color: var(--muted);
  font-size: 0.9rem;
}

.tenure-info {
  margin-top: 1rem;
  color: var(--muted);
}

.demo-notice {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.demo-notice.no-border {
  border-top: none;
  padding-top: 0;
  margin-top: 1.5rem;
}

@media (max-width: 680px) {
  .detail-copy ul {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 650;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tabs button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
}

.tabs button.is-active {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}

.notice {
  background: #e8efe6;
  border: 1px solid #c5d4c4;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.dash-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
}

.side a {
  display: block;
  text-decoration: none;
  padding: 0.45rem 0;
  color: var(--muted);
}

.side a.is-active {
  color: var(--forest);
  font-weight: 650;
}

.site-footer {
  background: var(--forest-2);
  color: #d8d0c2;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.listing-disclaimer {
  margin: 0.65rem 0;
  color: #756b5e;
  font-size: 0.76rem;
  line-height: 1.45;
}

.listing-disclaimer a {
  color: var(--forest);
  font-weight: 650;
}

.photo-credit {
  margin: 0.5rem 0 0;
  color: #81796e;
  font-size: 0.65rem;
  line-height: 1.35;
}

.portal-strip {
  background: #edf3ee;
  padding: 2rem 0;
}

.portal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.portal-inner h2 { margin: 0; font: 500 1.45rem var(--serif); }
.portal-inner .kicker { margin-bottom: 0.2rem; }
.portal-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.portal-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  color: var(--forest);
  font-weight: 650;
  padding: 0.75rem 1.05rem;
  text-decoration: none;
}
.portal-links a:hover { border-color: var(--forest); }
.listing-status { min-height: 1.3rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

input, select, textarea, button, .btn, .btn-ghost { border-radius: 0.35rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #d6b46f;
  outline-offset: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #efe6d6;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .search-bar,
  .grid-3,
  .grid-2,
  .property-grid,
  .dash-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: 64px 0 auto 0;
    background: var(--forest-2);
    padding: 1rem 1.25rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }

  .detail-hero img {
    height: 220px;
  }

  .portal-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .search-bar {
    grid-template-columns: 1fr;
  }
}

/* Fresh editorial visual system */
:root {
  --ink: #25332c;
  --muted: #68736d;
  --paper: #f4f1eb;
  --cream: #fbfaf7;
  --line: #e6e1d7;
  --forest: #254a3d;
  --forest-2: #17362d;
  --gold: #bf9360;
  --white: #fff;
}
body { background: #fbfaf7; }
.wrap { width: min(1200px, calc(100% - 3.5rem)); }
.site-header { background: #fbfaf7; color: var(--ink); position: relative; border-bottom: 1px solid #eae6dc; }
.header-inner { min-height: 82px; padding: 1rem 0; }
.brand strong { font-size: 1.25rem; }
.brand span { color: #8e806b; }
.nav-links a { color: #4e5b53; padding: .45rem .15rem; }
.nav-links a:hover, .nav-links a.is-active { color: var(--forest); }
.nav-links a.btn-nav { background: var(--forest); color: white; padding: .6rem 1rem; border-radius: .25rem; }
.menu-toggle { color: var(--forest); border-color: var(--line); }
.hero { background: #efede5; color: var(--ink); padding: 4.5rem 0 4.7rem; overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 3.5rem; }
.hero-copy { padding: 1.5rem 0 2rem; }
.hero-copy .kicker { color: #8b6744; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3.5rem, 7vw, 6rem); line-height: .97; letter-spacing: -.045em; font-weight: 400; margin: 0 0 1.35rem; }
.hero h1 em { color: var(--forest); font-weight: 400; }
.hero-copy > p:not(.kicker) { color: #657169; max-width: 27rem; font-size: 1.08rem; }
.hero-link, .text-link { color: var(--forest); font-weight: 650; text-decoration: none; display: inline-flex; gap: 1rem; align-items: center; }
.hero-link { margin-top: 1.3rem; border-bottom: 1px solid #bdb9aa; padding-bottom: .6rem; }
.hero-search-wrap { min-height: 440px; position: relative; display: flex; align-items: flex-end; justify-content: flex-end; padding: 2rem 0; }
.hero-search-wrap::before { content: ""; position: absolute; inset: 0 0 0 2rem; background: url("https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=1300&q=85") center/cover; border-radius: 48% 48% .45rem .45rem; }
.hero-photo-note { position: absolute; z-index: 1; top: 1.3rem; right: 1rem; color: white; text-shadow: 0 1px 8px #24352c; font-size: .8rem; letter-spacing: .04em; }
.note-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d9b477; margin-right: .5rem; }
.hero-search-card { z-index: 1; position: relative; width: min(440px, 100%); background: #fff; padding: 1.6rem; margin: 0 0 0 -1rem; box-shadow: 0 1rem 3.5rem #20382b2c; border-radius: .35rem; }
.search-eyebrow { color: #92704c; text-transform: uppercase; font-size: .7rem; letter-spacing: .15em; font-weight: 700; margin: 0 0 .4rem; }
.hero-search-card h2 { font: 500 1.55rem var(--serif); margin: 0 0 1rem; }
.search-bar { margin-top: 1.1rem; padding: 0; grid-template-columns: repeat(2, 1fr); gap: .8rem; border-radius: 0; box-shadow: none; }
.search-bar label { font-size: .66rem; }
.search-bar input, .search-bar select { padding: .72rem .7rem; border-color: #e6e4dc; background: #fbfaf7; }
.search-bar button { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
.section { padding: 5rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.7rem; }
.section-heading h2 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.025em; }
.section-heading .text-link { margin-bottom: .65rem; }
.section h2, .page-title h1 { font-weight: 500; }
.property-grid { gap: 1.4rem; }
.card, .property-card, .panel { border-radius: .35rem; box-shadow: 0 .4rem 1.8rem rgba(45,49,41,.055); }
.property-card:hover { box-shadow: 0 1rem 2.2rem rgba(45,49,41,.14); }
.property-card img { height: 250px; }
.property-card .property-image-placeholder { min-height: 250px; }
.property-card .meta, .detail-copy { padding: 1.2rem 1.25rem 1.3rem; }
.price { font-size: 1.4rem; }
.portal-strip { background: #f1f0e9; padding: 2.6rem 0; }
.portal-links a { border-radius: .25rem; }
.valuation-band { background: #254a3d; color: #f7f4ec; padding: 4.5rem 0; }
.valuation-band h2 { font: 400 clamp(2.4rem,4vw,3.6rem)/1.05 var(--serif); max-width: 12ch; margin: 0 0 1rem; letter-spacing: -.03em; }
.valuation-band .kicker { color: #d7b37f; }
.valuation-band p:not(.kicker) { color: #d8e1d9; max-width: 34rem; }
.valuation-band .btn { background: #f3ead9; color: var(--forest-2); }
.valuation-aside { border-left: 1px solid #91a699; padding: 1rem 0 1rem 2rem; display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 1rem; }
.valuation-aside span { color: #d7b37f; font: 1.8rem var(--serif); }
.valuation-aside p { max-width: 23rem; font-size: 1.05rem; }
.portal-inner h2 { font: 500 1.45rem var(--serif); }
.site-footer { padding: 3rem 0 2rem; }
.page-title { padding-top: 3.4rem; }
.page-title h1 { font-size: clamp(2.7rem,5vw,4rem); letter-spacing: -.035em; }
.filters { background: #f1f0e9; padding: 1rem; border-radius: .35rem; }
.filters input, .filters select { border-radius: .25rem; }
input, select, textarea, button, .btn, .btn-ghost { border-radius: .25rem; }
.card h2 { font-family: var(--serif); font-size: 1.7rem; }
.table th { color: var(--forest); font-weight: 650; }
.page-title { position: relative; margin-bottom: 1.35rem; }
.page-title::after { content: ""; display: block; width: 3.2rem; height: 2px; background: var(--gold); margin-top: 1.2rem; }
.page-title p:not(.kicker) { font-size: 1.03rem; }
.panel, .card { padding: 1.5rem; }
.form { gap: 1rem; }
.field input, .field select, .field textarea { background: #fff; border-radius: .2rem; padding: .75rem .8rem; }
.field span { color: #45564c; }
.btn, .btn-ghost { transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.btn:hover, .search-bar button:hover { background: #17362d; transform: translateY(-1px); }
.btn-ghost:hover { background: var(--forest); color: white; }
.notice { border-radius: .25rem; }
.detail-hero img { height: min(52vw, 560px); border-radius: .35rem; }
.detail-copy h1 { font: 500 clamp(2.3rem,4vw,3.5rem)/1.04 var(--serif); letter-spacing: -.03em; }
.stats { flex-wrap: wrap; }
.tabs button { border-radius: .2rem; cursor: pointer; }
.site-footer { margin-top: 0; }
.site-footer strong { font: 500 1.5rem var(--serif); color: #fff; }
.site-footer .muted { color: #c5d0c7; }
.site-footer p { line-height: 1.8; }
.site-footer a:hover { color: #d7b37f; }
.property-card .tag { background: #eef2ed; padding: .28rem .48rem; border-radius: 2px; }
.property-card .property-action .btn { font-size: .84rem; }
.demo-notice { color: #7e786d; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1.3fr .8fr; }
.filters input, .filters select { min-width: 0; }

/* Saved homes and area explorer */
.property-actions,
.detail-actions { display: flex; gap: .65rem; align-items: stretch; }
.property-actions > *, .detail-actions > * { flex: 1; }
.save-button { border: 1px solid var(--forest); background: transparent; color: var(--forest); min-height: 2.7rem; padding: .6rem .8rem; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.save-button:hover, .save-button.is-saved { background: #edf2ec; }
.save-button.is-saved span:first-child { color: #b34e52; }
.empty-shortlist { grid-column: 1 / -1; text-align: center; padding: 4.5rem 1.5rem; border: 1px dashed #aebcaf; background: #f3f6f0; }
.empty-shortlist > span { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .75rem; color: var(--forest); border: 1px solid #b8c7bb; border-radius: 50%; font-size: 1.65rem; }
.empty-shortlist h2 { font: 500 2rem var(--serif); margin: 0 0 .3rem; }
.empty-shortlist p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.25rem; }
.areas-hero { color: #f7f4ec; background: linear-gradient(90deg, rgba(16,56,45,.93), rgba(16,56,45,.52)), url("https://s0.geograph.org.uk/geophotos/04/86/97/4869733_d2bc7dd6.jpg") center/cover; padding: 6rem 0; }
.areas-hero .kicker, .area-prompt .kicker { color: #dcc28e; }
.areas-hero h1, .area-prompt h2 { max-width: 16ch; margin: 0 0 .9rem; font: 500 clamp(2.7rem, 5vw, 4.3rem)/1.02 var(--serif); letter-spacing: -.035em; }
.areas-hero p:not(.kicker) { max-width: 33rem; color: #e1e8e1; }
.areas-hero .btn { margin-top: .75rem; background: #f3ead9; color: var(--forest-2); }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.area-card { min-height: 15rem; padding: 1.4rem; text-decoration: none; color: var(--ink); background: #f0f4ee; border: 1px solid #d7e1d8; display: flex; flex-direction: column; justify-content: space-between; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.area-card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 1rem 2rem rgba(25, 55, 41, .1); }
.area-card-count { width: fit-content; color: var(--forest); background: #dceadf; padding: .25rem .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.area-card h2 { margin: 1.35rem 0 .35rem; font: 500 1.7rem var(--serif); }
.area-card p { margin: 0 0 .8rem; color: var(--muted); }
.area-card .text-link { color: var(--forest); font-weight: 700; }
.area-prompt { background: #e4ebe4; padding: 4rem 0; }
.area-prompt-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.area-prompt h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.area-prompt p:not(.kicker) { max-width: 37rem; color: var(--muted); }
.property-title-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.2rem; }
.property-title-row::after { position: absolute; left: 0; bottom: 0; margin: 0; }
.map-page-heading { background: #e9eee8; padding: 4.4rem 0 3.8rem; }
.map-page-heading h1 { max-width: 17ch; margin: 0 0 .6rem; font: 500 clamp(2.7rem, 5vw, 4.5rem)/1.02 var(--serif); letter-spacing: -.04em; }
.map-page-heading p:not(.kicker) { max-width: 36rem; color: var(--muted); }
.map-search-section { margin-top: -1.9rem; position: relative; }
.map-filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .75rem; padding: 1rem; background: #fff; box-shadow: 0 .8rem 2.2rem rgba(25,55,41,.11); position: relative; z-index: 2; }
.map-filter-bar label { display: grid; gap: .25rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.map-filter-bar input, .map-filter-bar select { min-width: 0; padding: .7rem; color: var(--ink); background: #fbfaf7; border: 1px solid #e4e5dc; font: inherit; letter-spacing: normal; text-transform: none; }
.map-shell { position: relative; border: 1px solid #d8e1d9; }
#property-map { height: min(64vw, 640px); min-height: 460px; z-index: 1; }
.map-unavailable { height: 100%; display: grid; place-content: center; gap: 1rem; text-align: center; background: #e9eee8; }
.map-note { position: absolute; z-index: 500; left: .75rem; bottom: .75rem; margin: 0; padding: .35rem .55rem; background: rgba(255,255,255,.9); color: #526158; font-size: .7rem; }
.map-popup { display: grid; gap: .3rem; width: 190px; color: var(--ink); text-decoration: none; }
.map-popup img { width: 100%; height: 100px; object-fit: cover; margin-bottom: .2rem; }
.map-popup span { color: var(--muted); font-size: .76rem; }
.map-popup b { color: var(--forest); font-family: var(--serif); font-size: 1.1rem; }
.map-property-pin { width: 16px; height: 16px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 .1rem .55rem rgba(16,56,45,.35); background: var(--forest); cursor: pointer; }
.map-property-pin:hover { transform: scale(1.22); background: #b5864d; }
.maplibregl-popup-content { padding: .55rem; border-radius: 0; box-shadow: 0 .7rem 2rem rgba(16,56,45,.2); }
.map-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) {
  .hero-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { padding: 0; }
  .hero-search-wrap { min-height: 430px; }
  .hero-search-wrap::before { left: 0; }
  .hero-search-card { margin-left: 0; }
  .nav-links { background: #fbfaf7; box-shadow: 0 1rem 1.5rem #1c30241c; }
  .nav-links a { color: var(--ink); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area-prompt-inner { align-items: flex-start; flex-direction: column; }
  .map-filter-bar { grid-template-columns: 1fr 1fr; }
  .map-filter-bar label:first-child { grid-column: 1 / -1; }
  .map-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 2rem), 1200px); }
  .hero { padding: 3.2rem 0 3rem; }
  .hero h1 { font-size: clamp(3.1rem,17vw,4.7rem); }
  .hero-search-wrap { min-height: 440px; margin-inline: -.2rem; }
  .hero-search-wrap::before { inset: 0; border-radius: 42% 42% .3rem .3rem; }
  .hero-search-card { padding: 1.2rem; }
  .section { padding: 3.5rem 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .section-heading h2, .section h2 { font-size: 2rem; }
  .valuation-band { padding: 3.5rem 0; }
  .filters { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .property-actions, .detail-actions { flex-direction: column; }
  .property-title-row { align-items: flex-start; flex-direction: column; }
  .map-page-heading { padding: 3.3rem 0 3rem; }
  .map-search-section { margin-top: -1.2rem; }
  .map-filter-bar { grid-template-columns: 1fr; }
  .map-filter-bar label:first-child { grid-column: auto; }
  #property-map { min-height: 390px; height: 112vw; }
  .map-results { grid-template-columns: 1fr; }
  .panel, .card { padding: 1.15rem; }
  .detail-hero img { height: 240px; }
  .detail-hero .property-image-placeholder { min-height: 240px; }
  .site-footer .footer-grid { gap: .8rem; }
}

/* Mortgage calculator */
.mortgage-hero { padding: 5.2rem 0 5.5rem; background: linear-gradient(118deg, #e6eee6 0%, #f6f3eb 62%, #ece4d4 100%); }
.mortgage-hero h1 { max-width: 16ch; margin: 0 0 .8rem; font: 500 clamp(2.8rem, 5.2vw, 4.7rem)/1.01 var(--serif); letter-spacing: -.045em; }
.mortgage-hero p:not(.kicker) { max-width: 40rem; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.mortgage-section { margin-top: -2.2rem; position: relative; z-index: 1; }
.mortgage-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr); gap: 1rem; align-items: stretch; }
.mortgage-calculator { display: grid; gap: 1.5rem; box-shadow: 0 1rem 2.4rem rgba(25, 55, 41, .09); }
.mortgage-calculator h2 { margin: .2rem 0 .35rem; font: 500 clamp(2rem, 3vw, 2.6rem)/1.08 var(--serif); }
.mortgage-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mortgage-input-grid .field { gap: .45rem; }
.mortgage-input-grid .field > span { font-weight: 700; color: var(--ink); }
.currency-input, .unit-input { display: flex; align-items: center; overflow: hidden; min-height: 3rem; border: 1px solid #d8ded6; background: #fff; }
.currency-input > span, .unit-input > span { padding: 0 .78rem; color: #56655b; font-weight: 700; white-space: nowrap; }
.currency-input > span { border-right: 1px solid #d8ded6; }
.unit-input > span { border-left: 1px solid #d8ded6; font-size: .86rem; }
.currency-input input, .unit-input input { width: 100%; min-width: 0; padding: .72rem .75rem; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.currency-input:focus-within, .unit-input:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(30, 81, 63, .13); }
.mortgage-message { min-height: 1.5rem; margin: 0; color: var(--muted); font-size: .88rem; }
.mortgage-result { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 3.5vw, 2.5rem); color: #f8f6f0; background: #1b4f3e; box-shadow: 0 1rem 2.4rem rgba(25, 55, 41, .14); }
.mortgage-result > p { margin: 0 0 .25rem; color: #d7e7db; font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mortgage-result > strong { font: 500 clamp(3.1rem, 5vw, 4.5rem)/1 var(--serif); letter-spacing: -.055em; }
.mortgage-result > strong + span { margin-top: .45rem; color: #d7e7db; }
.mortgage-breakdown { display: grid; gap: .8rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.22); }
.mortgage-breakdown div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mortgage-breakdown span { color: #d7e7db; font-size: .84rem; }
.mortgage-breakdown b { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.mortgage-disclaimer { display: grid; grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr); gap: 2rem; margin: 1rem 0 4rem; padding: 1.2rem 1.4rem; border-left: 3px solid #b5864d; background: #f4efe5; }
.mortgage-disclaimer strong { color: var(--ink); line-height: 1.45; }
.mortgage-disclaimer p { margin: 0; color: #596257; line-height: 1.55; }
.mortgage-help-section { padding: 4.7rem 0; background: #e7eee7; }
.mortgage-help-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); }
.mortgage-help-grid h2 { max-width: 12ch; margin: .25rem 0 0; font: 500 clamp(2.1rem, 3.8vw, 3.35rem)/1.04 var(--serif); letter-spacing: -.035em; }
.mortgage-help-list { display: grid; gap: 1rem; }
.mortgage-help-list > div { display: grid; gap: .35rem; padding-bottom: 1rem; border-bottom: 1px solid #cbd8cb; }
.mortgage-help-list b { font-size: 1.03rem; }
.mortgage-help-list span { color: var(--muted); line-height: 1.55; }

@media (max-width: 860px) {
  .mortgage-layout, .mortgage-help-grid { grid-template-columns: 1fr; }
  .mortgage-disclaimer { grid-template-columns: 1fr; gap: .65rem; }
}

@media (max-width: 680px) {
  .mortgage-hero { padding: 3.7rem 0 4rem; }
  .mortgage-section { margin-top: -1.1rem; }
  .mortgage-input-grid { grid-template-columns: 1fr; }
  .mortgage-disclaimer { margin-bottom: 3rem; padding: 1.1rem; }
  .mortgage-help-section { padding: 3.5rem 0; }
}

/* Commercial property */
.commercial-hero { overflow: hidden; color: #f8f5ed; background: #173e32; }
.commercial-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr); gap: 4rem; align-items: end; min-height: 25rem; padding: 5.4rem 0 4.7rem; }
.commercial-hero-inner > div:first-child { position: relative; z-index: 1; }
.commercial-hero-inner > div:first-child::after { position: absolute; z-index: -1; width: 25rem; height: 25rem; border: 1px solid rgba(232, 214, 176, .25); border-radius: 50%; content: ""; left: 23rem; top: -11rem; }
.commercial-hero .kicker { color: #dbc694; }
.commercial-hero h1 { max-width: 14ch; margin: .2rem 0 .9rem; font: 500 clamp(3rem, 5.4vw, 4.9rem)/1.01 var(--serif); letter-spacing: -.045em; }
.commercial-hero p:not(.kicker) { max-width: 39rem; color: #d6e1d8; line-height: 1.65; }
.commercial-hero-stat { align-self: center; padding: 1.5rem; border: 1px solid rgba(232, 214, 176, .42); background: rgba(255,255,255,.04); }
.commercial-hero-stat span { display: block; color: #dbc694; font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.commercial-hero-stat strong { display: block; margin-top: .6rem; font: 500 clamp(1.7rem, 2.7vw, 2.3rem)/1.13 var(--serif); }
.commercial-search-section { position: relative; z-index: 2; margin-top: -1.8rem; }
.commercial-filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .75rem; padding: 1rem; background: #fff; box-shadow: 0 .9rem 2.4rem rgba(20, 53, 42, .13); }
.commercial-filter-bar label { display: grid; gap: .3rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.commercial-filter-bar input, .commercial-filter-bar select { width: 100%; min-width: 0; padding: .72rem; border: 1px solid #dce4dc; color: var(--ink); background: #fbfaf7; font: inherit; letter-spacing: normal; text-transform: none; }
.commercial-results-section { padding-top: 4.7rem; }
.commercial-heading { align-items: end; }
.commercial-results-note { max-width: 22rem; margin: 0; color: var(--muted); text-align: right; }
.commercial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.commercial-card { display: grid; overflow: hidden; border: 1px solid #dfe4dc; background: #fff; transition: transform 180ms ease, box-shadow 180ms ease; }
.commercial-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2.4rem rgba(25, 55, 41, .12); }
.commercial-card-image { position: relative; display: block; overflow: hidden; height: 13.5rem; background: #e8ebe5; }
.commercial-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.commercial-card:hover .commercial-card-image img { transform: scale(1.035); }
.commercial-card-image span { position: absolute; top: .8rem; left: .8rem; padding: .27rem .48rem; color: var(--forest-2); background: #f7f3e8; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.commercial-card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem; }
.commercial-status { margin: 0 0 .45rem; color: #9c6f2e; font-size: .7rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.commercial-card h2 { margin: 0; font: 500 1.65rem/1.08 var(--serif); }
.commercial-card h2 a { text-decoration: none; }
.commercial-card h2 a:hover { color: var(--forest); }
.commercial-price { margin: .65rem 0 .45rem; color: var(--forest); font: 500 1.65rem/1.05 var(--serif); }
.commercial-card-copy .muted { min-height: 3.1rem; margin: 0; font-size: .9rem; }
.commercial-size { margin: .75rem 0 1rem; color: #42564b; font-size: .84rem; font-weight: 650; }
.commercial-size span { margin-inline: .3rem; color: #bd9659; }
.commercial-card .text-link { margin-top: auto; }
.commercial-empty { grid-column: 1 / -1; padding: 3.5rem 1.4rem; border: 1px dashed #afc0b1; color: var(--muted); text-align: center; background: #f0f4ef; }
.commercial-empty h2 { margin: 0 0 .3rem; color: var(--ink); font: 500 2rem var(--serif); }
.commercial-empty p { margin: 0; }
.commercial-landlord-band { margin-top: 4rem; padding: 4.6rem 0; background: #e9eee7; }
.commercial-landlord-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.commercial-landlord-band h2 { max-width: 18ch; margin: .25rem 0 .6rem; font: 500 clamp(2rem, 3.5vw, 3.3rem)/1.06 var(--serif); letter-spacing: -.035em; }
.commercial-landlord-band p:not(.kicker) { max-width: 38rem; margin: 0; color: var(--muted); }
.commercial-landlord-band .btn { flex: 0 0 auto; }
.commercial-detail-page { padding-top: 1.1rem; padding-bottom: 4.5rem; }
.commercial-back { margin: 0 0 1rem; font-size: .88rem; }
.commercial-back a { color: var(--forest); font-weight: 700; }
.commercial-detail-hero { position: relative; height: min(47vw, 540px); min-height: 330px; overflow: hidden; background: #e5e9e4; }
.commercial-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.commercial-detail-hero p { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .35rem .6rem; color: #193f32; background: #f7f1e4; font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.commercial-detail-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(18rem, .68fr); gap: 1.3rem; margin-top: 1.3rem; align-items: start; }
.commercial-detail-copy h1 { margin: .2rem 0 .4rem; font: 500 clamp(2.4rem, 4vw, 3.8rem)/1.02 var(--serif); letter-spacing: -.04em; }
.commercial-detail-copy > .muted { margin-top: 0; }
.commercial-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid #e0e5de; }
.commercial-facts div { display: grid; gap: .2rem; }
.commercial-facts dt { color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.commercial-facts dd { margin: 0; font-size: .9rem; font-weight: 650; }
.commercial-detail-copy > p:not(.kicker):not(.commercial-price):not(.muted):not(.listing-disclaimer) { line-height: 1.75; }
.commercial-detail-copy h2 { margin: 1.6rem 0 .7rem; font: 500 1.75rem var(--serif); }
.commercial-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; padding: 0; list-style: none; }
.commercial-features li::before { margin-right: .45rem; color: #ad7b37; content: "•"; }
.commercial-contact-card { padding: 1.5rem; color: #eff4ee; background: var(--forest); }
.commercial-contact-card .kicker { color: #e0c994; }
.commercial-contact-card h2 { margin: .25rem 0 .7rem; font: 500 2rem/1.08 var(--serif); }
.commercial-contact-card p { color: #d5e1d6; line-height: 1.65; }
.commercial-contact-card p strong { color: #fff; font-size: 1.1rem; }
.commercial-contact-card a:not(.btn) { color: #f2dba7; }
.commercial-contact-card .btn { width: 100%; margin-top: .5rem; color: #143b2f; background: #f2e8d0; }

@media (max-width: 860px) {
  .commercial-hero-inner, .commercial-detail-layout { grid-template-columns: 1fr; }
  .commercial-hero-inner { gap: 1.5rem; min-height: auto; }
  .commercial-hero-stat { max-width: 24rem; }
  .commercial-filter-bar { grid-template-columns: 1fr 1fr; }
  .commercial-filter-bar label:first-child { grid-column: 1 / -1; }
  .commercial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-results-note { text-align: left; }
}

@media (max-width: 680px) {
  .commercial-hero-inner { padding: 3.8rem 0 4.2rem; }
  .commercial-hero-inner > div:first-child::after { left: 13rem; top: -15rem; }
  .commercial-search-section { margin-top: -1.1rem; }
  .commercial-filter-bar, .commercial-grid, .commercial-facts, .commercial-features { grid-template-columns: 1fr; }
  .commercial-filter-bar label:first-child { grid-column: auto; }
  .commercial-results-section { padding-top: 3.5rem; }
  .commercial-heading { align-items: flex-start; }
  .commercial-card-image { height: 14rem; }
  .commercial-landlord-band { margin-top: 3rem; padding: 3.4rem 0; }
  .commercial-landlord-inner { align-items: flex-start; flex-direction: column; }
  .commercial-detail-page { padding-top: .8rem; padding-bottom: 3.5rem; }
  .commercial-detail-hero { height: 72vw; min-height: 240px; }
}

/* Local identity assets for static hosting */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { flex: 0 0 auto; width: 2.85rem; height: 2.85rem; }
.brand .brand-copy { display: grid; gap: .08rem; }
.brand .brand-copy strong { color: var(--forest-2); font: 600 1.25rem/1 var(--serif); letter-spacing: .01em; }
.brand .brand-copy > span { color: #8e806b; font-size: .61rem; letter-spacing: .13em; line-height: 1.25; text-transform: uppercase; }

@media (max-width: 680px) {
  .brand { gap: .55rem; }
  .brand-mark { width: 2.45rem; height: 2.45rem; }
  .brand .brand-copy strong { font-size: 1.08rem; }
  .brand .brand-copy > span { font-size: .51rem; }
}
