:root {
  --ink: #111217;
  --muted: #6d6f7a;
  --soft: #f5f5f7;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #e2e3e8;
  --green: #3f5fca;
  --green-dark: #27419c;
  --clay: #b65f3a;
  --sand: #d9c4a2;
  --sky: #e8f1ef;
  --shadow: 0 20px 50px rgba(23, 32, 31, 0.14);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(31, 107, 90, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 28px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.topbar span:nth-child(2) {
  text-align: center;
  color: #e9d8bc;
}

.topbar span:nth-child(3) {
  text-align: right;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(23, 32, 31, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: var(--green-dark);
  color: #fff;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}

.brand-copy {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #26322f;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--ink);
}

.btn,
.ghost-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn {
  background: var(--green);
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.btn-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 13px;
}

.btn-light {
  background: #fff;
  color: var(--green-dark);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--sky);
  color: var(--green-dark);
}

.btn-full {
  width: 100%;
}

.ghost-link {
  color: var(--green-dark);
  border-color: var(--line);
  background: #fff;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

.section,
.hero,
.page-hero,
.detail-wrapper {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 26px;
  align-items: end;
  padding: 44px 0 54px;
}

.hero-media {
  min-height: 560px;
  grid-column: 1 / -1;
  grid-row: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #26322f;
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 23, 21, 0.74), rgba(13, 23, 21, 0.22) 48%, rgba(13, 23, 21, 0.02));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy,
.hero-search {
  position: relative;
  z-index: 1;
  grid-row: 1;
}

.hero-copy {
  align-self: end;
  padding: 0 0 38px 42px;
  color: #fff;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.dark-band .eyebrow,
.page-hero.dark .eyebrow {
  color: #f2c79e;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  font-size: 62px;
  max-width: 740px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.hero-copy p {
  max-width: 560px;
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-search {
  align-self: end;
  margin-right: 30px;
  margin-bottom: 30px;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-search h2 {
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
}

.search-grid,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field,
select.field,
textarea.field {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea.field {
  min-height: 112px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-grid .btn,
.filter-grid .btn {
  grid-column: 1 / -1;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-links a,
.chip,
.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.property-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 107, 90, 0.34);
  box-shadow: 0 14px 34px rgba(23, 32, 31, 0.12);
}

.property-card-wide {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.property-media {
  position: relative;
  min-height: 248px;
  display: block;
  overflow: hidden;
  background: var(--sky);
}

.property-card-wide .property-media {
  min-height: 100%;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.property-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--green-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.property-badge {
  position: absolute;
  left: 12px;
  top: 12px;
}

.property-info {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.property-row,
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.property-row span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.save-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.save-btn.saved {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.property-info p,
.muted {
  color: var(--muted);
}

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

.facts span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.facts-large span {
  min-height: 38px;
  padding-inline: 14px;
  background: rgba(31, 107, 90, 0.1);
  font-size: 14px;
}

.price-row {
  align-items: end;
}

.price-row strong {
  font-size: 21px;
}

.price-row span {
  color: var(--muted);
  font-size: 13px;
}

.dark-band {
  background: var(--green-dark);
  color: #fff;
}

.band-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.process-grid,
.neighborhood-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card,
.neighborhood-card,
.metric-card,
.legal-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}

.dark-band .process-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.process-card span,
.metric-card strong {
  display: block;
  color: var(--clay);
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.dark-band .process-card span {
  color: #f2c79e;
}

.process-card p,
.dark-band p {
  color: rgba(255, 255, 255, 0.76);
}

.neighborhood-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.neighborhood-card {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  background: linear-gradient(135deg, #fff, var(--soft));
}

.listing-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filters-panel,
.map-panel,
.contact-panel,
.price-panel,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(23, 32, 31, 0.06);
}

.filters-panel {
  position: sticky;
  top: 102px;
}

.filters-panel h2 {
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
}

.listing-main {
  display: grid;
  gap: 18px;
}

.listing-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.listing-toolbar h1 {
  font-size: 36px;
}

.listing-grid {
  display: grid;
  gap: 18px;
}

.map-panel {
  display: grid;
  gap: 16px;
  background: var(--soft);
}

.map-visual {
  min-height: 220px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(31, 107, 90, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 107, 90, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 66% 42%, var(--clay) 0 8px, transparent 9px),
    radial-gradient(circle at 42% 58%, var(--green) 0 8px, transparent 9px),
    radial-gradient(circle at 28% 36%, #c7955c 0 7px, transparent 8px),
    #edf3ef;
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
}

.page-hero {
  padding: 70px 0 36px;
}

.page-hero.dark {
  width: 100%;
  padding: 0;
  background: var(--green-dark);
  color: #fff;
}

.page-hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  font-size: 54px;
}

.page-hero p {
  max-width: 660px;
  margin-top: 16px;
  color: var(--muted);
}

.page-hero.dark p {
  color: rgba(255, 255, 255, 0.78);
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card strong {
  margin-bottom: 8px;
}

.detail-wrapper {
  padding: 42px 0 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
}

.detail-copy {
  display: grid;
  gap: 16px;
}

.detail-copy h1 {
  font-size: 48px;
}

.detail-copy p {
  color: var(--muted);
}

.price-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.price-panel strong {
  font-size: 32px;
}

.price-panel p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 34px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-main {
  grid-row: span 2;
  height: 450px !important;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.detail-body {
  display: grid;
  gap: 22px;
}

.detail-body h2 {
  font-size: 30px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cost-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cost-table div {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.cost-table div:last-child {
  border-bottom: 0;
}

.lead-form,
.stack-form,
.inline-form {
  display: grid;
  gap: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.consent {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.consent a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-response {
  min-height: 22px;
  color: var(--green);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
}

.split-section .process-grid {
  grid-template-columns: 1fr;
}

.spaced {
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-layout {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
  display: grid;
  gap: 18px;
}

.legal-card {
  display: grid;
  gap: 12px;
}

.legal-card h2 {
  font-size: 28px;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.site-footer {
  background: #17201f;
  color: #fff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 26px;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 24px;
  align-items: start;
  padding-bottom: 34px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-cta h2 {
  color: #fff;
}

.footer-cta .field {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.footer-cta .field::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.footer-cta .consent,
.footer-grid p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-cta .consent a {
  color: #f2c79e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.cookie-notice {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-notice[hidden] {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 320px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

/* Search-platform layout modeled after dense real-estate marketplaces. */
.site-header {
  background: #fff;
  border-bottom: 1px solid #dedfe5;
  box-shadow: 0 1px 0 rgba(17, 18, 23, 0.04);
  backdrop-filter: none;
}

.header-inner {
  width: calc(100% - 128px);
  max-width: none;
  min-height: 108px;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
}

.brand {
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: 5px solid var(--green);
  color: var(--green);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 0;
  transform: rotate(0deg);
}

.brand-mark::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 5px solid var(--green);
  border-bottom: 5px solid var(--green);
  transform: rotate(-45deg);
}

.brand-copy {
  color: #101114;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.nav {
  justify-content: flex-end;
  gap: 34px;
}

.nav a {
  color: #17181d;
  font-size: 19px;
  font-weight: 500;
  text-transform: none;
}

.nav a::after {
  display: none;
}

.login-pill {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 28px;
  background: #f0f0f3;
  color: #111217;
  font-size: 19px;
  font-weight: 800;
}

.login-pill:hover,
.login-pill:focus-visible {
  background: #e6e7ec;
}

.search-app {
  background: #fff;
}

.search-filter-bar {
  position: sticky;
  top: 108px;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 132px;
  padding: 28px 56px;
  border-bottom: 1px solid #e1e2e7;
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-filter-bar::-webkit-scrollbar {
  display: none;
}

.location-pill,
.filter-pill,
.sort-pill,
.alert-pill,
.next-filter {
  flex: 0 0 auto;
  min-height: 76px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f0f0f3;
  color: #111217;
  font-size: 16px;
  font-weight: 700;
}

.location-pill {
  width: 506px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 0 28px;
}

.pill-icon {
  color: #686b75;
  font-size: 29px;
}

.location-pill select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #737681;
  font-size: 22px;
  font-weight: 500;
  outline: 0;
}

.filter-pill,
.sort-pill {
  position: relative;
  min-width: 186px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  white-space: nowrap;
}

.filter-pill:nth-of-type(4) {
  min-width: 222px;
}

.filter-pill::after {
  content: "⌄";
  margin-left: 14px;
  color: currentColor;
  font-size: 18px;
}

.filter-pill select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.active-pill {
  border-color: #d8defb;
  background: #f1f4ff;
  color: var(--green);
}

.compact-pill {
  min-width: 168px;
}

.next-filter {
  width: 56px;
  min-width: 56px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: #fff;
  box-shadow: 0 7px 20px rgba(31, 37, 56, 0.17);
  font-size: 34px;
}

.alert-pill {
  min-width: 298px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px;
}

.alert-pill::before {
  content: "♢";
  color: #17181d;
  font-size: 18px;
}

.search-results-shell {
  height: calc(100vh - 240px);
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(760px, 60%) minmax(420px, 40%);
  overflow: hidden;
}

.results-column {
  overflow: auto;
  padding: 74px 70px 88px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}

.results-toolbar h1,
.search-app h1,
.search-app h2,
.search-app h3 {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.results-toolbar h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.16;
}

.results-toolbar p {
  margin-top: 4px;
  color: #17181d;
  font-size: 20px;
}

.sort-pill {
  min-width: 214px;
  min-height: 66px;
  gap: 12px;
  padding: 0 22px;
  font-size: 16px;
}

.sort-pill select {
  border: 0;
  background: transparent;
  color: #111217;
  font-weight: 800;
  outline: 0;
}

.platform-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
}

.platform-cards .property-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.platform-cards .property-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.platform-cards .property-media {
  min-height: 0;
  height: 228px;
  border-radius: 16px;
  background: #e5e5e5;
}

.platform-cards .property-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: linear-gradient(0deg, rgba(226, 226, 218, 0.78), rgba(226, 226, 218, 0));
  pointer-events: none;
}

.platform-cards .property-media img {
  transition: none;
}

.platform-cards .property-card:hover .property-media img {
  transform: none;
}

.property-badges {
  position: absolute;
  left: 22px;
  top: 22px;
  right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.property-badges span {
  max-width: 150px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #111217;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 29px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.media-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.media-dots i:first-child {
  background: #fff;
}

.platform-cards .property-info {
  padding: 18px 0 0;
  gap: 11px;
}

.listing-description {
  min-height: 48px;
  color: #6a6d78;
  font-size: 17px;
  line-height: 1.35;
}

.listing-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.listing-price-row strong {
  display: block;
  color: #050508;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
}

.listing-price-row span {
  display: block;
  margin-top: 8px;
  color: #6a6d78;
  font-size: 20px;
  line-height: 1.2;
}

.platform-cards .save-btn {
  min-width: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #050508;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.platform-cards .save-btn.saved {
  background: transparent;
  color: var(--green);
}

.listing-facts {
  color: #050508;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.listing-address {
  color: #6a6d78;
  font-size: 20px;
  line-height: 1.42;
}

.search-alert-card {
  margin-top: 72px;
}

.map-column {
  position: sticky;
  top: 240px;
  height: calc(100vh - 240px);
  min-height: 720px;
  overflow: hidden;
  background: #f5f6f7;
}

.map-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(34deg, transparent 0 19%, #fff 19.4% 22%, transparent 22.4% 100%),
    linear-gradient(-31deg, transparent 0 31%, #fff 31.3% 34.2%, transparent 34.6% 100%),
    linear-gradient(137deg, transparent 0 41%, #fff 41.4% 44.3%, transparent 44.8% 100%),
    #f4f5f6;
}

.map-canvas::before,
.map-canvas::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(26deg, transparent 0 48%, #fff 48.3% 51%, transparent 51.4% 100%),
    linear-gradient(-49deg, transparent 0 58%, #fff 58.3% 61%, transparent 61.4% 100%),
    linear-gradient(72deg, transparent 0 36%, #fff 36.2% 39.4%, transparent 39.8% 100%);
  pointer-events: none;
}

.map-canvas::after {
  transform: rotate(11deg) scale(1.16);
  opacity: 0.9;
}

.map-block {
  position: absolute;
  border-radius: 8px;
  transform: rotate(var(--r, 0deg));
  clip-path: polygon(8% 0, 100% 12%, 91% 100%, 0 88%);
  z-index: 1;
}

.map-block.gray {
  background: #e3e4e6;
}

.map-block.green {
  background: #d5f0d2;
}

.map-block.yellow {
  background: #fff7df;
}

.b1 { left: -3%; top: 5%; width: 28%; height: 13%; --r: 18deg; }
.b2 { left: 22%; top: 4%; width: 22%; height: 20%; --r: -22deg; }
.b3 { left: 48%; top: 0; width: 26%; height: 19%; --r: 17deg; }
.b4 { left: 74%; top: 5%; width: 24%; height: 16%; --r: -13deg; }
.b5 { left: 5%; top: 22%; width: 22%; height: 11%; --r: 18deg; }
.b6 { left: 43%; top: 21%; width: 18%; height: 18%; --r: -28deg; }
.b7 { left: 72%; top: 32%; width: 17%; height: 26%; --r: -11deg; }
.b8 { left: 20%; top: 54%; width: 24%; height: 22%; --r: 37deg; }
.b9 { left: 62%; top: 74%; width: 14%; height: 15%; --r: -3deg; }
.b10 { left: -2%; top: 36%; width: 22%; height: 32%; --r: -35deg; }
.b11 { left: 36%; top: 44%; width: 18%; height: 20%; --r: 19deg; }
.b12 { left: 53%; top: 52%; width: 16%; height: 22%; --r: -29deg; }
.b13 { left: 78%; top: 61%; width: 26%; height: 22%; --r: 38deg; }

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .topbar span:nth-child(2),
  .topbar span:nth-child(3) {
    text-align: center;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .brand {
    grid-column: 1;
  }

  .menu-btn {
    display: inline-flex;
    justify-self: end;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    padding: 12px 0 18px;
  }

  .nav.open {
    display: grid;
    gap: 14px;
  }

  .header-actions {
    display: none;
  }

  .hero,
  .page-hero-inner,
  .band-inner,
  .listing-shell,
  .detail-hero,
  .detail-layout,
  .split-section,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 680px;
  }

  .hero-copy {
    padding: 0 28px 300px;
  }

  .hero-search {
    margin: 0 24px 24px;
    align-self: end;
  }

  .property-grid,
  .process-grid,
  .neighborhood-grid,
  .metric-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-panel,
  .price-panel {
    position: static;
  }
}

/* Keep location anchored while only the filter choices advance. */
.search-filter-bar {
  overflow: hidden;
}

.search-filter-bar > .location-pill {
  flex: 0 0 auto;
}

.filter-scroll-shell {
  position: relative;
  min-width: 0;
  height: 56px;
  flex: 1 1 auto;
  overflow: hidden;
}

.filter-scroll-shell .filter-track {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 56px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.filter-scroll-shell .filter-track::-webkit-scrollbar {
  display: none;
}

.filter-scroll-shell.is-scrolled .filter-track {
  padding-left: 56px;
}

.filter-nav {
  position: absolute;
  top: 4px;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 34, 52, 0.18);
  color: var(--market-ink);
  font-size: 27px;
  font-weight: 400;
}

.filter-nav[hidden] {
  display: none;
}

.filter-prev {
  left: 0;
}

.filter-next {
  right: 0;
}

/* Google Maps is the same map provider used by the reference search page. */
.map-external {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e7e5e0;
}

.map-external iframe {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e7e5e0;
  filter: saturate(0.9) contrast(0.98);
  transition: transform 180ms ease;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.map-overlay .map-marker,
.map-overlay .map-cluster {
  pointer-events: auto;
}

.map-overlay .map-cluster {
  position: absolute;
  z-index: 6;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--market-ink);
  box-shadow: 0 3px 12px rgba(18, 22, 34, 0.22);
  font-size: 12px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.map-column.is-zoomed .map-external iframe {
  transform: scale(1.12);
}

.detail-map .map-external {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 1600px) {
  .search-filter-bar > .location-pill {
    width: 506px;
  }
}

@media (max-width: 1450px) and (min-width: 981px) {
  .search-filter-bar > .location-pill {
    width: 320px;
  }

  .alert-pill {
    display: none;
  }
}

@media (max-width: 980px) {
  .filter-scroll-shell,
  .filter-scroll-shell .filter-track {
    height: 54px;
  }

  .filter-nav {
    top: 3px;
    width: 48px;
    height: 48px;
  }

  .map-overlay .map-cluster {
    width: 36px;
    height: 36px;
  }
}

/* A selected filter colors its button, never the details container. */
.filter-menu.active-pill {
  border-color: transparent;
  background: transparent;
  color: inherit;
}

.filter-menu.active-pill > summary {
  border-color: #d7def9;
  background: #f1f4ff;
  color: var(--market-blue-dark);
}

/* The popover follows the button even after the filter rail has scrolled. */
.filter-menu > .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, 168px);
  left: var(--filter-popover-left, 12px);
}

@media (max-width: 680px) {
  .section,
  .hero,
  .page-hero,
  .detail-wrapper,
  .listing-shell,
  .footer-inner,
  .band-inner,
  .legal-layout {
    width: min(100% - 28px, var(--max));
  }

  h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .brand-copy {
    font-size: 23px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .hero-media {
    min-height: 720px;
  }

  .hero-copy {
    padding: 0 20px 360px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-search {
    margin: 0 14px 14px;
    padding: 16px;
  }

  .search-grid,
  .filter-grid,
  .form-row,
  .property-grid,
  .process-grid,
  .neighborhood-grid,
  .metric-grid,
  .contact-grid,
  .footer-grid,
  .property-card-wide {
    grid-template-columns: 1fr;
  }

  .section-head,
  .listing-toolbar,
  .footer-bottom,
  .price-row {
    display: grid;
    justify-content: stretch;
  }

  .property-card-wide .property-media {
    min-height: 236px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main,
  .gallery img {
    height: 240px !important;
  }

  .cookie-notice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .header-inner {
    width: calc(100% - 56px);
    gap: 28px;
  }

  .nav {
    gap: 22px;
  }

  .nav a {
    font-size: 17px;
  }

  .search-filter-bar {
    padding-inline: 28px;
  }

  .results-column {
    padding-inline: 38px;
  }

  .platform-cards {
    column-gap: 24px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    width: calc(100% - 32px);
    min-height: 82px;
    grid-template-columns: auto auto;
    gap: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0;
  }

  .brand-copy {
    font-size: 24px;
  }

  .menu-btn {
    min-height: 44px;
    border-radius: 999px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    width: fit-content;
    font-size: 18px;
  }

  .search-filter-bar {
    top: 82px;
    min-height: 96px;
    gap: 12px;
    padding: 16px;
  }

  .location-pill {
    width: 330px;
  }

  .location-pill,
  .filter-pill,
  .alert-pill,
  .next-filter {
    min-height: 58px;
  }

  .location-pill select {
    font-size: 17px;
  }

  .filter-pill {
    min-width: 170px;
  }

  .alert-pill {
    min-width: 230px;
  }

  .search-results-shell {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    overflow: visible;
  }

  .results-column {
    overflow: visible;
    padding: 28px 18px 72px;
  }

  .map-column {
    position: relative;
    top: auto;
    height: 280px;
    min-height: 280px;
  }

  .results-toolbar {
    margin-bottom: 28px;
  }

  .platform-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 38px;
  }
}

@media (max-width: 680px) {
  .brand-copy {
    font-size: 21px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    font-size: 0;
  }

  .search-filter-bar {
    top: 82px;
  }

  .results-toolbar {
    display: grid;
  }

  .results-toolbar h1 {
    font-size: 24px;
  }

  .results-toolbar p,
  .listing-price-row span,
  .listing-facts,
  .listing-address {
    font-size: 16px;
  }

  .platform-cards {
    grid-template-columns: 1fr;
  }

  .platform-cards .property-media {
    height: 230px;
  }

  .listing-price-row strong {
    font-size: 24px;
  }
}

/* Reference-aligned marketplace experience. */
:root {
  --market-blue: #4462c8;
  --market-blue-dark: #314da9;
  --market-ink: #111216;
  --market-muted: #696b75;
  --market-soft: #f3f3f5;
  --market-line: #dedfe4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid var(--market-line);
  box-shadow: none;
}

.header-inner {
  width: calc(100% - 96px);
  max-width: none;
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  width: 25px;
  height: 25px;
  border: 3px solid var(--market-blue);
  border-radius: 0;
  background: #fff;
  transform: none;
}

.brand-mark::before {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  background: #fff;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--market-blue);
  border-bottom: 3px solid var(--market-blue);
  transform: none;
}

.brand-copy {
  color: var(--market-ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
}

.header-search {
  width: 296px;
  height: 48px;
  flex: 0 1 296px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d6d7dc;
  border-radius: 24px;
  padding: 0 16px;
  background: #fff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--market-ink);
  background: transparent;
  font-size: 14px;
}

.search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid #686b74;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: #686b74;
  transform: rotate(45deg);
}

.nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0;
}

.nav > a,
.nav-dropdown > summary {
  color: var(--market-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.nav > a::after {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.nav-dropdown[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.nav-dropdown.active > summary {
  font-weight: 750;
}

.nav-popover {
  position: absolute;
  top: calc(100% + 24px);
  left: -18px;
  z-index: 80;
  width: 220px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 22, 34, 0.16);
}

.nav-popover-wide {
  width: 250px;
}

.nav-popover-right {
  right: -24px;
  left: auto;
}

.nav-popover strong {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--market-line);
  font-size: 13px;
}

.nav-popover a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--market-ink);
  font-size: 14px;
  font-weight: 500;
}

.nav-popover a:hover,
.nav-popover a:focus-visible {
  background: var(--market-soft);
}

.header-actions {
  flex: 0 0 auto;
}

.login-pill {
  min-height: 48px;
  gap: 9px;
  border-radius: 24px;
  padding: 0 18px;
  background: var(--market-soft);
  color: var(--market-ink);
  font-size: 14px;
  font-weight: 750;
}

.user-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 1.7px solid var(--market-ink);
  border-radius: 50%;
}

.user-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 4px;
  border: 1.3px solid var(--market-ink);
  border-radius: 50%;
}

.user-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 8px;
  height: 4px;
  border: 1.3px solid var(--market-ink);
  border-radius: 7px 7px 4px 4px;
}

body[data-view="detail"] .brand-copy {
  display: none;
}

body[data-view="detail"] .header-inner {
  gap: 24px;
}

body[data-view="detail"] .nav {
  gap: 22px;
}

.search-filter-bar {
  position: sticky;
  top: 80px;
  z-index: 45;
  width: 100%;
  min-height: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  padding: 20px 48px;
  border-bottom: 1px solid var(--market-line);
  background: #fff;
}

.filter-track {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.filter-track::-webkit-scrollbar {
  display: none;
}

.location-pill,
.filter-menu > summary,
.next-filter,
.more-filter-pill,
.alert-pill {
  min-height: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 28px;
  background: var(--market-soft);
  color: var(--market-ink);
  font-size: 14px;
  font-weight: 700;
}

.location-pill {
  width: 372px;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.location-pill select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #676a74;
  font-size: 16px;
  font-weight: 500;
  appearance: none;
}

.location-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23676a74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: none;
}

.location-icon::before {
  content: none;
}

.location-icon::after {
  content: none;
}

.filter-menu {
  position: relative;
  flex: 0 0 auto;
}

.filter-menu > summary {
  min-width: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.filter-menu > summary::-webkit-details-marker {
  display: none;
}

.filter-menu > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.filter-menu.active-pill > summary {
  border-color: #d7def9;
  background: #f1f4ff;
  color: var(--market-blue-dark);
}

.filter-menu:nth-of-type(2) > summary {
  min-width: 154px;
}

.filter-costs > summary {
  min-width: 168px;
}

.filter-type > summary {
  min-width: 136px;
}

.optional-filter > summary {
  min-width: 142px;
}

.filter-popover {
  position: fixed;
  top: 164px;
  z-index: 90;
  width: 250px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 23, 35, 0.18);
}

.operation-options {
  width: 170px;
  gap: 4px;
}

.operation-options a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
}

.operation-options a.selected,
.operation-options a:hover {
  background: #f1f4ff;
  color: var(--market-blue-dark);
  font-weight: 700;
}

.compact-options {
  grid-template-columns: repeat(3, 1fr);
}

.compact-options button {
  min-height: 42px;
  border: 1px solid var(--market-line);
  border-radius: 6px;
  background: #fff;
}

.compact-options button.selected {
  border-color: var(--market-blue);
  background: #f1f4ff;
  color: var(--market-blue-dark);
}

.next-filter {
  width: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 34, 52, 0.18);
  font-size: 27px;
  font-weight: 400;
}

.more-filter-pill,
.alert-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  white-space: nowrap;
}

.more-filter-pill {
  min-width: 132px;
}

.alert-pill {
  min-width: 224px;
}

.alert-pill::before {
  content: none;
}

.sliders-icon {
  position: relative;
  width: 17px;
  height: 12px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.sliders-icon::before,
.sliders-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--market-soft);
}

.sliders-icon::before {
  top: -3px;
  left: 4px;
}

.sliders-icon::after {
  right: 3px;
  bottom: -3px;
}

.bell-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 4px 4px;
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -5px;
  width: 4px;
  height: 2px;
  border-bottom: 1.5px solid currentColor;
}

.filter-modal[hidden],
.gallery-modal[hidden] {
  display: none;
}

.filter-modal,
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.filter-modal-backdrop,
.gallery-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(17, 18, 22, 0.48);
}

.filter-drawer {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 32px));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 18, 22, 0.28);
}

.filter-drawer > header,
.filter-drawer > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.filter-drawer > header {
  border-bottom: 1px solid var(--market-line);
}

.filter-drawer > footer {
  border-top: 1px solid var(--market-line);
}

.filter-drawer h2 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
}

.filter-drawer > header button,
.gallery-dialog > header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--market-soft);
  font-size: 24px;
}

.filter-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.search-results-shell {
  height: calc(100vh - 176px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  overflow: hidden;
}

.results-column {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 52px 52px 80px;
  scrollbar-width: thin;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.results-toolbar h1 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.results-toolbar p {
  margin-top: 3px;
  color: var(--market-ink);
  font-size: 14px;
}

.sort-pill {
  min-width: 156px;
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 24px;
  padding: 0 18px;
  background: var(--market-soft);
  font-size: 13px;
}

.sort-pill select {
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--market-ink);
  font-size: 13px;
  font-weight: 750;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 42px;
}

.platform-cards .property-card {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.platform-cards .property-media {
  width: 100%;
  height: 133px;
  min-height: 133px;
  border-radius: 14px;
  background: #e9eaec;
}

.platform-cards .property-media::after {
  height: 54px;
  background: linear-gradient(0deg, rgba(27, 29, 36, 0.22), transparent);
}

.property-badges {
  top: 14px;
  left: 14px;
  right: 10px;
  gap: 6px;
}

.property-badges span {
  max-width: 126px;
  min-height: 28px;
  border-radius: 7px;
  padding: 0 9px;
  font-size: 11px;
}

.media-dots {
  bottom: 16px;
  gap: 9px;
}

.media-dots i {
  width: 6px;
  height: 6px;
}

.platform-cards .property-info {
  gap: 7px;
  padding: 12px 0 0;
}

.listing-description {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-price-row {
  gap: 8px;
}

.listing-price-row strong {
  font-size: 19px;
  line-height: 1.2;
}

.listing-price-row span {
  margin-top: 5px;
  color: var(--market-muted);
  font-size: 13px;
}

.platform-cards .save-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  font-size: 29px;
}

.listing-facts {
  color: var(--market-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.listing-address {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-alert-card {
  margin-top: 60px;
  padding: 28px;
  border-radius: 8px;
}

.map-column {
  position: relative;
  top: auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--market-line);
  background: #ebecef;
}

.map-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 28px);
  border: 0;
  filter: saturate(0.82) contrast(0.98);
}

.map-attribution {
  position: absolute;
  right: 6px;
  bottom: 3px;
  z-index: 3;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.88);
  color: #565963;
  font-size: 9px;
  line-height: 1;
}

.map-category-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8def9;
  border-radius: 20px;
  padding: 0 14px;
  background: #f1f4ff;
  color: var(--market-blue-dark);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(20, 23, 35, 0.13);
}

.map-category-chip button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
}

.map-cluster {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--market-ink);
  box-shadow: 0 3px 12px rgba(18, 22, 34, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.map-cluster:hover {
  transform: scale(1.06);
}

.map-cluster.c1 { top: 19%; left: 31%; }
.map-cluster.c2 { top: 34%; left: 65%; }
.map-cluster.c3 { top: 52%; left: 40%; }
.map-cluster.c4 { top: 67%; left: 72%; }
.map-cluster.c5 { top: 76%; left: 22%; }
.map-cluster.c6 { top: 43%; left: 12%; }

.map-zoom {
  display: none;
  position: absolute;
  right: 16px;
  bottom: 18px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(18, 22, 34, 0.2);
}

.map-zoom button {
  width: 38px;
  height: 36px;
  border: 0;
  background: #fff;
  font-size: 22px;
}

.map-zoom button + button {
  border-top: 1px solid var(--market-line);
}

.draw-area {
  position: absolute;
  left: 18px;
  bottom: 18px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 20px;
  padding: 0 15px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(18, 22, 34, 0.2);
  color: var(--market-ink);
  font-size: 12px;
  font-weight: 750;
}

.draw-icon {
  width: 13px;
  height: 13px;
  border: 1.5px dashed currentColor;
  transform: rotate(45deg);
}

body[data-view="listing"] > [data-site-footer] {
  display: none;
}

body[data-view="detail"] .detail-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.property-showcase {
  height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 52.7%) minmax(0, 47.3%);
  background: #f4f4f6;
}

.showcase-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px 0;
  background: #f4f4f6;
}

.showcase-summary h1 {
  max-width: 620px;
  color: var(--market-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.08;
}

.showcase-purchase > strong {
  display: block;
  margin-bottom: 24px;
  font-size: 36px;
  line-height: 1;
}

.showcase-actions {
  display: grid;
  grid-template-columns: minmax(0, 278px) minmax(0, 1fr);
  gap: 24px;
}

.primary-action,
.secondary-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 28px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
}

.primary-action {
  background: var(--market-blue);
  color: #fff;
}

.secondary-action {
  background: #fff;
  color: var(--market-ink);
}

.phone-icon {
  width: 17px;
  height: 17px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111216' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.69 2.8a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.33 1.84.56 2.8.69A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.showcase-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #d8d8d8;
}

.showcase-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-top-actions {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  gap: 10px;
}

.round-icon-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--market-ink);
  box-shadow: 0 3px 14px rgba(18, 22, 34, 0.16);
}

.favorite-button {
  font-size: 29px;
}

.favorite-button.saved {
  color: var(--market-blue);
}

.share-button span {
  width: 21px;
  height: 21px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111216' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.59 13.51 6.83 3.98M15.41 6.51 8.59 10.49'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share-button span::before,
.share-button span::after {
  content: none;
}

.photo-bottom-actions {
  position: absolute;
  left: 24px;
  bottom: 0;
  display: flex;
  gap: 10px;
}

.photo-bottom-actions button,
.photo-bottom-actions a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 27px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--market-ink);
  font-size: 14px;
  font-weight: 750;
}

.photos-icon,
.map-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
}

.photos-icon {
  box-shadow: 3px -3px 0 -1px #fff, 3px -3px 0 0 currentColor;
}

.map-icon {
  border-radius: 8px 8px 8px 0;
  transform: rotate(-45deg);
}

.property-content {
  width: min(1126px, calc(100% - 64px));
  margin: 0 auto;
  padding: 38px 0 96px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--market-muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--market-blue-dark);
  text-decoration: underline;
}

.property-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 772px) minmax(280px, 330px);
  gap: 40px;
  align-items: start;
}

