@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap");

:root {
  --navy: #304b55;
  --navy-soft: #496873;
  --cream: #f8f2e9;
  --paper: #fbfaf7;
  --white: #fff;
  --ink: #243943;
  --muted: #72808b;
  --line: #d7dcd9;
  --green: #83c775;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }

.catalog-header {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 104px;
  padding: 0 clamp(24px, 5.2vw, 96px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.catalog-brand { display: block; width: 156px; }
.catalog-brand img { display: block; width: 100%; }
.catalog-nav { display: flex; justify-content: center; gap: clamp(24px, 3.6vw, 66px); }
.catalog-nav a, .catalog-contact a { color: var(--navy); text-decoration: none; }
.catalog-nav a { font-size: 10px; font-weight: 600; letter-spacing: .16em; white-space: nowrap; }
.catalog-contact { display: flex; align-items: center; gap: 20px; }
.catalog-contact a { display: grid; place-items: center; width: 34px; height: 34px; }
.catalog-nav a:focus-visible, .catalog-contact a:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; }

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 72px;
  padding: clamp(68px, 8vw, 138px) clamp(24px, 5.2vw, 96px) clamp(72px, 7vw, 118px);
  background: var(--cream);
}
.catalog-kicker { margin: 0 0 32px; font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.catalog-hero h1 { margin: 0; font-size: clamp(70px, 9.2vw, 170px); font-weight: 900; letter-spacing: -.07em; line-height: .83; }
.catalog-hero h1 span { display: block; white-space: nowrap; }
.catalog-hero h1 span + span { padding-left: 7.5vw; }
.catalog-hero-copy { padding-bottom: 8px; }
.catalog-hero-copy p { margin: 0 0 34px; font-size: 10px; letter-spacing: .14em; line-height: 1.75; }
.catalog-hero-copy span { display: block; padding-top: 19px; border-top: 1px solid var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .14em; }

.catalog-content {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: clamp(34px, 4vw, 72px);
  padding: clamp(56px, 6vw, 100px) clamp(24px, 5.2vw, 96px) 120px;
  background: var(--white);
}
.catalog-mobile-actions { display: none; }
.catalog-sidebar { align-self: start; position: sticky; top: 24px; }
.catalog-sidebar form { display: grid; gap: 24px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.filter-heading p { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.filter-heading button { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.catalog-sidebar label { display: grid; gap: 10px; min-width: 0; }
.catalog-sidebar label > span { font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.catalog-sidebar input, .catalog-sidebar select {
  width: 100%; min-width: 0; height: 46px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 0 4px; outline: 0; background: transparent; color: var(--ink); font-size: 12px;
}
.catalog-sidebar input:focus, .catalog-sidebar select:focus { border-bottom-color: var(--navy); }
.catalog-sidebar input::placeholder { color: #9ba4aa; }
.filter-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-filter-group { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.catalog-filter-group legend { padding: 0; font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.filter-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 38px; border: 1px solid var(--line); border-radius: 3px; padding: 0 12px;
  background: var(--white); color: var(--navy); font-size: 9px; font-weight: 600; letter-spacing: .08em;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.filter-chip:hover, .filter-chip:focus-visible { border-color: var(--navy); outline: 0; }
.filter-chip.is-selected { border-color: var(--navy); background: var(--navy); box-shadow: none; color: var(--white); }
.filter-chip.is-selected::before { content: none; }
.catalog-apply {
  min-height: 54px; border: 1px solid var(--navy); margin-top: 6px; padding: 0 20px;
  background: var(--navy); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .15em;
  transition: color 180ms ease, background-color 180ms ease;
}
.catalog-apply:active { transform: scale(.985); }

.catalog-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 58px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.catalog-toolbar p { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .09em; }
.catalog-toolbar label { display: flex; align-items: center; gap: 14px; }
.catalog-toolbar label span { font-size: 8px; font-weight: 600; letter-spacing: .16em; }
.catalog-toolbar select { border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .08em; outline: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 22px; padding-top: 32px; }
.catalog-card { min-width: 0; }
.catalog-card a { color: inherit; text-decoration: none; }
.catalog-card-media { position: relative; aspect-ratio: 1.07; overflow: hidden; margin: 0; background: #e7e8e5; }
.catalog-card-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease, opacity 450ms ease; }
.catalog-card-media img:nth-child(2) { opacity: 0; }
.catalog-card-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 0; background: transparent; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, .72); }
.catalog-card-count svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.catalog-card-count b { font: inherit; }
.catalog-card-copy { padding-top: 18px; }
.catalog-card-meta { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 11px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .14em; }
.catalog-card h2 { min-height: 2.15em; margin: 0; font-size: clamp(21px, 1.6vw, 30px); font-weight: 500; letter-spacing: -.045em; line-height: 1.06; }
.catalog-card-location { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.catalog-card-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; min-height: 17px; margin: 17px 0 0; color: var(--muted); font-size: 9px; }
.catalog-card-price { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.catalog-card a:focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; }
.catalog-empty { padding: 96px 0; text-align: center; }
.catalog-empty p { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .15em; }
.catalog-empty span { color: var(--muted); font-size: 12px; }
.catalog-load-more { display: block; min-width: 260px; min-height: 54px; border: 1px solid var(--navy); margin: 72px auto 0; padding: 0 30px; background: transparent; color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.catalog-load-more[hidden] { display: none; }
.catalog-load-more:active { transform: scale(.985); }

@media (hover: hover) and (pointer: fine) {
  .catalog-nav a:hover { opacity: .58; }
  .catalog-card a:hover .catalog-card-media img:first-child { transform: scale(1.025); opacity: 0; }
  .catalog-card a:hover .catalog-card-media img:nth-child(2) { transform: scale(1.025); opacity: 1; }
  .catalog-apply:hover { background: transparent; color: var(--navy); }
  .catalog-load-more:hover { background: var(--navy); color: var(--white); }
}

@media (max-width: 1240px) {
  .catalog-header { grid-template-columns: 180px minmax(0, 1fr) auto; }
  .catalog-nav { gap: 22px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .catalog-header { grid-template-columns: 1fr auto; min-height: 88px; padding: 0 24px; }
  .catalog-brand { width: 144px; }
  .catalog-nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; gap: 26px; overflow-x: auto; padding: 0 0 18px; }
  .catalog-nav a { flex: 0 0 auto; }
  .catalog-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .catalog-hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 30px; }
  .catalog-hero-copy p { margin: 0; }
  .catalog-content { grid-template-columns: minmax(0, 1fr); }
  .catalog-mobile-actions { display: block; }
  .catalog-mobile-actions button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; border: 1px solid var(--navy); background: var(--navy); color: white; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
  .catalog-sidebar { display: none; position: static; }
  .catalog-sidebar.is-open { display: block; padding: 26px 0 40px; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .catalog-header { padding: 0 18px; }
  .catalog-brand { width: 130px; }
  .catalog-contact { gap: 10px; }
  .catalog-nav { gap: 22px; }
  .catalog-hero { padding: 58px 20px 64px; }
  .catalog-kicker { margin-bottom: 24px; font-size: 8px; line-height: 1.6; }
  .catalog-hero h1 { font-size: clamp(54px, 17.5vw, 82px); }
  .catalog-hero h1 span + span { padding-left: 3vw; }
  .catalog-hero-copy { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .catalog-content { gap: 0; padding: 28px 18px 82px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .catalog-toolbar label { width: 100%; justify-content: space-between; }
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; padding-top: 24px; }
  .catalog-card-media { aspect-ratio: 1.08; }
  .filter-pair { grid-template-columns: minmax(0, 1fr); }
  .catalog-card h2 { min-height: 0; font-size: 27px; }
  .catalog-load-more { width: 100%; min-width: 0; }
}

/* Image-led catalog hero: keep the browsing page quiet and let the property speak. */
.catalog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-hero {
  display: block;
  padding: 0;
  background: var(--paper);
}

.catalog-hero-media {
  position: relative;
  width: 100%;
  height: clamp(320px, 38vw, 560px);
  margin: 0;
  overflow: hidden;
  background: #102a43;
}

.catalog-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 23, 40, .08), rgba(5, 23, 40, .14));
  content: "";
  pointer-events: none;
}

.catalog-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.025);
  animation: catalog-hero-drift 18s ease-in-out infinite alternate;
}

@keyframes catalog-hero-drift {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(-.8%, -0.6%, 0); }
}

@media (max-width: 640px) {
  .catalog-hero-media {
    height: clamp(280px, 68vw, 430px);
  }

  .catalog-hero-media img {
    object-position: 62% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-hero-media img { animation: none; transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .catalog-card-media img, .catalog-apply { transition: none; }
}

/* Interactive catalogue layer */
.catalog-toolbar-actions { display: flex; align-items: center; gap: 18px; }
.catalog-view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); background: var(--paper); }
.view-switch-button { min-height: 31px; padding: 0 11px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.view-switch-button.is-active { background: var(--navy); color: #fff; }
.favorites-filter { min-height: 37px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--navy); cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .12em; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.favorites-filter span { margin-left: 5px; color: var(--muted); }
.favorites-filter.is-active { background: var(--navy); color: #fff; }
.favorites-filter.is-active span { color: rgba(255,255,255,.7); }
.favorites-filter:hover { transform: translateY(-1px); }
.catalog-card-media-wrap { position: relative; }
.catalog-card-actions { position: absolute; z-index: 3; top: 14px; right: 14px; left: 14px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.catalog-card-actions button { pointer-events: auto; }
.card-icon-button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); font-size: 20px; line-height: 1; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.card-icon-button + .card-icon-button { margin-left: 7px; }
.card-icon-button.is-active { background: var(--navy); color: #fff; }
.card-icon-button:hover { transform: scale(1.06); }
.card-quick-view { margin-left: auto; padding: 10px 12px; border: 1px solid rgba(255,255,255,.82); background: rgba(255,255,255,.9); color: var(--navy); font-size: 9px; font-weight: 700; letter-spacing: .1em; opacity: 0; transform: translateY(-4px); transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease; }
.catalog-card-media-wrap:hover .card-quick-view, .card-quick-view:focus-visible { opacity: 1; transform: translateY(0); }
.catalog-card-copy { display: block; color: inherit; text-decoration: none; }
.catalog-card-copy:hover h2 { color: var(--navy-soft); }
.catalog-map-view { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 86px); min-height: 560px; padding: 10px 0 0; }
.catalog-map-copy { display: flex; flex-direction: column; justify-content: center; }
.catalog-map-copy h2 { margin: 14px 0 22px; color: var(--navy); font-size: clamp(42px, 5vw, 76px); font-weight: 500; letter-spacing: -.075em; line-height: .92; }
.catalog-map-copy h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.catalog-map-copy > p:not(.catalog-kicker) { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.catalog-map-copy > a { width: fit-content; margin-top: 28px; padding-bottom: 7px; border-bottom: 1px solid var(--navy); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.catalog-map-frame { position: relative; min-height: 520px; overflow: hidden; background: #dde6e3; }
.catalog-map-frame iframe { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; filter: saturate(.72) contrast(.95); }
.catalog-map-frame > span { position: absolute; right: 16px; bottom: 14px; padding: 8px 10px; background: rgba(255,255,255,.9); color: var(--navy); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.compare-bar { position: fixed; z-index: 20; right: 24px; bottom: 24px; left: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.45); background: rgba(48,75,85,.97); box-shadow: 0 18px 50px rgba(15,35,48,.22); color: #fff; }
.compare-bar[hidden] { display: none; }
.compare-bar strong, .compare-bar span { display: block; }
.compare-bar strong { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.compare-bar span { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 12px; }
.compare-bar-actions { display: flex; gap: 10px; }
.compare-bar-actions button { min-height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.compare-bar-actions button:first-child { border-color: #fff; background: #fff; color: var(--navy); }
.quick-view-dialog, .compare-dialog { width: min(920px, calc(100vw - 32px)); padding: 0; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 26px 90px rgba(0,20,36,.28); }
.quick-view-dialog::backdrop, .compare-dialog::backdrop { background: rgba(9,29,39,.48); backdrop-filter: blur(5px); }
.quick-view-dialog { grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); }
.quick-view-dialog[open] { display: grid; animation: dialog-enter 180ms var(--ease-out, cubic-bezier(.23,1,.32,1)); }
.quick-view-media { min-height: 440px; background: #e5ebe8; }
.quick-view-media img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.quick-view-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px; }
.quick-view-copy h2 { margin: 12px 0 9px; color: var(--navy); font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.065em; line-height: .95; }
.quick-view-copy > p:not(.catalog-kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.quick-view-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.quick-view-stats span { padding: 7px 9px; border: 1px solid var(--line); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.quick-view-copy > strong { color: var(--ink); font-size: 22px; font-weight: 500; }
.quick-view-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quick-view-actions a { padding: 12px 14px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-decoration: none; }
.quick-view-actions a.whatsapp-action { background: var(--green); }
.dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); cursor: pointer; font-size: 23px; line-height: 1; }
.compare-dialog { padding: 34px; }
.compare-dialog-heading { display: flex; justify-content: space-between; gap: 24px; }
.compare-dialog-heading .dialog-close { position: static; flex: 0 0 auto; }
.compare-dialog-heading h2 { margin: 12px 0 28px; color: var(--navy); font-size: clamp(36px, 5vw, 68px); font-weight: 500; letter-spacing: -.075em; line-height: .9; }
.compare-table { overflow-x: auto; border-top: 1px solid var(--line); }
.compare-table-header, .compare-table-row { display: grid; grid-template-columns: 150px repeat(3, minmax(150px, 1fr)); min-width: 620px; }
.compare-table-header { padding: 14px 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.compare-table-header strong { padding: 0 14px; color: var(--navy); font-size: 12px; letter-spacing: 0; }
.compare-table-row { border-top: 1px solid var(--line); }
.compare-table-row > * { padding: 16px 14px; }
.compare-table-row span { padding-left: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.compare-table-row b { color: var(--ink); font-size: 13px; font-weight: 500; }
@keyframes dialog-enter { from { opacity: 0; transform: scale(.97) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 760px) {
  .catalog-toolbar-actions { width: 100%; justify-content: space-between; }
  .catalog-map-view { grid-template-columns: 1fr; min-height: 0; }
  .catalog-map-frame, .catalog-map-frame iframe { min-height: 360px; }
  .compare-bar { right: 12px; bottom: 12px; left: 12px; align-items: flex-start; flex-direction: column; padding: 14px; }
  .compare-bar-actions { width: 100%; }
  .compare-bar-actions button { flex: 1; }
  .quick-view-dialog[open] { display: block; max-height: calc(100vh - 32px); overflow-y: auto; }
  .quick-view-media, .quick-view-media img { min-height: 260px; height: 260px; }
  .quick-view-copy { padding: 28px 24px 30px; }
  .compare-dialog { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-icon-button, .card-quick-view, .favorites-filter, .quick-view-dialog[open] { transition: none; animation: none; }
}

/* Editorial property metrics and richer quick view */
.catalog-card-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.property-metric { display: grid; min-width: 0; justify-items: start; gap: 3px; padding: 0 10px; border-right: 1px solid var(--line); }
.property-metric:first-child { padding-left: 0; }
.property-metric:last-child { padding-right: 0; border-right: 0; }
.property-metric i { display: block; width: 20px; height: 20px; color: var(--navy); }
.property-metric i svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.25; }
.property-metric b { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.1; }
.property-metric small { overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.quick-view-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); overflow: auto; }
.quick-view-media { display: flex; align-self: start; min-height: 0; flex-direction: column; padding: 22px; background: #e6ebe7; }
.quick-view-image-frame { position: relative; flex: 0 0 auto; height: min(54vh, 500px); min-height: 340px; margin: 0; overflow: hidden; background: #cfd9d4; }
.quick-view-image-frame img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.quick-view-image-count { position: absolute; right: 16px; bottom: 15px; padding: 7px 9px; background: rgba(255,255,255,.9); color: var(--navy); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.quick-view-arrow { position: absolute; top: 50%; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); cursor: pointer; font-size: 17px; transform: translateY(-50%); transition: background-color 160ms ease, transform 160ms ease; }
.quick-view-arrow:hover:not(:disabled) { background: #fff; transform: translateY(-50%) scale(1.05); }
.quick-view-arrow:disabled { cursor: default; opacity: .45; }
.quick-view-prev { left: 16px; }
.quick-view-next { right: 16px; }
.quick-view-thumbs { display: flex; gap: 7px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.quick-view-thumb { flex: 0 0 62px; height: 48px; padding: 0; overflow: hidden; border: 1px solid transparent; background: transparent; cursor: pointer; opacity: .62; transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease; }
.quick-view-thumb.is-active, .quick-view-thumb:hover { border-color: var(--navy); opacity: 1; transform: translateY(-1px); }
.quick-view-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.quick-view-copy { justify-content: flex-start; padding: 44px 46px 38px; }
.quick-view-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quick-view-eyebrow .catalog-kicker { margin: 0; }
.quick-view-eyebrow > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.quick-view-copy h2 { max-width: 390px; margin: 8px 0 3px; }
.quick-view-copy > p:not(.catalog-kicker):not(.quick-view-description) { margin: 0; }
.quick-view-description { max-width: 390px; margin: 18px 0 0 !important; color: var(--muted); font-size: 12px !important; line-height: 1.55 !important; }
.quick-view-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; margin: 28px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-view-metrics .property-metric { padding-left: 0; border-right: 0; }
.quick-view-metrics .property-metric:nth-child(odd) { border-right: 1px solid var(--line); }
.quick-view-metrics .property-metric:nth-child(even) { padding-left: 18px; }
.quick-view-metrics .property-metric:nth-child(n+3) { padding-top: 16px; }
.quick-view-metrics .property-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
.quick-view-metrics .property-metric:nth-child(3) { padding-left: 0; }
.quick-view-metrics .property-metric i { width: 23px; height: 23px; }
.quick-view-metrics .property-metric b { font-size: 17px; }
.quick-view-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.quick-view-price span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.quick-view-price strong { color: var(--ink); font-size: 22px; font-weight: 500; white-space: nowrap; }
.compare-table-header { align-items: stretch; }
.compare-property-heading { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 0 14px 12px; }
.compare-property-heading img { display: block; width: 100%; height: 110px; object-fit: cover; }
.compare-property-heading strong { padding: 0; color: var(--navy); font-size: 12px; letter-spacing: 0; line-height: 1.2; }
@media (max-width: 760px) {
  .catalog-card-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .catalog-card-stats .property-metric:nth-child(2) { border-right: 0; }
  .catalog-card-stats .property-metric:nth-child(n+3) { padding-top: 10px; border-top: 1px solid var(--line); }
  .catalog-card-stats .property-metric:nth-child(3) { padding-left: 0; }
  .quick-view-dialog[open] { display: block; }
  .quick-view-media { min-height: 0; padding: 12px; }
  .quick-view-image-frame, .quick-view-image-frame img { min-height: 0; height: 300px; }
  .quick-view-copy { padding: 30px 24px 32px; }
  .quick-view-description { max-width: none; }
  .compare-property-heading img { height: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-view-arrow, .quick-view-thumb { transition: none; }
}

/* Mobile buying catalogue: editorial property cards with an inline gallery. */
.catalog-card-mobile-carousel,
.catalog-card-mobile-location {
  display: none;
}

.catalog-card-price > span,
.catalog-card-price > strong {
  display: inline;
}

/* Buying catalogue cards: quiet Avenir-like typography across the catalogue. */
.catalog-card {
  font-family: "DM Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.catalog-card h2,
.catalog-card .catalog-card-price > strong {
  font-weight: 400;
  letter-spacing: -.055em;
}

.catalog-card .catalog-card-type,
.catalog-card .catalog-card-location,
.catalog-card .catalog-card-price > span,
.catalog-card .property-metric b,
.catalog-card .property-metric small {
  font-weight: 400;
}

@media (max-width: 760px) {
  .catalog-content {
    padding-right: 30px;
    padding-left: 30px;
  }

  .catalog-grid {
    gap: 34px;
    padding-top: 24px;
  }

  .catalog-card {
    width: calc(100% - 12px);
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #aeb4b1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(36, 57, 67, .05);
  }

  .catalog-card-media-wrap {
    overflow: hidden;
    background: #e8e9e6;
  }

  .catalog-card-media {
    aspect-ratio: 1.28 / 1;
    border-radius: 21px 21px 0 0;
  }

  .catalog-card-media img:nth-child(2),
  .catalog-card-count {
    display: none;
  }

  .catalog-card-actions {
    top: 14px;
    right: 14px;
    left: 14px;
    justify-content: flex-end;
  }

  .catalog-card-actions .card-quick-view {
    display: none;
  }

  .catalog-card-actions .card-icon-button {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, .88);
  }

  .catalog-card-mobile-carousel {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 13px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
  }

  .catalog-card-mobile-carousel > button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #3f4140;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    pointer-events: auto;
  }

  .catalog-card-mobile-carousel > button:hover,
  .catalog-card-mobile-carousel > button:focus-visible {
    background: #fff;
    outline: 2px solid rgba(48, 75, 85, .4);
    outline-offset: 2px;
  }

  .mobile-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    pointer-events: auto;
  }

  .mobile-carousel-dot {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(77, 82, 81, .42);
    cursor: pointer;
  }

  .mobile-carousel-dot.is-active,
  .mobile-carousel-dot:hover,
  .mobile-carousel-dot:focus-visible {
    background: #fff;
    outline: 0;
  }

  .catalog-card-copy {
    padding: 20px 22px 23px;
  }

  .catalog-card-meta {
    display: grid;
    justify-content: start;
    gap: 8px;
    margin-bottom: 11px;
  }

  .catalog-card-code {
    order: -1;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8e9e7;
    color: #4b4d4c;
    font-size: 11px;
    letter-spacing: .02em;
  }

  .catalog-card-type {
    color: #4b4d4c;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .catalog-card h2 {
    min-height: 0;
    color: #3f4140;
    font-size: clamp(25px, 6.7vw, 33px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: 1.04;
  }

  .catalog-card-location {
    margin-top: 4px;
    color: #4b4d4c;
    font-size: 15px;
    line-height: 1.25;
  }

  .catalog-card-desktop-location {
    display: none;
  }

  .catalog-card-mobile-location {
    display: inline;
  }

  .catalog-card-stats {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0;
    min-height: 0;
    margin-top: 21px;
    overflow-x: auto;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
    color: #3f4140;
  }

  .catalog-card-stats::-webkit-scrollbar {
    display: none;
  }

  .catalog-card-stats .property-metric,
  .catalog-card-stats .property-metric:first-child,
  .catalog-card-stats .property-metric:last-child,
  .catalog-card-stats .property-metric:nth-child(n+3) {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-top: 0;
    white-space: nowrap;
  }

  .catalog-card-stats .property-metric:not(:first-child)::before {
    margin: 0 6px 0 5px;
    color: #3f4140;
    content: "•";
    font-size: 16px;
    line-height: 1;
  }

  .catalog-card-stats .property-metric i {
    display: none;
  }

  .catalog-card-stats .property-metric b {
    color: #3f4140;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
  }

  .catalog-card-stats .property-metric small {
    overflow: visible;
    color: #3f4140;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-overflow: clip;
    text-transform: none;
    white-space: nowrap;
  }

  .catalog-card-stats .property-metric:first-child small {
    display: none;
  }

  .catalog-card-price {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0 !important;
    box-shadow: none;
    color: #3f4140;
  }

  .catalog-card-price > span {
    color: #3f4140;
    font-size: 15px;
    font-weight: 600;
  }

  .catalog-card-price > strong {
    color: #3f4140;
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 500;
    letter-spacing: -.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card-mobile-carousel > button,
  .mobile-carousel-dot { transition: none; }
}

/* Desktop buying catalogue: the mobile card language, with roomier proportions. */
@media (min-width: 761px) {
  .catalog-grid {
    gap: 42px 24px;
  }

  .catalog-card {
    overflow: hidden;
    border: 1px solid #e0e3e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 57, 67, .045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  .catalog-card-media-wrap {
    overflow: hidden;
    border-radius: 17px 17px 0 0;
  }

  .catalog-card-media {
    aspect-ratio: 1.28 / 1;
  }

  .catalog-card-copy {
    padding: 20px 20px 22px;
  }

  .catalog-card-meta {
    align-items: center;
    margin-bottom: 9px;
  }

  .catalog-card h2 {
    min-height: 2.05em;
    font-size: clamp(22px, 1.5vw, 29px);
    line-height: 1.04;
  }

  .catalog-card-location {
    margin-top: 5px;
    font-size: 11px;
  }

  .catalog-card-stats {
    display: flex;
    align-items: stretch;
    margin-top: 18px;
    padding-top: 12px;
  }

  .catalog-card-stats .property-metric {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .catalog-card-stats .property-metric i {
    width: 18px;
    height: 18px;
  }

  .catalog-card-stats .property-metric b {
    white-space: nowrap;
    font-size: 13px;
  }

  .catalog-card-stats .property-metric small {
    white-space: nowrap;
    font-size: 7px;
  }

  .catalog-card-price {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0 !important;
  }

  .catalog-card-price > span {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .catalog-card-price > strong {
    font-size: clamp(20px, 1.75vw, 28px);
    line-height: 1.05;
  }
}

/* Buying catalogue header: translucent paper, centred mark and quiet contact rails. */
.catalog-header {
  position: relative;
  z-index: 10;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: minmax(76px, auto) auto;
  min-height: 122px;
  padding: 12px clamp(24px, 5.2vw, 96px) 0;
  border-bottom-color: rgba(48, 75, 85, .14);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 9px 28px rgba(36, 57, 67, .06);
  backdrop-filter: blur(16px) saturate(1.04);
}

.catalog-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 156px;
}

.catalog-contact { display: contents; }
.catalog-header-contact {
  display: inline-flex !important;
  width: fit-content !important;
  height: auto !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--navy);
  color: var(--navy) !important;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.catalog-header-contact span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
}
.catalog-header-contact strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
}
.catalog-header-contact:hover { border-color: var(--green); color: var(--green) !important; }
.catalog-header-contact:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; }
.catalog-header-phone {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: clamp(0px, 1.5vw, 24px);
}
.catalog-header-instagram {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-right: clamp(0px, 1.5vw, 24px);
}
.catalog-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  gap: clamp(24px, 3.6vw, 66px);
  padding: 12px 0 15px;
  border-top: 1px solid rgba(48, 75, 85, .09);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 72px auto 0;
}
.catalog-pagination[hidden] { display: none; }
.catalog-page-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.catalog-page-button,
.catalog-page-arrow,
.catalog-show-all {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 11px;
  background: transparent;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.catalog-page-button:hover,
.catalog-page-arrow:hover:not(:disabled),
.catalog-show-all:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.catalog-page-button.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.catalog-page-arrow { font-size: 16px; line-height: 1; }
.catalog-page-arrow:disabled { cursor: not-allowed; opacity: .35; }
.catalog-show-all { margin-left: 12px; border-color: var(--green); color: var(--navy); }

@media (max-width: 900px) {
  .catalog-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 116px;
    padding: 10px 24px 0;
  }
  .catalog-brand { width: 136px; }
  .catalog-header-contact { gap: 6px; padding-bottom: 7px; }
  .catalog-header-contact strong { font-size: 9px; }
  .catalog-header-phone { margin-left: 0; }
  .catalog-header-instagram { margin-right: 0; }
  .catalog-nav { grid-column: 1 / -1; order: initial; justify-content: flex-start; gap: 26px; padding: 11px 0 14px; }
}

@media (max-width: 640px) {
  .catalog-header { padding: 10px 18px 0; }
  .catalog-brand { width: 122px; }
  .catalog-header-contact span { display: none; }
  .catalog-header-contact strong { max-width: 100px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .catalog-header-phone strong { font-size: 0; }
  .catalog-header-phone strong::after { content: 'LIGAR'; font-size: 8px; }
  .catalog-nav { gap: 22px; }
  .catalog-pagination { justify-content: stretch; margin-top: 54px; }
  .catalog-page-list { flex: 1 1 auto; }
  .catalog-page-button, .catalog-page-arrow { min-width: 34px; min-height: 36px; }
  .catalog-show-all { flex: 1 0 100%; margin: 6px 0 0; }
}

/* Compact overlay header: the property image starts immediately behind the navigation. */
.catalog-header {
  position: absolute;
  inset: 0 0 auto;
  grid-template-rows: minmax(62px, auto) auto;
  min-height: 102px;
  padding-top: 8px;
  border-bottom-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 8px 28px rgba(5, 23, 40, .08);
  backdrop-filter: blur(14px) saturate(1.03);
}
.catalog-brand { width: 138px; }
.catalog-header-contact { gap: 5px; padding-bottom: 6px; border-bottom-color: rgba(36, 57, 67, .72); }
.catalog-header-contact span { font-size: 7px; }
.catalog-header-contact strong { font-size: 10px; }
.catalog-nav { padding-top: 9px; padding-bottom: 11px; border-top-color: rgba(255, 255, 255, .34); }

@media (max-width: 900px) {
  .catalog-header { min-height: 98px; padding-top: 7px; }
  .catalog-brand { width: 126px; }
  .catalog-header-contact { gap: 4px; padding-bottom: 5px; }
  .catalog-header-contact strong { font-size: 8px; }
  .catalog-nav { padding-top: 8px; padding-bottom: 10px; }
}

@media (max-width: 640px) {
  .catalog-header { min-height: 94px; padding-top: 7px; }
  .catalog-brand { width: 112px; }
  .catalog-nav { padding-top: 7px; padding-bottom: 9px; }
}

/* Final composition: the header stays white; the contact overlay belongs to the facade image. */
.catalog-header {
  position: relative;
  inset: auto;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  grid-template-rows: none;
  min-height: 104px;
  padding: 0 clamp(24px, 5.2vw, 96px);
  border-bottom-color: var(--line);
  background: var(--white);
  box-shadow: none;
  backdrop-filter: none;
}
.catalog-header > .catalog-contact { display: none; }
.catalog-brand {
  grid-column: auto;
  grid-row: auto;
  justify-self: start;
  width: 156px;
}
.catalog-nav {
  grid-column: auto;
  grid-row: auto;
  padding: 0;
  border-top: 0;
}
.catalog-hero { position: relative; }
.catalog-hero-overlay {
  position: absolute;
  z-index: 2;
  top: clamp(18px, 3vw, 40px);
  right: clamp(18px, 5.2vw, 96px);
  left: clamp(18px, 5.2vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 13px clamp(16px, 2vw, 30px) 14px;
  border-top: 1px solid rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 12px 28px rgba(5, 23, 40, .12);
  backdrop-filter: blur(12px) saturate(1.03);
}
.catalog-hero-brand {
  grid-column: 2;
  justify-self: center;
  display: block;
  width: 138px;
}
.catalog-hero-brand img { display: block; width: 100%; }
.catalog-hero-contact { align-self: center; }
.catalog-hero-phone { grid-column: 1; justify-self: start; margin-left: clamp(0px, 1.5vw, 24px); }
.catalog-hero-instagram { grid-column: 3; justify-self: end; margin-right: clamp(0px, 1.5vw, 24px); }

@media (max-width: 900px) {
  .catalog-header {
    grid-template-columns: minmax(0, 1fr);
    min-height: 88px;
    padding: 0 24px;
  }
  .catalog-brand { width: 144px; }
  .catalog-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    padding: 0 0 18px;
  }
  .catalog-hero-overlay { top: 14px; right: 18px; left: 18px; padding: 10px 13px 11px; }
  .catalog-hero-brand { width: 122px; }
  .catalog-hero-contact { gap: 4px; padding-bottom: 5px; }
  .catalog-hero-contact strong { font-size: 8px; }
}

@media (max-width: 640px) {
  .catalog-header { padding: 0 18px; }
  .catalog-brand { width: 130px; }
  .catalog-nav { gap: 22px; }
  .catalog-hero-overlay { top: 11px; right: 12px; left: 12px; gap: 8px; }
  .catalog-hero-brand { width: 104px; }
  .catalog-hero-contact span { display: none; }
  .catalog-hero-contact strong { max-width: 80px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  .catalog-hero-phone strong { font-size: 0; }
  .catalog-hero-phone strong::after { content: 'LIGAR'; font-size: 7px; }
}

/* Keep the white site header centred while the contact treatment lives in the hero. */
.catalog-header {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 58px 36px;
  min-height: 94px;
  padding: 5px clamp(24px, 5.2vw, 96px) 0;
}
.catalog-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 138px;
}
.catalog-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: center;
  gap: clamp(24px, 3.6vw, 66px);
  padding: 8px 0 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .catalog-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 54px 35px;
    min-height: 89px;
    padding: 4px 24px 0;
  }
  .catalog-brand { width: 126px; }
  .catalog-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    padding: 7px 0 9px;
  }
}

@media (max-width: 640px) {
  .catalog-header { padding: 4px 18px 0; }
  .catalog-brand { width: 114px; }
  .catalog-nav { gap: 22px; }
}

/* Final compact white header: keep the hero image clean. */
.catalog-header {
  grid-template-rows: 52px 31px;
  min-height: 83px;
  padding-top: 3px;
}
.catalog-brand { width: 126px; }
.catalog-nav { padding-top: 6px; padding-bottom: 7px; }

@media (max-width: 900px) {
  .catalog-header {
    grid-template-rows: 49px 31px;
    min-height: 80px;
    padding-top: 3px;
  }
  .catalog-brand { width: 118px; }
  .catalog-nav { justify-content: center; gap: 24px; padding-top: 6px; padding-bottom: 7px; }
}

@media (max-width: 640px) {
  .catalog-header { padding: 3px 18px 0; }
  .catalog-brand { width: 108px; }
  .catalog-nav { justify-content: center; gap: 20px; }
}

/* Shared public header and a quiet catalogue entrance without a promotional facade. */
.catalog-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-rows:76px;min-height:76px;padding:0 clamp(24px,5vw,76px);border-bottom:1px solid rgba(11,46,77,.12);background:#fff}.catalog-brand{grid-column:1;grid-row:1;justify-self:start;width:154px}.catalog-nav{grid-column:2;grid-row:1;justify-content:center;gap:clamp(20px,2.8vw,42px);padding:0;border:0}.catalog-nav a{font-size:10px;font-weight:600;letter-spacing:.12em}.catalog-contact{grid-column:3;grid-row:1;display:flex!important;justify-self:end;gap:8px}.catalog-header-contact{display:grid!important;width:36px!important;height:36px!important;padding:0!important;border:0!important;color:#0b2e4d!important;background:transparent!important}.catalog-header-contact:hover{color:#6c9a74!important}.catalog-header-contact span,.catalog-header-contact strong{display:none!important}.catalog-header-contact svg{display:block}.catalog-hero{display:block;min-height:0;padding:0;background:#fff}.catalog-hero-media,.catalog-hero-overlay,.catalog-hero-contact{display:none!important}.catalog-content{padding-top:clamp(38px,5vw,72px)}@media(max-width:720px){.catalog-header{grid-template-columns:1fr auto;min-height:68px;padding:0 18px}.catalog-brand{grid-column:1;width:132px}.catalog-nav{display:none}.catalog-contact{grid-column:2;gap:4px}.catalog-header-contact{width:34px!important;height:34px!important}.catalog-content{padding:28px 18px 72px}}

/* Shared public header geometry. */
.catalog-header {
  grid-template-rows: 84px;
  min-height: 84px;
}

.catalog-brand { width: 158px; }
.catalog-nav a { font-size: 10px; letter-spacing: .12em; }
.catalog-header-contact { width: 38px !important; height: 38px !important; }

@media (max-width: 720px) {
  .catalog-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 78px;
    min-height: 78px;
    padding: 0 18px;
    align-items: center;
  }

  .catalog-brand { grid-column: 1; grid-row: 1; width: 128px; align-self: center; }
  .catalog-contact { grid-column: 2; grid-row: 1; align-self: center; gap: 4px; }
  .catalog-header-contact { width: 38px !important; height: 38px !important; }
}

/* Unified quick view: full-height gallery and a balanced information column. */
.quick-view-dialog {
  width: min(1180px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
  overflow: hidden;
  border-radius: 2px;
}

.quick-view-dialog[open] {
  display: grid;
  align-items: stretch;
}

.quick-view-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 50px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  padding: 20px;
  background: #e6ebe7;
}

.quick-view-image-frame {
  height: auto;
  min-height: 0;
}

.quick-view-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.quick-view-thumbs {
  align-self: end;
  height: 42px;
  margin-top: 8px;
  padding: 0;
}

.quick-view-thumb {
  flex-basis: 58px;
  height: 42px;
}

.quick-view-copy {
  min-height: 0;
  overflow-y: auto;
  padding: 42px 44px 34px;
}

.quick-view-copy h2 {
  margin-top: 10px;
  font-size: clamp(38px, 3.5vw, 52px);
  line-height: .94;
}

.quick-view-description {
  margin-top: 20px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.quick-view-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 0;
  margin: 24px 0;
  padding: 18px 0;
}

.quick-view-metrics .property-metric,
.quick-view-metrics .property-metric:nth-child(odd),
.quick-view-metrics .property-metric:nth-child(even),
.quick-view-metrics .property-metric:nth-child(n+3),
.quick-view-metrics .property-metric:nth-child(3) {
  min-width: 0;
  padding: 0 10px;
  border-top: 0;
  border-right: 1px solid var(--line);
}

.quick-view-metrics .property-metric:first-child { padding-left: 0; }
.quick-view-metrics .property-metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.quick-view-metrics .property-metric i {
  width: 21px;
  height: 21px;
  margin-bottom: 2px;
}

.quick-view-metrics .property-metric b {
  font-size: 16px;
  line-height: 1.05;
}

.quick-view-metrics .property-metric small {
  font-size: 7px;
  letter-spacing: .05em;
}

.quick-view-price {
  margin-top: auto;
  padding-top: 20px;
  border-top: 0;
}

.quick-view-price strong { font-size: 24px; }

.quick-view-actions {
  gap: 10px;
  margin-top: 22px;
}

.quick-view-actions a,
.quick-view-actions a.whatsapp-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  transition: background-color 150ms ease, color 150ms ease, transform 150ms cubic-bezier(.23, 1, .32, 1);
}

.quick-view-actions a.whatsapp-action {
  border-color: #3f8f63;
  color: #2f8055;
}

@media (hover: hover) and (pointer: fine) {
  .quick-view-actions a:hover {
    background: var(--navy);
    color: #fff;
  }

  .quick-view-actions a.whatsapp-action:hover {
    background: #2f8055;
    color: #fff;
  }
}

.quick-view-actions a:active { transform: scale(.97); }

@media (max-width: 760px) {
  .quick-view-dialog,
  .quick-view-dialog[open] {
    display: block;
    width: calc(100vw - 16px);
    height: auto;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
  }

  .quick-view-media {
    display: block;
    height: auto;
    padding: 10px;
  }

  .quick-view-image-frame,
  .quick-view-image-frame img { height: 300px; }

  .quick-view-thumbs { height: 44px; margin-top: 8px; }
  .quick-view-thumb { height: 42px; }

  .quick-view-copy {
    overflow: visible;
    padding: 28px 22px 30px;
  }

  .quick-view-copy h2 { font-size: clamp(34px, 10vw, 44px); }

  .quick-view-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 22px 0;
  }

  .quick-view-metrics .property-metric,
  .quick-view-metrics .property-metric:nth-child(odd),
  .quick-view-metrics .property-metric:nth-child(even),
  .quick-view-metrics .property-metric:nth-child(n+3),
  .quick-view-metrics .property-metric:nth-child(3) { padding: 0 6px; }

  .quick-view-metrics .property-metric:first-child { padding-left: 0; }
  .quick-view-metrics .property-metric:last-child { padding-right: 0; }

  .quick-view-price { margin-top: 0; }
  .quick-view-actions a { flex: 1 1 140px; }
}

/* Mobile catalogue cleanup and reliable quick-view media sizing. */
.quick-view-dialog:not([open]),
.compare-dialog:not([open]) { display: none; }

@media (max-width: 720px) {
  .catalog-results > .catalog-toolbar > #catalog-count { display: none; }
}

@media (max-width: 760px) {
  .quick-view-image-frame,
  .quick-view-image-frame img {
    height: min(58dvh, 460px);
    min-height: 320px;
  }
}
