/**
 * Locus — real estate listing theme
 */

:root {
  --ink: #17191c;
  --paper: #f2f0eb;
  --stone: #6b6760;
  --line: rgba(23, 25, 28, 0.12);
  --steel: #3f5a6b;
  --steel-deep: #2a3f4c;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Libre Franklin", system-ui, sans-serif;
  --container: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(63, 90, 107, 0.08), transparent 55%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
}

.header-shell {
  position: relative;
  z-index: 2;
  /* Solid bg — backdrop-filter traps position:fixed and breaks the mobile drawer */
  background: rgba(242, 240, 235, 0.97);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled .header-shell {
  background: rgba(242, 240, 235, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(23, 25, 28, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-width: 0;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-branding {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  line-height: 0;
}

.site-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  /* Optical: display serif ink sits high in the em-box */
  padding-top: 3px;
  box-sizing: border-box;
}

.site-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  color: var(--ink);
  line-height: 0;
}

.site-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
}

.site-brand-logo,
.site-brand-logo--default {
  display: block;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  max-width: 1.5rem;
  object-fit: contain;
}

.site-brand-logo:not(.site-brand-logo--default) {
  width: auto;
  max-width: 2.4rem;
}

.site-brand-name,
.site-title,
.custom-logo-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-nav { display: none; }

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-menu a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  color: var(--stone);
  transition: color 0.25s var(--ease);
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--ink);
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after {
  transform: scaleX(1);
}

.nav-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-toggle:hover {
  background: #fff;
  border-color: rgba(23, 25, 28, 0.22);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 25, 28, 0.16);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header-phone:hover {
  background: var(--steel-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(23, 25, 28, 0.2);
}

.header-phone-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.header-phone-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.header-phone-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.header-phone-number {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-mobile-extra { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    position: static;
    transform: none;
    inset: auto;
    background: transparent;
    padding: 0;
    overflow: visible;
    z-index: auto;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    height: auto;
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .header-left { flex: 0 0 auto; }
  .header-actions { flex: 0 0 auto; }
  .nav-mobile-extra { display: none !important; }
}

@media (max-width: 899px) {
  .header-phone-label { display: none; }
  .header-phone { padding: 0.4rem 0.7rem 0.4rem 0.4rem; max-width: 100%; }
  .header-phone-number { font-size: 0.8rem; }
  .header-inner { gap: 0.65rem; }
  .site-branding { min-width: 0; }
  .site-brand {
    gap: 0.45rem;
  }
  .site-brand-mark,
  .site-brand-logo,
  .site-brand-logo--default {
    width: 1.35rem;
    height: 1.35rem;
    max-width: 1.35rem;
  }
  .site-brand-name,
  .site-title,
  .custom-logo-link {
    font-size: clamp(1.1rem, 4.4vw, 1.45rem);
    max-width: min(46vw, 12rem);
  }

  .primary-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background:
      linear-gradient(180deg, rgba(242, 240, 235, 0.99), rgba(242, 240, 235, 0.97)),
      radial-gradient(600px 320px at 100% 0%, rgba(63, 90, 107, 0.1), transparent 60%);
    padding: 1.5rem 1.25rem 2rem;
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
    z-index: 1200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-open .primary-nav { transform: none; }
  body.nav-open { overflow: hidden; }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .primary-menu a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    padding: 0.35rem 0;
  }

  .primary-menu a::after {
    left: 0;
    right: auto;
    width: 1.5rem;
    bottom: 0.2rem;
  }

  .nav-mobile-extra {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }

  .header-phone--mobile {
    justify-content: flex-start;
    width: fit-content;
  }

  .header-phone--mobile .header-phone-label { display: block; }
  .header-phone--mobile .header-phone-copy { display: flex; }
  .header-phone--mobile .header-phone-number { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.85rem; padding: 0.7rem 1.2rem;
  border: 1px solid transparent; text-decoration: none;
  font: inherit; font-size: 0.75rem; font-weight: 650;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--steel); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}
.btn-block { width: 100%; }
.text-link {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Hero */
.hero {
  position: relative; min-height: min(78vh, 720px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-image, .hero-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  background: linear-gradient(135deg, #243742 0%, #5d717c 45%, #c8beb0 100%);
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,25,28,.2), rgba(23,25,28,.72));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 8vh, 4.5rem);
  width: auto;
  max-width: min(46rem, calc(100vw - 1.5rem));
  margin-left: max(0.75rem, calc((100% - var(--container)) / 2));
  margin-right: 0.75rem;
  box-sizing: border-box;
}
.hero-eyebrow {
  margin: 0 0 .6rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85;
}
.hero-title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(2.6rem, 12vw, 5.5rem); font-weight: 500; line-height: .95;
}
.hero-text {
  margin: 1rem 0 0;
  max-width: 32rem;
  opacity: .92;
  padding-right: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-search {
  margin-top: 1.75rem;
  max-width: 100%;
}

.hero .listing-filters {
  background: rgba(242, 240, 235, 0.96);
  color: var(--ink);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.2);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 799px) {
  .hero .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero .filter-actions {
    grid-column: 1 / -1;
  }
  .hero-content {
    max-width: calc(100vw - 1.5rem);
  }
  .hero-text {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-actions .header-phone-copy { display: none; }
  .header-actions .header-phone {
    padding: 0.35rem;
    border-radius: 999px;
  }
  .header-actions .header-phone-icon {
    width: 2.15rem;
    height: 2.15rem;
  }
}

/* Filters */
.listing-filters { margin: 0 0 1.75rem; }
.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
@media (min-width: 520px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
  .filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; }
}
.listing-filters label {
  display: grid;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--stone);
  min-width: 0;
}
.listing-filters select,
.listing-filters input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  padding: .65rem .7rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  border-radius: 0;
  box-sizing: border-box;
}
.filter-actions { display: flex; align-items: end; min-width: 0; }
.filter-actions .btn { width: 100%; }
.listing-page .filter-actions--submit { display: none; }
@media (min-width: 800px) {
  .listing-page .filter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .listing-page .filter-actions--submit { display: flex; }
}