.property-main-column {
  min-width: 0;
}

.property-address {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.property-address h2,
.property-section h2,
.visit-sidebar h2 {
  font-family: inherit;
  font-weight: 800;
}

.property-address h2 {
  font-size: 22px;
}

.property-address p,
.property-address > span {
  margin-top: 4px;
  color: var(--market-muted);
  font-size: 13px;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--market-line);
}

.property-facts div {
  display: grid;
  gap: 4px;
}

.property-facts strong {
  font-size: 18px;
}

.property-facts span {
  color: var(--market-muted);
  font-size: 12px;
}

.property-section {
  padding: 32px 0;
  border-top: 1px solid var(--market-line);
}

.property-section h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.property-section > p,
.property-map-section > div p {
  color: #4f525b;
  font-size: 15px;
  line-height: 1.7;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.amenities-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #41444c;
  font-size: 14px;
}

.amenities-grid i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0fb;
  color: var(--market-blue-dark);
  font-style: normal;
  font-size: 12px;
}

.costs-section .cost-table {
  border: 1px solid var(--market-line);
  border-radius: 8px;
  padding: 0 18px;
}

.costs-section .cost-table div {
  padding: 16px 0;
}

.detail-map {
  position: relative;
  width: 100%;
  height: 310px;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef0f1;
}

