:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --card: #ffffff;
  --ink: #0e2c4a;
  --ink-soft: #3d5870;
  --line: rgba(14, 44, 74, 0.14);
  --brick: #c6a04a;
  --moss: #0e2c4a;
  --header-h: 108px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { display: block; }

::selection {
  background: #e4c4b8;
  color: var(--ink);
}

h1, h2, h3, .font-serif {
  font-optical-sizing: auto;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}

.skip-link:focus { top: 12px; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden { display: none !important; }

.kicker {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: 0.75rem;
  background: var(--brick);
}

.kicker-light { color: var(--paper); }
.kicker-light::after { background: var(--blush); }

.hero {
  position: relative;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero-copy {
  background: #fff;
  padding: 28px 28px 24px;
}

.hero-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  background: #fff;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .hero-card {
    left: auto;
    right: 28px;
    width: 340px;
  }
}

.nav-link[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--brick);
}

.menu-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-icon-close { display: none; }

.menu-btn[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-icon-close { display: inline-block; }

@media (min-width: 768px) {
  .menu-btn { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 6px 20px 18px;
}

.mobile-menu.is-open { display: grid; }

.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.011em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: #8a6424; color: #fff; }
.btn-primary:hover { background: #6e4f1c; color: #fff; }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }

.btn-line { border-color: rgba(14, 44, 74, 0.28); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-line-light { color: var(--paper); border-color: rgba(243, 239, 230, 0.35); }
.btn-line-light:hover { background: var(--paper); color: var(--ink); }

.btn-text {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(14, 44, 74, 0.2);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0e2c4a 50%), linear-gradient(135deg, #0e2c4a 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

textarea.input {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}

.input:focus,
.select:focus {
  outline: 2px solid var(--brick);
  outline-offset: 1px;
  border-color: var(--ink);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--brick);
}

.field-error {
  margin: 6px 0 0;
  color: var(--brick);
  font-size: 0.88rem;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 48px;
  border: 1px solid rgba(14, 44, 74, 0.2);
  background: #fff;
}

.segment label {
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.segment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}

.segment label:has(input:focus-visible) {
  outline: 2px solid var(--brick);
  outline-offset: -2px;
}

.sticky-filters {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: #fff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.card:hover { border-color: rgba(14, 44, 74, 0.35); }

.card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd4c6;
}

.card-media img,
.fill-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.card-media img { transition: transform 0.8s ease; }

.card:hover .card-media img { transform: scale(1.045); }

.card-feature .card-media { aspect-ratio: 4 / 3.15; }

.card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 8px;
}

.status-under-offer,
.status-let-agreed {
  background: var(--moss);
  color: var(--paper);
}

.status-price-reduced,
.status-new {
  background: #8a6424;
  color: #fff;
}

.card-body { padding: 16px 16px 18px; }

.card-area {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.card-price {
  margin: 8px 0 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.65rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.card-qualifier {
  margin-right: 0.35rem;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.was {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: Montserrat, sans-serif;
  font-size: 0.92rem;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card-meta i { margin-right: 4px; color: var(--ink); }

.card-summary {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.card-horizontal .card-body { display: flex; flex-direction: column; justify-content: center; }
.card-horizontal .card-title { font-size: 1.28rem; }
.card-horizontal .card-price { font-size: 1.35rem; }
.agent-contact { margin: 10px 0 0; }

@media (min-width: 640px) {
  .card-horizontal { flex-direction: row; }
  .card-horizontal .card-media { width: 46%; flex: none; aspect-ratio: auto; }
  .card-horizontal .card-media img { position: absolute; inset: 0; }
}

.blotter { width: 100%; }

.blotter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.blotter-row strong { font-weight: 600; }

@media (min-width: 760px) {
  .blotter-row {
    grid-template-columns: 0.8fr 1.5fr 0.9fr 0.9fr;
    gap: 16px;
    align-items: baseline;
  }
}

.blotter-head {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 759px) {
  .blotter-head { display: none; }
}

.area-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.area-row:hover .area-name { color: var(--brick); }

.area-name {
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.area-meta {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .area-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .area-meta {
    text-align: left;
    white-space: normal;
  }
}

.process { list-style: none; margin: 0; padding: 0; }

.process li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.process li span {
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  font-weight: 520;
  letter-spacing: -0.04em;
  color: var(--brick);
  line-height: 1;
}

.process h3 {
  margin: 0 0 6px;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.process p { margin: 0; color: var(--ink-soft); }

.copy p + p { margin-top: 1rem; }

.copy a {
  text-underline-offset: 3px;
}

.copy a:hover { color: var(--brick); }

.person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.person > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--moss);
  color: var(--paper);
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}

.person-founder > span { background: #8a6424; color: #fff; }

.person h3 {
  margin: 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.person .role {
  margin: 2px 0 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.person p { margin: 0; }

.facts div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.facts dt { margin: 0; color: var(--ink-soft); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

.feature-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  columns: 1;
}

.facts { margin: 0.8rem 0 0; }

.copy a,
.viewing-card a,
#office-detail a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 720px) {
  .feature-list { columns: 2; column-gap: 32px; }
}

.feature-list li {
  break-inside: avoid;
  padding: 7px 0;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  margin-right: 8px;
  background: var(--brick);
  vertical-align: middle;
}

.property-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
}

.property-where {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery { margin-top: 22px; }

.section-title {
  margin: 2.4rem 0 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.9rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 1.8rem;
}

.agent-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agent-name {
  margin: 8px 0 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1;
}

.agent-role,
.fine {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.more-block {
  margin-top: 4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.more-block h2 {
  margin: 0 0 1.4rem;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 520;
  letter-spacing: -0.03em;
}

.office-title {
  margin: 12px 0 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hours {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  color: var(--ink-soft);
}

.hours li { padding: 4px 0; }

.office-note {
  max-width: 36rem;
  margin-top: 16px;
  color: var(--ink-soft);
}

.property-price {
  margin: 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-variant-numeric: tabular-nums;
}

.property-title {
  margin: 10px 0 0;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.gallery-main {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd4c6;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.gallery-thumbs button {
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
}

.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.property-layout {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

@media (min-width: 980px) {
  .property-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
  }

  .viewing-card {
    position: sticky;
    top: calc(var(--header-h) + 18px);
  }
}

.viewing-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.office-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.footer-label {
  margin: 0 0 12px;
  color: #e7d09a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-success h3 {
  margin: 0 0 8px;
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.form-success p { margin: 0; color: var(--ink-soft); }

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
  .btn { transition: none; }
}

/* Tokens the Tailwind CDN build does not see, because they live in the config. */
.font-sans,
body {
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif !important;
}

.font-serif {
  font-family: Montserrat, "Avenir Next", "Segoe UI", sans-serif !important;
}

.max-w-site { max-width: 1180px !important; }

[data-header] { background-color: #fff !important; }

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo { height: 72px; }
}

.brand-logo-footer {
  height: 64px;
  background: #fff;
  padding: 8px 10px;
}

@media (min-width: 768px) {
  .brand-logo-footer { height: 88px; }
}

.bg-paper { background-color: #ffffff !important; }
.bg-paper\/95 { background-color: #ffffff !important; }
.bg-paper-2 { background-color: #ffffff !important; }
.bg-card { background-color: #ffffff !important; }
.bg-moss { background-color: #0e2c4a !important; }

.text-paper { color: #f7fbff !important; }
.text-paper\/80 { color: rgba(247, 251, 255, 0.82) !important; }
.text-paper\/70 { color: rgba(247, 251, 255, 0.72) !important; }
.text-ink { color: #0e2c4a !important; }
.text-ink-soft { color: #3d5870 !important; }
.text-brick { color: #c6a04a !important; }
.text-blush { color: #e7d09a !important; }

.border-ink\/10 { border-color: rgba(14, 44, 74, 0.1) !important; }
.border-ink\/15 { border-color: rgba(14, 44, 74, 0.15) !important; }
.border-brick { border-color: #c6a04a !important; }
.border-white\/15 { border-color: rgba(255, 255, 255, 0.15) !important; }

.decoration-ink\/30 { text-decoration-color: rgba(14, 44, 74, 0.3) !important; }
.decoration-white\/30 { text-decoration-color: rgba(255, 255, 255, 0.3) !important; }

.shadow-lift { box-shadow: 0 18px 40px -28px rgba(14, 44, 74, 0.45) !important; }

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .viewing-card { display: none; }
  a { text-decoration: none; }
}