/* Sections / grid */
.home-section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-header {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 500; line-height: 1.1;
}

.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
}

.property-card {
  display: flex; flex-direction: column; height: 100%;
  background: transparent;
}
.property-card-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: #ddd8cf; text-decoration: none;
}
.property-card-media img,
.property-card-ph {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .7s var(--ease);
}
.property-card:hover .property-card-media img { transform: scale(1.04); }
.property-card-ph { background: linear-gradient(145deg, #3f5a6b, #b7aea2); }

.prop-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--paper); color: var(--ink);
  font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .5rem;
}

.property-card-body {
  display: flex; flex-direction: column; flex: 1;
  padding-top: .85rem; gap: .35rem; min-width: 0;
}
.property-card-loc {
  margin: 0; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stone);
}
.property-card-title {
  margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  line-height: 1.25;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.property-card-title a { text-decoration: none; }
.property-card-price {
  margin: 0; font-weight: 650; font-size: 1rem;
}
.prop-specs {
  list-style: none; margin: .2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem .9rem;
  color: var(--stone); font-size: .85rem;
}
.prop-spec {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.prop-spec-icon {
  flex: 0 0 auto;
  opacity: .85;
}

/* Split */
.home-split { border-top: 1px solid var(--line); }
.split-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 860px) {
  .split-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
}
.split-stats {
  display: grid; gap: 1rem;
}
.split-stats > div {
  padding: 1rem 0; border-top: 1px solid var(--line);
  display: grid; gap: .25rem;
}
.split-stats strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.split-stats span { color: var(--stone); font-size: .9rem; }

/* Home page tiles */
.pages-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .pages-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.page-tile {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 10rem;
  padding: 1.35rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.page-tile:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.page-tile-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}
.page-tile-text {
  color: var(--stone);
  font-size: .95rem;
  line-height: 1.45;
}

/* Contact form */
.contact-layout { max-width: 720px; }
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-form label {
  display: grid;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: .75rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
.contact-form .btn { justify-self: start; }
.form-success,
.form-error {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
}
.form-success { background: #e8f0ea; }
.form-error { background: #f7e8e6; }

/* Listing page */
.listing-page { padding-block: 1.15rem 3rem; }
.listing-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.listing-header .page-title {
  margin: 0;
  font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  line-height: 1.15;
}
.listing-header .view-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.listing-header .view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 0.5rem;
}
.listing-header .archive-desc {
  margin: 0;
}

@media (min-width: 980px) {
  .listing-page { padding-block: 2rem 3rem; }
  .listing-header {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
  }
  .listing-header .page-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }
  .listing-header .view-toggle {
    width: auto;
    display: inline-flex;
    justify-self: end;
  }
  .listing-header .view-toggle-btn {
    display: inline-flex;
    padding: 0.55rem 0.95rem;
  }
}

@media (max-width: 979px) {
  .listing-page {
    padding-block: 1rem 5.5rem;
  }
  .listing-filters-panel {
    margin: 0 0 0.65rem;
  }
  .listing-filters-summary {
    padding: 0.75rem 0.85rem;
  }
  .listing-filters-hint { display: none; }
}

/* Collapsible filters on listing archive (mobile-first closed feel on small screens) */
.listing-filters-panel {
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.listing-filters-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-filters-summary::-webkit-details-marker { display: none; }
.listing-filters-hint {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--stone);
  font-size: 0.8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .listing-filters-hint { display: none; }
}
.listing-filters-panel[open] .listing-filters-summary {
  border-bottom: 1px solid var(--line);
}
.listing-filters-panel .listing-filters {
  margin: 0;
  padding: 1rem;
}
@media (min-width: 800px) {
  .listing-filters-panel {
    border: 0;
    background: transparent;
  }
  .listing-filters-summary {
    display: none;
  }
  .listing-filters-panel .listing-filters {
    padding: 0;
  }
  .listing-filters-panel {
    display: block;
  }
}

.page-title,
.entry-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 6vw, 2.8rem);
  margin: 0 0 .75rem;
  line-height: 1.1;
}
.empty-note {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  color: var(--stone);
  text-align: center;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.2rem;
  gap: 0.15rem;
  max-width: 100%;
}