.detail-map iframe {
  width: 100%;
  height: calc(100% + 28px);
  border: 0;
}

.visit-sidebar {
  position: sticky;
  top: 96px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 27, 40, 0.08);
}

.sidebar-kicker {
  margin-bottom: 6px;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.visit-sidebar h2 {
  font-size: 28px;
}

.sidebar-cost {
  margin: 6px 0 16px;
  color: var(--market-muted);
  font-size: 13px;
}

.visit-sidebar > p:not(.sidebar-kicker):not(.sidebar-cost) {
  color: #575a64;
  font-size: 13px;
  line-height: 1.5;
}

.visit-sidebar .lead-form {
  gap: 11px;
  margin-top: 18px;
}

.visit-sidebar .field {
  min-height: 42px;
}

.visit-sidebar textarea.field {
  min-height: 78px;
}

.visit-sidebar .consent {
  font-size: 10px;
  line-height: 1.4;
}

.sidebar-phone {
  display: block;
  margin-top: 15px;
  text-align: center;
  color: var(--market-blue-dark);
  font-size: 13px;
  font-weight: 750;
}

.similar-properties {
  gap: 16px;
}

.similar-properties .property-card {
  border-radius: 8px;
}

.similar-properties .property-media {
  min-height: 142px;
  height: 142px;
}

.similar-properties .property-info {
  padding: 14px;
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
}

.gallery-dialog > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--market-line);
  background: #fff;
}

