@font-face {
  font-family: "Vigia Nunito";
  src: url("./nunito-sans-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Basic map: reviewed administrative area overlays plus port orientation context. */
.map-panel {
  margin: 2.5rem 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line, #d9d4ca);
  background: var(--surface-raised, #fffdf8);
}

.map-stage {
  position: relative;
  min-height: 22rem;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line, #d9d4ca);
  background: #e8e1d4;
}

.map-stage [data-map] {
  min-height: 22rem;
}

.map-loading {
  display: grid;
  min-height: 22rem;
  place-items: center;
  margin: 0;
  color: var(--ink-muted, #625e56);
}

.map-fallback,
.map-note,
.map-attribution {
  color: var(--ink-muted, #625e56);
  font-size: 0.9rem;
}

.map-fallback {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong, #b7c8bb);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--accent, #1f6f68) 8%, transparent);
}

.map-attribution {
  margin: 0.75rem 0 0;
}

.map-attribution a {
  color: inherit;
}

.map-marker {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent, #1f6f68);
  box-shadow: 0 1px 5px rgb(18 28 27 / 35%);
  cursor: pointer;
}

.map-marker--context {
  background: #8a5b32;
}

.map-popup {
  max-width: 15rem;
  color: var(--ink, #183a2b);
  font: 0.86rem/1.4 system-ui, sans-serif;
}

.map-popup strong {
  display: block;
  margin-bottom: 0.25rem;
}

.map-popup__note {
  margin: 0 0 0.4rem;
}

.map-result-count {
  align-self: center;
  color: var(--ink-muted, #625e56);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .map-stage,
  .map-loading {
    min-height: 17rem;
  }
}

@font-face {
  font-family: "Vigia Manrope";
  src: url("./manrope-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vigia Manrope Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold");
  font-weight: 700;
  size-adjust: 100.73%;
  ascent-override: 105.8%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --paper: #f7f0e5;
  --surface: #fffcf7;
  --surface-muted: #f3ede2;
  --ink: #183a2b;
  --muted: #52655b;
  --quiet: #626f67;
  --line: #e3d9c8;
  --line-strong: #c8baa2;
  --forest: #005334;
  --forest-deep: #003e28;
  --forest-soft: #e1eee5;
  /* Turquoise marks everything interactive; green stays the brand. */
  --sea: #0b7f82;
  --sea-deep: #075f62;
  --sea-soft: #dcf1ef;
  --sea-tint: #c6e6e3;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Former yellow accents are a neutral warm brown. */
  --gold: #6b5a3e;
  --gold-soft: #efe6d6;
  --danger: #9a3f35;
  --danger-soft: #fbe9e5;
  --radius: 14px;
  --content-width: 1180px;
  --shadow-focus: 0 0 0 3px rgba(11, 127, 130, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select {
  font-synthesis: none;
}

::selection {
  background: var(--sea-soft);
  color: var(--sea-deep);
}

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

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--sea-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--forest-deep);
}

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

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--forest-deep);
  color: #fff;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 80px;
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-deep);
  text-decoration: none;
}

.brand-lockup img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-lockup__name {
  font-family: "Vigia Nunito", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.app-context-label { display: inline-flex; align-items: center; min-height: 28px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: .76rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.sign-out-dialog { width: min(360px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--forest-deep); background: var(--surface); box-shadow: 0 16px 48px rgb(0 0 0 / 22%); }
.sign-out-dialog::backdrop { background: rgb(0 0 0 / 38%); }
.sign-out-dialog__surface { display: grid; gap: 20px; padding: 22px; }
.sign-out-dialog__title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.sign-out-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.sign-out-dialog__actions button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--forest-deep); background: var(--surface); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.sign-out-dialog__actions .sign-out-dialog__confirm { border-color: #a83224; color: #fff; background: #a83224; }
.sign-out-dialog__actions button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

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

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

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

.language-switcher { position: relative; display: flex; align-items: stretch; flex: 0 0 auto; color: var(--forest-deep); border: 1px solid var(--line); border-radius: 8px; }
.language-switcher__direct { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 10px; color: inherit; font-size: .85rem; font-weight: 700; text-decoration: none; border-radius: 7px 0 0 7px; }
.language-switcher__direct:hover { background: var(--forest-soft); }
.language-switcher summary { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border-inline-start: 1px solid var(--line); border-radius: 0 7px 7px 0; cursor: pointer; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .language-switcher__menu[open] summary { background: var(--forest-soft); }
.language-switcher__flag { font-size: 1.25rem; line-height: 1; }
.language-switcher__chevron { transition: transform .15s ease-out; }
.language-switcher__menu[open] .language-switcher__chevron { transform: rotate(180deg); }
.language-switcher__options { position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 165px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.language-switcher__options a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; border-radius: 5px; color: var(--forest-deep); font-size: .9rem; text-decoration: none; }
.language-switcher__options a:hover, .language-switcher__options a[aria-current] { background: var(--forest-soft); }
.language-switcher summary:focus-visible, .language-switcher a:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .language-switcher__chevron { transition: none; } }

.preview-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px !important;
  color: var(--forest) !important;
  font-size: 0.78rem !important;
}

.account-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--sea);
  border-radius: 999px;
  background: var(--sea);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.account-control:hover {
  border-color: var(--sea-deep);
  background: var(--sea-deep);
  color: #fff;
}

.account-control:active {
  transform: scale(0.97);
}

.account-control[data-account-state="loading"] {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}

.account-dialog {
  width: min(calc(100% - 32px), 470px);
  max-width: 470px;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-dialog::backdrop {
  background: rgba(0, 50, 33, 0.34);
}

.account-dialog__surface {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 55, 36, 0.2);
}

.account-dialog__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-dialog__label {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-dialog__close {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.account-dialog__title {
  margin: 0;
  font-weight: 700;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.account-dialog__section-title { margin: 1em 0; font-size: 1.17em; font-weight: 700; }

.account-dialog__copy {
  margin: 8px 0 17px;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-signin-form {
  display: grid;
  gap: 12px;
}

.account-signin-form .filter-field {
  grid-column: auto;
}

.account-signin-form .button {
  justify-self: start;
}

.account-dialog .form-status:empty { margin: 0; padding: 0; border: 0; min-height: 0; }
.account-dialog__status {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.account-summary {
  margin: 16px 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--forest-soft);
  color: var(--forest-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.site-main {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.site-main.site-main--home {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) minmax(0, var(--content-width)) minmax(20px, 1fr);
  width: 100%;
  padding-top: 0;
}

.site-main--home > * {
  grid-column: 2;
  min-width: 0;
}

.feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 16px;
}

.feed-heading h1,
.detail-page__heading h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.feed-heading p,
.detail-page__heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feed-heading h1 {
  font-size: clamp(1.6rem, 2.3vw, 1.8rem);
}

[data-page="index"] .feed-heading { padding: 16px 0; }
[data-page="index"] .feed-heading > div:first-child { flex: 1; min-width: 0; }
[data-page="index"] .feed-heading h1 { max-width: none; text-wrap: wrap; font-size: clamp(1.9rem, 3.5vw, 2.75rem); line-height: 1.15; }

.site-main--home .feed-heading--home-hero {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  align-items: flex-end;
  min-height: 200px;
  margin-bottom: 12px;
  padding: 24px 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--forest-deep);
}

.feed-heading__hero-art {
  position: absolute;
  inset: 0;
}

.feed-heading__hero-art { z-index: -1; }
.feed-heading__hero-art img { position: relative; z-index: 0; }

.feed-heading__hero-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse 100% 110% at left bottom, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 64%) 40%, rgb(0 0 0 / 22%) 75%, transparent 100%);
}

.feed-heading__hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.feed-heading--home-hero > div:first-of-type {
  position: relative;
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.feed-heading--home-hero h1,
.feed-heading--home-hero p {
  color: white;
  text-shadow: 0 2px 4px rgb(0 0 0 / 72%);
}

.feed-heading__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 12px;
}

.feed-heading .feed-heading__summary p {
  margin: 0;
}

.feed-heading__subtitle {
  flex: 1 1 32rem;
  min-width: 0;
}

.feed-heading .catalog-updated--heading {
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 0 auto;
  text-align: right;
}

.feed-heading .feed-heading__summary p.catalog-updated--heading {
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
}

.feed-heading--home-hero .catalog-updated--heading {
  color: white;
  text-shadow: 0 2px 4px rgb(0 0 0 / 72%);
}

.feed-heading--home-hero .feed-heading__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
}

.catalog-updated {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 10px auto 16px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.feed-heading__meta {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
  white-space: nowrap;
}

.feed-heading__meta strong {
  display: block;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.historical-note {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #e3d6bf;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.9rem;
}

.historical-note strong {
  color: #50370d;
}

.filters-shell {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.describe-search {
  margin: 0 0 12px;
}

.describe-search__label {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.describe-search__row {
  display: flex;
  gap: 8px;
}

.describe-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
}

.describe-search input:hover,
.describe-search input:focus {
  border-color: var(--forest);
}

.describe-search button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
}

.describe-search button:hover {
  background: var(--forest-deep);
}

.filters-shell > summary {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.filters-shell > summary::marker {
  color: var(--gold);
}

.filters-panel {
  padding: 14px;
}

.filters-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

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

.filter-field {
  display: grid;
  grid-column: span 2;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.filter-field--market,
.filter-field--type,
.filter-field--zone {
  grid-column: span 3;
}

.filter-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 32px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
}

.filter-field select:hover,
.filter-field select:focus {
  border-color: var(--forest);
}

.zone-picker {
  position: relative;
  min-width: 0;
}

.zone-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 32px 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.zone-picker > summary::-webkit-details-marker {
  display: none;
}

.zone-picker > summary::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.zone-picker[open] > summary,
.zone-picker > summary:hover,
.zone-picker > summary:focus-visible {
  border-color: var(--forest);
}

.zone-picker[open] > summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.zone-picker__menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 7px;
  width: min(360px, calc(100vw - 48px));
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0, 55, 36, 0.14);
}

.zone-picker__search {
  display: block;
}

.zone-picker__search input {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
}

.zone-picker__search input:focus {
  border-color: var(--forest);
  box-shadow: var(--shadow-focus);
}

.zone-picker__options {
  display: grid;
  gap: 2px;
}

.zone-picker__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 6px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.zone-picker__option:hover {
  background: var(--forest-soft);
}

.zone-picker__option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--forest);
}

.zone-picker__option--all {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.zone-picker__empty {
  margin: 2px 6px 4px;
  color: var(--quiet);
  font-size: 0.78rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
}

.segmented-control button {
  min-width: 0;
  padding: 7px 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button:hover {
  background: var(--sea-soft);
  color: var(--sea-deep);
}

.segmented-control button[aria-pressed="true"] {
  background: var(--sea);
  color: #fff;
}

.filter-actions {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.filter-actions__buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.filter-actions__buttons button {
  white-space: nowrap;
}

.filter-status {
  min-width: 0;
  color: var(--quiet);
  font-size: 0.76rem;
}

.button,
.button--quiet,
.save-button,
.gallery-control {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.button,
.button--quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
  text-decoration: none;
}

.button {
  padding: 8px 13px;
  border-color: var(--sea);
  background: var(--sea);
  color: #fff;
}

.button:hover {
  border-color: var(--sea-deep);
  background: var(--sea-deep);
  color: #fff;
}

.button--quiet {
  padding: 8px 14px;
  border-color: transparent;
  background: var(--sea-soft);
  color: var(--sea-deep);
}

.button--quiet:hover {
  border-color: transparent;
  background: var(--sea-tint);
  color: var(--sea-deep);
}

.button--quiet[data-clear-filters] {
  background: transparent;
  color: var(--muted);
}

.button--quiet[data-clear-filters]:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.save-button:hover,
.gallery-control:hover {
  border-color: var(--sea);
  background: var(--sea-soft);
  color: var(--sea-deep);
}

.filter-preview-note,
.share-status {
  margin: 0;
  color: var(--quiet);
  font-size: 0.8rem;
}

.results-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}

.results-toolbar h2,
.section-heading {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.results-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.place-directory {
  margin-bottom: 24px;
}

.location-links {
  padding: 0;
  list-style: none;
  columns: 3 220px;
  column-gap: 24px;
}

.location-links li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  break-inside: avoid;
}

.location-links span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.location-links .location-link--neighborhood {
  padding-left: 12px;
}

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

.browse-fallback-links {
  grid-column: 1 / -1;
  columns: 2;
  width: 100%;
  margin: 0;
  padding-left: 1.25rem;
}

.browse-fallback-links li {
  break-inside: avoid;
  padding: 0.3rem 0;
}

.browse-batch {
  grid-column: 1 / -1;
  min-width: 0;
}

.browse-batch--unloaded {
  position: relative;
  align-items: start;
}

.browse-batch-link {
  grid-column: 1 / -1;
  justify-self: center;
  position: sticky;
  top: 100px;
}

.listing-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.listing-card:hover,
.listing-card:focus-within {
  border-color: var(--line-strong);
}

.listing-card__media {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.listing-card__photo-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.listing-card__photo-track::-webkit-scrollbar, .gallery__track::-webkit-scrollbar { display: none; }
.listing-card__photo-link { display: block; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.listing-card__photo-track img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-muted);
}

.listing-card__media--empty {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.listing-card__placeholder {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.listing-card__placeholder svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-card__photo-position {
  position: absolute;
  z-index: 4;
  bottom: 10px;
  left: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(0, 45, 30, 0.84);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.listing-card__media .save-button { z-index: 5; }

.save-button {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-height: 44px;
  padding: 7px 10px;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 253, 248, 0.95);
  color: var(--forest-deep);
}

.save-button--heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(24, 58, 43, 0.35);
}

.save-button--heart svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease-out);
}

.listing-card .save-button--heart:hover {
  background: #fff;
  color: var(--sea-deep);
}

.save-button--heart:hover svg {
  transform: scale(1.1);
}

.save-button--heart[aria-pressed="true"] svg {
  fill: currentColor;
}

.save-button[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.favorite-sheet-overlay { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16, 28, 29, .58); }
.favorite-sheet-overlay[hidden] { display: none; }
.favorite-sheet { position: relative; width: min(100%, 520px); height: min(720px, 90dvh); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.26); }
.favorite-sheet iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
/* The sheet is on screen as soon as a heart is pressed; its document arrives a moment later. */
.favorite-sheet-frame--hidden { position: fixed; left: -10000px; top: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.favorite-toast { position: fixed; z-index: 10001; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: #183c30; color: #fff; box-shadow: 0 10px 35px rgba(17,35,27,.28); }
.favorite-toast[hidden] { display: none; }
.favorite-toast button { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.favorite-toast { position: fixed; z-index: 10001; right: 16px; bottom: 16px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 8px; background: #222; color: #fff; box-shadow: 0 8px 28px #0003; }
.favorite-toast[hidden] { display: none; }
body.favorite-sheet-open { overflow: hidden; }
@media (max-width: 600px) { .favorite-sheet-overlay { align-items: end; padding: 0; } .favorite-sheet { width: 100%; height: min(88dvh, 760px); border-radius: 16px 16px 0 0; } .favorite-toast { left: 16px; right: 16px; justify-content: space-between; } }

.listing-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 16px;
  line-height: 1.45;
}

.listing-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--quiet);
  font-size: 0.74rem;
}

.listing-card__topline--footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.listing-card__date {
  color: var(--quiet);
  font-size: 0.75rem;
}

.listing-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.listing-card__badge--sale {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.listing-card__badge--unknown {
  background: var(--surface-muted);
  color: var(--muted);
}

.listing-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-card__title a {
  color: var(--forest-deep);
  text-decoration: none;
}

.listing-card__title a::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.listing-card__title a:focus-visible::after {
  border-radius: var(--radius);
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.listing-card__title a:hover {
  text-decoration: underline;
}

.listing-card__location {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.listing-card__price {
  margin: 0 0 10px;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.listing-card__price--unknown {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.listing-card__facts-line {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.listing-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 15px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.listing-card__fact {
  min-width: 0;
}

.listing-card__fact dt {
  overflow: hidden;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.listing-card__fact dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card__fact dd.is-unknown {
  color: var(--gold);
}

.listing-card__unknowns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.listing-card__unknowns li {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.71rem;
  line-height: 1.35;
}

.empty-state {
  margin-top: 18px;
  padding: 28px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.05rem;
}

.empty-state p {
  max-width: 48ch;
  margin: 7px auto 0;
  color: var(--muted);
}

.detail-page__heading {
  padding-bottom: 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 15px;
  color: var(--quiet);
  font-size: 0.82rem;
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--line-strong);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 26px;
  min-width: 0;
}

.detail-layout > * {
  min-width: 0;
}

.gallery__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.gallery__track { display: flex; min-width: 0; min-height: 0; overflow: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track:focus-visible { outline: 3px solid var(--sea-deep); outline-offset: 3px; }
.gallery__track > .gallery__stage { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; }

.gallery__stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface-muted);
}

.gallery__empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 24px;
  color: var(--quiet);
  text-align: center;
}

.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.gallery-control {
  min-width: 88px;
  padding: 7px 10px;
}

.gallery__position {
  color: var(--quiet);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.gallery-thumb {
  flex: 0 0 76px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface);
}

.gallery-thumb[aria-current="true"] {
  border-color: var(--forest);
}

.gallery-thumb img {
  display: block;
  width: 76px;
  height: 58px;
  object-fit: cover;
}

.detail-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-panel__price {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.detail-panel__price--unknown {
  color: var(--gold);
}

.detail-panel__label {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.detail-actions .button,
.detail-actions .button--quiet {
  flex: 1 1 130px;
  text-align: center;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--quiet);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.detail-facts dd.is-unknown {
  color: var(--gold);
}

.detail-section {
  margin-top: 26px;
}

.detail-section h2 {
  margin: 0 0 10px;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.05rem;
}

.source-posts {
  max-width: 780px;
}

.source-posts__note {
  color: var(--muted);
  font-size: 0.9rem;
}

.source-post {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.source-post h3,
.source-post__label {
  margin: 0 0 8px;
  color: var(--forest-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.source-post__text {
  margin: 0 0 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.unknown-list,
.amenity-list,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unknown-list li,
.amenity-list li {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.82rem;
}

.amenity-list li {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-list a {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.related-section {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer {
  border-top: 0;
  background: var(--forest-deep);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--sea-soft);
}

.site-footer :focus-visible {
  outline-color: #fff;
}

.site-footer__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 20px 0 26px;
  color: #cfe3d6;
  font-size: 0.8rem;
}

.site-footer__inner p {
  margin: 0;
}

@media (min-width: 820px) {
  .filters-shell > summary {
    display: none;
  }

  .filters-shell > .filters-panel {
    display: block;
  }
}

@media (min-width: 1100px) {
  .filter-grid {
    grid-template-columns: minmax(180px, 1.6fr) minmax(150px, 1.1fr) minmax(180px, 1.35fr) minmax(120px, 0.9fr) minmax(160px, 1.2fr) minmax(200px, 1.65fr);
  }

  .filter-field,
  .filter-field--market,
  .filter-field--type,
  .filter-field--zone {
    grid-column: auto;
    min-width: 0;
  }

  .filter-actions {
    grid-column: auto;
    align-items: end;
  }
}

@media (max-width: 980px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-field,
  .filter-field--market,
  .filter-field--type,
  .filter-field--zone {
    grid-column: span 3;
  }

  .filter-actions {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 767px) {
  body[data-page="listing"] .category-breadcrumbs { display: none; }
  .listing-back-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 10px; color: var(--forest-deep); font-size: .95rem; font-weight: 700; text-underline-offset: .2em; }
}

@media (max-width: 760px) {
  body[data-page="listing"] .detail-gallery .gallery__track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
  body[data-page="listing"] .detail-gallery .gallery__controls { justify-content: center; }
  body[data-page="listing"] .detail-gallery .gallery__controls button { display: none; }
  html,
  body {
    overflow-x: hidden;
  }

  .site-header__inner,
  .site-main,
  .site-footer__inner {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .site-main {
    overflow-x: hidden;
  }

  .feed-heading {
    display: block;
  }

  .feed-heading__meta {
    margin-top: 14px;
    text-align: left;
  }

  .filter-field,
  .filter-field--market,
  .filter-field--type,
  .filter-field--zone {
    grid-column: 1 / -1;
  }

  .filter-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-actions__buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-actions__buttons button {
    flex: 1 1 140px;
  }

  .zone-picker__menu {
    position: static;
    width: auto;
    max-height: none;
    margin-top: 6px;
    box-shadow: none;
  }

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

  .detail-panel {
    padding: 17px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-lockup__tagline {
    font-size: 0.66rem;
  }

  .site-main {
    padding-top: 25px;
  }

  .feed-heading h1,
  .detail-page__heading h1 {
    font-size: 2rem;
  }

  .historical-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

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

  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .gallery__empty {
    min-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Renter-facing local preview */
.site-footer__inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.personal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 16px;
}

.personal-heading h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.personal-heading p:not(.breadcrumbs) {
  max-width: 64ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.78fr);
  align-items: start;
  gap: 20px;
}

.personal-layout,
.requirements-panel,
.personal-sidebar,
.preview-panel,
.match-results,
.match-card {
  min-width: 0;
}

.requirements-panel,
.preview-panel,
.draft-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.requirements-panel {
  padding: 20px;
}

.requirements-panel > fieldset {
  min-width: 0;
}

.requirements-panel > fieldset > .filters-panel__legend {
  display: block;
  box-sizing: border-box;
  max-width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-heading--compact {
  align-items: center;
  margin-bottom: 10px;
}

.panel-heading--compact h2 {
  font-size: 1rem;
}

.panel-kicker,
.simulated-badge,
.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.simulated-badge {
  border-color: #e3d6bf;
  background: var(--gold-soft);
  color: var(--gold);
}

.count-badge {
  min-width: 28px;
  justify-content: center;
  background: var(--forest-soft);
  font-variant-numeric: tabular-nums;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 15px 16px;
}

.requirements-grid .filter-field--wide {
  grid-column: 1 / -1;
}

.requirements-grid .filter-field input,
.requirements-grid .filter-field select {
  height: 44px;
  min-height: 44px;
}

.filter-field input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
}

.filter-field input:hover,
.filter-field input:focus {
  border-color: var(--forest);
}

.filter-field small,
.check-row small {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.35;
}

.amenity-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.amenity-field legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.amenity-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-muted);
}

.amenity-option {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.amenity-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-note {
  margin: 0;
  color: var(--quiet);
  font-size: 0.8rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}

.check-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--forest);
}

.check-row span {
  display: grid;
  gap: 3px;
}

.requirements-panel__unknowns {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.requirements-actions,
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.form-status {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 0.78rem;
}

.form-status[data-state="ready"] {
  color: var(--forest);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.personal-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.preview-panel {
  padding: 17px;
}

.panel-copy {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.84rem;
}

.alert-frequency {
  margin-top: 14px;
}

.preview-panel > .button--quiet {
  width: 100%;
  margin-top: 14px;
}

.saved-list,
.key-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.saved-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.saved-list__item a {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-list__remove {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.saved-list__remove:hover {
  color: var(--danger);
}

.saved-list__empty {
  color: var(--quiet);
  font-size: 0.82rem;
}

.saved-search-item {
  display: grid;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.saved-search-item__heading,
.saved-search-item__actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.saved-search-item__load {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-search-item__load:hover {
  color: var(--forest-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.saved-search-item__state {
  flex: 0 0 auto;
  color: var(--quiet);
  font-size: 0.72rem;
}

.saved-search-item__actions {
  justify-content: flex-start;
}

.key-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.key-list li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.key-list strong {
  color: var(--forest-deep);
}

.preview-contract-status {
  margin: 15px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.74rem;
}

.preview-contract-status[data-state="ready"] {
  color: var(--forest);
}

.preview-contract-status[data-state="error"] {
  color: var(--danger);
}

.digest-preview {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.digest-preview__heading {
  margin: 0;
  color: var(--forest-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

.digest-preview__list {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.78rem;
}

.digest-preview__list strong {
  color: var(--ink);
}

.matches-section {
  margin-top: 32px;
}

.matches-section .results-toolbar {
  align-items: end;
}

.section-intro {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.match-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.match-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.match-card:hover,
.match-card:focus-within {
  border-color: var(--line-strong);
}

.match-card__media {
  position: relative;
  min-height: 190px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.match-card__media > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.match-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-muted);
}

.match-card__media--empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 20px;
  color: var(--quiet);
  font-size: 0.82rem;
  text-align: center;
}

.match-card__media--empty span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
}

.match-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 14px;
}

.match-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--quiet);
  font-size: 0.74rem;
}

.match-card__topline > * {
  min-width: 0;
}

.match-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-status--fit {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.match-status--review {
  background: var(--gold-soft);
  color: var(--gold);
}

.match-status--conflict {
  background: var(--danger-soft);
  color: var(--danger);
}

.match-card__date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card__title {
  margin: 11px 0 0;
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.24;
}

.match-card__title a {
  color: var(--forest-deep);
  text-decoration: none;
}

.match-card__title a:hover {
  text-decoration: underline;
}

.match-card__location {
  min-height: 24px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.match-card__price {
  margin: 13px 0 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.match-card__price--unknown {
  color: var(--gold);
}

.match-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 15px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.match-card__fact {
  min-width: 0;
}

.match-card__fact dt {
  overflow: hidden;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.match-card__fact dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card__fact dd.is-unknown {
  color: var(--gold);
}

.match-card__unknowns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.match-card__unknowns li {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.71rem;
  line-height: 1.35;
}

.match-card__explanation {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.match-card__explanation-title {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 0.92rem;
}

.explanation-group {
  margin-top: 10px;
}

.explanation-group__title {
  margin: 0 0 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explanation-group--fits .explanation-group__title {
  color: var(--forest);
}

.explanation-group--conflicts .explanation-group__title {
  color: var(--danger);
}

.explanation-group--unknowns .explanation-group__title {
  color: var(--gold);
}

.explanation-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.79rem;
}

.match-card__warning {
  margin: 11px 0 0;
  color: var(--gold);
  font-size: 0.76rem;
}

.match-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--quiet);
  font-size: 0.8rem;
}

.match-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.match-card__links a {
  font-weight: 700;
}

.match-card__draft {
  flex: 0 0 auto;
  padding: 7px 9px;
}

.match-card__draft:active,
.button:active,
.button--quiet:active,
.save-button:active {
  transform: scale(0.97);
}

.draft-panel {
  margin-top: 28px;
  padding: 20px;
  scroll-margin-top: 18px;
}

.draft-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.draft-panel textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  margin-top: 13px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
}

.draft-panel textarea:focus {
  border-color: var(--forest);
  box-shadow: var(--shadow-focus);
}

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

@media (max-width: 980px) {
  .personal-layout {
    grid-template-columns: 1fr;
  }

  .personal-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: static;
  }

  .match-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .personal-heading {
    display: block;
  }

  .personal-heading .feed-heading__meta {
    margin-top: 14px;
    text-align: left;
  }

  .personal-sidebar,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .amenity-options {
    grid-template-columns: 1fr;
  }

}

/* Compact browse controls share one row; details stay next to their trigger. */
.filter-bar { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; }
.filter-bar > .filter-popover, .filter-bar > .filter-field--zone { flex: 1 1 130px; min-width: 0; }
.filter-bar > .filter-field--zone > span { display: none; }
.filter-popover { position: relative; }
.filter-popover > summary, .filter-bar .zone-picker > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--surface); color: var(--forest-deep);
  font-size: .82rem; font-weight: 700; cursor: pointer; list-style: none;
}
.filter-popover > summary { display: grid; grid-template-columns: minmax(0, 1fr) 8px; gap: 2px 8px; }
.filter-popover > summary > span, .filter-popover > summary > strong { grid-column: 1; }
.filter-popover > summary::-webkit-details-marker { display: none; }
.filter-popover > summary::after { content: ''; grid-column: 2; grid-row: 1; width: 6px; height: 6px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.filter-popover > summary strong { font-size: .75rem; font-weight: 600; }
.filter-popover > summary strong:empty { display: none; }
.filter-popover.has-selection > summary { background: var(--forest-soft); border-color: var(--forest); }
.filter-popover[open] > summary, .filter-popover > summary:hover { border-color: var(--forest); }
.filter-popover > summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.filter-popover__panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  width: 280px; padding: 16px; border-radius: 12px; background: var(--surface);
  box-shadow: 0 8px 28px rgb(20 45 32 / 18%); display: grid; gap: 16px;
}
.filter-popover__panel .filter-field { grid-column: auto; }
.filter-popover--more .filter-popover__panel, [data-filter-popover="furnishing"] .filter-popover__panel { left: auto; right: 0; }
.filter-popover__panel legend { margin-bottom: 12px; font-weight: 700; }
.browse-amenities { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.browse-amenities .check-row { min-height: 44px; }
.filter-bar > .filter-actions { flex: 1 0 100%; margin: 0; padding: 8px 0 0; border: 0; }
.filter-bar .filter-actions__buttons { margin-left: auto; }
@media (max-width: 819px) {
  .filter-bar > .filter-popover, .filter-bar > .filter-field--zone { flex-basis: 100%; }
  .filter-popover__panel { position: static; width: auto; margin-top: 8px; box-shadow: none; background: var(--forest-soft); }
  .filter-bar .zone-picker__menu { position: static; width: auto; }
}

/* Production filter correction: one 1180px row, explicit state metadata and
   a real modal for the draft-only extras. This block intentionally follows the
   retained legacy rules so unrelated pages keep their existing surfaces. */
.filter-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.filters-shell[data-filters] {
  margin: 0 0 20px;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.filters-shell[data-filters] .filters-panel {
  padding: 0;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(90px, 1fr)) max-content max-content;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 10px 0;
}

.search-filter-card { padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.describe-search { margin: 0; }
.describe-search__label.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.describe-search__row { display: flex; gap: 8px; }
.describe-search__field { display: flex; flex: 1 1 auto; min-width: 0; min-height: 48px; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.describe-search__field svg { width: 18px; height: 18px; flex: none; color: var(--forest); }
.describe-search__field input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.describe-search__row > button { min-height: 48px; padding-inline: 22px; border: 0; border-radius: 10px; background: var(--forest); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.describe-understood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.describe-understood__lead { color: var(--muted); font-size: 14px; }
.describe-understood__zero-hint { margin: 0; color: var(--muted); font-size: 14px; }
.describe-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-deep); font-size: 14px; font-weight: 600; }
.describe-tag__remove { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 50%; background: var(--sea-deep); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.describe-suggestion { padding: 4px 0; border: 0; background: transparent; color: var(--sea-deep); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.describe-suggestion:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; border-radius: 2px; }
.furnishing-draft .filter-choice { border-radius: 999px; }

.filter-control-wrap {
  position: relative;
  min-width: 0;
}

.filter-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  vertical-align: middle;
}

.filter-control,
.filter-toolbar .segment-control {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.filter-toolbar .filter-control--transaction-mobile { display: none; }
.filter-chips { display: contents; }

.active-filter-row { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 10px; }
.active-filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.active-filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 7px 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; white-space: nowrap; }
.active-filter-chip__label--dropdown::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline: 7px 2px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.active-filter-chip__remove { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.active-filter-chip__remove svg { display: block; width: 13px; height: 13px; }
.active-filter-chip__remove:hover { background: var(--sea-soft); color: var(--sea-deep); }
.search-alert-wrap { position: relative; flex: 0 0 auto; }
.search-alert-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--sea); border-radius: 999px; background: var(--sea); color: #fff; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 0.18s var(--ease-out), border-color 0.18s var(--ease-out); }
.search-alert-button:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.search-alert-button:focus-visible, .active-filter-chip__remove:focus-visible, .active-filter-clear:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.search-alert-button svg { width: 15px; height: 15px; }
.search-alert-popover { position: fixed; z-index: 10020; width: min(290px, calc(100vw - 24px)); padding: 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 30px rgba(18, 34, 34, .18); }
.search-alert-popover[hidden] { display: none; }
.search-alert-popover h2 { margin: 0 0 7px; font-size: 14px; font-weight: 700; }
.search-alert-options { display: grid; gap: 2px; }
.search-alert-options button { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.search-alert-options button:disabled { opacity: .6; cursor: wait; }
.search-alert-options button:hover, .search-alert-options button[aria-pressed="true"] { background: var(--sea-soft); color: var(--sea-deep); }
.search-alert-options button:focus-visible, .search-alert-remove button:focus-visible, .search-alert-remove-link:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.search-alert-options [data-alert-selected] { font-weight: 700; }
.search-alert-popover [data-search-alert-status] { margin: 8px 2px 0; color: var(--muted); font-size: 12px; }
.search-alert-remove-link { margin-top: 6px; padding: 7px 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.search-alert-remove-link:hover { color: var(--sea-deep); text-decoration: underline; }
.search-alert-remove { padding-top: 8px; border-top: 1px solid var(--line); }
.search-alert-remove p { margin: 0 0 7px; font-size: 13px; }
.search-alert-remove button { min-height: 34px; margin-inline-end: 5px; padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.search-alert-remove [data-alert-remove-confirm] { border-color: #a63d3d; background: #a63d3d; color: #fff; }
.active-filter-clear { flex: 0 0 auto; border: 0; padding: 7px 4px; background: transparent; color: var(--sea-deep); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.active-filter-clear:hover { text-decoration: underline; }

.filters-panel .filter-actions__buttons:empty {
  display: none;
}

.filter-control {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 48px;
  padding: 4px 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.filter-control:hover,
.filter-control[aria-expanded="true"] {
  border-color: var(--sea);
  background: #fff;
}

.filter-control:focus-visible,
.filter-choice:focus-visible,
.mode-switch button:focus-visible,
.bedroom-grid button:focus-visible,
.segment-button:focus-visible,
.dialog-close:focus-visible,
.bedroom-reset:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.filter-control__label {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.1;
  white-space: normal;
}

.filter-control__label:empty {
  display: none;
}

.filter-control--trigger {
  height: auto;
  min-height: 48px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  column-gap: 6px;
}

.filter-toolbar .filter-control--trigger > .filter-icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
  stroke-width: 1.65;
}

.filter-control__text {
  display: grid;
  min-width: 0;
  gap: 1px;
  align-content: center;
}

.filter-control__name {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.05;
  white-space: normal;
}

.filter-control-wrap.has-selection .filter-control__label {
  color: var(--forest-deep);
}

.filter-control--more {
  position: relative;
  justify-content: flex-start;
  padding-right: 30px;
  color: var(--forest);
}

.filter-control--more .filter-control__label {
  flex: 0 0 auto;
  color: var(--forest);
  font-weight: 600;
  overflow: visible;
}

.segment-control--joined {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.segment-heading {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 4px;
  color: var(--ink);
}

.segment-heading .filter-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
}

.segment-control__label {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.segment-options {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.segment-button {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.segment-button + .segment-button {
  border-left: 1px solid var(--line);
}

.segment-button:hover {
  background: var(--sea-soft);
  color: var(--sea-deep);
}

.segment-button[aria-pressed="true"] {
  background: var(--sea);
  color: #fff;
  font-weight: 600;
}

.segment-button:focus-visible {
  z-index: 1;
  outline-offset: -3px;
}

.filter-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.filter-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  left: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: min(520px, calc(100dvh - 32px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 55, 36, 0.16);
}

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

.filter-popover--location {
  width: min(360px, calc(100vw - 32px));
}

.filter-popover--bedrooms {
  width: 320px;
}

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

.bedroom-range-fields .filter-field {
  min-width: 0;
}

.bedroom-range-fields select {
  width: 100%;
}

[data-bedroom-summary] {
  min-height: 1.25em;
  margin: 12px 0 0;
  color: var(--forest-deep);
  font-size: 14px;
  font-weight: 700;
}

.filter-control-wrap--price .filter-popover,
.filter-control-wrap--bedrooms .filter-popover {
  left: auto;
  right: 0;
}

.filter-popover__heading,
.bedroom-popover__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-popover__title,
.filter-popover__heading h2,
.bedroom-popover__header h2 {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.filter-popover__heading p:not(.filter-popover__title),
.filter-popover__hint,
.filter-popover__footer-note {
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 0.76rem;
}

.filter-popover__options {
  display: grid;
  gap: 4px;
}

.filter-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.filter-choice:hover,
.filter-choice[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.filter-choice > [data-choice-label] {
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.filter-choice small {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
}

.filter-choice__mark,
.amenity-choice__mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: transparent;
}

.filter-choice[aria-pressed="true"] .filter-choice__mark,
.amenity-choice input:checked + .amenity-choice__content .amenity-choice__mark {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.filter-choice__mark .filter-icon,
.amenity-choice__mark .filter-icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.mode-switch {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.mode-switch button {
  min-width: 44px;
  min-height: 32px;
  padding: 3px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mode-switch button[aria-pressed="true"] {
  background: var(--forest);
  color: #fff;
}

.bedroom-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bedroom-grid button {
  min-width: 0;
  min-height: 46px;
  padding: 7px 3px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.bedroom-grid button:last-child {
  border-right: 0;
}

.bedroom-grid button:hover,
.bedroom-grid button[aria-pressed="true"] {
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.bedroom-grid button[aria-pressed="true"] {
  background: var(--forest);
  color: #fff;
}

.bedroom-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 7px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.18em;
}

.zone-picker__search {
  position: relative;
  display: block;
  margin-bottom: 8px;
}

.zone-picker__search .filter-icon {
  position: absolute;
  top: 11px;
  left: 10px;
  color: var(--muted);
}

.zone-picker__search input {
  width: 100%;
  min-height: 40px;
  padding: 7px 10px 7px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  font-size: 14px;
}

.zone-picker__search input:focus {
  border-color: var(--forest);
  box-shadow: var(--shadow-focus);
}

.zone-picker__options {
  display: grid;
  gap: 0;
  max-height: 220px;
  overflow: auto;
}

.filter-popover .zone-picker__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 3px 7px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-popover .zone-picker__option:hover {
  background: var(--forest-soft);
}

.filter-popover .zone-picker__option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--forest);
}

.filter-popover .zone-picker__option--all {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.zone-picker__empty {
  margin: 5px 7px 0;
  color: var(--quiet);
  font-size: 13px;
}

.filter-results-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 0 0 10px;
}

.filter-results-actions__status {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-results-count {
  color: var(--forest-deep);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.filter-status {
  min-width: 0;
  color: var(--quiet);
  font-size: 13px;
}

.filter-actions__buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.filter-actions__buttons button {
  min-height: 44px;
  white-space: nowrap;
}

.extras-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  max-height: min(690px, calc(100dvh - 40px));
  margin: auto;
  padding: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 55, 36, 0.18);
  color: var(--ink);
}

.extras-dialog::backdrop {
  background: rgba(24, 58, 43, 0.2);
}

body.dialog-open {
  overflow: hidden;
}

.dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(690px, calc(100dvh - 40px));
  min-width: 0;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin: 0;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dialog-heading p {
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 13px;
}

.dialog-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.dialog-close:hover {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.dialog-body {
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 18px 22px 22px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.dialog-section + .dialog-section {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.dialog-section h3 {
  margin: 0 0 9px;
  color: var(--forest-deep);
  font-family: "Vigia Manrope", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.amenity-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.amenity-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.amenity-choice__content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.amenity-choice:hover .amenity-choice__content,
.amenity-choice input:focus-visible + .amenity-choice__content {
  border-color: var(--forest);
  background: var(--forest-soft);
}

.amenity-choice input:checked + .amenity-choice__content {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest-deep);
}

.amenity-choice input:disabled + .amenity-choice__content {
  cursor: not-allowed;
  opacity: 0.55;
}

.amenity-choice__icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.amenity-choice__icon .filter-icon {
  width: 18px;
  height: 18px;
}

.amenity-choice input:checked + .amenity-choice__content .amenity-choice__icon {
  border-color: var(--line-strong);
  color: var(--forest);
}

.amenity-choice__label {
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.amenity-choice__mark {
  margin-left: auto;
}

.unknown-choice {
  max-width: 460px;
}

.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 13px 22px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.dialog-footer__meta {
  min-width: 0;
  color: var(--quiet);
  font-size: 13px;
}

.dialog-footer__meta strong {
  display: block;
  color: var(--forest-deep);
  font-size: 14px;
}

.dialog-footer__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.dialog-footer__actions [data-save-search-slot] { display: contents; }

.dialog-footer__actions button {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 1219px) and (min-width: 761px) {
  .filter-toolbar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .filter-control-wrap--transaction, .filter-control-wrap--furnishing { grid-column: span 2; }

  .filter-popover {
    max-width: min(360px, calc(100vw - 48px));
  }
}

@media (max-width: 760px) {
  .filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0; }
  .filter-control-wrap { width: 100%; }
  .filter-control-wrap--transaction, .filter-control-wrap--furnishing, .filter-control-wrap--more { grid-column: 1 / -1; }
  .filter-toolbar .segment-button { min-height: 44px; padding-inline: 10px; }

  .mode-switch button {
    min-width: 44px;
    min-height: 44px;
  }

  .bedroom-reset {
    min-height: 44px;
    padding-block: 8px;
  }

  .filter-popover,
  .filter-popover--location,
  .filter-popover--bedrooms {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .filter-results-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
  }

  .filter-actions__buttons {
    width: 100%;
  }

  .filter-actions__buttons button {
    flex: 1 1 0;
  }

  .extras-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .dialog-shell {
    max-height: calc(100dvh - 16px);
  }

  .dialog-heading {
    padding: 14px 16px 12px;
  }

  .dialog-heading h2 {
    font-size: 1.08rem;
  }

  .dialog-heading p {
    max-width: 28ch;
  }

  .dialog-body {
    padding: 14px 16px 18px;
  }

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

  .amenity-choice__content {
    min-height: 46px;
  }

  .dialog-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 11px 16px 14px;
  }

  .dialog-footer__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .dialog-footer__actions button {
    width: 100%;
    min-height: 44px;
  }

  .dialog-footer__actions [data-extras-apply] {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 48px;
  }

  .dialog-footer__actions [data-more-clear] {
    grid-column: 1;
    grid-row: 2;
  }

  .dialog-footer__actions [data-extras-cancel] {
    grid-column: 2;
    grid-row: 2;
  }
}

/* The results list loads first; maps are an explicit, optional view. */
.map-panel--optional { margin: 1rem 0 1.5rem; padding: 0; border: 0; background: transparent; }
.map-panel--optional > summary { width: fit-content; cursor: pointer; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: .5rem; font-weight: 700; color: var(--accent); }
.map-panel--optional[open] > summary { margin-bottom: 1rem; }

/* One map entry point across public pages and account screens. */
.header-map { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; color: var(--forest-deep); background: transparent; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.header-map:hover { background: var(--forest-soft); }
.header-map:focus-visible, .map-dialog button:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.map-dialog { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); overflow: auto; }
.map-dialog::backdrop { background: rgb(10 35 25 / 48%); }
.map-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.map-dialog__title { margin: 0; font-size: 1.4rem; font-weight: 700; }
.map-dialog__close { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest-deep); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.map-dialog .map-stage { height: min(62dvh, 680px); min-height: 260px; }
.map-dialog .map-note, .map-dialog .map-result-count { margin: 8px 0; color: var(--muted); font-size: .9rem; }
.map-dialog .map-note:empty, .map-dialog .map-result-count:empty { display: none; }
.map-property-marker { min-width: 2.5rem; height: 2.5rem; padding: 0 .65rem; border: 2px solid #fffdf8; border-radius: 1.25rem; background: #1d5b50; color: #fffdf8; font: 700 1rem system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 5px rgb(18 28 27 / 25%); }
.map-property-marker:hover { background: #123e36; }
.map-property-marker:focus-visible { outline: 3px solid #a35719; outline-offset: 3px; }
.map-property-results { max-height: 20rem; overflow-y: auto; color: var(--ink); font: .875rem/1.4 system-ui, sans-serif; }
.map-property-results > strong { display: block; font-size: 1rem; margin-bottom: .5rem; }
.map-property-result { display: flex; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.map-property-result img { width: 4.5rem; height: 4rem; flex: 0 0 4.5rem; object-fit: cover; border-radius: .25rem; }
.map-property-result strong, .map-property-result span { display: block; }
.map-property-result:hover strong { text-decoration: underline; }

/* Zones navigation: one light panel above a quiet, dimmed page. */
body.zones-menu-open { overflow: hidden; }
.zones-menu { position: fixed; inset: var(--zones-top, 80px) 0 auto; width: 100%; max-width: none; max-height: calc(100dvh - var(--zones-top, 80px)); margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--forest-deep); box-shadow: 0 20px 40px rgb(20 45 35 / 12%); overscroll-behavior: contain; }
.zones-menu::backdrop { background: rgb(12 30 23 / 38%); }
.zones-menu[open] { animation: zones-reveal .2s ease-out; }
.zones-menu__inner { position: relative; display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 44px; width: min(calc(100% - 64px), var(--content-width)); margin: auto; padding: 48px 0; }
.zones-menu__intro-heading { max-width: 12ch; margin: 0 0 18px; font: 700 clamp(1.8rem, 3vw, 2.5rem)/1.15 "Vigia Manrope", sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.zones-menu__intro p { max-width: 26ch; margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.zones-menu__all { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; text-underline-offset: 5px; }
.zones-menu__group-heading { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 500; }
.zones-menu__group a { display: block; min-height: 44px; padding: 10px 0; color: var(--forest-deep); font-size: .95rem; text-decoration: none; text-underline-offset: 5px; }
.zones-menu__group a:hover { text-decoration: underline; color: var(--forest); }
.zones-menu a:focus-visible, .zones-menu button:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; }
.zones-menu__close { position: absolute; top: 8px; right: -8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--forest-deep); cursor: pointer; }
.zones-menu__close:hover { background: var(--forest-soft); }
@keyframes zones-reveal { from { opacity: .6; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .zones-menu__inner { gap: 24px; grid-template-columns: repeat(3, 1fr); } .zones-menu__intro { grid-column: 1 / -1; } .zones-menu__intro-heading, .zones-menu__intro p { max-width: none; } .zones-menu__intro p { margin-bottom: 8px; } }
@media (max-width: 560px) { .zones-menu__inner { width: calc(100% - 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 0 28px; gap: 28px 20px; } .zones-menu__intro-heading { max-width: 18ch; } .zones-menu__group a { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .zones-menu[open] { animation: none; } }

/* Stable category breadcrumbs use the same quiet typography as the results. */
.category-breadcrumbs { margin: 0 0 1.25rem; color: var(--muted); font-size: .875rem; }
.category-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem .65rem; margin: 0; padding: 0; list-style: none; }
.category-breadcrumbs li + li::before { content: "/"; margin-right: .65rem; color: var(--muted); }
.category-breadcrumbs a { color: inherit; text-underline-offset: .2em; }

/* The full footer appears on public catalog and information pages only. */
.site-footer--full { border-top: 0; background: var(--forest-deep); color: #f9f5e9; }
.site-footer--full a { color: #f9f5e9; text-underline-offset: .22em; }
.site-footer--full a:hover { color: #d5e9d9; text-decoration-thickness: 2px; }
.site-footer--full :focus-visible { outline: 2px solid #fff8dc; outline-offset: 4px; }
.site-footer__full { width: min(calc(100% - 32px), var(--content-width)); margin-inline: auto; padding: clamp(2rem, 4vw, 3rem) 0 1.25rem; }
.site-footer__brand { margin-bottom: 1.5rem; }
.site-footer__wordmark { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font: 800 1.25rem/1.1 "Vigia Nunito", sans-serif; text-decoration: none; }
.site-footer__wordmark img { display: block; width: 2.6rem; height: 2.6rem; object-fit: contain; }
.site-footer__statement { max-width: 65ch; margin: .7rem 0 0; color: #fff8e8; font: 600 1rem/1.5 "Vigia Manrope", sans-serif; }
.site-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
.site-footer__group { min-width: 0; }
.site-footer__group-heading { min-height: 2.6rem; margin: 0 0 .35rem; color: #c3ddcb; font: 700 .82rem/1.4 "Vigia Manrope", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.site-footer__group ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.site-footer__group li { min-width: 0; }
.site-footer__group a { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem .1rem; font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.site-footer__group--zones ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
.site-footer__group--zones a { min-height: 2.25rem; }
.site-footer__source { margin: 1rem 0 0; color: #d1e2d6; font-size: .88rem; line-height: 1.55; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1rem; padding-top: 1.15rem; border-top: 1px solid rgb(226 239 226 / 18%); color: #d1e2d6; font-size: .84rem; line-height: 1.5; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom a { display: inline-flex; min-height: 2.75rem; align-items: center; }

.public-page { min-height: 55vh; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.public-page__article { width: min(100%, 50rem); margin-inline: auto; color: var(--ink); }
.public-page__article h1 { max-width: 18ch; margin: 0 0 1.2rem; color: var(--forest-deep); font: 800 clamp(2.1rem, 4vw, 3.35rem)/1.2 "Vigia Nunito", sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.public-page__article h2 { margin: 2.15rem 0 .65rem; color: var(--forest-deep); font: 700 1.25rem/1.3 "Vigia Manrope", sans-serif; }
.public-page__article p { max-width: 70ch; margin: 0 0 1rem; font-size: 1rem; line-height: 1.72; }
.public-page__article .public-page__lead { max-width: 62ch; margin-bottom: 2rem; color: var(--forest-deep); font-size: 1.18rem; line-height: 1.55; }
.public-page__article a { color: var(--forest); text-underline-offset: .2em; overflow-wrap: anywhere; }
.public-page__article--legal h2 { margin-top: 1.8rem; }
.about-founder__figure { margin: 0 0 1.5rem; }
.about-founder__photo { display: block; width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; }
.rent-overview { width: min(100%, 76rem); }
.public-page__article.rent-overview h1, .public-page__article.rent-overview p { max-width: none; }
.rent-overview__table-wrap { max-width: 100%; margin: 1.5rem 0 2rem; overflow-x: auto; }
.rent-overview__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rent-overview__table th, .rent-overview__table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line, #dce4df); text-align: right; vertical-align: top; white-space: nowrap; }
.rent-overview__table thead th { color: var(--forest-deep); font-weight: 700; }
.rent-overview__table th:first-child { text-align: left; }
.rent-overview__table tbody th { font-weight: 600; }
.rent-overview__table small { color: var(--muted, #66736c); font-size: .78rem; }
.rent-overview__table .rent-overview__few { color: #89958e; }
.rent-overview__city { background: #f1f6f3; }
.public-contact-form { display: grid; gap: 1.15rem; width: min(100%, 42rem); margin-top: 1.75rem; }
.public-contact-form__field { display: grid; gap: .45rem; color: var(--forest-deep); font-weight: 700; }
.public-contact-form__field input, .public-contact-form__field select, .public-contact-form__field textarea { width: 100%; min-height: 3rem; padding: .75rem .85rem; border: 1px solid #879b8d; border-radius: 5px; background: #fffdf7; color: var(--ink); font: 400 1rem/1.5 "Vigia Manrope", system-ui, sans-serif; }
.public-contact-form__field textarea { min-height: 11rem; resize: vertical; }
.public-contact-form__field input:focus-visible, .public-contact-form__field select:focus-visible, .public-contact-form__field textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-color: var(--forest); }
.public-contact-form__field small { color: var(--muted); font-size: .88rem; font-weight: 400; line-height: 1.5; }
.public-contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.public-contact-form .button { justify-self: start; min-height: 2.9rem; padding: .7rem 1.25rem; }
.public-contact-form__status { min-height: 1.6rem; margin: 0; color: var(--forest-deep); font-weight: 600; }
.public-contact-form__status[data-state="error"] { color: #8a2d20; }
.public-contact-form__status[data-state="success"] { color: #176b42; }
.public-contact-email { margin: 1.5rem 0 0; color: var(--muted, #5c6b65); font-size: .9rem; white-space: nowrap; }
.public-contact-form__no-script { max-width: 48rem; margin: .5rem 0 0; color: #8a2d20; font-weight: 600; line-height: 1.5; }

.contact-inbox { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact-inbox .panel-heading { align-items: flex-start; }
.contact-inbox .panel-heading h2 { margin: 0; }
body[data-page="operator"] .contact-inbox .panel-heading p { margin: .35rem 0 0; color: var(--muted); line-height: 1.5; }
.contact-inbox__items { display: grid; gap: .9rem; margin: 1rem 0; }
.contact-inbox__item { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.contact-inbox__item h3 { margin: 0 0 .35rem; color: var(--forest-deep); font-size: 1rem; }
.contact-inbox__meta, .contact-inbox__reference { margin: 0 0 .65rem; color: var(--muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.contact-inbox__message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.contact-inbox [data-contact-inbox-older] { min-height: 2.75rem; }

@media (max-width: 900px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
}
@media (max-width: 600px) {
  .site-footer__full { width: calc(100% - 32px); padding-top: 2rem; }
  .site-footer__nav { gap: 1.1rem 1rem; }
  .site-footer__bottom { display: flex; }
  .site-footer__bottom p { max-width: 32ch; }
  .public-page { padding-top: 2rem; }
  .public-page__article h1 { font-size: 2.15rem; }
  .public-contact-form .button { width: 100%; }
}

/* Direct category navigation, shared by static pages and private tools. */
.site-header { position: relative; z-index: 30; }
.property-menu > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 11px; border-radius: 8px; color: var(--muted); font-size: .9rem; cursor: pointer; list-style: none; }
.property-menu > summary::-webkit-details-marker { display: none; }
.property-menu > summary:hover, .property-menu[open] > summary { color: var(--forest-deep); background: var(--forest-soft); }
.property-menu[open] > summary svg { transform: rotate(180deg); }
.property-menu__panel { position: absolute; top: 100%; left: 50%; z-index: 40; width: min(calc(100vw - 40px), var(--content-width)); transform: translateX(-50%); background: var(--surface); box-shadow: 0 20px 40px rgb(20 45 35 / 16%); }
.property-menu__inner { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 0; width: 100%; margin: auto; padding: 24px 0; }
.property-menu__inner--sale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.property-menu__zones { min-width: 0; }
.property-menu__zone-links { display: grid; grid-template-rows: repeat(7, minmax(0, auto)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 24px; }
.site-nav .property-menu__panel a { display: flex; min-width: 0; min-height: 28px; align-items: center; padding: 4px 0; border-radius: 0; color: var(--forest-deep); font-size: .9rem; line-height: 1.4; }
.site-nav .property-menu__panel a:hover { background: transparent; text-decoration: underline; text-underline-offset: 5px; }
.site-nav .property-menu__all { min-height: 36px; gap: 12px; font-weight: 700; }
.property-menu__all svg { flex-shrink: 0; }
.property-menu__group-heading { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.property-menu__footer { grid-column: 1 / -1; margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.property-menu__footer .property-menu__all { width: fit-content; }
@media (max-width: 960px) { .property-menu__inner { column-gap: 20px; } .property-menu__zone-links { column-gap: 16px; } }
@media (max-width: 760px) {
  .site-footer__group--zones ul { display: flex; flex-wrap: wrap; gap: .15rem .9rem; }
  .site-footer__group--zones li { width: auto; }
  .site-footer__group--zones a { min-height: 2rem; padding-inline: 0; }
  .language-switcher summary { padding-inline: 6px; gap: 4px; }
}

/* All reviewed main zones, alphabetized without an introductory column. */
.zones-menu__inner--all { display: block; padding: 44px 0 28px; }
.zones-menu__list { columns: 4; column-gap: 32px; }
.zones-menu__list a { display: block; break-inside: avoid; min-height: 44px; padding: 10px 6px; color: var(--forest-deep); font-size: .95rem; line-height: 1.5; text-decoration: none; }
.zones-menu__list a:hover { background: var(--forest-soft); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1440px) { .zones-menu__list { columns: 5; } }
@media (max-width: 960px) { .zones-menu__list { columns: 3; column-gap: 24px; } }
@media (max-width: 600px) { .zones-menu__list { columns: 2; column-gap: 16px; } .zones-menu__list a { font-size: .9rem; } }
@media (max-width: 360px) { .zones-menu__list { columns: 1; } }
.zone-picker__children {
  margin-inline-start: 1rem;
  padding-inline-start: .25rem;
  border-inline-start: 1px solid var(--color-border, #c8d4ce);
}
.zone-picker__branch > .zone-picker__option { min-height: 32px; }
@media (max-width: 1023px) {
  .zone-picker__branch > .zone-picker__option, .filter-popover .zone-picker__option--all { min-height: 44px; }
}
.zone-picker__branch[data-zone-role="main"] > .zone-picker__option { font-weight: 600; }
.zone-picker__branch.zone-picker__branch--featured > .zone-picker__option { font-weight: 800; }
.zone-option--featured, a.zone-link--featured { font-weight: 800; }
.zones-menu__featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.zones-menu__featured a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 6px;
  color: var(--forest-deep);
  font-size: .95rem;
  line-height: 1.5;
  text-decoration: none;
}
.zones-menu__featured strong { font-weight: 800; }
.zones-menu__featured a:hover { background: var(--forest-soft); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  .zones-menu__featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}
.zone-directory-region > ul { columns: 3 16rem; column-gap: 2rem; list-style: none; padding: 0; }
.zone-directory-region > ul > li { break-inside: avoid; padding-block: .4rem; }
.zone-directory-region a { display: inline-flex; align-items: center; min-height: 44px; }
.zone-directory-region li ul { list-style: none; padding-inline-start: 1.25rem; }
.zone-directory-region + .zone-directory-region { margin-block-start: 2rem; }
.zone-directory-region h3 { margin-block-end: .4rem; }
.zone-directory-region > p { max-width: 68ch; }
@media (max-width: 760px) {
  .filter-control-wrap--location:has(.filter-popover--location:not([hidden])) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .map-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 12px; }
  .map-dialog__title { font-size: 1.15rem; }
  .map-dialog .map-stage { height: 59dvh; }
}

.guide-link-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 28px; list-style: none; }
.guide-link-list a { display: inline-flex; min-height: 44px; align-items: center; }

@media (min-width: 761px) {
  .zone-guide-heading > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .zone-guide-heading h1 { flex: 0 0 100%; }
  .zone-guide-heading > div > p:first-of-type { flex: 1 1 auto; }
  .zone-guide-heading .catalog-updated--heading { width: auto; margin: 0 0 0 auto; text-align: right; }
}

/* Zone guide pages keep their heading and shortcut links compact on phones. */
@media (max-width: 760px) {
  .site-main--zone-guide { padding-top: 12px; }
  .zone-guide-heading { margin: 0; padding-block: 4px 8px; }
  .zone-guide-heading h1 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
  .zone-guide-heading > div > p:first-of-type { margin: 4px 0 0; font-size: .875rem; line-height: 1.3; }
  .zone-guide-heading .catalog-updated--heading { width: auto; margin: 0; color: var(--muted); font-size: .6875rem; line-height: 1.3; text-align: left; }
  .zone-guide-heading .catalog-updated--heading small { font-size: inherit; }
}

@media (min-width: 861px) and (max-width: 960px) {
  .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 12px; padding-block: 12px; }
  .site-header__actions { display: contents; }
  .site-header .brand-lockup { grid-column: 1; grid-row: 1; }
  .site-header .language-switcher { grid-column: 4; grid-row: 2; justify-self: end; }
  .site-header .site-nav { grid-column: 1; grid-row: 2; }
  .site-header .account-control { grid-column: 2; grid-row: 2; }
  .site-header .header-map { grid-column: 3; grid-row: 2; justify-self: end; }
}


/* Browsing refinement: compact navigation and progressive mobile filters. */
.language-label-short, .filter-control-wrap--toggle { display: none; }
.listing-card__topline time { color: var(--muted); font-size: .8rem; }
.gallery-control, .gallery-thumb { min-width: 44px; min-height: 44px; }
.detail-summary { margin: 0 0 24px; }
.detail-summary .detail-panel__price { margin-bottom: 4px; }
.detail-summary .detail-panel__label { margin: 4px 0 12px; }
.detail-summary .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-summary .share-status:empty { display: none; }
.filter-results-actions__status:has(.filter-status:empty) { display: none; }
:where(button, a, input, select, summary):focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
@media (max-width: 760px) {
  [data-page="index"] .feed-heading { margin: 0; padding-block: 12px; }
  .site-main.site-main--home { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .site-main--home .feed-heading--home-hero { min-height: 160px; margin-bottom: 12px; padding: 12px 0; }
  .feed-heading--home-hero > div:first-of-type { width: calc(100% - 32px); }
  .feed-heading--home-hero .feed-heading__summary { margin-top: 6px; gap: 4px 16px; }
  .feed-heading--home-hero .feed-heading__subtitle { flex-basis: 100%; font-size: .875rem; line-height: 1.4; }
  .feed-heading .catalog-updated--heading { margin-left: 0; text-align: left; }
  .feed-heading .feed-heading__summary p.catalog-updated--heading { margin: 4px 0 0; text-align: left; }
  .feed-heading__hero-art img { object-position: center 55%; }
  [data-page="index"] .feed-heading h1 { font-size: 1.65rem; line-height: 1.15; }
  .filter-toolbar { gap: 8px; padding-block: 12px; }
  .filter-control-wrap--transaction { order: -3; }
  .filter-control-wrap--location { order: -2; }
  .is-collapsible .filter-control-wrap--toggle { display: block; order: -1; }
  .is-collapsible:not(.filters-expanded) .filter-toolbar > :not(.filter-control-wrap--transaction):not(.filter-control-wrap--location):not(.filter-control-wrap--toggle) { display: none; }
  .filter-control-wrap--toggle .filter-control { width: 100%; justify-content: center; }
  .filter-results-actions { gap: 8px; }
  .results-toolbar { margin-block: 16px 12px; }
  .detail-heading { margin-block: 16px; }
  .detail-heading h1 { font-size: 1.65rem; line-height: 1.2; }
  .detail-summary .detail-panel__price { font-size: 1.65rem; }
  .detail-summary { margin-bottom: 20px; }
}

@media (max-width: 767px) {
  .site-main--home .feed-heading--home-hero { display: flex; align-items: flex-end; min-height: 160px; padding-block: 12px; }
  .feed-heading__hero-art::after {
    background: linear-gradient(0deg, rgb(0 0 0 / 86%) 0%, rgb(0 0 0 / 72%) 40%, rgb(0 0 0 / 12%) 83%, transparent 100%);
  }
  .feed-heading__hero-art img { object-position: center 55%; }
  [data-page="index"] .feed-heading--home-hero h1 { font-size: 1.25rem; line-height: 1.2; }
}

@media (max-width: 860px) {
  .site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 64px; padding-block: 8px; }
  .site-header__inner > .brand-lockup { flex: 0 1 auto; min-width: 0; }
  .site-header__inner > .brand-lockup { gap: 6px; }
  .site-header__inner > .brand-lockup img { width: 32px; height: 32px; }
  .site-header__inner > .brand-lockup .brand-lockup__name { font-size: 1.05rem; }
  .site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
  .site-header__actions > .site-nav, .site-header__actions > .language-switcher { display: none; }
  .site-header__actions > .header-map { display: none; }
  .site-header .account-control { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; overflow: hidden; border-radius: 50%; font-size: 0; }
  .site-header .account-control::before { width: 20px; height: 20px; background: currentColor; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.56 0-8 2.35-8 5.25V22h16v-2.75C20 16.35 16.56 14 12 14Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Zm0 2c-4.56 0-8 2.35-8 5.25V22h16v-2.75C20 16.35 16.56 14 12 14Z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .header-menu-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--forest-deep); font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
  .header-menu-open:hover { background: var(--forest-soft); }
  .header-menu-open:focus-visible, .mobile-site-menu button:focus-visible, .mobile-site-menu a:focus-visible, .mobile-site-menu summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
  .mobile-site-menu { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--surface); color: var(--forest-deep); overflow: hidden; }
  .mobile-site-menu::backdrop { background: rgb(12 30 23 / 42%); }
  .mobile-site-menu[open] { animation: mobile-menu-reveal .18s ease-out; }
  .mobile-site-menu__surface { display: flex; flex-direction: column; width: min(100%, 560px); height: 100%; margin-inline: auto; padding: max(12px, env(safe-area-inset-top)) 20px max(12px, env(safe-area-inset-bottom)); }
  .mobile-site-menu__heading { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 56px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .mobile-site-menu__title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
  .mobile-site-menu__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--forest-deep); cursor: pointer; }
  .mobile-site-menu__close:hover { background: var(--forest-soft); }
  .mobile-site-menu .site-nav { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; margin: 8px -8px; padding: 0 8px; overflow: auto; overscroll-behavior: contain; }
  .mobile-site-menu .site-nav > a, .mobile-site-menu .property-menu > summary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--forest-deep); font-size: 1rem; font-weight: 650; text-decoration: none; }
  .mobile-site-menu .site-nav > .header-map { justify-content: flex-start; width: 100%; min-height: 48px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--forest-deep); font: inherit; font-size: 1rem; font-weight: 650; text-align: left; }
  .mobile-site-menu .property-menu > summary::after { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); }
  .mobile-site-menu .property-menu[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
  .mobile-site-menu .property-menu__panel { position: static; left: auto; width: auto; max-height: none; padding: 0 8px 10px; overflow: visible; transform: none; background: transparent; box-shadow: none; }
  .mobile-site-menu .property-menu__inner { display: block; width: auto; margin: 0; padding: 8px 0; }
  .mobile-site-menu .property-menu__inner > .zones-menu__close { display: none; }
  .mobile-site-menu .property-menu__zone-links { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto; gap: 0; column-gap: 12px; }
  .mobile-site-menu .property-menu__zone-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--forest-deep); font-size: .88rem; }
  .mobile-site-menu .property-menu__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding-top: 10px; }
  .mobile-site-menu .property-menu__group-heading { grid-column: 1 / -1; margin: 0 0 2px; padding: 0 0 4px; }
  .mobile-site-menu .property-menu__group a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--forest-deep); font-size: .88rem; }
  .mobile-site-menu .property-menu__footer { margin-top: 8px; padding-top: 6px; }
  .mobile-site-menu .property-menu__footer a { min-height: 48px; }
  .mobile-site-menu__account { display: none; flex: 0 0 auto; grid-template-columns: 1fr; padding: 8px 0; border-top: 1px solid var(--line-strong); }
  .mobile-site-menu__account:has(> :not([hidden])) { display: grid; }
  .mobile-site-menu__account a, .mobile-site-menu__account button { display: flex; align-items: center; min-height: 48px; padding: 8px; border: 0; background: transparent; color: var(--forest-deep); font: inherit; font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }
  .mobile-site-menu__language { flex: 0 0 auto; padding-top: 8px; border-top: 1px solid var(--line); }
  .mobile-site-menu__language a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px; color: var(--forest-deep); font-weight: 650; text-decoration: none; }
}

@media (max-width: 390px) {
  .site-header__inner { width: calc(100% - 32px); gap: 4px; }
  .site-header__inner > .brand-lockup { gap: 5px; }
  .site-header__inner > .brand-lockup img { width: 40px; height: 40px; }
  .site-header__inner > .brand-lockup .brand-lockup__name { font-size: clamp(1.12rem, 5.4vw, 1.28rem); }
  .site-header__actions { gap: 4px; }
  .site-header .account-control { flex-basis: 44px; width: 44px; height: 44px; }
}

@media (min-width: 861px) { .header-menu-open { display: none; } }
@keyframes mobile-menu-reveal { from { opacity: .72; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mobile-site-menu[open] { animation: none; } }

/* Furnishing choices fit their labels at every breakpoint. */
.filter-control-wrap--furnishing .segment-control--joined { width: fit-content; max-width: 100%; }
.filter-control-wrap--furnishing .segment-options { flex: 0 1 auto; }
.filter-control-wrap--furnishing .segment-button { flex: 0 0 auto; }

/* Searchable zone navigation, with a readable alphabetic list. */
.zones-menu__inner--all { width: min(calc(100% - 40px), var(--content-width)); padding: 24px 0 32px; }
.zones-menu__heading { margin: 0 48px 20px 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.zones-menu__search { display: grid; gap: 8px; margin-bottom: 20px; }
.zones-menu__search label { font-size: .875rem; font-weight: 600; }
.zones-menu__search input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.zones-menu__search input:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.zones-menu__section-heading { margin: 20px 0 8px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.zones-menu__featured { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 0 0 16px; }
.zones-menu__featured, .zones-menu__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 24px;
  columns: auto;
}
.zones-menu__list a, .zones-menu__featured a { padding: 10px 8px; border-radius: 6px; }
.zones-menu [hidden] { display: none !important; }
.zones-menu__empty { margin: 20px 0; color: var(--muted); }
@media (max-width: 1000px) {
  .zones-menu__featured, .zones-menu__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .zones-menu__inner--all { width: min(calc(100% - 32px), var(--content-width)); }
}
@media (max-width: 600px) {
  .zones-menu__featured, .zones-menu__list { grid-template-columns: minmax(0, 1fr); }
}

/* Match the underlying content edges even when the dialog has a scrollbar. */
.zones-menu__inner--all {
  width: var(--zones-content-width, min(calc(100% - 40px), var(--content-width)));
  max-width: calc(100% - var(--zones-content-left, 20px));
  margin-left: var(--zones-content-left, auto);
  margin-right: 0;
}

.zones-menu__inner--all .zones-menu__close { right: 0; }

/* Desktop filters and search actions share one row; results remain below. */
@media (min-width: 1200px) {
  .filters-shell[data-filters] .filters-panel {
    --filter-inline-padding: 8px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    align-items: flex-start;
  }
  .filters-panel > [data-filter-form] { flex: 1 1 0; min-width: min-content; }
  .filter-toolbar {
    grid-template-columns: max-content minmax(86px, 1fr) minmax(106px, 1fr) minmax(90px, 1fr) minmax(116px, 1fr) max-content 128px;
    gap: 4px;
  }
  :lang(en) .filter-toolbar {
    grid-template-columns: max-content minmax(104px, 1fr) minmax(106px, 1fr) minmax(90px, 1fr) minmax(116px, 1fr) max-content 128px;
  }
  .filter-control-wrap--transaction { grid-column: 1; }
  .filter-control-wrap--type { grid-column: 2; }
  .filter-control-wrap--location { grid-column: 3; }
  .filter-control-wrap--price { grid-column: 4; }
  .filter-control-wrap--bedrooms { grid-column: 5; }
  .filter-control-wrap--furnishing { grid-column: 6; }
  .filter-control-wrap--more { grid-column: 7; }
  .filter-control-wrap--transaction,
  .filter-control-wrap--type,
  .filter-control-wrap--location,
  .filter-control-wrap--price,
  .filter-control-wrap--bedrooms,
  .filter-control-wrap--furnishing,
  .filter-control-wrap--more { grid-row: 1; }
  .filter-control-wrap--transaction, .filter-control-wrap--furnishing { grid-column: auto; }
  .filter-toolbar .segment-control--joined { gap: 6px; }
  .filter-toolbar .segment-options { flex: 0 0 auto; min-height: 48px; }
  .filter-toolbar .segment-button { flex: 0 0 auto; min-width: 44px; padding-inline: var(--filter-inline-padding); font-size: 12px; }
  .filter-toolbar .filter-control { padding-inline: var(--filter-inline-padding); }
  .filter-toolbar .filter-control__name { font-size: 13px; }
  .filter-toolbar .filter-control--more { gap: 6px; padding-right: 28px; }
  .filter-results-actions { display: contents; }
  .filter-results-actions__status { order: 3; flex: 1 0 100%; padding-bottom: 10px; }
  .filters-panel .filter-actions__buttons { order: 2; flex: 0 0 auto; margin-left: auto; align-items: center; margin-top: 10px; gap: 6px; }
  .filters-panel .filter-actions__buttons button { min-height: 48px; padding-inline: var(--filter-inline-padding); font-size: 12px; }
}

/* Shared bounded browse results. */
.browse-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: .875rem; }
.browse-sort select { min-height: 44px; max-width: 100%; padding: 8px 28px 8px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.browse-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 36px; }
.browse-pagination p { margin: 0; }
.browse-pagination [data-browse-status] { flex-basis: 100%; text-align: center; }
.browse-pagination [aria-disabled="true"] { opacity: .6; cursor: wait; }
.browse-sort-note { color: var(--muted); font-size: .875rem; }
.filter-clear-inline { flex: 0 0 auto; min-width: 44px; min-height: 44px; margin-left: 4px; padding: 8px; color: var(--forest-deep); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
[data-browse-results] .results-toolbar { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; }
@media (max-width: 600px) {
  .browse-sort { width: 100%; justify-content: space-between; }
  .browse-sort select { flex: 1; max-width: 240px; }
}

/* Tablet and phone filter rows keep the high priority controls in reach. */
@media (max-width: 1199px) {
  .filter-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(48px, auto);
    gap: 8px;
    padding-block: 8px 12px;
  }
  .filter-control-wrap--toggle,
  .filter-control-wrap--furnishing { display: none; }
  .filter-control-wrap--transaction { grid-column: 1 / 3; grid-row: 1; }
  .filter-control-wrap--location { grid-column: 3 / 5; grid-row: 1; }
  .filter-control-wrap--price { grid-column: 5 / 7; grid-row: 1; }
  .filter-control-wrap--type { grid-column: 1 / 3; grid-row: 2; }
  .filter-control-wrap--bedrooms { grid-column: 3 / 5; grid-row: 2; }
  .filter-control-wrap--more { grid-column: 5 / 7; grid-row: 2; }
  .filter-toolbar .segment-control { width: 100%; }
  .filter-toolbar .segment-options { display: flex; flex: 1 1 auto; min-width: 0; }
  .filter-toolbar .segment-button { flex: 1 1 0; min-width: 44px; min-height: 46px; padding-inline: 8px; }
  .filter-toolbar .filter-control { min-height: 48px; height: auto; padding-inline: 9px; }
  .filter-toolbar .filter-control__name { font-size: 13px; }
  .filter-toolbar .filter-control__label { font-size: 12px; }
  .filter-results-actions { display: block; padding: 0; }
  .filter-results-actions__status:empty { display: none; }
  .filters-panel .filter-actions__buttons { display: flex; width: 100%; gap: 8px; }
  .filters-panel .filter-actions__buttons button { flex: 1 1 0; min-height: 48px; }
  [data-filters] ~ * .results-toolbar { align-items: center; }
  .results-toolbar [data-result-count] { display: inline-flex; align-items: center; }
}

@media (max-width: 767px) {
  .filter-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    padding-block: 6px 10px;
    gap: 8px;
  }
  .filter-control-wrap--transaction { grid-column: 1 / 7; grid-row: 1; }
  .filter-control-wrap--location { grid-column: 1 / 4; grid-row: 2; }
  .filter-control-wrap--price { grid-column: 4 / 7; grid-row: 2; }
  .filter-control-wrap--type { grid-column: 1 / 3; grid-row: 3; }
  .filter-control-wrap--bedrooms { grid-column: 3 / 5; grid-row: 3; }
  .filter-control-wrap--more { grid-column: 5 / 7; grid-row: 3; }
  .filter-toolbar .filter-control--trigger { grid-template-columns: 18px minmax(0, 1fr); column-gap: 5px; }
  .filter-toolbar .filter-control--trigger > .filter-icon { width: 18px; height: 18px; }
  .filter-toolbar .filter-control__label { overflow-wrap: anywhere; }
  .filter-toolbar .segment-heading { padding-inline: 9px; }
  .filter-toolbar .filter-control--more { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 5px; padding-right: 6px; }
  .filter-toolbar .filter-control--more .filter-icon { width: 17px; height: 17px; }
  .filter-toolbar .filter-control--more .filter-control__label { min-width: 0; padding-right: 14px; overflow-wrap: normal; }
  .filter-toolbar .filter-control-wrap--more .filter-badge { position: absolute; top: 4px; right: 4px; margin: 0; }
  .results-toolbar { flex-wrap: wrap; column-gap: 4px; }
}

/* Editors become scrollable, keyboard-contained bottom sheets on touch widths. */
@media (max-width: 1023px) {
  body:has(.filter-popover[aria-modal="true"])::before {
    content: "";
    position: fixed;
    z-index: 29;
    inset: 0;
    background: rgba(23, 42, 34, .42);
  }
  .filter-popover[aria-modal="true"] {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top)));
    padding: 20px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 36px rgba(0, 55, 36, .2);
  }
  .filter-popover[aria-modal="true"] .filter-popover__heading,
  .filter-popover[aria-modal="true"] .bedroom-popover__header { position: sticky; top: -20px; z-index: 1; padding: 12px 0 10px; background: var(--surface); }
  .filter-popover[aria-modal="true"] .filter-popover__options { gap: 6px; }
  .filter-popover[aria-modal="true"] .filter-choice,
  .filter-popover[aria-modal="true"] .bedroom-grid button,
  .filter-popover[aria-modal="true"] .mode-switch button,
  .filter-popover[aria-modal="true"] .bedroom-range-fields select { min-height: 48px; }
  .filter-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
  .filter-sheet-actions { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; gap: 8px; margin: 16px calc(-1 * max(16px, env(safe-area-inset-left))) calc(-12px - env(safe-area-inset-bottom)); padding: 10px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); border-top: 1px solid var(--line); background: var(--surface); }
  .filter-sheet-actions button { min-height: 48px; padding-inline: 14px; }
  .furnishing-draft { display: grid; gap: 6px; }
  .furnishing-draft .filter-choice { min-height: 48px; }
}

@media (min-width: 1024px) {
  .filter-sheet-close,
  .filter-sheet-actions { display: none; }
}

/* Zone navigation keeps map access inside the active dialog. */
.zones-menu__heading-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 12px; margin-bottom: 20px; }
.zones-menu__heading-row .zones-menu__heading { margin: 0; }
.zones-menu__heading-row .zones-menu__close { position: static; }
.zones-menu__map { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; white-space: nowrap; }
.zones-menu__map svg { flex: none; }
@media (max-width: 480px) {
  .zones-menu__heading-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .zones-menu__heading-row .zones-menu__close { grid-column: 2; grid-row: 1; }
  .zones-menu__map { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

/* Search lives in the location control and reuses its zone picker. */
.browse-location { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: text; }
.browse-location:focus-within { border-color: var(--sea); color: var(--sea-deep); }
.browse-location .filter-icon { width: 18px; height: 18px; }
.browse-location input { flex: 1 1 0; width: 0; min-width: 0; height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.browse-location input::placeholder { color: var(--muted); opacity: 1; }
.browse-location input:focus-visible { outline: 0; }
.browse-location:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }
.browse-location__open { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--sea-deep); cursor: pointer; }
.browse-location__open:hover { background: var(--sea-soft); }
.browse-location__open:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
@media (max-width: 1023px) {
  body:has(.filter-popover[aria-modal="true"]) .browse-location:focus-within { position: relative; z-index: 31; }
}
.browse-search__suggestions:not([hidden]) { position: fixed; z-index: 80; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 28px rgb(0 55 36 / 16%); }
.browse-search__suggestions[hidden] { display: none; }
.browse-search__option { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.browse-search__option:hover, .browse-search__option[aria-selected="true"] { background: var(--sea-soft); color: var(--sea-deep); }

.mascot-hop {
  position: fixed;
  z-index: 10000;
  width: 44px;
  height: 44px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  animation: mascot-hop 600ms ease-out both;
}
@keyframes mascot-hop {
  0% { opacity: 1; transform: translateY(0) scale(1, 1); }
  18% { opacity: 1; transform: translateY(0) scale(.88, 1.12); }
  48% { opacity: 1; transform: translateY(-22px) scale(1.08, .94); }
  72% { opacity: 1; transform: translateY(-7px) scale(.98, 1.03); }
  100% { opacity: 0; transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-hop { animation: none; }
}

@media (min-width: 768px) {
  .filter-toolbar .filter-control--transaction-mobile { display: none; }
}

.results-toolbar__summary { display: flex; align-items: baseline; gap: 8px; min-width: 0; }

@media (max-width: 767px) {
  .filter-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-block: 8px;
  }
  .filter-control-wrap--location { width: 100%; }
  .filter-control-wrap--location { order: -1; }
  .filter-control-wrap--location .browse-location { min-height: 44px; }
  .filter-control-wrap--location .browse-location input { min-width: 0; }
  .filter-chips {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 1px 1px 4px;
  }
  .active-filter-row { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 1px 1px 4px; }
  .active-filter-row::-webkit-scrollbar { display: none; }
  .active-filter-chips { flex: 0 0 auto; flex-wrap: nowrap; }
  .active-filter-chip { scroll-snap-align: start; }
  .search-alert-wrap { scroll-snap-align: start; }
  .active-filter-clear { white-space: nowrap; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips .filter-control-wrap { flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .filter-control-wrap--transaction { order: 0; }
  .filter-control-wrap--type { order: 1; }
  .filter-control-wrap--price { order: 2; }
  .filter-control-wrap--bedrooms { order: 3; }
  .filter-control-wrap--more { order: 4; }
  .filter-control-wrap--furnishing { display: none; }
  .filter-control-wrap--transaction > .segment-control { display: none; }
  .filter-toolbar .filter-control--transaction-mobile { display: flex; width: auto; min-width: 72px; }
  .filter-control--transaction-mobile .filter-control__name { display: none; }
  .filter-chips .filter-control { width: auto; min-height: 40px; height: 40px; padding-inline: 12px; border-radius: 999px; white-space: nowrap; }
  .filter-chips .filter-control--trigger { display: flex; gap: 7px; }
  .filter-chips .filter-control__text { display: flex; gap: 4px; align-items: baseline; }
  .filter-chips .filter-control__name { font-size: 13px; white-space: nowrap; }
  .filter-chips .filter-control__label { font-size: 12px; white-space: nowrap; }
  .filter-chips .filter-control--more { display: flex; gap: 7px; padding-inline: 12px; }
  .filter-chips .filter-control-wrap--more .filter-badge { position: static; margin: 0; }
  .filter-control-wrap--more [data-extra-badge] { display: none; }
  .filter-control-wrap--more .filter-badge--mobile:not([hidden]) { display: inline-flex; }

  .results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block: 8px 10px; }
  .results-toolbar h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
  .results-toolbar__summary { flex: 1 1 auto; flex-wrap: wrap; gap: 0 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
  .results-toolbar__summary [data-result-count] { display: inline; }
  .results-toolbar__summary .results-count-photos { display: none; }
  .results-toolbar__summary a { flex: 0 0 auto; }
  .browse-sort { flex: 0 0 auto; width: auto; margin: 0; gap: 0; font-size: 0; }
  .browse-sort select { flex: 0 0 auto; width: 136px; min-height: 44px; padding: 6px 24px 6px 8px; font-size: 12px; }
}

/* Context label sits under the wordmark as a small subtitle. */
.brand-lockup__text { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-lockup__text .app-context-label { display: block; min-height: 0; margin: 0; padding: 0; border: 0; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.1; color: var(--app-subtle, var(--muted, #6a6a6a)); white-space: nowrap; }
html.menu-open { overflow: hidden; }


/* Avísame stays in the filter bar; only filters tucked into Más filtros use the row below. */
.active-filter-row[hidden] { display: none; }
.active-filter-row { display: block; margin-top: 5px; }
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-control-wrap.has-selection > .filter-control,
.filter-control-wrap.has-selection > .filter-control--trigger,
.filter-control-wrap--location.has-selection .browse-location,
.filter-control-wrap--transaction.has-selection .segment-control {
  border-color: var(--sea-deep);
  background: var(--sea-soft);
}
.filter-control-wrap--transaction.has-selection .segment-button[aria-pressed="true"] { background: var(--sea-deep); color: #fff; }
.filter-inline-clear { position: absolute; z-index: 3; top: 50%; right: 5px; display: inline-grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--sea-deep); transform: translateY(-50%); cursor: pointer; }
.filter-inline-clear[hidden] { display: none; }
.filter-inline-clear svg { width: 12px; height: 12px; }
.filter-inline-clear:hover { background: rgba(20, 90, 82, .12); }
.filter-inline-clear:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.filter-control-wrap.has-selection > .filter-control { padding-right: 30px; }
.filter-control-wrap--more.has-selection > .filter-control { padding-right: 32px; }
@media (min-width: 1200px) {
  .filter-toolbar { grid-template-columns: max-content minmax(86px, 1fr) minmax(106px, 1fr) minmax(90px, 1fr) minmax(116px, 1fr) max-content 128px 112px max-content; }
  :lang(en) .filter-toolbar { grid-template-columns: max-content minmax(104px, 1fr) minmax(106px, 1fr) minmax(90px, 1fr) minmax(116px, 1fr) max-content 128px 112px max-content; }
  .filter-control-wrap--save { grid-column: 8; grid-row: 1; }
  .active-filter-clear { grid-column: 9; grid-row: 1; white-space: nowrap; }
  .filter-toolbar .search-alert-button { min-height: 48px; height: 48px; border-radius: 8px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .filter-toolbar { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .filter-control-wrap--price { grid-column: 5 / 8; grid-row: 1; }
  .filter-control-wrap--more { grid-column: 5 / 7; grid-row: 2; }
  .filter-control-wrap--save { grid-column: 7 / 8; grid-row: 2; }
  .filter-toolbar > .filter-chips .active-filter-clear { grid-column: 5 / 8; grid-row: 3; justify-self: end; }
  .filter-toolbar .search-alert-button { width: 100%; min-height: 48px; height: 100%; padding-inline: 6px; border-radius: 8px; font-size: 12px; }
}
@media (max-width: 767px) {
  .filter-chips .filter-control-wrap--save { position: sticky; right: 0; z-index: 4; margin-left: auto; padding-left: 8px; background: var(--paper); scroll-snap-align: end; }
  .filter-chips .search-alert-button { min-height: 40px; height: 40px; padding-inline: 10px; border-radius: 999px; }
  .active-filter-row { margin-top: 4px; }
}
@media (max-width: 767px) {
  .filter-chips .active-filter-clear { order: 5; }
  .filter-chips .filter-control-wrap--save { order: 6; }
}
.filter-control-wrap--more .filter-inline-clear { right: 28px; }
.filter-control-wrap--location.has-selection .browse-location { padding-right: 34px; }
.filter-control-wrap--furnishing.has-selection .segment-control { border-color: var(--sea-deep); background: var(--sea-soft); }
.filter-control-wrap--furnishing.has-selection .segment-button[aria-pressed="true"] { background: var(--sea-deep); color: #fff; }

/* "Limpiar filtros" as a compact pill button, same height as the bar chips. */
.active-filter-clear { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line-strong, #cfd6cf); border-radius: 999px; background: var(--paper, #fff); color: var(--ink, #222); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
.active-filter-clear:hover { text-decoration: underline; }
.active-filter-clear, .search-filter-card .active-filter-clear { flex: 0 0 auto; width: auto; min-width: 0; min-height: 40px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--forest-deep); font-weight: 600; white-space: nowrap; }
.active-filter-clear svg { flex: 0 0 auto; }

/* Phones: Avísame becomes a round bell pinned at the end of the scrolling
   filter row. The label stays for screen readers (aria-label is set by JS). */
@media (max-width: 767px) {
  .filter-chips .filter-control-wrap--save { padding-left: 14px; background: linear-gradient(to right, rgba(0,0,0,0), var(--paper) 14px); }
  .filter-chips .search-alert-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .filter-chips .search-alert-button svg { width: 20px; height: 20px; margin: 0; }
  .filter-chips .search-alert-button [data-search-alert-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .filter-chips .search-alert-button[data-alert-state="daily"],
  .filter-chips .search-alert-button[data-alert-state="after-published"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--sea-deep); }
  .filter-chips .search-alert-button[data-alert-state="saved"] { opacity: .85; }
}

/* Public search in client context */
.client-context-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 11px 16px; border: 1px solid #c9ddd5; border-radius: 12px; background: #edf7f2; color: #174d40; box-shadow: 0 4px 14px rgba(20, 54, 44, .08); }
.client-context-bar__copy { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.client-context-bar__change { flex: 0 0 auto; min-height: 38px; padding: 0 10px; border: 0; background: transparent; color: #147d63; font: inherit; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.client-context-bar__change:disabled { color: #71837c; cursor: default; text-decoration: none; }
.client-context-bar__change:focus-visible, .client-context-bar__exit:focus-visible, .client-context-bar select:focus-visible { outline: 3px solid #147d63; outline-offset: 2px; }
.client-context-bar select { flex: 0 1 220px; min-width: 0; min-height: 38px; padding: 0 8px; border: 1px solid #9bbeb1; border-radius: 8px; background: #fff; color: #174d40; font: inherit; }
.client-context-bar__exit { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 1px solid #9bbeb1; border-radius: 999px; background: #fff; color: #174d40; font: inherit; font-weight: 700; cursor: pointer; }
.client-context-bar__alert { flex: 0 0 auto; min-height: 38px; padding-inline: 10px; }
.client-card-select { position: absolute; z-index: 6; top: 12px; left: 12px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(20, 54, 44, .2); border-radius: 12px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer; }
.client-card-select input, .client-bulk-bar input { width: 20px; height: 20px; accent-color: #147d63; }
.listing-card--client-added { outline: 2px solid #70a992; outline-offset: 1px; }
.client-added-badge { position: absolute; z-index: 6; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: #174d40; color: #fff; font-size: 12px; font-weight: 750; }
.client-search-frame { position: fixed; width: 1px; height: 1px; left: -2px; bottom: 0; border: 0; opacity: 0; pointer-events: none; }
.client-search-toast { position: fixed; z-index: 100; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: #173d34; color: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.2); transform: translateX(-50%); }
.client-search-toast[hidden] { display: none; }
.client-search-toast__actions { display: flex; gap: 16px; }
.client-search-toast button, .client-search-toast a { border: 0; background: transparent; color: #d9fff0; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.client-bulk-bar { position: fixed; z-index: 45; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px max(16px, calc((100vw - 1200px) / 2)) max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #d5e1dc; background: rgba(255,255,255,.97); box-shadow: 0 -7px 22px rgba(26, 52, 44, .12); }
.client-bulk-bar__select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.client-bulk-bar [data-client-selection-count] { margin-inline-start: auto; color: #52645d; font-size: 13px; font-weight: 700; }
.client-bulk-bar [data-client-bulk-add] { min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: #147d63; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.client-bulk-bar [data-client-bulk-add]:disabled { opacity: .48; cursor: not-allowed; }
body.client-search-mode { padding-bottom: calc(var(--client-bulk-bar-height, 82px) + 16px); }
.client-context-bar__list { min-width: 0; margin-inline-start: auto; overflow: hidden; color: #47675c; font-size: .92em; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  /* Compact phone layout: one-line top bar, two-row bottom bar. */
  .client-context-bar { top: 0; gap: 6px; margin: 0 -8px 12px; padding: 6px 8px 6px 12px; border-radius: 0 0 12px 12px; font-size: 14px; }
  .client-context-bar__copy { flex: 1 1 auto; }
  .client-context-bar__list { display: none; }
  .client-context-bar__change { min-height: 36px; padding-inline: 6px; }
  .client-context-bar select { flex: 1 1 140px; min-height: 36px; }
  .client-context-bar__exit { min-height: 36px; padding: 0 12px; }
  .client-context-bar__alert { min-height: 36px; padding-inline: 8px; font-size: 12px; }
  .client-bulk-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 8px; box-sizing: border-box; width: 100%; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); }
  .client-bulk-bar__select { min-width: 0; min-height: 40px; font-size: 12px; white-space: nowrap; }
  .client-bulk-bar [data-client-selection-count] { min-width: 0; margin: 0; overflow: hidden; font-size: 12px; text-align: end; text-overflow: ellipsis; white-space: nowrap; }
  .client-bulk-bar [data-client-clear-selection] { min-height: 40px; padding: 0 4px; border: 0; background: transparent; color: #147d63; font: inherit; font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
  .client-bulk-bar [data-client-bulk-add] { grid-column: 1 / -1; width: 100%; min-height: 44px; padding: 0 12px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .client-search-toast { bottom: calc(var(--client-bulk-bar-height, 82px) + 12px); }
}
@media (max-width: 600px) {
  /* Icon-only bell and short Salir so the client's name keeps the room. */
  .client-context-bar__alert { flex: none; width: 38px; min-width: 38px; height: 38px; padding: 0; }
  .client-context-bar__copy { min-width: 0; }
  .client-context-bar__change { padding-inline: 4px; }
  .client-context-bar__exit { padding: 0 10px; }
  .client-context-bar__alert [data-search-alert-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* Share links (search pages and property page); listing-detail.css refines the property page. */
.detail-sharing { margin-top: 24px; }
.detail-sharing .detail-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.share-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--forest-deep); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-action:hover { background: var(--forest-soft); }
.share-action[hidden] { display: none; }
.share-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.detail-sharing .share-status:empty { display: none; }
/* Public agent directory */
.agent-directory-page,
.agent-profile-page { max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 1.25rem; }
.agent-directory-heading,
.agent-profile-heading { max-width: 48rem; margin: 0 auto 2rem; }
.agent-directory-heading h1,
.agent-profile-heading h1 { margin: .25rem 0 .75rem; }
.agent-directory-date { color: var(--muted); font-size: .92rem; }
.agent-profile-removal { color: var(--muted, #5e6672); font-size: .92rem; }
.agent-directory-filter-label { margin-right: .5rem; }
.agent-directory-page select { min-height: 2.75rem; padding: .5rem 2.25rem .5rem .75rem; border: 1px solid var(--line-strong); border-radius: .5rem; background: var(--surface); color: var(--ink); }
.agent-directory-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 1.25rem 0 0; padding: 0; border-bottom: 1px solid var(--line); list-style: none; }
.agent-directory-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) minmax(7rem, .7fr) auto; align-items: center; gap: 8px 24px; min-width: 0; padding: 28px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.agent-directory-card__identity { display: grid; grid-template-columns: minmax(0, max-content) max-content; grid-template-rows: auto auto; align-items: center; justify-content: start; gap: 0 10px; min-width: 0; grid-column: 1; }
.agent-directory-card__kind { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--muted); font-size: .875rem; }
.agent-directory-address { grid-column: 2; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.agent-directory-card__name { display: inline-flex; grid-column: 1; grid-row: 1; min-width: 0; min-height: 44px; align-items: center; color: var(--forest-deep); font-family: "Vigia Manrope", system-ui, sans-serif; font-size: 1.1875rem; font-weight: 700; overflow-wrap: anywhere; text-decoration: none; }
.agent-directory-card__identity .agent-directory-verified { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
.agent-directory-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.agent-directory-card__profile { display: inline-flex; min-height: 44px; align-items: center; grid-column: 4; justify-self: end; color: var(--sea-deep); font-size: .875rem; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.agent-directory-rating { grid-column: 3; margin: 0; color: var(--muted); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.agent-directory-verified { display: inline-block; margin: .35rem 0; padding: .2rem .55rem; border-radius: 999px; background: var(--forest-soft); color: var(--forest-deep); font-size: .82rem; font-weight: 650; }
.agent-profile-back { display: inline-block; margin-bottom: 1.5rem; }
.agent-profile-facts,
.agent-profile-inmovigia { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent, #24704a); background: var(--surface-soft, #f5f6f3); }
.agent-profile-claim { margin-top: 2rem; }
.agent-profile-claim a { display: inline-block; padding: .85rem 1.1rem; border-radius: .55rem; background: var(--accent, #24704a); color: #fff; font-weight: 650; text-decoration: none; }
.agent-profile-whatsapp { display: inline-block; padding: .55rem .8rem; border: 1px solid var(--accent, #24704a); border-radius: .45rem; color: var(--accent, #24704a); font-weight: 600; text-decoration: none; }
.agent-profile-removal { font-size: .86rem; }

/* One desktop row with three visible filters. Detailed choices live in Filtros. */
.filters-shell[data-filters] { margin-bottom: 8px; border: 0; }
.filters-shell[data-filters] .filters-panel { display: block; }
.search-filter-card { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 60px; padding: 6px; border-radius: 12px; }
.search-filter-card > .describe-search { flex: 1 1 400px; min-width: 160px; }
.search-filter-card > [data-filter-form] { flex: 0 0 auto; width: max-content; min-width: 0; }
.search-filter-card fieldset { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.search-filter-card .filters-panel__legend { position: absolute; }
.search-filter-card .filter-toolbar { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; padding: 0 0 0 8px; border-left: 1px solid var(--line); }
.filters-shell.is-collapsible:not(.filters-expanded) .search-filter-card .filter-toolbar > .filter-chips,
.search-filter-card .filter-toolbar > .filter-chips { display: contents; }
.search-filter-card .filter-control-wrap { flex: 0 0 auto; width: auto; min-width: 0; }
.search-filter-card .filter-control-wrap--toggle,
.search-filter-card .filter-control-wrap--type,
.search-filter-card .filter-control-wrap--bedrooms,
.search-filter-card .filter-control-wrap--transaction > .segment-control { display: none; }
.search-filter-card .filter-control { display: flex; align-items: center; gap: 8px; width: auto; height: 44px; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.search-filter-card .filter-control:hover { background: var(--surface-muted); }
.search-filter-card .filter-control[aria-expanded="true"] { border-color: var(--forest); }
.search-filter-card .filter-control__text { display: block; min-width: 0; }
.search-filter-card .filter-control__name,
.search-filter-card .filter-control__label { overflow: hidden; color: inherit; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.search-filter-card .filter-control__name { display: block; font-weight: 600; }
.search-filter-card .filter-control__label { display: block; font-weight: 600; }
.search-filter-card .filter-control__label:empty,
.search-filter-card .has-selection .filter-control__name,
.search-filter-card .filter-control--transaction-mobile .filter-control__name { display: none; }
.search-filter-card .filter-control--trigger::after { content: ""; width: 6px; height: 6px; flex: none; margin-left: 2px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.search-filter-card .has-selection > .filter-control::after { display: none; }
.search-filter-card .filter-control-wrap--transaction { order: 1; }
.search-filter-card .filter-control-wrap--location { order: 2; width: 160px; }
.search-filter-card .filter-control-wrap--price { order: 3; max-width: 220px; }
.search-filter-card .filter-control-wrap--more { order: 4; }
.search-filter-card .filter-control-wrap--save { order: 5; margin: 0; padding: 0; background: none; }
.search-filter-card .filter-control-wrap--price .filter-control { max-width: 220px; }
.search-filter-card .filter-control-wrap--transaction .filter-control__label { max-width: 150px; }
.search-filter-card .filter-control-wrap--location .filter-control { display: flex; width: 100%; }
.search-filter-card .filter-control-wrap--location input:not([type="checkbox"]) { height: 42px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; }
.search-filter-card .filter-control-wrap--location input::placeholder { color: var(--muted); opacity: 1; }
.search-filter-card .filter-control-wrap--location.has-selection input::placeholder { color: var(--forest); }
.search-filter-card .filter-toolbar .filter-control--trigger > .filter-icon { color: inherit; }
.search-filter-card .filter-control-wrap--price > .filter-control > .filter-icon { display: none; }
.search-filter-card .filter-control-wrap.has-selection > .filter-control { padding-right: 34px; border-color: transparent; background: var(--forest-soft); color: var(--forest); }
.search-filter-card .filter-inline-clear { right: 2px; width: 30px; height: 40px; border-radius: 6px; color: var(--forest); }
.search-filter-card .filter-inline-clear:hover { background: var(--sea-tint); }
.search-filter-card .filter-control-wrap--more .filter-control { padding: 0 12px; border-color: var(--line); background: transparent; }
.search-filter-card .filter-control-wrap--more.has-selection > .filter-control { padding-inline: 12px; }
.search-filter-card .filter-control-wrap--more .filter-control__label { padding: 0; color: var(--ink); font-size: 14px; }
.search-filter-card .filter-control-wrap--more .filter-inline-clear { display: none; }
.search-filter-card .filter-control-wrap--more .filter-badge { position: static; min-width: 20px; height: 20px; margin: 0; border-radius: 5px; background: var(--forest); color: var(--surface); }
.search-filter-card .filter-badge[hidden] { display: none; }
.search-filter-card .filter-control-wrap--save .search-alert-button { width: auto; max-width: 128px; height: 44px; min-height: 44px; padding: 0 12px; border-color: var(--sea); border-radius: 8px; background: var(--sea); }
.search-filter-card .search-alert-button svg { flex: none; }
.search-filter-card .search-alert-button:hover { border-color: var(--sea-deep); background: var(--sea-deep); }
.search-filter-card .search-alert-button [data-search-alert-label] { position: static; min-width: 0; width: auto; height: auto; overflow: hidden; clip: auto; clip-path: none; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.search-filter-card .filter-results-actions__status { padding: 0; }
.search-filter-card .filter-results-actions__status:has(.filter-status:empty) { display: none; }
.describe-search__row { position: relative; gap: 0; }
.describe-search__field { min-height: 46px; padding: 0 50px 0 10px; border: 0; border-radius: 8px; background: transparent; }
.describe-search__field input { min-height: 44px; padding: 0; border: 0; box-shadow: none; font-size: 16px; caret-color: var(--forest); }
.describe-search__field input::placeholder { color: var(--muted); opacity: 1; }
.describe-search__field:focus-within { outline: 2px solid var(--forest); outline-offset: 0; }
.describe-search__row > button { position: absolute; inset: 3px 3px 3px auto; width: 40px; min-height: 0; padding: 0; border-radius: 8px; background: transparent; color: var(--forest); font-size: 0; line-height: 0; }
.describe-search__row > button:hover { background: var(--forest-soft); }
.describe-search__row > button:disabled { opacity: .45; cursor: wait; }
.describe-search__row > button::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.filters-shell .active-filter-row { margin-top: 10px; overflow: visible; }
.filters-shell .active-filter-chips, .filters-shell .describe-understood { flex-wrap: wrap; gap: 6px; }
.filters-shell .active-filter-chip, .filters-shell .describe-tag { max-width: 100%; min-height: 32px; padding: 2px 5px 2px 10px; gap: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 400; white-space: normal; }
.filters-shell .active-filter-chip__label { overflow-wrap: anywhere; }
.filters-shell .describe-tag__remove { flex: none; width: 24px; height: 28px; background: transparent; color: var(--forest); }
.filters-shell .describe-understood[hidden] { display: none; }
.filter-draft-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-draft-choices .filter-choice { width: auto; min-height: 44px; padding: 8px 14px; border-radius: 8px; }
.extras-dialog .furnishing-draft { display: flex; flex-wrap: wrap; gap: 8px; }
.extras-dialog .furnishing-draft .filter-choice { min-height: 44px; border-radius: 8px; }
.extras-dialog .bedroom-range-fields select { min-height: 44px; font: inherit; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .search-filter-card .filter-control-wrap--location { width: 140px; }
  .search-filter-card .filter-control-wrap--price,
  .search-filter-card .filter-control-wrap--price .filter-control { max-width: 200px; }
}
@media (max-width: 1023px) {
  .search-filter-card { display: block; padding: 4px; }
  .search-filter-card .describe-search { min-width: 0; padding-bottom: 4px; }
  .search-filter-card > [data-filter-form] { width: 100%; }
  .search-filter-card .filter-toolbar { padding: 4px 0 0; border: 0; border-top: 1px solid var(--line); }
  .filters-shell.is-collapsible:not(.filters-expanded) .search-filter-card .filter-toolbar > .filter-chips,
  .search-filter-card .filter-toolbar > .filter-chips { display: flex; flex: 1 1 auto; min-width: 0; width: 100%; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0; }
  .search-filter-card .filter-chips { scroll-snap-type: none; }
  .search-filter-card .filter-chips::-webkit-scrollbar { display: none; }
  .search-filter-card .filter-toolbar > .filter-chips[data-scroll-more="true"] { box-shadow: inset -18px 0 14px -12px rgb(11 127 130 / 42%); }
  .search-filter-card .filter-control-wrap--location { width: 150px; }
  .search-filter-card .filter-control-wrap--more { position: sticky; left: 0; z-index: 2; order: 0; background: var(--surface); }
  .search-filter-card .filter-control-wrap--save { flex: none; }
  .search-filter-card .filter-control-wrap--save .search-alert-button { width: 44px; padding: 0; }
  .search-filter-card .search-alert-button [data-search-alert-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .search-filter-card .filter-popover[aria-modal="true"] { z-index: 60; }
}
@media (prefers-reduced-motion: no-preference) {
  .search-filter-card button { transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
  .search-filter-card button:active { transform: translateY(1px); }
}

/* Home hero: dark search stage. Scoped to .home-stage so no other route changes. */
.site-main--home > .home-stage {
  --stage-text: #fff;
  --stage-soft: #d9eee4;
  --stage-mint: #8be3d6;
  --stage-sand: #f2d9a6;
  --stage-pill: rgb(255 255 255 / 10%);
  --stage-pill-line: rgb(255 255 255 / 34%);
  /* Visible gap, equal above and below the search box: subtitle text to box border, box border to filter-pill top.
     The offsets remove what sits inside each side: the subtitle's text box ends 4.2px (2px on phone) above its
     line box; on phone the filter row has 2px padding and its pills are centred 6px into a 48px cell. */
  --stage-gap: 24px;
  --stage-gap-above: calc(var(--stage-gap) - 4.2px);
  --stage-gap-below: var(--stage-gap);
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  padding: 32px 0 64px;
  margin-bottom: 20px;
  color: var(--stage-text);
  background:
    radial-gradient(900px 420px at 82% -10%, rgb(46 200 190 / 38%), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgb(31 181 138 / 22%), transparent 60%),
    linear-gradient(160deg, #003e28 0%, #002a1c 100%);
}
.home-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%);
}
.home-stage > * {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}
.home-stage > .feed-heading.feed-heading--home-stage { display: block; min-height: 0; margin: 0 auto; padding: 0; }
/* the inline icon sprite must not open an empty line box between heading and search box */
.home-stage > svg { position: absolute; width: 0; height: 0; margin: 0; overflow: hidden; }
.home-stage .feed-heading--home-stage h1,
[data-page="index"] .home-stage .feed-heading h1 {
  max-width: none;
  color: var(--stage-text);
  font-family: "Vigia Manrope", "Vigia Manrope Fallback", system-ui, sans-serif;
  font-size: 3.6rem;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-shadow: none;
}
.home-stage .feed-heading__summary { display: block; margin: 16px 0 0; }
.home-stage .feed-heading__subtitle { max-width: none; color: var(--stage-soft); font-size: 1.3rem; font-weight: 400; line-height: 1.5; text-shadow: none; }
.home-stage .home-zone-intro { margin: 5px 0 0; color: var(--stage-soft); font-size: .8rem; line-height: 1.35; white-space: nowrap; }
.home-stage .home-zone-intro a { color: inherit; text-underline-offset: 2px; }
/* the grid overlay sits under the content, so the heading can stay static and the notice can anchor to the stage;
   absolute, so the time that site.js fills in later never shifts the hero */
.home-stage::before { z-index: -1; }
.home-stage > .feed-heading.feed-heading--home-stage { position: static; }
.home-stage .catalog-updated--heading { display: block; position: absolute; right: max(20px, calc((100% - var(--content-width)) / 2)); bottom: 22px; width: auto; margin: 0; color: var(--stage-soft); font-size: .75rem; line-height: 1.5; text-align: right; text-shadow: none; }

.home-stage > .filters-shell[data-filters] { margin: var(--stage-gap-above) auto 0; border: 0; background: transparent; }
.home-stage .filters-shell[data-filters] .filters-panel { display: block; padding: 0; }
.home-stage .search-filter-card { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.home-stage .search-filter-card > [data-filter-form] { width: 100%; }
.home-stage .search-filter-card > .describe-search { min-width: 0; }
.home-stage .search-filter-card .filter-control-wrap--type,
.home-stage .search-filter-card .filter-control-wrap--bedrooms,
.home-stage .search-filter-card .filter-control-wrap--type[hidden],
.home-stage .search-filter-card .filter-control-wrap--bedrooms[hidden] { display: block; }
.home-stage .search-filter-card .filter-control-wrap--transaction > .segment-control { display: flex; }

/* the real describe box, as the glowing search field */
.home-stage .describe-search { padding: 0; }
.home-stage .describe-search__row {
  align-items: center;
  padding: 10px 10px 10px 22px;
  border-radius: 20px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 0 0 4px rgb(139 227 214 / 22%), 0 20px 60px rgb(0 0 0 / 35%);
}
.home-stage .describe-search__row:focus-within { box-shadow: 0 0 0 4px var(--stage-mint), 0 20px 60px rgb(0 0 0 / 35%); }
.home-stage .describe-search__field { flex: 1 1 auto; min-height: 58px; padding: 0 64px 0 0; gap: 14px; }
.home-stage .describe-search__field:focus-within { outline: 0; }
.home-stage .describe-search__field svg { width: 26px; height: 26px; color: var(--sea); }
.home-stage .describe-search__field input { min-height: 58px; color: var(--ink); font: 600 1.25rem/1.4 "Vigia Manrope", system-ui, sans-serif; }
.home-stage .describe-search__field input::placeholder { color: #5b6a62; font-weight: 600; opacity: 1; }
.home-stage .describe-search__row > button {
  inset: 10px 10px 10px auto;
  width: 52px;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b7f82, #007a5a);
  color: #fff;
}
.home-stage .describe-search__row > button:hover { background: linear-gradient(135deg, #075f62, #005334); }
.home-stage .describe-search__row > button:focus-visible { outline: 3px solid var(--forest-deep); outline-offset: 2px; }
.home-stage .describe-search__helper {
  margin: 12px 0 0;
  color: var(--stage-soft);
  font-size: 14px;
  line-height: 1.45;
}

/* real filter controls, restyled as translucent pills */
.home-stage .filter-toolbar,
.home-stage .search-filter-card .filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: var(--stage-gap-below) 0 0;
  padding: 0;
  border: 0;
}
.home-stage .filter-chips,
.home-stage .search-filter-card .filter-toolbar > .filter-chips { display: contents; overflow: visible; }
.home-stage .filter-control-wrap,
.home-stage .search-filter-card .filter-control-wrap { flex: 0 0 auto; width: auto; max-width: none; order: 0; grid-column: auto; grid-row: auto; position: relative; background: transparent; }
.home-stage .search-filter-card .filter-control-wrap--transaction { order: 1; }
.home-stage .search-filter-card .filter-control-wrap--location { order: 2; }
.home-stage .search-filter-card .filter-control-wrap--type { order: 3; }
.home-stage .search-filter-card .filter-control-wrap--bedrooms { order: 4; }
.home-stage .search-filter-card .filter-control-wrap--price { order: 5; }
.home-stage .search-filter-card .filter-control-wrap--more { order: 6; }
.home-stage .search-filter-card .search-alert-wrap { order: 7; }
.home-stage .filter-control-wrap--toggle,
.home-stage .filter-control-wrap--furnishing { display: none; }
.home-stage .filter-toolbar .segment-control { width: auto; border: 0; background: transparent; }
.home-stage .filter-toolbar .segment-control--joined { gap: 0; }
.home-stage .filter-toolbar .segment-heading { display: none; }
.home-stage .filter-toolbar .segment-options {
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--stage-pill-line);
  border-radius: 12px;
  background: var(--stage-pill);
}
.home-stage .filter-toolbar .segment-button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 38px;
  padding: 6px 16px;
  border: 0;
  border-radius: 9px;
  color: var(--stage-soft);
  font-size: .9rem;
  font-weight: 700;
}
.home-stage .filter-toolbar .segment-button + .segment-button { border: 0; }
.home-stage .filter-toolbar .segment-button:hover { background: rgb(255 255 255 / 14%); color: #fff; }
.home-stage .filter-toolbar .segment-button[aria-pressed="true"] { background: var(--stage-sand); color: var(--forest-deep); }
.home-stage .filter-toolbar .segment-button:focus-visible { outline: 3px solid var(--stage-mint); outline-offset: 1px; }
.home-stage .filter-toolbar .filter-control--transaction-mobile,
.home-stage .search-filter-card .filter-control-wrap .filter-control.filter-control--transaction-mobile { display: none; }
.home-stage .filter-toolbar .filter-control,
.home-stage .search-filter-card .filter-control-wrap .filter-control,
.home-stage .browse-location {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid var(--stage-pill-line);
  border-radius: 12px;
  background: var(--stage-pill);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}
.home-stage .filter-toolbar .filter-control:hover,
.home-stage .filter-toolbar .filter-control[aria-expanded="true"] { border-color: var(--stage-mint); background: rgb(255 255 255 / 18%); }
.home-stage .filter-toolbar .filter-control:focus-visible,
.home-stage .browse-location:has(input:focus-visible) { outline: 3px solid var(--stage-mint); outline-offset: 2px; }
.home-stage .browse-location__open:focus-visible { outline: 3px solid var(--stage-mint); outline-offset: 1px; }
.home-stage .filter-toolbar .filter-control--trigger > .filter-icon,
.home-stage .search-filter-card .filter-toolbar .filter-control--trigger > .filter-icon { width: 16px; height: 16px; color: var(--stage-mint); }
.home-stage .filter-control__text { display: flex; gap: 6px; align-items: baseline; }
.home-stage .filter-toolbar .filter-control__name,
.home-stage .search-filter-card .filter-control-wrap--more .filter-control__label { color: #fff; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.home-stage .filter-toolbar .filter-control__label { color: var(--stage-soft); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.home-stage .search-filter-card .filter-control-wrap.has-selection > .filter-control { padding-right: 34px; border-color: var(--stage-mint); background: rgb(139 227 214 / 22%); color: #fff; }
.home-stage .search-filter-card .filter-control-wrap.has-selection .filter-control__label { color: #fff; }
.home-stage .search-filter-card .filter-inline-clear { color: #fff; }
.home-stage .search-filter-card .filter-inline-clear:hover { background: rgb(255 255 255 / 18%); }
.home-stage .browse-location input,
.home-stage .search-filter-card .filter-control-wrap--location input:not([type="checkbox"]) { width: 9.5ch; height: 42px; color: #fff; font-size: .9rem; font-weight: 700; text-overflow: clip; }
.home-stage .browse-location input::placeholder,
.home-stage .search-filter-card .filter-control-wrap--location input::placeholder { color: #fff; opacity: 1; }
.home-stage .browse-location .filter-icon { width: 16px; height: 16px; color: var(--stage-mint); }
.home-stage .search-filter-card .filter-control-wrap--more .filter-control { padding: 0 16px; border-color: #fff; background: #fff; }
.home-stage .search-filter-card .filter-control-wrap--more .filter-control .filter-icon,
.home-stage .search-filter-card .filter-control-wrap--more .filter-control .filter-control__label { color: var(--forest-deep); }
.home-stage .search-filter-card .filter-control-wrap--more .filter-badge { background: var(--sea); color: #fff; }
.home-stage .search-filter-card .filter-control-wrap--save .search-alert-button { height: 44px; border-radius: 12px; }
.home-stage .search-filter-card .filter-control-wrap--save .search-alert-button [data-search-alert-label] { max-width: none; text-overflow: clip; }
.home-stage .filter-results-actions { display: block; padding: 0; }
.home-stage .filter-results-actions__status { padding: 10px 0 0; }
.home-stage .filter-status { color: var(--stage-soft); }
.home-stage .active-filter-row { margin-top: 14px; }
.home-stage .filters-shell .describe-understood { color: var(--stage-soft); }
.home-stage .describe-understood__lead,
.home-stage .describe-understood__zero-hint { color: var(--stage-soft); }
.home-stage .active-filter-clear,
.home-stage .describe-suggestion { color: var(--stage-mint); }
.empty-state .describe-understood__zero-hint {
  max-width: 48ch;
  margin: 17px auto 0;
  padding: 15px 17px;
  border: 1px solid #c8dbd4;
  border-radius: 9px;
  background: #edf5ee;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

/* nothing in the stage is truncated: rows scroll instead */
.home-stage .search-filter-card .filter-control__name,
.home-stage .search-filter-card .filter-control__label { overflow: visible; text-overflow: clip; }
.home-stage .filter-toolbar .segment-options { min-height: 48px; padding: 2px; }
.home-stage .filter-toolbar .segment-button { min-height: 44px; }

/* example searches */
.home-examples { margin-top: 24px; }
.home-examples__label { margin: 0 0 10px; color: var(--stage-sand); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-examples__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.home-examples__chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  font: 700 .95rem/1.3 "Vigia Manrope", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.home-examples__chip:hover { border-color: var(--stage-sand); background: rgb(255 255 255 / 16%); }
.home-examples__chip:focus-visible { outline: 3px solid var(--stage-sand); outline-offset: 2px; }

@media (max-width: 767px) {
  .site-main--home > .home-stage { --stage-gap-above: calc(var(--stage-gap) - 2px); --stage-gap-below: calc(var(--stage-gap) - 8px); padding: 16px 0 34px; margin-bottom: 14px; }
  .home-stage .catalog-updated--heading { right: 20px; bottom: 8px; }
  .home-stage .feed-heading--home-stage h1,
  [data-page="index"] .home-stage .feed-heading h1 { font-size: 1.625rem; line-height: 1.12; letter-spacing: -.03em; }
  .home-stage .feed-heading__summary { margin: 8px 0 0; }
  .home-stage .feed-heading__subtitle { font-size: .9375rem; line-height: 1.4; }
  .home-stage .home-zone-intro { font-size: .7rem; }
  .home-stage .describe-search__row { padding: 6px 6px 6px 14px; border-radius: 14px; }
  .home-stage .describe-search__field { min-height: 48px; padding-right: 50px; gap: 8px; }
  .home-stage .describe-search__field svg { display: none; }
  .home-stage .describe-search__field input { min-height: 48px; font-size: .9rem; }
  .home-stage .describe-search__row > button { inset: 6px 6px 6px auto; width: 44px; border-radius: 10px; }
  .home-stage .describe-search__helper { font-size: 13px; }
  .home-stage .filter-toolbar,
  .home-stage .search-filter-card .filter-toolbar {
    flex-wrap: nowrap;
    gap: 8px;
    margin: var(--stage-gap-below) -20px 0;
    padding: 2px 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--stage-mint) rgb(255 255 255 / 16%);
    scroll-padding-inline: 20px;
  }
  .home-stage .filter-toolbar[data-scroll-more="true"] { box-shadow: inset -18px 0 14px -12px rgb(139 227 214 / 72%); }
  .home-stage .filter-toolbar::-webkit-scrollbar { height: 4px; }
  .home-stage .filter-toolbar::-webkit-scrollbar-track { background: rgb(255 255 255 / 16%); }
  .home-stage .filter-toolbar::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--stage-mint); }
  .home-stage .filter-chips,
  .home-stage .search-filter-card .filter-toolbar > .filter-chips { display: contents; }
  .home-stage .filter-toolbar .segment-options { min-height: 48px; padding: 2px; border-radius: 999px; }
  .home-stage .filter-toolbar .segment-button { min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; font-size: .8125rem; }
  .home-stage .filter-toolbar .filter-control,
  .home-stage .browse-location { min-height: 48px; height: 48px; padding: 0 10px; gap: 6px; border-radius: 999px; font-size: .8125rem; }
  .home-stage .filter-toolbar .filter-control__name,
  .home-stage .search-filter-card .filter-control-wrap--more .filter-control__label { font-size: .8125rem; }
  .home-stage .search-filter-card .filter-control-wrap--more .filter-control { padding: 0 10px; }
  .home-stage .search-filter-card .filter-control-wrap--location { width: auto; order: 2; }
  .home-stage .search-filter-card .filter-control-wrap--more { position: static; }
  .home-stage .browse-location input { height: 44px; font-size: .8125rem; }
  .home-stage .search-filter-card .filter-control-wrap--save .search-alert-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 999px; }
  .home-examples { margin-top: 18px; }
  .home-examples__label { display: none; }
  .home-examples__list { flex-wrap: nowrap; margin: 0 -20px; padding: 0 20px 2px; overflow-x: auto; scrollbar-width: none; gap: 8px; scroll-padding-inline: 20px; }
  .home-stage .home-examples__list[data-scroll-more="true"] { box-shadow: inset -18px 0 14px -12px rgb(139 227 214 / 72%); }
  .home-examples__list::-webkit-scrollbar { display: none; }
  .home-examples__list li { flex: 0 0 auto; }
  .home-examples__chip { min-height: 44px; padding: 8px 12px; font-size: .8125rem; white-space: nowrap; }
}

/* Approved listing, results and directory hierarchy. */
.results-toolbar:has(.browse-sort) { align-items: center; gap: 12px 20px; }
.results-toolbar:has(.browse-sort) h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.results-toolbar:has(.browse-sort) .results-toolbar__summary { flex: 1 1 auto; align-items: baseline; gap: 8px; min-width: 0; color: var(--muted); font-size: 1rem; line-height: 1.4; white-space: normal; }
.results-toolbar:has(.browse-sort) .results-count__value { color: var(--forest-deep); font: 700 1.5rem/1.15 "Vigia Manrope", system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.results-toolbar:has(.browse-sort) .results-toolbar__summary [data-result-count] { display: inline-flex; align-items: baseline; gap: 6px; }
.results-toolbar:has(.browse-sort) .browse-sort { flex: 0 0 auto; gap: 8px; margin-left: auto; font-size: .875rem; }
.results-toolbar:has(.browse-sort) .browse-sort select { width: 230px; min-height: 44px; font-size: .875rem; }

@media (max-width: 767px) {
  .listing-card__body { padding: 16px; }
  .agent-directory-card { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 24px; }
  .agent-directory-card__identity { grid-column: 1 / -1; }
  .agent-directory-address { grid-column: 1 / -1; }
  .agent-directory-rating { grid-column: 1; grid-row: 3; }
  .agent-directory-card__profile { grid-column: 2; grid-row: 3; }

  body:not(:has(.home-stage)) .filters-shell .filter-toolbar { display: flex; flex-flow: row wrap; align-items: center; gap: 8px; }
  body:not(:has(.home-stage)) .filters-shell .filter-chips { display: flex; flex: 1 1 100%; flex-wrap: wrap; width: 100%; min-width: 0; gap: 8px; overflow: visible; scroll-snap-type: none; scrollbar-width: auto; padding: 0; }
  body:not(:has(.home-stage)) .filters-shell .filter-chips .filter-control-wrap { flex: 0 0 auto; width: auto; scroll-snap-align: none; }
  body:not(:has(.home-stage)) .filters-shell .filter-chips .filter-control { width: auto; min-height: 44px; height: auto; max-width: 100%; }
  body:not(:has(.home-stage)) .filters-shell .filter-chips .filter-control-wrap--location { flex: 1 1 100%; width: 100%; }
  body:not(:has(.home-stage)) .filters-shell .search-alert-wrap { flex: 0 0 auto; }

  .results-toolbar:has(.browse-sort) { flex-direction: column; align-items: stretch; gap: 8px; margin-block: 8px 14px; }
  .results-toolbar:has(.browse-sort) .results-toolbar__summary { flex: 0 0 auto; font-size: 1rem; }
  .results-toolbar:has(.browse-sort) .results-toolbar__summary [data-result-count] { flex-wrap: wrap; }
  .results-toolbar:has(.browse-sort) .results-toolbar__summary .results-count-photos:not([hidden]) { display: inline; }
  .results-toolbar:has(.browse-sort) .browse-sort { display: flex; flex: 0 0 auto; justify-content: space-between; width: 100%; margin: 0; font-size: .875rem; }
  .results-toolbar:has(.browse-sort) .browse-sort select { flex: 0 1 230px; width: min(100%, 230px); max-width: 230px; min-height: 44px; font-size: .875rem; }
}


/* Stable filter chrome (Peter, 6 Nov 2026): applying a filter changes the results, never the controls.
   1. Controls whose text changes with the selection keep one width in every state.
   2. The Clear button always owns its slot (invisible while no filter is active) instead of pushing the bar.
   3. The shared filter bar arrives by fetch: its final height is held from the first paint (shell + 8px margin). */
body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--transaction { width: 112px; }
body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--price { width: 168px; max-width: none; }
body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--more { width: 116px; }
body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--transaction .filter-control,
body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--price .filter-control,
body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--more .filter-control { width: 100%; max-width: none; }
.search-filter-card [data-clear-filters][hidden] { display: inline-flex !important; visibility: hidden; }
@media (min-width: 1024px) {
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--save { width: 112px; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--save .search-alert-button { width: 100%; max-width: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--transaction { width: 100px; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--location { width: 124px; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--price { width: 132px; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--more { width: 104px; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-control-wrap--save { width: 96px; }
  body .site-main:not(.site-main--home) .search-filter-card [data-clear-filters] { padding-inline: 4px; min-width: 70px; }
}
@media (max-width: 1023px) {
  /* Narrow layouts: Clear sits in the last row of the bar, on top of the free space, not in a row of its own. */
  body .site-main:not(.site-main--home) .search-filter-card { position: relative; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) { position: absolute; right: 6px; bottom: 6px; z-index: 1; display: block; width: auto; padding: 0; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) .filter-actions__buttons { display: flex; width: auto; margin: 0; }
  body .site-main:not(.site-main--home) .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) .filter-actions__buttons button { flex: 0 0 auto; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* One toolbar row: the icon-only Alert button sits at the far right, so Clear goes next to it. */
  body .site-main:not(.site-main--home) .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) { right: 56px; }
}
[data-filter-fragment], html[data-browse-initial-filtered] body [data-filter-fragment] { display: flow-root; min-block-size: 80px; }
@media (max-width: 1199px) { [data-filter-fragment], html[data-browse-initial-filtered] body [data-filter-fragment] { min-block-size: 70px; } }
@media (max-width: 1023px) { [data-filter-fragment], html[data-browse-initial-filtered] body [data-filter-fragment] { min-block-size: 117px; } }
@media (max-width: 767px) {
  /* On phones the results carry their own 8px top margin: keep the bar's margin out of the wrapper so the gap stays 8px. */
  [data-filter-fragment], html[data-browse-initial-filtered] body [data-filter-fragment] { min-block-size: 267px; }
  [data-filter-fragment] > .filters-shell[data-filters] { margin-bottom: 0; }
}
/* Keep the active-filter row in flow while empty so adding/removing chips never moves results. */
.filters-shell[data-filters] .active-filter-row,
.home-stage .active-filter-row {
  display: flex;
  box-sizing: border-box;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin-top: 5px;
  padding-inline: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.filters-shell[data-filters] .active-filter-row::-webkit-scrollbar,
.home-stage .active-filter-row::-webkit-scrollbar { display: none; }
.filters-shell[data-filters] .active-filter-row[hidden],
.home-stage .active-filter-row[hidden] { display: flex !important; visibility: hidden; }
.filters-shell[data-filters] .active-filter-chips,
.home-stage .active-filter-chips { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 5px; }
@media (max-width: 767px) {
  .filters-shell[data-filters] .active-filter-row,
  .home-stage .active-filter-row { height: 47px; min-height: 47px; }
}
/* Home hero: same rules for its own pills. */
.home-stage .search-filter-card .filter-control-wrap--type { width: 112px; }
.home-stage .search-filter-card .filter-control-wrap--bedrooms { width: 164px; }
.home-stage .search-filter-card .filter-control-wrap--price { width: 124px; }
.home-stage .search-filter-card .filter-control-wrap--more { width: 140px; }
.home-stage .search-filter-card .filter-control-wrap--type .filter-control,
.home-stage .search-filter-card .filter-control-wrap--bedrooms .filter-control,
.home-stage .search-filter-card .filter-control-wrap--price .filter-control,
.home-stage .search-filter-card .filter-control-wrap--more .filter-control { width: 100%; }
@media (min-width: 1024px) {
  .home-stage .search-filter-card { position: relative; }
  .home-stage .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) { position: absolute; right: 0; bottom: 0; z-index: 1; display: block; width: auto; padding: 0; }
  .home-stage .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) .filter-actions__buttons { display: flex; width: auto; margin: 0; }
  .home-stage .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) .filter-actions__buttons button { flex: 0 0 auto; min-height: 44px; }
}

/* Mobile browse: keep the describe field, compact filters and results in one short stack. */
.filters-shell[data-filters] .location-chip-control { display: none !important; }
@media (max-width: 767px) {
  .filters-shell[data-filters] { margin: 0; border: 0; }
  .filters-shell[data-filters] .filters-panel { padding: 0; }
  .search-filter-card { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .search-filter-card > .describe-search { display: block; width: 100%; min-width: 0; padding: 0; }
  .search-filter-card > [data-filter-form] { display: block; width: 100%; margin-top: 3px; }
  .search-filter-card .filter-toolbar { display: block; padding: 0; border: 0; }
  .search-filter-card .filter-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 2px 2px 3px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .search-filter-card .filter-chips::-webkit-scrollbar { display: none; }
  .search-filter-card .filter-chips[data-scroll-more="true"] { box-shadow: inset -20px 0 15px -13px rgb(11 127 130 / 48%); }
  .search-filter-card .filter-control-wrap { display: block; flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .search-filter-card .filter-control-wrap--location,
  .search-filter-card .filter-control-wrap--location.has-selection,
  .search-filter-card .filter-control-wrap--transaction,
  .search-filter-card .filter-control-wrap--transaction.has-selection,
  .search-filter-card .filter-control-wrap--price,
  .search-filter-card .filter-control-wrap--bedrooms {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: max-content !important;
  }
  .search-filter-card .filter-control-wrap--toggle { order: 0; }
  .search-filter-card .filter-control-wrap--transaction { order: 1; }
  .search-filter-card .filter-control-wrap--location { order: 2; }
  .search-filter-card .filter-control-wrap--price { order: 3; }
  .search-filter-card .filter-control-wrap--bedrooms { order: 4; }
  .search-filter-card .filter-control-wrap--bedrooms[hidden] { display: block !important; }
  .search-filter-card .filter-control-wrap--more { display: none !important; }
  .search-filter-card .filter-control-wrap--save { display: none; }
  .search-filter-card .filter-control-wrap--type,
  .search-filter-card .filter-control-wrap--furnishing { display: none !important; }
  .search-filter-card .filter-control-wrap--transaction > .segment-control { display: none; }
  .search-filter-card .filter-control--transaction-mobile { display: flex; min-width: 0; }
  .search-filter-card .filter-control,
  .search-filter-card .filter-control-wrap--toggle .filter-control {
    width: auto;
    height: 40px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .search-filter-card .filter-control:hover { background: var(--surface-muted); }
  .search-filter-card .filter-control__text { display: flex; align-items: baseline; gap: 4px; }
  .search-filter-card .filter-control__name,
  .search-filter-card .filter-control__label { display: inline; max-width: 150px; font-size: 13px; line-height: 1; }
  .search-filter-card .filter-control__label:empty { display: none; }
  .search-filter-card .filter-control--transaction-mobile .filter-control__name { display: none; }
  .search-filter-card .filter-control-wrap--toggle .filter-icon,
  .search-filter-card .filter-control-wrap--location .filter-icon { width: 16px; height: 16px; }
  .search-filter-card .filter-control-wrap--toggle .filter-badge { position: static; min-width: 18px; height: 18px; margin: 0; border-radius: 6px; background: var(--forest); color: #fff; font-size: 11px; }
  .search-filter-card .filter-badge[hidden] { display: none; }
  .search-filter-card .filter-control-wrap--toggle .filter-control[aria-expanded="true"] { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
  .search-filter-card .filter-control-wrap--location .browse-location { display: none; }
  .search-filter-card .filter-control-wrap--location .location-chip-control { display: flex !important; width: auto; max-width: 156px; }
  .search-filter-card .filter-control-wrap--location .location-chip-control > span { overflow: hidden; max-width: 104px; text-overflow: ellipsis; }
  .search-filter-card .filter-control-wrap--location.has-selection > .location-chip-control { padding-right: 31px; border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
  .search-filter-card .filter-control-wrap--location .filter-inline-clear { right: 2px; width: 28px; height: 36px; color: var(--forest); }
  .search-filter-card .filter-control-wrap--location .filter-inline-clear:focus-visible { outline-offset: 0; }
  .search-filter-card .filter-control-wrap--price .filter-control { max-width: 142px; }
  .search-filter-card .filter-control-wrap--bedrooms .filter-control { max-width: 138px; }
  .search-filter-card .active-filter-clear { order: 5; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 7px; color: var(--forest-deep); font-size: 13px; }
  .search-filter-card .active-filter-clear[hidden] { display: none !important; }
  .search-filter-card .filter-results-actions:not(:has(.filter-status:not(:empty))) { display: none; }
  .filters-shell[data-filters] .active-filter-row[hidden] { display: none !important; }
  .filters-shell[data-filters] .active-filter-row:not([hidden]) { height: 42px; min-height: 42px; margin-top: 2px; }
  [data-filter-fragment], html[data-browse-initial-filtered] body [data-filter-fragment] { min-block-size: 92px; }
  [data-filter-fragment] > .filters-shell[data-filters] { margin-bottom: 0; }
  .results-toolbar { margin-block: 1px 10px; }
  .results-toolbar__summary { align-items: center; gap: 5px; }
  .results-toolbar__summary .filter-control-wrap--save { display: inline-flex; flex: 0 0 auto; margin: 0; padding: 0; }
  .results-toolbar__summary .search-alert-button {
    display: inline-flex;
    min-height: 36px;
    height: 36px;
    max-width: 190px;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
  }
  .results-toolbar__summary .search-alert-button svg { width: 15px; height: 15px; }
  .results-toolbar__summary .search-alert-button [data-search-alert-label] {
    position: static;
    width: auto;
    height: auto;
    overflow: hidden;
    clip: auto;
    clip-path: none;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .browse-sort select { width: 132px; }
}