.view-toggle-btn {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  color: var(--stone);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.view-toggle-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.listing-map-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* Mobile map-first layout — vertical cards, not horizontal rail */
@media (max-width: 979px) {
  .listing-map-layout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .listing-map-pane {
    order: -1;
  }

  .listing-map-pane .listings-map,
  .listings-map {
    height: min(38vh, 16.5rem);
    min-height: 14rem;
    border-radius: 0;
  }

  .listing-map-count {
    margin: 0.15rem 0 0.35rem;
  }

  .property-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .property-rail .property-card {
    width: 100%;
    flex: none;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.5rem;
    scroll-snap-align: unset;
  }

  .property-rail .property-card-media {
    width: 7.25rem;
    max-width: 7.25rem;
    aspect-ratio: 1;
  }

  .property-rail .property-card-body {
    padding: 0.1rem 0.1rem 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
  }

  .property-rail .property-card-title {
    font-size: 0.98rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .property-rail .property-card-price {
    font-size: 0.9rem;
    margin: 0;
  }

  .property-rail .prop-specs {
    font-size: 0.72rem;
    gap: 0.35rem 0.55rem;
  }

  .property-rail .property-actions {
    margin-top: auto;
    padding-top: 0.25rem;
  }

  .property-rail .property-action {
    min-height: 2.1rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
    touch-action: manipulation;
  }

  .listing-page--map .listing-map-pane {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    background: var(--paper);
    padding-bottom: 0.35rem;
  }
}

@media (min-width: 980px) {
  .listing-page--map {
    width: min(100% - 1.5rem, 1280px);
  }

  .listing-map-layout {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    min-height: 70vh;
  }

  .listing-map-rail {
    overflow: auto;
    max-height: calc(100vh - 8rem);
    padding-right: 0.35rem;
  }

  .listing-map-pane {
    position: sticky;
    top: calc(var(--header-h) + 0.75rem);
    height: calc(100vh - 8rem);
    min-height: 28rem;
  }
}

.listing-map-count {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.property-rail {
  display: grid;
  gap: 1rem;
}

.property-rail .property-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  padding: 0.55rem;
  height: auto;
  min-width: 0;
}

.property-rail .property-card-media {
  width: 7.5rem;
  max-width: 7.5rem;
  aspect-ratio: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  flex: none;
}

.property-rail .property-card-media img,
.property-rail .property-card-ph {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.property-rail .property-card-body {
  padding: 0.15rem 0.2rem 0.25rem;
  min-width: 0;
  overflow: hidden;
}

.property-rail .property-card-title {
  font-size: 1rem;
  margin: 0.15rem 0;
}

.property-rail .property-card-price {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.property-rail .prop-specs {
  font-size: 0.78rem;
  gap: 0.45rem 0.65rem;
}

.listings-map,
.property-map {
  width: 100%;
  height: 22rem;
  background: #d8d3c8;
  border: 1px solid var(--line);
}

@media (min-width: 980px) {
  .listing-map-pane .listings-map {
    height: 100%;
    min-height: 28rem;
  }
}

/* Theme img { max-width:100% } breaks Leaflet tiles — keep this override. */
.leaflet-container img {
  max-width: none !important;
}

.map-empty-note {
  margin: 0.75rem 0 0;
  color: var(--stone);
  font-size: 0.9rem;
}

.locus-map-pin {
  background: transparent;
  border: 0;
}

.locus-map-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(23, 25, 28, 0.28);
}

.locus-map-popup .leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(23, 25, 28, 0.18);
  padding: 0;
}

.locus-map-popup .leaflet-popup-content {
  margin: 0;
  min-width: 220px;
}

.map-popup-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.map-popup-body { padding: 0.75rem 0.85rem 0.9rem; }
.map-popup-loc {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.map-popup-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.25;
}
.map-popup-price {
  margin: 0.35rem 0 0.2rem;
  font-weight: 650;
}
.map-popup-specs {
  margin: 0;
  font-size: 0.8rem;
  color: var(--stone);
}
.map-popup-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel-deep);
}