.gallery-dialog h2 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.gallery-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  width: 100%;
  max-width: none;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--market-line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  padding: 12px 76px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -5px 18px rgba(24, 28, 40, 0.08);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  max-width: 850px;
  color: #666974;
  font-size: 11px;
  line-height: 1.45;
}

.cookie-notice a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 21px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.cookie-preferences {
  background: var(--market-soft);
  color: var(--market-ink);
}

.cookie-accept {
  background: var(--market-blue);
  color: #fff;
}

body:not([data-view]) .page-hero,
body:not([data-view]) .section {
  width: min(1120px, calc(100% - 64px));
}

body:not([data-view]) .page-hero {
  border-radius: 0;
}

body:not([data-view]) .page-hero h1,
body:not([data-view]) .section h2 {
  font-family: inherit;
  font-weight: 800;
}

body:not([data-view]) .page-hero.dark {
  background: #f3f4f7;
  color: var(--market-ink);
}

body:not([data-view]) .page-hero.dark p,
body:not([data-view]) .page-hero.dark .eyebrow {
  color: var(--market-muted);
}

.toast {
  z-index: 160;
  border-radius: 6px;
  background: var(--market-ink);
}

@media (max-width: 1180px) {
  .header-inner {
    width: calc(100% - 48px);
    gap: 18px;
  }

  .nav,
  body[data-view="detail"] .nav {
    gap: 16px;
  }

  .nav > a,
  .nav-dropdown > summary {
    font-size: 13px;
  }

  body[data-view="detail"] .header-search {
    width: 250px;
    flex-basis: 250px;
  }

  .search-filter-bar {
    padding-inline: 24px;
  }

  .results-column {
    padding-inline: 34px;
  }

  .platform-cards {
    gap: 18px;
  }

  .property-detail-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 68px;
  }

  .header-inner {
    width: calc(100% - 32px);
    min-height: 68px;
    display: grid;
    grid-template-columns: auto auto;
  }

  body[data-view="detail"] .brand-copy {
    display: inline;
  }

  .brand-copy {
    font-size: 20px;
  }

  .header-search,
  .header-actions {
    display: none;
  }

  .menu-btn {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    justify-self: end;
    gap: 4px;
    border: 0;
    border-radius: 50%;
    padding: 0 12px;
    background: var(--market-soft);
  }

  .menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--market-ink);
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 68px);
    overflow: auto;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--market-line);
    box-shadow: 0 16px 30px rgba(20, 23, 35, 0.14);
  }

  .nav.open {
    display: grid;
    gap: 4px;
  }

  .nav > a,
  .nav-dropdown > summary {
    min-height: 44px;
    justify-content: space-between;
    font-size: 16px;
  }

  .nav-popover,
  .nav-popover-wide,
  .nav-popover-right {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-bottom: 8px;
  }

  .search-filter-bar {
    top: 68px;
    height: 80px;
    min-height: 80px;
    gap: 8px;
    padding: 12px 16px;
  }

  .filter-track {
    overflow-x: auto;
  }

  .location-pill {
    width: 300px;
  }

  .location-pill,
  .filter-menu > summary,
  .next-filter,
  .more-filter-pill,
  .alert-pill {
    height: 54px;
    min-height: 54px;
  }

  .alert-pill {
    display: none;
  }

  .filter-popover {
    top: 140px;
  }

  .search-results-shell {
    height: auto;
    min-height: calc(100vh - 148px);
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .map-column {
    order: 0;
    height: 290px;
    min-height: 290px;
    border-left: 0;
    border-bottom: 1px solid var(--market-line);
  }

  .results-column {
    order: 1;
    overflow: visible;
    padding: 28px 24px 72px;
  }

  .platform-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 18px;
  }

  .platform-cards .property-media {
    height: 190px;
  }

  .property-showcase {
    height: auto;
    grid-template-columns: 1fr;
  }

  .showcase-summary {
    min-height: 370px;
    padding: 28px;
  }

  .showcase-summary h1 {
    font-size: 38px;
  }

  .showcase-photo {
    height: 520px;
  }

  .property-content {
    width: min(100% - 40px, 760px);
  }

  .property-detail-grid {
    grid-template-columns: 1fr;
  }

  .visit-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .brand-copy {
    font-size: 18px;
  }

  .brand-mark {
    width: 23px;
    height: 23px;
  }

  .search-filter-bar {
    padding-inline: 10px;
  }

  .location-pill {
    width: 250px;
  }

  .location-pill select {
    font-size: 14px;
  }

  .more-filter-pill {
    min-width: 54px;
    width: 54px;
    padding: 0;
    font-size: 0;
  }

  .filter-drawer-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .results-column {
    padding: 24px 16px 64px;
  }

  .results-toolbar {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .results-toolbar h1 {
    font-size: 20px;
  }

  .sort-pill {
    min-width: 146px;
  }

  .platform-cards {
    grid-template-columns: 1fr;
  }

  .platform-cards .property-media {
    height: 230px;
  }

  .listing-description,
  .listing-price-row span,
  .listing-facts,
  .listing-address {
    font-size: 14px;
  }

  .map-column {
    height: 240px;
    min-height: 240px;
  }

  .draw-area {
    display: none;
  }

  .showcase-summary {
    min-height: 330px;
    padding: 22px 18px;
  }

  .showcase-summary h1 {
    font-size: 31px;
  }

  .showcase-purchase > strong {
    font-size: 29px;
  }

  .showcase-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .showcase-photo {
    height: 390px;
  }

  .photo-top-actions {
    top: 14px;
    left: 14px;
  }

  .photo-bottom-actions {
    left: 14px;
    bottom: 14px;
  }

  .round-icon-button {
    width: 46px;
    height: 46px;
  }

  .photo-bottom-actions button,
  .photo-bottom-actions a {
    min-height: 46px;
    padding: 0 16px;
  }

  .property-content {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  .breadcrumb {
    display: none;
  }

  .property-address,
  .property-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-address > span {
    text-align: left;
  }

  .amenities-grid,
  .similar-properties {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 250px;
  }

  .cookie-notice {
    align-items: stretch;
    display: grid;
    gap: 12px;
    padding: 14px 16px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }

  .cookie-actions button {
    min-height: 38px;
    padding-inline: 16px;
  }
}

/* Local map layer: it remains available without an external tile provider. */
.map-column .map-canvas,
.detail-map .map-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0 2px, transparent 2px 100%),
    linear-gradient(29deg, transparent 0 23%, rgba(255, 255, 255, 0.94) 23.4% 25.2%, transparent 25.6% 100%),
    linear-gradient(-42deg, transparent 0 47%, rgba(255, 255, 255, 0.95) 47.4% 49.2%, transparent 49.6% 100%),
    #eff0f1;
  background-size: 74px 100%, auto, auto, auto;
  transition: transform 180ms ease;
}

.map-column .map-canvas::before,
.map-column .map-canvas::after,
.detail-map .map-canvas::before,
.detail-map .map-canvas::after {
  z-index: 0;
}

.map-river {
  position: absolute;
  top: -12%;
  left: 46%;
  z-index: 2;
  width: 12%;
  height: 126%;
  border-radius: 50%;
  background: rgba(186, 214, 233, 0.58);
  transform: rotate(34deg);
  pointer-events: none;
}

.map-label {
  position: absolute;
  z-index: 3;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  color: #757981;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.map-label:last-of-type {
  color: #535760;
  font-size: 13px;
}

.map-marker,
.map-canvas .map-cluster {
  position: absolute;
  z-index: 6;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  border: 0;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.map-marker {
  min-height: 30px;
  max-width: 96px;
  overflow: hidden;
  border-radius: 15px;
  padding: 0 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(16, 20, 32, 0.2);
  color: #1b1d24;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.map-marker span {
  position: relative;
  z-index: 1;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-selected {
  z-index: 10;
  background: var(--market-blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(50, 84, 199, 0.28);
  transform: translate(-50%, -50%) scale(1.08);
}

.map-canvas .map-cluster {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--market-ink);
  box-shadow: 0 3px 12px rgba(18, 22, 34, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.map-canvas .map-cluster:hover,
.map-canvas .map-cluster:focus-visible {
  z-index: 11;
  transform: translate(-50%, -50%) scale(1.08);
}

.map-column.is-zoomed .map-canvas {
  transform: scale(1.12);
}

.map-zoom {
  display: grid;
  z-index: 12;
}

.map-category-chip {
  z-index: 20;
}

.map-zoom button:focus-visible,
.draw-area:focus-visible,
.map-category-chip button:focus-visible {
  outline: 2px solid var(--market-blue);
  outline-offset: 2px;
}

.draw-area.selected {
  background: var(--market-blue);
  color: #fff;
}

.property-card.is-map-focused .property-media {
  box-shadow: 0 0 0 3px var(--market-blue);
}

.compact-options [data-toggle-filter] {
  grid-column: 1 / -1;
  padding-inline: 10px;
  font-weight: 700;
}

.compact-options [data-toggle-filter].selected {
  border-color: var(--market-blue);
  background: #f1f4ff;
  color: var(--market-blue-dark);
}

.detail-map {
  background: #eff0f1;
}

.detail-map .map-marker {
  min-height: 28px;
  max-width: 82px;
  font-size: 9px;
}

.detail-map .map-cluster,
.detail-map .map-label:nth-last-of-type(-n + 3) {
  display: none;
}

@media (max-width: 980px) {
  .map-marker {
    min-height: 28px;
    max-width: 78px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .map-canvas .map-cluster {
    width: 36px;
    height: 36px;
  }

  .map-label {
    font-size: 9px;
  }

  .map-zoom {
    right: 12px;
    bottom: 12px;
  }
}

/* Final search rail and Google Maps overrides. */
.filter-menu.active-pill {
  border-color: transparent;
  background: transparent;
  color: inherit;
}

.filter-menu.active-pill > summary {
  border-color: #d7def9;
  background: #f1f4ff;
  color: var(--market-blue-dark);
}

.filter-menu > .filter-popover {
  position: fixed;
  top: var(--filter-popover-top, 168px);
  left: var(--filter-popover-left, 12px);
}
.search-filter-bar {
  overflow: hidden;
}

.search-filter-bar > .location-pill {
  flex: 0 0 auto;
}

.filter-scroll-shell {
  position: relative;
  min-width: 0;
  height: 56px;
  flex: 1 1 auto;
  overflow: hidden;
}

.filter-scroll-shell .filter-track {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 56px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.filter-scroll-shell .filter-track::-webkit-scrollbar {
  display: none;
}

.filter-scroll-shell.is-scrolled .filter-track {
  padding-left: 56px;
}

.filter-nav {
  position: absolute;
  top: 4px;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 34, 52, 0.18);
  color: var(--market-ink);
  font-size: 27px;
  font-weight: 400;
}

.filter-nav[hidden] {
  display: none;
}

.filter-prev {
  left: 0;
}

.filter-next {
  right: 0;
}

.map-external {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e7e5e0;
}

.map-external iframe {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e7e5e0;
  filter: saturate(0.9) contrast(0.98);
  transition: transform 180ms ease;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.map-overlay .map-marker,
.map-overlay .map-cluster {
  pointer-events: auto;
}

.map-overlay .map-cluster {
  position: absolute;
  z-index: 6;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--market-ink);
  box-shadow: 0 3px 12px rgba(18, 20, 32, 0.22);
  font-size: 12px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.map-column.is-zoomed .map-external iframe {
  transform: scale(1.12);
}

.detail-map .map-external {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 1600px) {
  .search-filter-bar > .location-pill {
    width: 506px;
  }
}

@media (max-width: 1450px) and (min-width: 981px) {
  .search-filter-bar > .location-pill {
    width: 320px;
  }

  .alert-pill {
    display: none;
  }
}

@media (max-width: 980px) {
  .filter-scroll-shell,
  .filter-scroll-shell .filter-track {
    height: 54px;
  }

  .filter-nav {
    top: 3px;
    width: 48px;
    height: 48px;
  }

  .map-overlay .map-cluster {
    width: 36px;
    height: 36px;
  }
}