.property-map-block {
  margin-top: 2.5rem;
}

.property-map-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.property-map {
  min-height: 18rem;
  aspect-ratio: 16 / 9;
}

.property-map-address {
  margin: 0.65rem 0 0;
  color: var(--stone);
  font-size: 0.92rem;
}

.aside-card .btn-block {
  width: 100%;
  justify-content: center;
}

.detail-list strong {
  text-align: right;
  font-weight: 600;
}

/* Single */
.single-hero {
  margin-bottom: 1.75rem;
}

.single-hero-image,
.single-hero-ph {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: #cfc8bc;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--stone);
  padding: 1.25rem 0;
}
.breadcrumb a { text-decoration: none; }
.single-layout {
  display: grid; gap: 2rem; padding-bottom: 3rem;
}
@media (min-width: 920px) {
  .single-layout { grid-template-columns: minmax(0, 1fr) 18rem; gap: 2.5rem; align-items: start; }
}
.single-header { margin-bottom: 1.5rem; }
.single-price { font-size: 1.5rem; font-weight: 650; margin: .75rem 0; }
.single-loc { color: var(--stone); margin: 0; }
.single-main .entry-content {
  max-width: 42rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}
.single-main .entry-content > *:first-child { margin-top: 0; }
.aside-card {
  border: 1px solid var(--line); background: #fff; padding: 1.25rem;
  position: relative; top: calc(var(--header-h) + 1rem);
}
.aside-title {
  margin: 0 0 1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.detail-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.detail-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.detail-list span { color: var(--stone); }

/* Property gallery mosaic */
.property-gallery {
  margin-top: 2.5rem;
}

.property-gallery-mosaic {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

.property-gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #cfc8bc;
  min-height: 11rem;
}

.property-gallery-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.property-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.55s var(--ease);
}

.property-gallery-link:hover .property-gallery-image {
  transform: scale(1.03);
}

.property-gallery-item--hero .property-gallery-image {
  aspect-ratio: 16 / 10;
}

.property-gallery-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 25, 28, 0.48);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.property-gallery-count {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--stone);
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .property-gallery-mosaic--1 {
    grid-template-columns: 1fr;
  }

  .property-gallery-mosaic--2 {
    grid-template-columns: 1.4fr 1fr;
  }

  .property-gallery-mosaic--3 {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, minmax(10rem, 14rem));
  }

  .property-gallery-mosaic--3 .property-gallery-item--hero {
    grid-row: 1 / span 2;
  }

  .property-gallery-mosaic--4,
  .property-gallery-mosaic--5 {
    grid-template-columns: 1.55fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(10.5rem, 15rem));
  }

  .property-gallery-mosaic--4 .property-gallery-item--hero,
  .property-gallery-mosaic--5 .property-gallery-item--hero {
    grid-row: 1 / span 2;
  }

  .property-gallery-mosaic--4 .property-gallery-item:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .property-gallery-item,
  .property-gallery-item--hero .property-gallery-image,
  .property-gallery-image {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

/* Lightbox */
.locus-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 18, 20, 0.88);
  padding: 1.25rem;
}

.locus-lightbox.is-open { display: flex; }

.locus-lightbox img {
  max-width: min(1100px, 100%);
  max-height: min(84vh, 100%);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.locus-lightbox-close,
.locus-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.locus-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.4rem;
  line-height: 1;
}

.locus-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.5rem;
}

.locus-lightbox-prev { left: 1rem; }
.locus-lightbox-next { right: 1rem; }

body.lightbox-open { overflow: hidden; }

.content-wrap { padding-block: 2.5rem; }
.content-wrap.narrow { max-width: 720px; }

/* Footer */
.site-footer {
  margin-top: 3rem;
  background:
    linear-gradient(180deg, rgba(63, 90, 107, 0.06), transparent 28%),
    #e4e0d7;
  border-top: 1px solid var(--line);
}

.footer-top { padding-block: 3.5rem 2.75rem; }

.footer-grid {
  display: grid;
  gap: 2.25rem 1.75rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.85fr 0.95fr 1.05fr;
    gap: 2.5rem 2rem;
    align-items: start;
  }
}

.footer-logo {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4rem + 0.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
}

.footer-tagline {
  margin: 0;
  color: var(--stone);
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-brand-contacts {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.footer-contact-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.footer-contact-link:hover { color: var(--steel); }

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-heading--sub {
  margin-top: 1.5rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-menu--compact {
  gap: 0.4rem;
}

.footer-menu a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--stone);
  transition: color 0.25s var(--ease);
}

.footer-menu a:hover { color: var(--ink); }

.footer-address,
.footer-hours {
  margin: 0;
  color: var(--stone);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-meta-label {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-cta {
  display: inline-flex;
  margin-top: 1.35rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
  transition: color 0.25s var(--ease);
}

.footer-cta:hover { color: var(--ink); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
  color: var(--stone);
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-copy { margin: 0; }

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--stone);
  transition: color 0.25s var(--ease);
}

.footer-legal a:hover { color: var(--ink); }

.locus-listings-results {
  transition: opacity 0.25s var(--ease);
}

.listing-page.is-filtering .locus-listings-results {
  opacity: 0.45;
  pointer-events: none;
}

.listing-page.is-filtering {
  cursor: progress;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.reveal.is-in { opacity: 1; transform: none; }

.navigation.pagination { margin-top: 2rem; }
.navigation.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.navigation.pagination a,
.navigation.pagination span {
  display: inline-flex; min-width: 2.4rem; min-height: 2.4rem;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); text-decoration: none; padding: 0 .55rem;
}

/* Studio pages (About / Services) */
.studio-hero {
  position: relative;
  min-height: min(58vh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.studio-hero-media { position: absolute; inset: 0; }

.studio-hero-image,
.studio-hero-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-hero-ph {
  background: linear-gradient(135deg, #243742 0%, #5d717c 45%, #c8beb0 100%);
}

.studio-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 25, 28, 0.15), rgba(23, 25, 28, 0.72)),
    linear-gradient(90deg, rgba(23, 25, 28, 0.35), transparent 55%);
}

.studio-hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vw, 6.5rem) 3rem;
}

.studio-eyebrow,
.studio-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-kicker { color: var(--steel); }

.studio-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.05;
  max-width: 14ch;
}

.studio-lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
}

.studio-section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.studio-section--muted {
  background: rgba(63, 90, 107, 0.06);
  border-block: 1px solid var(--line);
}

.studio-section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.studio-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
}

.studio-copy p,
.service-row-copy p {
  color: var(--stone);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 38rem;
}

.studio-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .studio-split {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
  }

  .studio-split--tight {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.studio-figure {
  margin: 0;
  overflow: hidden;
  min-height: 22rem;
  background: #cfc8bc;
}

.studio-figure img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.studio-figure:hover img { transform: scale(1.03); }

.studio-steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .studio-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.studio-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.studio-step h3 {
  margin: 0.65rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.studio-step p {
  margin: 0;
  color: var(--stone);
  line-height: 1.6;
}

.studio-step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.studio-mosaic {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .studio-mosaic {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: repeat(2, minmax(12rem, 16rem));
  }

  .studio-mosaic-item--lg {
    grid-row: 1 / span 2;
  }
}

.studio-mosaic-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 14rem;
  background: #cfc8bc;
}

.studio-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.studio-mosaic-item:hover img { transform: scale(1.04); }

.studio-mosaic-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.15rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(transparent, rgba(23, 25, 28, 0.72));
}

.studio-section--quote {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.studio-quote {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.studio-quote blockquote {
  margin: 0;
}

.studio-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
}

.studio-quote-meta {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.service-row {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 880px) {
  .service-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-block: 2.75rem;
  }

  .service-row--flip .service-row-media { order: 2; }
  .service-row--flip .service-row-copy { order: 1; }
}

.service-row-media {
  margin: 0;
  overflow: hidden;
  min-height: 16rem;
  background: #cfc8bc;
}

.service-row-media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 26rem;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.service-row:hover .service-row-media img { transform: scale(1.03); }

.service-points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.service-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 1px;
  background: var(--steel);
}

.studio-engagement {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.studio-engagement > div {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.studio-engagement strong {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.studio-engagement span {
  color: var(--stone);
  font-size: 1.05rem;
}

.studio-cta {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(63, 90, 107, 0.08), transparent 55%),
    #e4e0d7;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.studio-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.studio-cta-inner p {
  margin: 0;
  color: var(--stone);
  max-width: 28rem;
}

.studio-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Property compare action */
.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.property-action {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--stone);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.property-action.is-active,
.property-action[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.property-action:focus-visible,
.btn:focus-visible,
.view-toggle-btn:focus-visible,
.listing-filters select:focus-visible,
.inquiry-form input:focus-visible,
.inquiry-form textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

/* Agent */
.agent-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: #fff;
}
.agent-card-photo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.agent-card-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}
.agent-card-name {
  margin: 0.2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.agent-card-name a { text-decoration: none; }
.agent-card-role { margin: 0; color: var(--stone); }
.agent-card-contacts {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}
.agent-card-contacts a { text-decoration: none; color: var(--steel-deep); }
.agent-header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 700px) {
  .agent-header { grid-template-columns: 160px 1fr; align-items: center; }
}
.agent-header-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Inquiry */
.inquiry-box { margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.inquiry-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.inquiry-form { display: grid; gap: 0.75rem; }
.inquiry-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

/* Compare */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
  vertical-align: top;
  text-align: left;
}
.compare-table th {
  width: 8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  background: rgba(63, 90, 107, 0.05);
}
.compare-table img { width: 100%; max-width: 180px; aspect-ratio: 4/3; object-fit: cover; }

/* Mobile compare cards — desktop keeps the table */
.compare-cards {
  display: grid;
  gap: 0.85rem;
}
.compare-card {
  position: relative;
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.compare-card-remove {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 25, 28, 0.72);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.compare-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #ddd8cf;
  overflow: hidden;
}
.compare-card-media img,
.compare-card-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.compare-card-ph {
  background: linear-gradient(145deg, #3f5a6b, #b7aea2);
}
.compare-card-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 0.95rem 1rem;
}
.compare-card-loc {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.compare-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
}
.compare-card-title a { text-decoration: none; }
.compare-card-price {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.compare-card-specs {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
}
.compare-card-specs li {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem;
  background: rgba(242, 240, 235, 0.85);
  border: 1px solid var(--line);
}
.compare-card-specs span {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
.compare-card-specs strong {
  font-size: 0.88rem;
  font-weight: 650;
}
.compare-card-address {
  margin: 0.15rem 0 0;
  color: var(--stone);
  font-size: 0.86rem;
  line-height: 1.4;
}
.compare-card-link {
  justify-self: start;
  margin-top: 0.25rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.9rem;
}

@media (max-width: 799px) {
  .compare-table-wrap { display: none; }
  .compare-drawer-panel {
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }
  .compare-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .compare-drawer-body {
    padding: 0.85rem 0.85rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 800px) {
  .compare-cards { display: none; }
}

/* Compare tray + drawer */
.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 40px rgba(23, 25, 28, 0.28);
  max-width: calc(100vw - 2rem);
}
.compare-tray[hidden] { display: none !important; }
.compare-tray-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
}
.compare-tray-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-tray-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.compare-tray-clear {
  appearance: none;
  border: 0;
  border-left: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.72);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.compare-tray-clear:hover,
.compare-tray-btn:hover { background: rgba(255,255,255,0.06); }

.compare-drawer[hidden] { display: none !important; }
.compare-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}
.compare-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 28, 0.45);
}
.compare-drawer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(86vh, 920px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 50px rgba(23, 25, 28, 0.18);
  animation: locus-drawer-up 0.28s var(--ease);
}
@keyframes locus-drawer-up {
  from { transform: translateY(12px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.compare-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.compare-drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.compare-drawer-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--stone);
  padding: 0.2rem 0.4rem;
}
.compare-drawer-body {
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
}
body.compare-open { overflow: hidden; }
body.has-compare-tray .site-footer {
  padding-bottom: 4.5rem;
}

@media (max-width: 640px) {
  .compare-tray {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    transform: none;
    width: auto;
  }
  .compare-tray-btn,
  .compare-tray-clear {
    padding: 0.8rem 0.85rem;
  }
  .compare-drawer-panel {
    max-height: 92vh;
  }
  .compare-drawer-body {
    padding: 0.85rem 0.85rem 1.25rem;
  }
}

.home-editorial-hero { padding-top: 2.5rem; }
.hero-map-cta { margin-top: 1rem; }
.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
}
