/* PropGlen - organized static site styles */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  /* S2-L first-paint: optional + metric overrides reduce hero headline CLS. */
  font-display: optional;
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
  src: url("../assets/fonts/plus-jakarta-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter.woff2") format("woff2");
}

:root {
  /* Neutrals - clean light surfaces for content/readability */
  --bg: #eef1f8;
  --bg-deep: #e6eaf4;
  --surface: #ffffff;
  --surface-soft: #eff2f9;
  --surface-warm: #f5f7fc;
  --text: #222222;
  --heading: #222222;
  --muted: #6a6a6a;
  --border: #e3e8f1;
  --border-strong: #d2d9e6;

  /* Dark zones - proptech high-contrast */
  --ink-900: #070a14;
  --ink-850: #0a0e1c;
  --ink-800: #0f1426;
  --ink-700: #161d33;
  --ink-600: #1d2742;
  --ink-line: rgba(255, 255, 255, 0.1);
  --ink-line-strong: rgba(255, 255, 255, 0.18);
  --on-dark: #f3f6ff;
  --on-dark-muted: rgba(214, 222, 240, 0.72);

  /* Brand - Verified Emerald: emerald -> teal -> mint, with a blue secondary */
  --primary: #0a9d6a;
  --primary-hover: #07814f;
  --primary-dark: #0a1020;
  --primary-soft: #e2f6ee;
  /* Global public Save heart — shared across cards + detail */
  --rv-save-heart: #e11d48;
  --rv-save-heart-size: 23px;
  --rv-save-heart-hit: 44px;
  --indigo: #0fbf9a;
  --cyan: #34e0b0;
  --accent: #0a9d6a;
  --accent-soft: #e2f6ee;
  --accent-strong: #0a1020;
  --secondary: #2f74ff;
  --secondary-soft: #e7eeff;
  --success: #0fa371;
  --success-strong: #0a7d56;
  --success-soft: #e3f7ef;
  --verified: #1ad98a;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --warning: #b4690e;
  --warning-bg: #fff3e0;
  --gold: #c6922e;
  --gold-soft: #f8ead0;
  --purple: #7c3aed;
  --pink: #e0528d;

  /* Gradients */
  --grad-primary: linear-gradient(125deg, #0a9d6a 0%, #0bb583 52%, #0fbf9a 100%);
  --grad-vivid: linear-gradient(120deg, #0a9d6a 0%, #0fbf9a 56%, #34e0b0 120%);
  --grad-ink: linear-gradient(165deg, #0c1224 0%, #0a0e1c 60%, #070a14 100%);

  /* Typography — Trebuchet MS primary (public website). No unlicensed font bundles.
     Script fallbacks: system Noto / Apple Sinhala·Tamil for SI/TA glyphs. */
  --font-ui: "Trebuchet MS", "TrebuchetMS", "Segoe UI", "Helvetica Neue", Helvetica, Arial,
    "Noto Sans Sinhala", "Noto Sans Tamil", "Sinhala MN", "Tamil MN", system-ui, sans-serif;
  --font-heading: var(--font-ui);
  --font-body: var(--font-ui);
  /* SI/TA: prefer system script fonts first so Sinhala/Tamil glyphs don’t miss; Latin still falls to Trebuchet. */
  --font-ui-si: "Noto Sans Sinhala", "Sinhala MN", "Iskoola Pota", "Trebuchet MS", "TrebuchetMS", "Segoe UI", Arial, system-ui, sans-serif;
  --font-ui-ta: "Noto Sans Tamil", "Tamil MN", "Latha", "Trebuchet MS", "TrebuchetMS", "Segoe UI", Arial, system-ui, sans-serif;
  --type-body: 16px;
  --type-body-portal: 15px;
  --type-line: 1.55;
  --type-line-portal: 1.45;
  --weight-title: 700;
  --weight-label: 600;
  --weight-body: 400;

  /* Elevation - softer, layered, modern */
  --shadow-xs: 0 1px 2px rgba(10, 16, 32, 0.06);
  --shadow-sm: 0 4px 14px rgba(10, 16, 32, 0.07);
  --shadow-soft: var(--shadow-sm);
  --shadow: 0 12px 32px rgba(10, 16, 32, 0.1);
  --shadow-strong: 0 26px 60px rgba(10, 16, 32, 0.16);
  --shadow-primary: 0 16px 34px rgba(10, 157, 106, 0.34);
  --glow: 0 0 0 1px rgba(10, 157, 106, 0.18), 0 18px 50px rgba(10, 157, 106, 0.28);
  --ring: 0 0 0 4px rgba(10, 157, 106, 0.18);

  --radius: 26px;
  --radius-lg: var(--radius);
  --radius-md: 20px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --button-radius: 12px;
  --line: var(--border);
  --container: 1160px;
  /* FP2: align with propglen-premium-header desktop base (was 82px → visible resize). */
  --header-height: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 0.16s;
  --duration-ui: 0.24s;
  --duration-slow: 0.42s;

  /* Icon surfaces — shared polish without changing layout boxes */
  --icon-surface-soft: rgba(10, 157, 106, 0.1);
  --icon-glyph-primary: var(--primary);
  --icon-glyph-muted: #6f7d8c;
  --icon-tile-shadow-soft: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --icon-tile-shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 18px rgba(10, 157, 106, 0.24);
  --icon-grad-primary: linear-gradient(145deg, #12c07f 0%, var(--primary) 52%, #078f5d 100%);

  /* Listings SERP + listing detail shared portal chrome */
  --portal-page-bg: #f0f0f0;
  --portal-breadcrumb-top: 12px;
  --portal-gap-breadcrumb: 10px;
  --portal-gap-intro: 14px;
  --portal-gap-toolbar: 16px;
  --portal-gap-filters: 16px;
  --portal-gap-hero: 20px;
  --portal-gap-section: 20px;
  --portal-page-bottom: 32px;
  --mobile-filter-bar-height: 52px;
  --portal-border: #dedede;
  --portal-control-border: #d7d7d7;
  --portal-card-radius: 4px;
  --portal-text: #222222;
  --portal-muted: #6a6a6a;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  /* D2-R4B: white root canvas for browser pull-down / overscroll (was --ink-900). */
  background: #ffffff;
  overflow-x: hidden;
}

html[lang="si"] {
  --font-ui: var(--font-ui-si);
  --font-heading: var(--font-ui-si);
  --font-body: var(--font-ui-si);
}

html[lang="ta"] {
  --font-ui: var(--font-ui-ta);
  --font-heading: var(--font-ui-ta);
  --font-body: var(--font-ui-ta);
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-body);
  line-height: var(--type-line);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 10% -8%, rgba(10, 157, 106, 0.06), transparent 38rem),
    radial-gradient(circle at 94% 2%, rgba(15, 191, 154, 0.05), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, #f6faf8 52%, #eef4f1 100%);
}

body.nav-open {
  overflow: hidden;
}

/*
 * Burger open — keep the header/drawer above page chrome (filters, sticky enquire,
 * floating bars). Image viewer stays higher (4000).
 * Mobile Navigation Overlay P1 Fix V1 — 20261023MobileNavOverlayP1
 */
body.nav-open .site-header {
  z-index: 3100;
}

/* Burger open: fixed white bottom nav must not overlay lower sheet actions */
body.nav-open .mobile-app-nav,
body.nav-open .bayut-mobile-bar,
body.nav-open .detail-mobile-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.image-viewer-open {
  overflow: hidden;
  overscroll-behavior: none;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

/* Listing/property photos: deter drag-to-save and long-press save menus.
   Clicks still pass through to the parent card/button. */
.property-media img,
.home-property-media img,
.detail-media-card img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

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

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

button,
a,
label,
input,
select,
textarea,
.chip,
.custom-select-trigger,
.custom-select-menu button,
.option,
.mobile-app-nav a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus,
a:focus,
.chip:focus,
.custom-select-trigger:focus,
.custom-select-menu button:focus,
.option:focus-within {
  outline: none;
}

button:focus-visible,
a:focus-visible,
.chip:focus-visible,
.custom-select-trigger:focus-visible,
.custom-select-menu button:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--font-body);
  font-weight: var(--weight-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

p {
  margin-bottom: 16px;
}

ul,
ol {
  padding-left: 1.2rem;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  padding: 72px 0;
}

.compact-section {
  padding: 48px 0;
}

.section-muted {
  background: rgba(255, 255, 255, 0.48);
}

.home-section {
  position: relative;
  isolation: isolate;
}

.home-section + .home-section {
  margin-top: -12px;
}

.home-section::before {
  display: none;
}

.home-section-listings,
.home-section-process {
  background: rgba(255, 255, 255, 0.42);
  border-block: 1px solid rgba(226, 233, 245, 0.6);
}

/* Trust section as dark proptech band */
.home-section-trust {
  position: relative;
  margin-top: 0 !important;
  padding-block: 76px;
  overflow: hidden;
  background: var(--grad-ink);
  isolation: isolate;
}

.home-section-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 90% at 2% 0%, rgba(10, 157, 106, 0.4) 0%, transparent 60%),
    radial-gradient(46% 90% at 100% 100%, rgba(15, 191, 154, 0.34) 0%, transparent 62%),
    radial-gradient(40% 80% at 70% 0%, rgba(52, 224, 176, 0.16) 0%, transparent 64%);
}

.home-section-trust::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 76%);
  mask-image: radial-gradient(120% 120% at 50% 0%, #000, transparent 76%);
}

.home-section-trust .why-section-panel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: none;
}

.home-section-trust h2 {
  color: var(--on-dark);
}

.home-section-trust .section-heading p {
  color: var(--on-dark-muted);
}

.home-section-trust .why-section-panel .eyebrow {
  color: #d7e0ff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-section-trust .why-section-panel .eyebrow::before {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(52, 224, 176, 0.2);
}

.home-section-trust .why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.home-section-trust .why-card h3 {
  color: var(--on-dark);
}

.home-section-trust .why-card p {
  color: var(--on-dark-muted);
}

@media (hover: hover) and (pointer: fine) {
  .home-section-trust .why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 157, 106, 0.5);
    box-shadow: var(--glow);
  }
}

.home-section-trust + .home-section {
  margin-top: 0;
  border-top: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
  text-align: left;
}

.section-heading p {
  color: var(--text);
}

.section-heading p.eyebrow {
  color: var(--portal-muted);
}

.compact-heading {
  margin-bottom: 20px;
}

.compact-heading h2 {
  margin-bottom: 10px;
}

.compact-heading p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
  text-transform: none;
}

.muted,
.small-note {
  color: var(--muted);
}

.small-note {
  font-size: 0.88rem;
  line-height: 1.5;
}

.sr-only,
.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;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  vertical-align: -0.14em;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 20, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
  transition: background var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(7, 10, 20, 0.99);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-cta.button {
  min-height: 36px;
  margin-left: 10px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.94);
  border-radius: 5px;
  border: 1px solid rgba(10, 157, 106, 0.85);
  background: transparent;
  box-shadow: none;
}

.nav-cta.button:hover {
  color: #ffffff;
  background: rgba(10, 157, 106, 0.18);
  border-color: var(--primary);
  box-shadow: none;
  transform: none;
}

/* Quiet Luxury V3 — desktop composition */
@media (min-width: 1280px) {
  .site-header .nav {
    gap: 36px;
  }

  .site-header .nav-menu {
    gap: 2px;
    flex-wrap: nowrap;
  }

  .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    position: relative;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 18px;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: rgba(228, 235, 250, 0.7);
  }

  .site-header .nav-menu a.nav-agent-login {
    flex: 0 0 auto;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-left: 4px;
    padding: 8px 10px;
    line-height: 1.2;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(228, 235, 250, 0.72);
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .site-header .nav-menu a.nav-agent-login span {
    white-space: nowrap;
    line-height: 1.2;
  }

  .site-header .nav-menu a.nav-cta,
  .site-header .nav-menu a.nav-cta.button {
    flex: 0 0 auto;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 36px;
    height: 36px;
    margin-left: 10px;
    padding: 0 15px;
    font-size: 0.84rem;
    font-weight: 550;
    line-height: 1.2;
    border-radius: 5px;
    border: 1px solid rgba(10, 157, 106, 0.85);
    background: transparent;
    color: rgba(255, 255, 255, 0.94);
    box-shadow: none;
  }

  .site-header .nav-menu a.nav-cta span {
    white-space: nowrap;
    line-height: 1.2;
  }

  .site-header .nav-menu a.nav-cta .icon {
    display: none;
  }

  /* Utility group separation: breathing room + optional hairline before Language */
  .site-header .rv-lang--desktop,
  .nav-menu .rv-lang--desktop {
    position: relative;
    margin-left: 22px;
    margin-right: 4px;
  }

  .site-header .rv-lang--desktop::before,
  .nav-menu .rv-lang--desktop::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 1px;
    height: 17px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }
}

@media (min-width: 1440px) {
  .site-header > .nav.container {
    width: min(1280px, calc(100% - 48px));
    max-width: 1280px;
  }

  .site-header .nav {
    gap: 40px;
  }

  .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    padding: 8px 20px;
  }
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  width: clamp(176px, 15vw, 214px);
  height: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

/* M2 — SSC-style inline language chips (EN / සිං / தமிழ்) — no dropdown */
.site-header .rv-lang,
.nav-menu .rv-lang {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.site-header .rv-lang[hidden],
.nav-menu .rv-lang[hidden] {
  display: none !important;
}
.site-header .rv-lang__option,
.nav-menu .rv-lang__option {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(228, 235, 250, 0.72);
  min-height: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  width: auto;
  flex: 0 0 auto;
  box-shadow: none;
  text-align: center;
}
.site-header .rv-lang__option:hover,
.nav-menu .rv-lang__option:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.site-header .rv-lang__option:focus-visible,
.nav-menu .rv-lang__option:focus-visible {
  outline: 2px solid rgba(126, 210, 224, 0.9);
  outline-offset: 2px;
  color: #ffffff;
}
.site-header .rv-lang__option.is-active,
.nav-menu .rv-lang__option.is-active,
html[lang="en"] .rv-lang__option[data-rv-lang-option="en"],
html[lang="si"] .rv-lang__option[data-rv-lang-option="si"],
html[lang="ta"] .rv-lang__option[data-rv-lang-option="ta"] {
  background: rgba(10, 157, 106, 0.22);
  border-color: rgba(10, 157, 106, 0.55);
  color: #ffffff;
}
html:not([lang="si"]):not([lang="ta"]) .rv-lang__option[data-rv-lang-option="en"] {
  background: rgba(10, 157, 106, 0.22);
  border-color: rgba(10, 157, 106, 0.55);
  color: #ffffff;
}
/* Default (≤1080 burger / <1280): mobile lang only */
.site-header .rv-site-settings,
.nav-menu .rv-site-settings {
  display: none;
}
.site-header .rv-lang--desktop,
.nav-menu .rv-lang--desktop {
  display: none !important;
}
.site-header .rv-lang--mobile,
.nav-menu .rv-lang--mobile {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  margin: 0 0 6px;
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 6px;
}
.site-header .rv-lang--mobile .rv-lang__option,
.nav-menu .rv-lang--mobile .rv-lang__option {
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 0.84rem;
}

/* M2 — desktop Site Settings (Bayut-style) replaces standalone language control */
.site-header .rv-site-settings,
.nav-menu .rv-site-settings {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  margin-left: 2px;
}
.site-header .rv-site-settings[hidden],
.nav-menu .rv-site-settings[hidden] {
  display: none !important;
}
.site-header .rv-site-settings__btn,
.nav-menu .rv-site-settings__btn {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(228, 235, 250, 0.95);
  cursor: pointer;
  box-shadow: none;
}
.site-header .rv-site-settings__btn:hover,
.nav-menu .rv-site-settings__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}
.site-header .rv-site-settings__btn:focus-visible,
.nav-menu .rv-site-settings__btn:focus-visible {
  outline: 2px solid rgba(126, 210, 224, 0.9);
  outline-offset: 2px;
}
.site-header .rv-site-settings__icon,
.nav-menu .rv-site-settings__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.5px;
  width: 16px;
  height: 12px;
}
.site-header .rv-site-settings__icon span,
.nav-menu .rv-site-settings__icon span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 999px;
  background: rgba(236, 242, 255, 0.92);
}
.site-header .rv-site-settings__panel,
.nav-menu .rv-site-settings__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #122033;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 42px rgba(7, 10, 20, 0.22);
  z-index: 140;
}
.site-header .rv-site-settings__panel.is-open:not([hidden]),
.nav-menu .rv-site-settings__panel.is-open:not([hidden]) {
  display: block;
}
.site-header .rv-site-settings__title,
.nav-menu .rv-site-settings__title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7788;
}
.site-header .rv-site-settings__row,
.nav-menu .rv-site-settings__row {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #f4f7fb;
  color: #122033;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.site-header .rv-site-settings__row:hover,
.nav-menu .rv-site-settings__row:hover {
  background: #eaf0f7;
}
.site-header .rv-site-settings__row:focus-visible,
.nav-menu .rv-site-settings__row:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}
.site-header .rv-site-settings__row-meta,
.nav-menu .rv-site-settings__row-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5b6778;
  font-weight: 600;
  white-space: nowrap;
}
.site-header .rv-site-settings__row-chev,
.nav-menu .rv-site-settings__row-chev {
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.7;
}
.site-header .rv-site-settings__back,
.nav-menu .rv-site-settings__back {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin: 0 0 8px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #122033;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.site-header .rv-site-settings__back:focus-visible,
.nav-menu .rv-site-settings__back:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}
.site-header .rv-site-settings__lang-list,
.nav-menu .rv-site-settings__lang-list {
  display: grid;
  gap: 4px;
}
.site-header .rv-site-settings__lang-option,
.nav-menu .rv-site-settings__lang-option {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #122033;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.site-header .rv-site-settings__lang-option:hover,
.nav-menu .rv-site-settings__lang-option:hover {
  background: #f4f7fb;
}
.site-header .rv-site-settings__lang-option:focus-visible,
.nav-menu .rv-site-settings__lang-option:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}
.site-header .rv-site-settings__lang-option.is-active,
.nav-menu .rv-site-settings__lang-option.is-active {
  background: rgba(10, 157, 106, 0.12);
  color: #0a6f4c;
}
.site-header .rv-site-settings__lang-check,
.nav-menu .rv-site-settings__lang-check {
  min-width: 1em;
  color: #0a9d6a;
  font-weight: 700;
}

@media (min-width: 1280px) {
  .site-header .rv-site-settings,
  .nav-menu .rv-site-settings {
    display: none !important;
  }
  .site-header .rv-lang--desktop,
  .nav-menu .rv-lang--desktop {
    display: inline-flex !important;
  }
  .site-header .rv-lang--desktop[hidden],
  .nav-menu .rv-lang--desktop[hidden] {
    display: none !important;
  }
  .site-header .rv-lang--mobile,
  .nav-menu .rv-lang--mobile {
    display: none !important;
  }
}

/*
 * M2 SI/TA visual polish — locale-aware header rhythm only.
 * EN horizontal ≥1081 (one-line CTAs).
 * SI horizontal ≥1281; SI burger 1081–1280.
 * TA: 0.76rem readability soften + wider nav row, but 0.76rem still
 * overflows --container at common laptop widths — burger earlier:
 * TA horizontal ≥1441; TA burger ≤1440 (incl. 1081–1440).
 */
html[lang="si"] .site-header .nav,
html[lang="ta"] .site-header .nav {
  gap: 12px;
}

/* Homepage search filters + discovery strip — alignment only, no redesign */
html[lang="si"] .home-filter-trigger__label,
html[lang="ta"] .home-filter-trigger__label {
  line-height: 1.2;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
}

html[lang="si"] .home-filter-select .custom-select-trigger,
html[lang="ta"] .home-filter-select .custom-select-trigger {
  align-items: center;
}

html[lang="si"] .home-live-strip__link,
html[lang="ta"] .home-live-strip__link {
  align-items: center;
  justify-content: center;
  min-height: 36px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

html[lang="si"] .home-live-strip__actions,
html[lang="ta"] .home-live-strip__actions {
  align-items: center;
  gap: 10px;
}

/* SI horizontal desktop — all labels/CTAs one line (≥1281) */
@media (min-width: 1280px) {
  html[lang="si"] .site-header .nav {
    gap: 10px;
  }

  html[lang="si"] .site-header .nav-menu {
    gap: 6px;
    flex-wrap: nowrap;
  }

  html[lang="si"] .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    gap: 4px;
    padding: 8px 8px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  html[lang="si"] .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
  }

  html[lang="si"] .site-header .nav-menu a.nav-agent-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html[lang="si"] .site-header .nav-menu a.nav-agent-login span {
    display: inline;
    white-space: nowrap;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.15;
  }

  html[lang="si"] .site-header .nav-menu a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0;
    white-space: nowrap;
    min-width: 0;
    max-width: none;
    min-height: 36px;
    height: 36px;
    margin-left: 8px;
    padding: 0 12px;
    font-size: 0.74rem;
    font-weight: 550;
    line-height: 1.15;
    letter-spacing: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #5b6778;
    box-shadow: none;
  }

  html[lang="si"] .site-header .nav-menu a.nav-cta span {
    display: inline;
    white-space: nowrap;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.15;
  }

  html[lang="si"] .site-header .nav-menu a.nav-cta .icon {
    display: none;
  }

  html[lang="si"] .site-header .rv-lang--desktop,
  html[lang="si"] .nav-menu .rv-lang--desktop {
    display: inline-flex !important;
  }
  html[lang="si"] .site-header .rv-lang--mobile,
  html[lang="si"] .nav-menu .rv-lang--mobile {
    display: none !important;
  }
}

/* TA horizontal desktop — readable 0.76rem + wider row (≥1441 only) */
@media (min-width: 1280px) {
  html[lang="ta"] .site-header .nav {
    gap: 10px;
  }
  html[lang="ta"] .site-header .nav-menu {
    gap: 6px;
    flex-wrap: nowrap;
  }
  html[lang="ta"] .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    gap: 4px;
    padding: 8px 7px;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  html[lang="ta"] .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) .icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
  }
  html[lang="ta"] .site-header .nav-menu a.nav-agent-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  html[lang="ta"] .site-header .nav-menu a.nav-agent-login span {
    display: inline;
    white-space: nowrap;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.15;
  }
  html[lang="ta"] .site-header .nav-menu a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0;
    white-space: nowrap;
    min-width: 0;
    max-width: none;
    min-height: 36px;
    height: 36px;
    margin-left: 8px;
    padding: 0 12px;
    font-size: 0.76rem;
    font-weight: 550;
    line-height: 1.15;
    letter-spacing: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #5b6778;
    box-shadow: none;
  }
  html[lang="ta"] .site-header .nav-menu a.nav-cta span {
    display: inline;
    white-space: nowrap;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.15;
  }
  html[lang="ta"] .site-header .nav-menu a.nav-cta .icon {
    display: none;
  }
  html[lang="ta"] .site-header .rv-lang--desktop,
  html[lang="ta"] .nav-menu .rv-lang--desktop {
    display: inline-flex !important;
  }
  html[lang="ta"] .site-header .rv-lang--mobile,
  html[lang="ta"] .nav-menu .rv-lang--mobile {
    display: none !important;
  }
}

/* SI: settings only when horizontal (≥1281); else mobile lang in burger */
@media (min-width: 1081px) and (max-width: 1279px) {
  html[lang="si"] .site-header .rv-lang--desktop,
  html[lang="si"] .nav-menu .rv-lang--desktop,
  html[lang="si"] .site-header .rv-site-settings,
  html[lang="si"] .nav-menu .rv-site-settings {
    display: none !important;
  }
  html[lang="si"] .site-header .rv-lang--mobile,
  html[lang="si"] .nav-menu .rv-lang--mobile {
    display: inline-flex !important;
  }
}

/* TA: settings only when horizontal (≥1441); else mobile lang in burger */
@media (min-width: 1081px) and (max-width: 1279px) {
  html[lang="ta"] .site-header .rv-lang--desktop,
  html[lang="ta"] .nav-menu .rv-lang--desktop,
  html[lang="ta"] .site-header .rv-site-settings,
  html[lang="ta"] .nav-menu .rv-site-settings {
    display: none !important;
  }
  html[lang="ta"] .site-header .rv-lang--mobile,
  html[lang="ta"] .nav-menu .rv-lang--mobile {
    display: inline-flex !important;
  }
}

/* Shared burger through 1440 for every language. SI spacing in the burger range. */
@media (min-width: 1081px) and (max-width: 1279px) {
  html[lang="si"] .nav-toggle {
    display: block;
  }

  html[lang="si"] .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    background: #0c101c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
    transition:
      opacity 0.28s var(--ease-out),
      transform 0.28s var(--ease-out),
      visibility 0.28s var(--ease-out);
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[lang="si"] .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  html[lang="si"] .nav-menu > a {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    max-width: none;
    min-height: 44px;
    max-height: none;
    height: auto;
    padding: 12px 10px;
    font-size: 0.875rem;
    line-height: 1.25;
    border-radius: 0;
  }

  html[lang="si"] .nav-menu a.nav-desktop-only {
    display: inline-flex;
  }

  html[lang="si"] .nav-menu a.nav-cta,
  html[lang="si"] .nav-menu a.nav-agent-login {
    grid-column: 1 / -1;
    margin-left: 0;
    min-width: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  html[lang="si"] .nav-menu a.nav-agent-login {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html[lang="si"] .nav-menu a.nav-cta {
    border-radius: 6px;
    border: 1px solid rgba(10, 157, 106, 0.85);
    background: transparent;
    box-shadow: none;
  }

  html[lang="si"] .nav-menu .rv-lang--mobile {
    grid-column: 1 / -1;
  }
}

/* Shared burger through 1440 for every language. TA spacing in the burger range. */
@media (min-width: 1081px) and (max-width: 1279px) {
  html[lang="ta"] .nav-toggle {
    display: block;
  }

  html[lang="ta"] .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    background: #0c101c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
    transition:
      opacity 0.28s var(--ease-out),
      transform 0.28s var(--ease-out),
      visibility 0.28s var(--ease-out);
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html[lang="ta"] .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  html[lang="ta"] .nav-menu > a {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    max-width: none;
    min-height: 44px;
    max-height: none;
    height: auto;
    padding: 12px 10px;
    font-size: 0.875rem;
    line-height: 1.25;
    border-radius: 0;
  }

  html[lang="ta"] .nav-menu a.nav-desktop-only {
    display: inline-flex;
  }

  html[lang="ta"] .nav-menu a.nav-cta,
  html[lang="ta"] .nav-menu a.nav-agent-login {
    grid-column: 1 / -1;
    margin-left: 0;
    min-width: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  html[lang="ta"] .nav-menu a.nav-agent-login {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html[lang="ta"] .nav-menu a.nav-cta {
    border-radius: 6px;
    border: 1px solid rgba(10, 157, 106, 0.85);
    background: transparent;
    box-shadow: none;
  }

  html[lang="ta"] .nav-menu .rv-lang--mobile {
    grid-column: 1 / -1;
  }
}

.site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login):not(.nav-burger-only) > .icon {
  display: none;
}

.nav-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  color: rgba(228, 235, 250, 0.74);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  border-radius: 0;
  background: transparent;
  transition: color 160ms var(--ease-out);
}

.nav-menu a.nav-cta {
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: normal;
  font-weight: 550;
}

/* Quiet secondary text action — not a boxed control */
.nav-menu a.nav-agent-login {
  color: rgba(228, 235, 250, 0.72);
  border: 0;
  background: transparent;
  font-weight: 500;
  margin-left: 2px;
  padding: 9px 12px;
  border-radius: 0;
  letter-spacing: 0.01em;
}

.nav-menu a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.nav-menu a.nav-agent-login:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.nav-menu a[aria-current="page"]:not(.nav-cta) {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 1280px) {
  .nav-menu a.nav-burger-only {
    display: none;
  }

  /* Desktop hierarchy closeout — Home / Safety / Contact stay in burger only */
  .nav-menu a.nav-mobile-secondary {
    display: none !important;
  }

  /* Short centered emerald mark — editorial, not tab-width */
  .site-header .nav-menu > a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login) {
    color: #ffffff;
    box-shadow: none;
  }

  .site-header .nav-menu > a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 26px;
    height: 1.5px;
    transform: translateX(-50%);
    background: var(--primary);
    pointer-events: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .nav-menu a:not(.nav-cta):not(.nav-agent-login):hover {
    color: #ffffff;
    background: transparent;
  }

  .nav-menu a.nav-agent-login:hover {
    color: #ffffff;
    border-color: transparent;
    background: transparent;
  }

  .site-header .nav-menu a.nav-cta:hover,
  .site-header .nav-menu a.nav-cta.button:hover,
  .nav-cta.button:hover {
    color: #ffffff;
    background: rgba(10, 157, 106, 0.18);
    border-color: var(--primary);
    box-shadow: none;
    transform: none;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.nav-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
  transition: transform var(--duration-ui) var(--ease-out), opacity var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
  }
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  background: rgba(7, 10, 20, 0.94);
  overflow: hidden;
  overscroll-behavior: none;
}

.image-viewer-track {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
}

.image-viewer-track::-webkit-scrollbar {
  display: none;
}

.image-viewer[hidden] {
  display: none !important;
}

.image-viewer-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  user-select: none;
  -webkit-user-drag: none;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  pointer-events: none;
}

.image-viewer-close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  z-index: 4001;
}

.image-viewer-nav {
  position: fixed;
  top: 50%;
  z-index: 4001;
  width: 30px;
  min-width: 30px;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: translateY(-50%);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.62);
}

.image-viewer-prev {
  left: 14px;
}

.image-viewer-next {
  right: 14px;
}

.image-viewer-count {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 4001;
  padding: 7px 11px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  background: rgba(7, 10, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
}

.mobile-app-nav.is-hidden {
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  pointer-events: none;
}

body.image-viewer-open .mobile-app-nav {
  display: none;
}

/* Buttons, pills, chips and badges */

.button {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  box-shadow: none;
  transition: transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out);
}

.button .icon {
  flex-shrink: 0;
}

/* Motion M1 Batch 1 — P1.4: lift only on fine pointer hover (no sticky touch lift). */
@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translate3d(0, -2px, 0);
  }
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.bayut-btn:focus-visible,
.bayut-page-btn:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.button:disabled,
.bayut-btn:disabled,
.bayut-page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover,
.bayut-btn:disabled:hover,
.bayut-page-btn:disabled:hover {
  transform: none;
}

.button-full {
  width: 100%;
}

.button-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.86rem;
}

.button-primary {
  color: #ffffff;
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
}

.button-primary:hover {
  box-shadow: 0 20px 44px rgba(10, 157, 106, 0.46);
}

.button-secondary {
  color: var(--heading);
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.button-group,
.badge-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-empty-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 520px;
}

.area-empty-actions .button {
  width: 100%;
}

.pill,
.chip,
.status-badge,
.card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  font-weight: var(--weight-label);
  line-height: 1.2;
  text-align: center;
  border-radius: 999px;
  white-space: nowrap;
}

.pill .icon,
.chip .icon,
.status-badge .icon,
.card-status .icon {
  flex-shrink: 0;
}

.pill {
  padding: 8px 14px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--primary-soft);
  border: 1px solid rgba(10, 157, 106, 0.14);
}

.app-hero .pill {
  padding: 9px 15px 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 34px rgba(8, 14, 28, 0.22);
  backdrop-filter: blur(12px);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee27e;
  box-shadow: 0 0 0 4px rgba(46, 226, 126, 0.28);
  animation: pulse-dot 2.2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 226, 126, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(46, 226, 126, 0); }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stat {
  flex: 1 1 0;
  min-width: 130px;
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 11px;
  row-gap: 1px;
  align-items: center;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.hero-stat-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 30px;
  height: 30px;
  padding: 6px;
  color: #062f1f;
  background: linear-gradient(135deg, #34e0b0, #0fbf9a);
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(15, 191, 154, 0.32);
}

.hero-stat strong {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.01em;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.35;
}

.chip {
  min-height: 42px;
  padding: 11px 16px;
  color: var(--heading);
  font-size: 0.9rem;
  line-height: 1.15;
  background: #ffffff;
  border: 1px solid var(--border);
}

button.chip {
  appearance: none;
}

.chip-active {
  color: #ffffff;
  background: var(--heading);
  border-color: var(--heading);
}

@media (hover: hover) {
  .chip:hover {
    color: #ffffff;
    background: var(--heading);
    border-color: var(--heading);
  }
}

.status-badge,
.card-status {
  min-height: 30px;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.badge-checked,
.badge-last,
.card-status {
  color: #5b4b8a;
  background: #f3efff;
  border-color: rgba(109, 93, 174, 0.24);
}

.badge-checked {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}

.badge-photo {
  color: #2b3548;
  background: rgba(255, 255, 255, 0.92);
}

.badge-whatsapp,
.badge-request {
  color: #0f6b51;
  background: var(--success-soft);
}

.badge-payment {
  color: #475569;
  background: #eef1f6;
}

.badge-visit,
.card-status-alt {
  color: #fff7df;
  background: linear-gradient(135deg, #111827, #6b4f16);
  border-color: rgba(234, 179, 8, 0.32);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

.badge-progress {
  color: #9a4d0c;
  background: var(--warning-bg);
}

.badge-video {
  color: #5b21b6;
  background: #ede9fe;
}

/* Home hero and search */

.app-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 116px;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(7, 10, 20, 0.82) 0%, rgba(7, 10, 20, 0.5) 16%, rgba(7, 10, 20, 0.52) 58%, rgba(7, 10, 20, 0.86) 100%),
    url("../assets/images/optimized/home-hero2.webp") center / cover no-repeat,
    var(--ink-900);
}

@media (max-width: 760px) {
  .app-hero:has(.custom-select.is-open) {
    z-index: 20;
  }

  /* Keep filter interaction visually clean on small screens. */
  body:has(.home-filter-select.is-open) .home-live-strip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 8% 6%, rgba(10, 157, 106, 0.16) 0%, transparent 58%),
    radial-gradient(60% 55% at 96% 18%, rgba(15, 191, 154, 0.12) 0%, transparent 60%),
    radial-gradient(50% 50% at 78% 92%, rgba(52, 224, 176, 0.08) 0%, transparent 62%),
    linear-gradient(180deg, rgba(7, 10, 20, 0.2) 0%, rgba(7, 10, 20, 0.1) 50%, rgba(238, 241, 248, 0.16) 82%, var(--bg) 100%);
}

.app-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}

.app-hero > .container {
  position: relative;
  z-index: 1;
}

.hero-aurora {
  position: absolute;
  inset: -25% -15% 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: screen;
  filter: blur(46px);
  background:
    radial-gradient(32% 38% at 18% 26%, rgba(10, 157, 106, 0.85), transparent 60%),
    radial-gradient(30% 36% at 82% 20%, rgba(15, 191, 154, 0.78), transparent 62%),
    radial-gradient(26% 34% at 62% 72%, rgba(52, 224, 176, 0.5), transparent 64%);
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 90%);
  animation: heroAurora 20s ease-in-out infinite alternate;
}

@keyframes heroAurora {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.1) rotate(2deg);
  }
  100% {
    transform: translate3d(6%, -3%, 0) scale(1.05) rotate(-1.5deg);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  align-items: center;
  gap: clamp(30px, 6vw, 78px);
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
  text-align: left;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.hero-copy h1,
.hero-copy .hero-text {
  color: #ffffff;
}

.hero-heading-accent {
  color: #19c98c;
}

.hero-text {
  max-width: 520px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

.search-card {
  position: relative;
  z-index: 3;
  width: min(100%, 450px);
  justify-self: end;
  overflow: visible;
  padding: 20px 18px 18px;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(7, 10, 20, 0.42), 0 0 0 1px rgba(10, 157, 106, 0.12), 0 0 48px rgba(10, 157, 106, 0.16);
  backdrop-filter: blur(16px);
}

.search-card h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.search-card__eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-card__hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.chip-count {
  color: inherit;
  font-weight: 600;
  opacity: 0.78;
  white-space: nowrap;
}

.home-rv-checked-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-rv-checked-note__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  margin: -12px -8px;
  padding: 0 8px;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
  background: none;
  border: 0;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  /* Expand usable hit area to >=44px; negative margin keeps visual rhythm. */
}

.home-list-prompt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 14px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(224, 245, 237, 0.7), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(10, 157, 106, 0.22);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-list-prompt:hover,
.home-list-prompt:focus-visible {
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: 0 8px 20px rgba(10, 157, 106, 0.12);
  outline: none;
}

.home-list-prompt__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--grad-primary, linear-gradient(135deg, var(--primary), #07814f));
  border-radius: 11px;
}

.home-list-prompt__icon .icon {
  width: 18px;
  height: 18px;
}

.home-list-prompt__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-list-prompt__copy strong {
  color: var(--heading);
  font-size: 0.95rem;
}

.home-list-prompt__copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}


.app-search-field,
.custom-select {
  display: block;
}

.app-search-field input,
.custom-select-trigger,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  color: var(--heading);
  background: #ffffff;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-search-field input,
.custom-select-trigger {
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
}

.app-search-field input::placeholder {
  color: #6d7483;
  opacity: 1;
}

.app-search-field.has-icon {
  position: relative;
}

.app-search-field.has-icon .app-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
}

.app-search-field.has-icon input {
  padding-left: 44px;
}

.app-search-field input:focus,
.custom-select-trigger:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.home-select-grid {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.custom-select {
  position: relative;
  z-index: 1;
}

.custom-select.is-open {
  z-index: 80;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 34px;
  text-align: left;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.home-select-grid .custom-select-trigger {
  background: #ffffff;
}

.home-select-grid .custom-select.is-open {
  z-index: 220;
}

.custom-select-trigger span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-select-trigger span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.12);
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform var(--duration-ui) var(--ease-out);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  gap: 2px;
  padding: 6px;
  max-height: min(280px, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -8px, 0);
  transition:
    opacity var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out),
    visibility var(--duration-ui) var(--ease-out);
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.custom-select-menu button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--heading);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 0.875rem;
}

.custom-select-menu button:hover {
  background: var(--accent-soft);
}

.custom-select-menu button.is-selected {
  color: var(--primary-strong, #0a9d6a);
  font-weight: 600;
  background: rgba(10, 157, 106, 0.08);
}

.custom-select.is-filtered .custom-select-trigger {
  border-color: rgba(10, 157, 106, 0.45);
  background: rgba(224, 245, 237, 0.45);
}

.custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-40%) rotate(-135deg);
}

.home-search-combobox {
  position: relative;
  z-index: 50;
}

.home-search-combobox.is-open {
  z-index: 90;
}

.home-search-combobox.has-icon input {
  padding-left: 44px;
  padding-right: 42px;
}

.home-search-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.home-search-input-wrap input {
  width: 100%;
}

.home-search-placeholder {
  position: absolute;
  top: 50%;
  left: 44px;
  right: 42px;
  display: flex;
  align-items: center;
  min-width: 0;
  color: #6d7483;
  font-size: 0.9375rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-search-placeholder__lead {
  margin-right: 7px;
  color: #8b95a5;
  font-weight: 500;
}

.home-search-placeholder__lead + .home-search-placeholder__segment {
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--muted);
  font-weight: 500;
}

.home-search-placeholder__segment {
  flex: 0 0 auto;
  color: #566070;
  font-weight: 600;
}

.home-search-placeholder__divider {
  width: 1px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0 10px;
  background: #c3ccd8;
}

.home-search-combobox.has-value .home-search-placeholder,
.home-search-combobox:focus-within .home-search-placeholder,
.home-search-input-wrap input:not(:placeholder-shown) + .home-search-placeholder {
  opacity: 0;
  visibility: hidden;
}

.home-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--icon-glyph-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.home-search-clear .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .home-search-clear:hover {
    color: var(--heading);
    background: var(--icon-surface-soft);
    box-shadow: var(--icon-tile-shadow-soft);
  }
}

.home-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(280px, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.home-search-suggestions:not([hidden]) {
  display: grid;
  gap: 2px;
  animation: surface-rise-in var(--duration-ui) var(--ease-out);
}

.home-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--heading);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.home-search-suggestion strong {
  font-weight: 600;
}

.home-search-suggestion__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.home-search-suggestion__title {
  color: var(--heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}

.home-search-suggestion__area {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.home-search-suggestion mark {
  padding: 0;
  color: inherit;
  font-weight: 700;
  background: rgba(10, 157, 106, 0.16);
}

.home-search-suggestion.is-active,
.home-search-suggestion:hover {
  background: var(--accent-soft);
}

.home-search-suggestion__meta {
  flex: 0 0 auto;
  padding: 2px 8px;
  color: #0f6b51;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(10, 157, 106, 0.1);
  border-radius: 999px;
}

.home-filter-select {
  position: relative;
}

.home-filter-select .custom-select-trigger {
  gap: 7px;
  justify-content: flex-start;
  padding-left: 10px;
  padding-right: 36px;
}

.home-filter-select .custom-select-trigger span::before {
  display: none;
}

.home-filter-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--icon-glyph-primary);
  background: var(--icon-surface-soft);
  border-radius: 8px;
  box-shadow: var(--icon-tile-shadow-soft);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.home-filter-trigger__icon .icon {
  width: 14px;
  height: 14px;
}

.home-filter-trigger__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
}

.home-filter-select.is-filtered .home-filter-trigger__label {
  color: #0a6f4c;
}

.home-filter-select.is-filtered .home-filter-trigger__icon {
  color: #ffffff;
  background: var(--icon-grad-primary);
  box-shadow: var(--icon-tile-shadow-raised);
}

.home-filter-select .custom-select-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
}

.home-filter-menu-hint {
  margin: 0;
  padding: 4px 10px 6px;
  color: #8b95a5;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-filter-option__label {
  min-width: 0;
  text-align: left;
  font-weight: 500;
}

.home-filter-option__meta {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 7px;
  color: #0f6b51;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: rgba(10, 157, 106, 0.1);
  border-radius: 999px;
}

.home-filter-select .custom-select-menu button.is-selected {
  position: relative;
  padding-right: 30px;
}

.home-filter-select .custom-select-menu button.is-selected::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat;
  -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='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-filter-select .custom-select-menu button.is-empty:not(.is-selected) {
  opacity: 0.78;
}

.home-filter-select .custom-select-menu button.is-empty .home-filter-option__meta {
  color: #9aa8b8;
  background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 760px) {
  .search-card:has(.home-filter-select.is-open) {
    z-index: 3500;
  }

  .home-select-grid:has(.home-filter-select.is-open) {
    z-index: 70;
  }

  .home-select-grid .home-filter-select.is-open {
    grid-column: auto;
    z-index: 3200;
  }

  .home-select-grid .home-filter-select.is-open .custom-select-menu {
    z-index: 3201;
  }

  .home-select-grid .home-filter-select .custom-select-menu {
    width: calc(200% + 8px);
    max-height: min(240px, 42vh);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(7, 10, 20, 0.22);
    -webkit-overflow-scrolling: touch;
  }

  .home-select-grid .home-filter-select:first-child .custom-select-menu {
    left: 0;
    right: auto;
  }

  .home-select-grid .home-filter-select:last-child .custom-select-menu {
    left: auto;
    right: 0;
  }

  .home-filter-trigger__label {
    font-size: 0.8125rem;
  }

  .home-filter-select:not(.is-filtered) .home-filter-trigger__label {
    font-size: 0.8rem;
  }
}

.search-card .button {
  position: relative;
  z-index: 0;
}

.launch-mini-card,
.listing-status-banner {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  color: #0f6b51;
  background: rgba(224, 245, 237, 0.78);
  border: 1px solid rgba(15, 163, 113, 0.14);
  border-radius: 14px;
}

.launch-mini-card {
  margin-top: 10px;
}

.launch-mini-card strong,
.listing-status-banner strong {
  color: #0b513f;
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

.launch-mini-card span,
.listing-status-banner span {
  color: #355f54;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Home sections */

.post-hero-panel,
.why-section-panel,
.how-panel,
.home-listing-panel,
.launch-notice-card {
  padding: clamp(22px, 3.6vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 233, 245, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.post-hero-panel,
.why-section-panel,
.how-panel,
.home-listing-panel {
  display: grid;
  gap: 20px;
}

.post-hero-panel > .section-heading,
.why-section-panel > .section-heading,
.how-panel > .section-heading,
.home-listing-panel > .section-heading {
  margin-bottom: 0;
}

.app-hero + .section {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding-top: 0;
}

.why-section-panel .section-heading {
  max-width: 620px;
}

.post-hero-panel .eyebrow,
.why-section-panel .eyebrow,
.how-panel .eyebrow,
.home-listing-panel .eyebrow,
.audience-card .eyebrow,
.launch-notice-card .eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 11px;
  color: #07814f;
  font-size: 0.7rem;
  letter-spacing: normal;
  background: rgba(224, 245, 237, 0.8);
  border: 1px solid rgba(10, 157, 106, 0.15);
  border-radius: 999px;
}

.post-hero-panel .eyebrow::before,
.why-section-panel .eyebrow::before,
.how-panel .eyebrow::before,
.home-listing-panel .eyebrow::before,
.audience-card .eyebrow::before,
.launch-notice-card .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.14);
}

.why-section-panel .eyebrow {
  color: #07814f;
  background: rgba(224, 245, 237, 0.8);
  border-color: rgba(10, 157, 106, 0.15);
}

.why-section-panel .eyebrow::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.12);
}

.how-panel .eyebrow,
.launch-notice-card .eyebrow {
  color: #0f6b51;
  background: rgba(224, 245, 237, 0.78);
  border-color: rgba(15, 163, 113, 0.14);
}

.how-panel .eyebrow::before,
.launch-notice-card .eyebrow::before {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(15, 163, 113, 0.12);
}

.audience-card .eyebrow {
  color: #07814f;
  background: rgba(224, 245, 237, 0.76);
  border-color: rgba(10, 157, 106, 0.14);
}

.home-areas-grid.popular-areas,
.popular-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-areas-secondary {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.home-areas-secondary .button {
  width: auto;
  min-width: 140px;
}

.home-area-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 76px;
  max-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  color: var(--heading);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-area-card:hover,
.home-area-card:focus-visible {
  color: var(--heading);
  background: #ffffff;
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
  outline: none;
}

.home-area-card__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-area-card__name {
  overflow: hidden;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-area-card__count,
.home-area-card .chip-count {
  color: #6d7483;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.home-area-card__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.home-area-card:hover .home-area-card__chevron,
.home-area-card:focus-visible .home-area-card__chevron {
  color: var(--primary);
}

.home-area-card--action {
  background: #fbfcfe;
  border-style: dashed;
  border-color: #d9e0ea;
}

.home-area-card--action .home-area-card__count {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 761px) {
  .home-areas-grid.popular-areas,
  .popular-areas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1100px) {
  .home-areas-grid.popular-areas,
  .popular-areas {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-listing-panel {
  background: #ffffff;
}

.why-section-panel {
  background: rgba(255, 255, 255, 0.92);
}

.how-panel {
  background: #ffffff;
}

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

.home-empty-state {
  grid-column: 1 / -1;
  margin-top: 0;
}

.home-property-card {
  display: block;
  overflow: hidden;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .home-property-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(10, 157, 106, 0.6);
    box-shadow: 0 0 0 1px rgba(10, 157, 106, 0.55), 0 0 26px rgba(10, 157, 106, 0.26), 0 0 44px rgba(52, 224, 176, 0.14), var(--shadow-strong);
  }
}

.home-property-card .home-property-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 172px;
  background: #e8edf2;
}

.home-property-card .home-property-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) brightness(1.06);
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .home-property-card:hover .home-property-media img {
    transform: scale(1.07);
  }
}

.home-property-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.home-property-body .status-badge {
  margin-bottom: 2px;
}

.home-property-body h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-property-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-property-body strong {
  color: var(--heading);
  font-size: 1rem;
}

.home-card-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 0;
  padding: 8px 13px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: var(--weight-title);
  background: var(--grad-primary);
  border-radius: 999px;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

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

.home-property-lister {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-property-lister-name {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-lister-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  background: transparent;
}

.home-lister-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-lister-avatar--company {
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.home-lister-avatar--company img {
  object-fit: cover;
}

.home-lister-avatar--photo img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  filter: none;
  transform: none;
  pointer-events: none;
}

.home-lister-avatar--initials {
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  background: var(--primary);
  border-color: transparent;
}

.home-lister-avatar--individual {
  color: #5a697b;
  background: #f0f4f8;
}

.home-lister-avatar--individual .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.home-card-link::after {
  content: "›";
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
}

.home-listing-link {
  width: fit-content;
}

.home-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-live-strip {
  position: relative;
  z-index: 3;
  margin-top: -88px;
  padding-bottom: 4px;
}

.home-live-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 18px;
  color: #0b513f;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 157, 106, 0.22);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(7, 10, 20, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.home-live-strip__text {
  margin: 0;
  color: #0f513f;
  font-size: 0.92rem;
  font-weight: var(--weight-label);
  line-height: 1.45;
}

.home-live-strip__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-live-strip__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  color: #066a49;
  font-size: 0.82rem;
  font-weight: var(--weight-title);
  background: rgba(224, 245, 237, 0.92);
  border: 1px solid rgba(10, 157, 106, 0.2);
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .home-live-strip__link:hover {
    color: #044f37;
    border-color: rgba(10, 157, 106, 0.42);
    background: #e0f5ed;
  }
}

.home-listing-panel--has-listings {
  border-color: rgba(10, 157, 106, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 250, 0.98) 100%);
}

@media (min-width: 761px) {
  .home-listing-grid--sparse {
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    justify-content: start;
  }
}

.home-property-avail {
  margin: 0;
  color: #0a9d6a;
  font-size: 0.78rem;
  font-weight: var(--weight-title);
  letter-spacing: normal;
  text-transform: none;
}

.home-property-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.home-property-reviewed {
  margin: 0;
  color: #6d7483;
  font-size: 0.8rem;
  line-height: 1.4;
}

.home-listings-swipe-hint {
  display: none;
  margin: -4px 0 0;
}

.home-section-note {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.chip--live {
  border-color: rgba(10, 157, 106, 0.35);
  background: rgba(224, 245, 237, 0.92);
  color: #066a49;
  font-weight: var(--weight-label);
}

.bayut-serp-page.home-page .home-section-listings .home-listing-panel,
.bayut-serp-page.home-page .home-section-areas .post-hero-panel,
.bayut-serp-page.home-page .home-section-trust .why-section-panel,
.bayut-serp-page.home-page .home-section-process .how-panel {
  border-color: #e8edf2;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.bayut-serp-page.home-page .home-empty-state {
  border-radius: 12px;
}

.bayut-serp-page.home-page .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.swipe-hint {
  display: none;
  width: fit-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: var(--primary);
  font-weight: var(--weight-title);
  letter-spacing: normal;
}

.app-card-grid,
.how-card-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.check-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.process-grid {
  counter-reset: process-step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.process-card {
  min-height: 118px;
  display: grid;
  align-content: start;
}

.accept-reject .button-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accept-reject .button-group .button {
  width: 100%;
  justify-content: center;
}

.app-card,
.how-card,
.feature-panel,
.info-card,
.process-card,
.content-card,
.warning-box,
.callout {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.app-card,
.how-card,
.info-card,
.process-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .app-card:hover,
  .how-card:hover,
  .info-card:hover,
  .process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 157, 106, 0.2);
    box-shadow: var(--shadow);
  }
}

.app-card,
.how-card,
.feature-panel,
.info-card,
.process-card,
.content-card,
.warning-box,
.callout {
  padding: 22px;
}

.feature-panel,
.content-card,
.warning-box,
.callout {
  display: grid;
  align-content: start;
  gap: 14px;
}

.feature-panel h2,
.content-card h2,
.warning-box h2,
.callout h2 {
  margin-bottom: 0;
}

.app-card p,
.how-card p,
.feature-panel p,
.content-card p,
.callout p {
  color: var(--muted);
}

.feature-panel p,
.content-card p,
.warning-box p,
.callout p {
  margin-bottom: 0;
}

.info-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--heading);
  font-weight: var(--weight-label);
  line-height: 1.45;
}

.info-card h3,
.info-card p {
  margin: 0;
}

.info-card p {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
}

.action-card .button,
.action-card .button-group {
  margin-top: auto;
}

.action-card .button-group {
  width: 100%;
  gap: 8px;
  flex-direction: column;
}

.action-card .button {
  min-height: 42px;
}

.action-card .button-group .button {
  width: 100%;
}

.process-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 116px;
}

.process-card span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  background: var(--grad-primary);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(10, 157, 106, 0.3);
}

.process-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.process-note {
  width: fit-content;
  margin: 16px 0 0;
  padding: 10px 12px;
  background: rgba(15, 163, 113, 0.08);
  border: 1px solid rgba(15, 163, 113, 0.14);
  border-radius: 999px;
}

.why-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: 14px;
  min-height: 142px;
}

.why-card h3,
.why-card p {
  grid-column: 2;
}

.why-card h3 {
  margin: 2px 0 6px;
}

.why-card p {
  margin-bottom: 0;
  line-height: 1.45;
}

.why-icon-tile,
.how-icon,
.audience-icon,
.launch-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
  border-radius: 16px;
  box-shadow: var(--icon-tile-shadow-raised);
}

.why-icon-tile {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  align-self: start;
}

.why-svg-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.checked-tile {
  background: var(--icon-grad-primary);
}

.whatsapp-tile,
.whatsapp-icon {
  background: #25d366;
}

.safety-tile {
  background: linear-gradient(135deg, #11b5c9, #34e0b0);
}

.payment-tile {
  background: var(--icon-grad-primary);
}

.info-tile {
  background: linear-gradient(135deg, #2f74ff, #4f8bff);
}

.warn-tile {
  background: linear-gradient(135deg, #e0922e, #f0b34c);
}

/* Proptech tile-card grid (agents & safety) */
.tile-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: var(--icon-tile-shadow-raised);
}

.tile-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.accept-reject .feature-panel {
  gap: 12px;
}

.check-list.reject-list li::before {
  content: "×";
  top: -2px;
  color: var(--warning);
  font-size: 1.15rem;
}

.check-list-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
}

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

.how-card,
.audience-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.how-icon,
.audience-icon,
.launch-notice-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  background: var(--icon-grad-primary);
  box-shadow: var(--icon-tile-shadow-raised);
}

.how-icon .icon,
.audience-icon .icon,
.launch-notice-icon .icon {
  width: 21px;
  height: 21px;
}

.whatsapp-icon .icon {
  width: 23px;
  height: 23px;
}

.how-card h3,
.audience-card h2 {
  margin-bottom: 8px;
}

.how-card p {
  margin-bottom: 0;
}

.how-card {
  position: relative;
}

@media (max-width: 760px) {
  .how-card {
    transform: none !important;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .how-card:hover {
    transform: none !important;
  }
}

@media (min-width: 901px) {
  .bayut-serp__toolbar {
    margin-bottom: 14px;
    border-color: #e4ebf2;
  }

  .bayut-serp__toolbar.is-stuck {
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
  }

  .bayut-serp-page.safety-body .section:not(.home-section) .eyebrow,
  .bayut-serp-page.verification-body .section:not(.home-section) .eyebrow,
  .bayut-serp-page.contact-body .section:not(.home-section) .eyebrow {
    min-height: 26px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: var(--weight-label);
    letter-spacing: normal;
    text-transform: none;
  }

  .bayut-serp-page.safety-body .section:not(.home-section) .eyebrow::before,
  .bayut-serp-page.verification-body .section:not(.home-section) .eyebrow::before,
  .bayut-serp-page.contact-body .section:not(.home-section) .eyebrow::before {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.1);
  }

  .bayut-serp-page.safety-body .feature-panel,
  .bayut-serp-page.verification-body .feature-panel,
  .bayut-serp-page.contact-body .feature-panel,
  .bayut-serp-page.contact-body .info-card,
  .bayut-serp-page.contact-body .content-card {
    padding: 24px;
  }

  .bayut-serp-page.safety-body .feature-panel p,
  .bayut-serp-page.verification-body .feature-panel p,
  .bayut-serp-page.contact-body .feature-panel p,
  .bayut-serp-page.contact-body .content-card p {
    max-width: 70ch;
  }

  .button,
  .bayut-btn,
  .bayut-view-toggle__btn,
  .bayut-tag,
  .bayut-quick-chip {
    transition-duration: 0.18s;
  }
}

.how-step {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--primary-hover);
  font-size: 0.8rem;
  font-weight: var(--weight-title);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 157, 106, 0.18);
  border-radius: 50%;
}

.audience-card > p:not(.eyebrow) {
  margin-bottom: 18px;
}

.how-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  color: #0a7d56;
  font-weight: var(--weight-label);
  background: var(--success-soft);
  border: 1px solid rgba(15, 163, 113, 0.18);
  border-radius: 14px;
}

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

.audience-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 12px 14px;
  padding: 26px;
  overflow: hidden;
  position: relative;
}

.audience-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -46px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(10, 157, 106, 0.1), transparent 68%);
  pointer-events: none;
}

.audience-card .button {
  width: fit-content;
  min-width: 150px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.audience-card .button-group {
  grid-column: 1 / -1;
  grid-row: 4;
  align-self: end;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.audience-card .button-group .button {
  margin-top: 0;
}

.audience-card .audience-icon {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.audience-card .eyebrow {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-bottom: 0;
}

.audience-card h2,
.audience-card > p:not(.eyebrow),
.audience-card .button {
  grid-column: 1 / -1;
}

.audience-card h2 {
  grid-row: 2;
  max-width: 480px;
  margin-top: 4px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.audience-card > p:not(.eyebrow) {
  grid-row: 3;
  max-width: 520px;
  align-self: start;
  line-height: 1.5;
}

.audience-card .button {
  grid-row: 4;
  align-self: end;
}

@media (hover: hover) and (pointer: fine) {
  .audience-card {
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  }

  .renter-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 157, 106, 0.6);
    box-shadow: 0 0 0 1px rgba(10, 157, 106, 0.5), 0 0 28px rgba(10, 157, 106, 0.24), var(--shadow-strong);
  }

  .agent-card:hover {
    transform: translateY(-5px);
    border-color: rgba(47, 116, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(47, 116, 255, 0.42), 0 0 28px rgba(47, 116, 255, 0.2), var(--shadow-strong);
  }
}

.renter-card .audience-icon {
  background: var(--primary);
}

.agent-card .audience-icon {
  background: var(--success);
}

.launch-notice-card {
  max-width: 780px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 14px;
  padding: clamp(24px, 3.4vw, 30px);
}

.launch-notice-header {
  display: contents;
}

.launch-notice-header .launch-notice-icon {
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--success), #0a6c53);
}

.launch-notice-header .eyebrow,
.launch-notice-header h2 {
  margin-bottom: 0;
}

.launch-notice-header h2 {
  line-height: 1.08;
}

.launch-chip-grid {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 8px;
  margin: 0;
}

.launch-chip-grid span {
  padding: 8px 11px;
  color: #07814f;
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  background: rgba(224, 245, 237, 0.72);
  border: 1px solid rgba(10, 157, 106, 0.12);
  border-radius: 999px;
}

.launch-notice-card > p {
  grid-column: 2;
  max-width: 640px;
  margin-bottom: 0;
}

/* Page heroes and content layouts */

.page-hero {
  position: relative;
  padding: 48px 0 36px;
  text-align: left;
  isolation: isolate;
}

.app-page-hero {
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + 26px);
  overflow: hidden;
  background: var(--grad-ink);
  border-bottom: 1px solid var(--ink-line);
}

.app-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 120% at 4% 0%, rgba(10, 157, 106, 0.42) 0%, transparent 60%),
    radial-gradient(50% 120% at 98% 8%, rgba(15, 191, 154, 0.32) 0%, transparent 62%);
}

.app-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000, transparent 70%);
}

.app-page-hero .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.page-hero .pill {
  margin-bottom: 12px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.app-page-hero h1 {
  color: var(--on-dark);
}

.page-hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.app-page-hero p {
  color: var(--on-dark-muted);
}

.confirmation-hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 54px 0;
}

.confirmation-hero .narrow {
  max-width: 680px;
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.confirmation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirmation-card-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 16px;
}

.confirmation-card-top .pill {
  margin-bottom: 0;
}

.confirmation-card h1 {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.confirmation-card p {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.confirmation-hero .pill,
.confirmation-hero p {
  margin-inline: auto;
}

.confirmation-hero .button-group {
  justify-content: center;
  margin-top: 22px;
}

.confirmation-hero .narrow h1 {
  color: var(--heading);
}

.confirmation-hero .narrow p {
  color: var(--muted);
}

.confirmation-hero .narrow .pill {
  color: #07814f;
  background: var(--primary-soft);
  border: 1px solid rgba(10, 157, 106, 0.18);
}

.confirmation-success {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--icon-grad-primary);
  border-radius: 18px;
  box-shadow: var(--icon-tile-shadow-raised);
}

.confirmation-success .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.confirmation-review-note {
  margin-top: 12px;
  color: var(--heading);
  font-weight: 700;
}

.confirmation-safety-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.confirmation-hero .confirmation-actions {
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 26px;
  gap: 12px;
}

.thank-you-steps .next-step-card.is-featured {
  border-color: rgba(10, 157, 106, 0.34);
  box-shadow: 0 14px 30px rgba(10, 157, 106, 0.12);
}

.thank-you-steps .next-step-card.is-muted {
  opacity: 0.78;
}

.thank-tertiary-link {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.thank-tertiary-link a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.thank-tertiary-link a:hover,
.thank-tertiary-link a:focus-visible {
  color: var(--primary-dark, #07814f);
}

body.thank-you-has-context .thank-you-next-section,
.thank-you-next-section[hidden] {
  display: none !important;
}

body.thank-you-has-context .thank-you-page-section {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Anti-flash: hide generic thank-you paint until hydrateThankYouPage() reveals it.
   No-JS never adds rv-thank-pending, so the safe generic fallback stays visible. */
html.rv-thank-pending [data-thank-you-page] {
  visibility: hidden;
}

html.rv-thank-ready [data-thank-you-page],
html:not(.rv-thank-pending) [data-thank-you-page] {
  visibility: visible;
}

/* Compact confirmation card for known contextual thank-you states only */
body.thank-you-has-context.thank-you-page .confirmation-panel {
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

body.thank-you-has-context .confirmation-card-top {
  margin-bottom: 10px;
  gap: 0;
}

body.thank-you-has-context .confirmation-card-top .pill[hidden] {
  display: none !important;
}

body.thank-you-has-context.thank-you-page .confirmation-panel h1 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

body.thank-you-has-context.thank-you-page .confirmation-panel > p {
  margin: 0 0 0.55rem;
}

body.thank-you-has-context.thank-you-page .confirmation-panel .confirmation-review-note,
body.thank-you-has-context.thank-you-page .confirmation-panel .confirmation-safety-note {
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

body.thank-you-has-context.thank-you-page .confirmation-panel .confirmation-actions {
  margin-top: 12px;
  gap: 10px;
}

body.thank-you-has-context .thank-tertiary-link {
  margin-top: 0.55rem;
}

.section:not(.home-section) .eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 7px 11px;
  color: #07814f;
  font-size: 0.68rem;
  font-weight: var(--weight-title);
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  background: rgba(224, 245, 237, 0.78);
  border: 1px solid rgba(10, 157, 106, 0.12);
  border-radius: 999px;
}

.section:not(.home-section) .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.12);
}

.two-column,
.form-layout,
.contact-grid,
.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4.4vw, 44px);
  align-items: start;
}

.section:not(.home-section) > .container {
  position: relative;
}

.two-column > div:first-child,
.form-layout > .section-heading,
.contact-grid > aside:first-child {
  max-width: 520px;
}

.two-column > div:first-child,
.form-layout > .section-heading,
.contact-grid > aside:first-child:not(.content-card) {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 219, 232, 0.68);
  border-radius: 18px;
}

.submit-support-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 16px;
}

.support-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 8px 10px;
  color: #0f6b51;
  font-size: 0.74rem;
  font-weight: var(--weight-title);
  letter-spacing: normal;
  text-transform: none;
  background: rgba(224, 245, 237, 0.72);
  border: 1px solid rgba(15, 163, 113, 0.14);
  border-radius: 999px;
}

.support-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(15, 163, 113, 0.12);
}

.submit-support-intro p:last-child {
  margin-bottom: 0;
}

.submit-support-cards {
  display: grid;
  gap: 10px;
}

.support-card {
  position: relative;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(212, 219, 232, 0.72);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.support-card::before {
  content: "";
  position: absolute;
  inset: 12px auto auto 12px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.12);
}

.support-card h3 {
  padding-left: 18px;
  margin-bottom: 5px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.support-card p {
  padding-left: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.two-column > div:first-child .eyebrow,
.form-layout .section-heading .eyebrow,
.contact-grid .eyebrow {
  margin-bottom: 10px;
}

.two-column > div:first-child h2,
.form-layout .section-heading h2,
.contact-grid h2 {
  margin-bottom: 10px;
}

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

.check-grid .info-card {
  position: relative;
  padding-left: 48px;
}

.check-grid .info-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 16px;
  height: 16px;
  background:
    radial-gradient(circle at center, #ffffff 0 28%, transparent 31%),
    linear-gradient(135deg, var(--success), #0a6c53);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(15, 163, 113, 0.1);
}

.status-grid .feature-panel {
  min-height: 100%;
  gap: 12px;
}

.status-grid .panel-illustration,
.warning-box .panel-illustration,
.callout .panel-illustration {
  width: 58px;
  height: 58px;
  padding: 10px;
  background: #f3f6fc;
  border: 1px solid rgba(212, 219, 232, 0.74);
  border-radius: 18px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.content-card .check-list + .button,
.content-card .button + .small-note {
  margin-top: 18px;
}

.content-card .button {
  width: fit-content;
}

.content-card .check-list {
  gap: 9px;
}

.content-card .small-note + .small-note {
  margin-top: -2px;
}

.prep-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid rgba(212, 219, 232, 0.72);
  border-radius: 16px;
}

.prep-checklist h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.prep-checklist .check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.prep-checklist .check-list li {
  min-height: 34px;
  padding: 8px 10px 8px 30px;
  background: #ffffff;
  border: 1px solid rgba(212, 219, 232, 0.68);
  border-radius: 12px;
}

.prep-checklist .check-list li::before {
  top: 8px;
  left: 10px;
}

.content-card > :last-child,
.feature-panel > :last-child,
.warning-box > :last-child,
.callout > :last-child {
  margin-bottom: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: var(--weight-title);
}

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

.prose p:last-child {
  margin-bottom: 0;
}

.panel-illustration {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 2px;
}

.warning-box {
  margin-top: 18px;
  background: linear-gradient(180deg, #f3f7ff, #eef3ff);
  border: 1px solid rgba(10, 157, 106, 0.16);
  box-shadow: inset 4px 0 0 var(--primary), var(--shadow-sm);
}

.safety-callout {
  margin-top: 14px;
}

.safety-list {
  counter-reset: safety-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.safety-list li {
  counter-increment: safety-step;
  position: relative;
  min-height: 100%;
  padding: 16px 16px 16px 54px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.safety-list li::before {
  content: counter(safety-step);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07814f;
  font-size: 0.78rem;
  font-weight: var(--weight-title);
  background: var(--accent-soft);
  border-radius: 10px;
}

/* Listings */

.listings-screen {
  padding-top: 24px;
}

.filter-chips {
  position: static;
  top: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 219, 232, 0.74);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

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

.sort-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px 18px;
  margin: 0 0 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(212, 219, 232, 0.74);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.filter-select {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.budget-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-select > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-title);
  letter-spacing: normal;
  text-transform: none;
}

/* Chevron SVG mirrors .custom-select-trigger::after (rotated square border → V). */
.filter-select select {
  min-height: 48px;
  width: 100%;
  padding: 0 34px 0 13px;
  color: var(--heading);
  font: inherit;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25 L6 8 L9.75 4.25' stroke='%236d7483' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 12px) 50%;
  background-size: 12px 12px;
  background-repeat: no-repeat;
}

/* Native SSR first paint: green marker ONLY when select is non-default (is-filtered). */
.bayut-serp .filter-select select.is-filtered:not(.native-filter-select),
.bayut-area-page .filter-select select.is-filtered:not(.native-filter-select),
.bayut-serp__toolbar .bayut-sort select.is-filtered:not(.native-filter-select) {
  padding-left: 28px;
  background-image:
    radial-gradient(circle at 13px 50%, var(--primary) 3.5px, rgba(10, 157, 106, 0.12) 4px, rgba(10, 157, 106, 0.12) 8px, transparent 9px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25 L6 8 L9.75 4.25' stroke='%236d7483' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position:
    0 0,
    calc(100% - 12px) 50%;
  background-size: 28px 100%, 12px 12px;
  background-repeat: no-repeat;
}

/* Custom-select marker: ONLY when is-filtered / is-active-value (non-default). Never always-on. */
.bayut-serp .listing-custom-select .custom-select-trigger,
.bayut-area-page .listing-custom-select .custom-select-trigger,
.bayut-serp__toolbar .bayut-sort .listing-custom-select .custom-select-trigger {
  position: relative;
}

.bayut-serp .listing-custom-select.is-filtered .custom-select-trigger,
.bayut-area-page .listing-custom-select.is-filtered .custom-select-trigger,
.bayut-serp__toolbar .bayut-sort .listing-custom-select.is-filtered .custom-select-trigger,
.bayut-serp .listing-custom-select.is-active-value .custom-select-trigger,
.bayut-area-page .listing-custom-select.is-active-value .custom-select-trigger,
.bayut-serp__toolbar .bayut-sort .listing-custom-select.is-active-value .custom-select-trigger {
  padding-left: 28px;
}

.bayut-serp .listing-custom-select.is-filtered .custom-select-trigger::before,
.bayut-area-page .listing-custom-select.is-filtered .custom-select-trigger::before,
.bayut-serp__toolbar .bayut-sort .listing-custom-select.is-filtered .custom-select-trigger::before,
.bayut-serp .listing-custom-select.is-active-value .custom-select-trigger::before,
.bayut-area-page .listing-custom-select.is-active-value .custom-select-trigger::before,
.bayut-serp__toolbar .bayut-sort .listing-custom-select.is-active-value .custom-select-trigger::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.12);
  pointer-events: none;
}

.bayut-serp .listing-custom-select .custom-select-trigger span::before,
.bayut-area-page .listing-custom-select .custom-select-trigger span::before,
.bayut-area-filters .listing-custom-select .custom-select-trigger span::before,
.bayut-serp__toolbar .bayut-sort .listing-custom-select .custom-select-trigger span::before {
  content: none;
  display: none;
  width: 0;
  height: 0;
  box-shadow: none;
}

/* Explicit kill-switch: never paint dots on default area/listings controls. */
.bayut-serp .listing-custom-select:not(.is-filtered):not(.is-active-value) .custom-select-trigger::before,
.bayut-area-page .listing-custom-select:not(.is-filtered):not(.is-active-value) .custom-select-trigger::before,
.bayut-area-filters .listing-custom-select:not(.is-filtered):not(.is-active-value) .custom-select-trigger::before,
.bayut-serp__toolbar .bayut-sort .listing-custom-select:not(.is-filtered):not(.is-active-value) .custom-select-trigger::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  box-shadow: none !important;
}

.filter-select .native-filter-select {
  display: none;
}

.listing-custom-select {
  width: 100%;
}

/* Public filter custom selects must shrink inside minmax(0, 1fr) cells.
   min-width:auto lets long SI/TA labels exceed the grid cell. */
.bayut-map-filters .listing-custom-select,
.bayut-serp .listing-custom-select,
.bayut-mobile-filters .listing-custom-select,
.bayut-area-filters .listing-custom-select,
.bayut-area-page .listing-custom-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.listing-custom-select .custom-select-trigger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 48px;
  padding-inline: 13px 34px;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  background: #ffffff;
  border-color: var(--border);
  border-radius: var(--button-radius);
}

.listing-custom-select .custom-select-trigger span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--heading);
  font-size: 0.86rem;
  font-weight: var(--weight-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-custom-select .custom-select-menu {
  z-index: 60;
}

/* Keep listing filter dropdown options as clean rows (match homepage hero),
   not bordered boxes. The .sort-filter-bar button rule must not leak in. */
.listing-custom-select .custom-select-menu button {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.listing-custom-select .custom-select-menu button:hover {
  background: var(--accent-soft);
}

.listing-custom-select.is-open {
  z-index: 70;
}

.filter-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.12);
}

.sort-filter-bar button {
  min-height: 44px;
  color: var(--heading);
  font-weight: var(--weight-label);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
}

.listings-screen .section-heading {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 10px;
}

.listings-screen .section-heading h2 {
  margin-bottom: 6px;
}

.listings-screen .section-heading p:last-child {
  margin-bottom: 0;
}

.listings-screen .result-toolbar {
  margin-top: 0;
  margin-bottom: 12px;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: var(--weight-title);
}

.result-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: var(--weight-label);
}

.result-meta span {
  min-width: 0;
}

.result-meta button {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: var(--weight-title);
  background: var(--accent-soft);
  border: 1px solid rgba(10, 157, 106, 0.12);
  border-radius: 999px;
}

.listing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .property-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10, 157, 106, 0.6);
    box-shadow: 0 0 0 1px rgba(10, 157, 106, 0.55), 0 0 26px rgba(10, 157, 106, 0.26), 0 0 44px rgba(52, 224, 176, 0.14), var(--shadow-strong);
  }
}

.property-media {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  background: var(--surface-soft);
}

.property-media-track {
  display: flex;
  height: 232px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  cursor: grab;
  user-select: none;
}

.property-media-track:active {
  cursor: grabbing;
}

.property-media-track::-webkit-scrollbar {
  display: none;
}

.property-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(12, 20, 36, 0) 64%, rgba(12, 20, 36, 0.08) 100%);
  pointer-events: none;
}

.property-media img {
  flex: 0 0 100%;
  width: 100%;
  height: 232px;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  filter: saturate(1.08) brightness(1.06);
  transition: transform 0.6s var(--ease);
}

.property-media-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  gap: 5px;
  padding: 5px 7px;
  background: rgba(7, 10, 20, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
  pointer-events: none;
}

.property-media-dots span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.property-media-dots span.is-active {
  width: 15px;
  background: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .property-card:hover .property-media img {
    transform: scale(1.07);
  }
}

.property-image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 11px;
  background: #ffffff;
  border: 1px solid rgba(212, 219, 232, 0.78);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.media-badges {
  display: flex;
  flex: 1 1 180px;
  flex-wrap: wrap;
  gap: 6px;
}

.property-image-meta .rv-check-badge,
.detail-trust-strip .rv-check-badge {
  box-shadow: 0 4px 12px rgba(10, 157, 106, 0.08);
}

.property-image-meta .status-badge,
.detail-media-overlay .status-badge {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(212, 219, 232, 0.72);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.04);
}

.rent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px 8px;
  color: var(--portal-text);
  font-size: 0.9375rem;
  font-weight: var(--weight-title);
  font-family: var(--font-body);
  letter-spacing: normal;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  border: 1px solid rgba(10, 157, 106, 0.22);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.07);
}

.rent-badge::before {
  content: "Rent";
  margin-bottom: 1px;
  color: var(--portal-muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

.property-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.property-title-row {
  display: block;
  align-items: flex-start;
}

.property-title-row p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: var(--weight-label);
}

.property-title-row h2,
.property-title-row h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.listing-reference {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-title);
  letter-spacing: 0.02em;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.property-body > .button {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
}

.property-body > .button-primary[href*="contact.html#contact-form"] {
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.24);
}

.property-body > .button-primary[href*="contact.html#contact-form"]:hover {
  background: linear-gradient(135deg, #1fbd5d, #0f776c);
  box-shadow: 0 18px 34px rgba(18, 140, 126, 0.3);
}

.inline-detail-panel .button-primary[href*="contact.html#contact-form"],
.detail-summary-card .detail-enquiry {
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.22);
}

.detail-summary-card .detail-enquiry.button-full {
  width: 100%;
  margin-top: 2px;
}

.property-body > .details-toggle,
.property-body > .details-link {
  margin-top: auto;
}

.property-body > .button + .button {
  margin-top: -2px;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: auto;
}

.card-actions .button {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  white-space: normal;
  line-height: 1.2;
}

.card-actions .details-link {
  color: #ffffff;
  background: var(--grad-primary);
  border-color: rgba(10, 157, 106, 0.35);
  box-shadow: var(--shadow-primary);
}

.card-actions .button-primary:not(.details-link) {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: rgba(10, 157, 106, 0.26);
  box-shadow: var(--shadow-xs);
}

.card-actions .button-primary:not(.details-link):hover {
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.24);
}

.property-body .small-note {
  margin: 2px 0 0;
  line-height: 1.4;
}

.listing-update-link {
  width: fit-content;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-title);
}

.listing-update-link:hover {
  color: var(--primary);
}

.inline-detail-panel {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.inline-detail-header {
  display: grid;
  gap: 3px;
}

.inline-detail-header strong {
  color: var(--heading);
  font-size: 0.98rem;
}

.inline-detail-header span,
.inline-detail-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.inline-detail-note {
  margin: -2px 0 0;
  padding: 10px 11px;
  background: rgba(224, 245, 237, 0.64);
  border: 1px solid rgba(15, 163, 113, 0.12);
  border-radius: 12px;
}

.inline-detail-panel[hidden],
.property-card[hidden] {
  display: none;
}

.inline-detail-grid {
  display: grid;
  gap: 10px;
}

.inline-detail-grid article {
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(212, 219, 232, 0.7);
  border-radius: 12px;
}

.inline-detail-grid strong,
.inline-detail-grid span {
  display: block;
}

.inline-detail-grid strong {
  margin-bottom: 5px;
  color: var(--heading);
  font-size: 0.84rem;
}

.inline-detail-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Listing detail page */

.back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: var(--weight-label);
  transition: color 0.2s var(--ease);
}

.back-link:hover {
  color: #ffffff;
}

.back-link::before {
  content: "←";
  color: var(--cyan);
}

.detail-media-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-media-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 22%);
  gap: 12px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.detail-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(16, 24, 40, 0) 70%, rgba(16, 24, 40, 0.08) 100%);
  pointer-events: none;
}

.detail-gallery-main {
  position: relative;
  overflow: hidden;
  height: clamp(240px, 56vw, 320px);
  background: #dfe5eb;
  border-radius: var(--radius) var(--radius) 0 0;
  touch-action: pan-y;
  cursor: default;
}

.detail-gallery-main > .detail-gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
}

.detail-gallery-track {
  display: none;
}

.detail-gallery-track {
  flex-direction: row;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.detail-gallery-track::-webkit-scrollbar {
  display: none;
}

.detail-gallery-track {
  height: 100%;
  background: #dfe5eb;
}

.detail-gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: none;
}

.detail-gallery-main.is-scroll-gallery {
  overflow: hidden;
  touch-action: pan-x pan-y;
}

/* Track is the only visible mobile surface — never let the hero img take layout or paint. */
.detail-gallery-main.is-scroll-gallery > .detail-gallery-hero-img {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.detail-gallery-main.is-scroll-gallery .detail-gallery-track {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-gallery-main:active {
  cursor: default;
}

.detail-gallery-main > img {
  cursor: zoom-in;
  pointer-events: auto;
}

.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.16);
  cursor: pointer;
  /* Motion M1 Batch 1 — P1.3: color/bg/shadow only; keep centering transform unanimated. */
  transition:
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.detail-gallery-arrow:hover {
  color: var(--primary);
  background: #ffffff;
}

.detail-gallery-prev {
  left: 9px;
}

.detail-gallery-next {
  right: 9px;
}

.detail-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 5;
  display: none;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(7, 10, 20, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
}

.detail-gallery-dots button {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.detail-gallery-dots button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.detail-gallery-dots button.is-active::after {
  width: 18px;
  background: #ffffff;
}

.detail-gallery-dots span {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.detail-gallery-dots span.is-active {
  width: 18px;
  background: #ffffff;
}

.detail-gallery-thumbs {
  display: grid;
  grid-auto-rows: minmax(108px, 1fr);
  gap: 10px;
  max-height: clamp(260px, 72vw, 400px);
  padding: 12px 12px 12px 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.detail-gallery-thumb {
  position: relative;
  min-height: 108px;
  padding: 0;
  overflow: hidden;
  background: #eef2f0;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  cursor: pointer;
}

.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) brightness(1.04);
  transition: transform 0.35s var(--ease);
}

.detail-gallery-thumb:hover img,
.detail-gallery-thumb.is-active img {
  transform: scale(1.05);
}

.detail-gallery-thumb.is-active {
  border-color: rgba(10, 157, 106, 0.88);
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.14), 0 10px 24px rgba(16, 24, 40, 0.12);
}

.detail-media-overlay {
  grid-column: 1 / -1;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 12px 12px;
  padding: 11px;
  background: #ffffff;
  border: 1px solid rgba(212, 219, 232, 0.78);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.detail-media-overlay strong {
  min-height: 38px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--weight-title);
  background: linear-gradient(135deg, var(--primary), #07814f);
  border: 1px solid rgba(10, 157, 106, 0.18);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(10, 157, 106, 0.2);
}

.detail-summary-card {
  position: static;
}

.detail-facts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.detail-facts-grid span {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  background: var(--surface-soft);
  border: 1px solid rgba(212, 219, 232, 0.72);
  border-radius: 14px;
}

.detail-facts-grid strong {
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: var(--weight-title);
}

.detail-badges {
  margin-top: 2px;
}

.fact-row,
.property-meta,
.badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 7px;
}

.fact-row span,
.property-meta span,
.badge-row .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  padding: 8px 10px;
  text-align: left;
}

.fact-row span,
.property-meta span {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.property-meta span {
  color: var(--heading);
  background: transparent;
  border: 1px solid var(--border);
}

/* Add brand colour to the listing fact/meta labels so they are not all grey. */
.fact-row span .icon {
  color: var(--primary);
}

.property-meta span .icon {
  color: var(--secondary);
}

.property-meta span:first-child {
  color: #1f4fb0;
  background: rgba(47, 116, 255, 0.08);
  border-color: rgba(47, 116, 255, 0.18);
}

.property-meta span:first-child .icon {
  color: var(--secondary);
}

.detail-preview,
.empty-state {
  margin-top: 26px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.preview-grid article {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.preview-grid strong,
.preview-grid span {
  display: block;
}

.preview-grid strong {
  margin-bottom: 6px;
  color: var(--heading);
}

.preview-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state[hidden] {
  display: none;
}

.mobile-sticky-cta {
  display: none;
}

/* Forms */

.contact-form {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.large-form {
  gap: 22px;
}

.contact-form .form-honeypot,
.rv-saved-search-dialog .form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

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

.contact-form .form-grid-span {
  grid-column: 1 / -1;
}

.availability-fields {
  display: grid;
  gap: 14px;
}

.availability-date-field.is-hidden {
  display: none;
}

.form-date-picker {
  position: relative;
  width: 100%;
}

.form-date-picker-trigger {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 34px;
  display: flex;
  align-items: center;
  color: var(--heading);
  font: inherit;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  text-align: left;
  background:
    radial-gradient(circle at 16px 50%, var(--primary) 0 3px, transparent 4px),
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
  cursor: pointer;
}

.form-date-picker-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.form-date-picker-trigger:focus-visible {
  border-color: rgba(10, 157, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.14);
}

.form-date-picker:not(.has-value) [data-date-picker-label] {
  color: #6d7483;
}

.form-date-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(212, 219, 232, 0.88);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}

.form-date-picker-popover[hidden] {
  display: none;
}

.form-date-picker.is-open {
  z-index: 130;
}

.form-date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.form-date-picker-month {
  flex: 1;
  text-align: center;
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: var(--weight-title);
}

.form-date-picker-nav {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  background: #f7faf8;
  border: 1px solid rgba(212, 219, 232, 0.9);
  border-radius: 10px;
  cursor: pointer;
}

.form-date-picker-nav:hover {
  background: #eef6f1;
  border-color: rgba(10, 157, 106, 0.22);
}

.form-date-picker-weekdays,
.form-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.form-date-picker-weekdays {
  margin-bottom: 6px;
}

.form-date-picker-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-label);
}

.form-date-picker-day {
  min-height: 38px;
  padding: 0;
  color: var(--heading);
  font-size: 0.86rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.form-date-picker-day:hover:not(:disabled) {
  background: rgba(10, 157, 106, 0.08);
}

.form-date-picker-day.is-selected {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(10, 157, 106, 0.24);
}

.form-date-picker-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px rgba(10, 157, 106, 0.35);
}

.form-date-picker-day.is-outside,
.form-date-picker-day:disabled {
  color: #b8c0cc;
  cursor: default;
}

.form-date-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e7ede9;
}

.form-date-picker-actions button {
  padding: 4px 2px;
  color: var(--primary);
  font: inherit;
  font-size: 0.84rem;
  font-weight: var(--weight-label);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.contact-form label,
.contact-form fieldset {
  position: relative;
  display: grid;
  gap: 9px;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: var(--weight-label);
  line-height: 1.3;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--heading);
  font-weight: 600;
  box-sizing: border-box;
}

.contact-form select {
  padding: 0 38px 0 34px;
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  appearance: none;
  background:
    radial-gradient(circle at 16px 50%, var(--primary) 0 3px, transparent 4px),
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  border-color: var(--border);
  border-radius: var(--button-radius);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
}

.contact-form select:focus {
  background:
    radial-gradient(circle at 16px 50%, var(--primary) 0 3px, transparent 4px),
    linear-gradient(45deg, transparent 50%, var(--heading) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--heading) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.contact-form .native-form-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-custom-select {
  width: 100%;
}

.form-custom-select .custom-select-trigger {
  width: 100%;
  min-height: 48px;
  padding-inline: 34px;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  background: #ffffff;
  border-color: var(--border);
  border-radius: var(--button-radius);
  box-shadow: var(--shadow-xs);
}

.form-custom-select .custom-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-custom-select .custom-select-menu {
  z-index: 80;
  max-height: 260px;
  overflow-y: auto;
}

.form-custom-select.is-open {
  z-index: 90;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.contact-form .form-section {
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 244, 250, 0.85) 100%);
  border: 1px solid rgba(212, 219, 232, 0.68);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.045);
}

.contact-form .form-section > legend {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #07814f;
  font-size: 0.76rem;
  background: var(--accent-soft);
  border: 1px solid rgba(10, 157, 106, 0.12);
  border-radius: 999px;
}

.contact-form .form-section > legend::before {
  content: attr(data-step);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: var(--weight-title);
  background: var(--primary);
  border-radius: 8px;
}

.contact-form .form-section-intro {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.nested-options {
  gap: 10px;
}

.stacked-fields {
  display: grid;
  gap: 16px;
}

.contact-form legend {
  padding: 0;
  margin-bottom: 9px;
  color: var(--heading);
  font-weight: var(--weight-title);
}

.form-progress {
  width: fit-content;
  padding: 8px 11px;
  color: #07814f;
  font-size: 0.78rem;
  font-weight: var(--weight-title);
  background: var(--accent-soft);
  border-radius: 999px;
}

.form-progress + .form-grid,
.form-progress + fieldset {
  margin-top: -4px;
}

.contact-form .small-note {
  margin: -2px 0 0;
}

.contact-form .form-alert-note {
  margin: 0;
  padding: 11px 12px;
  color: #0b513f;
  background: rgba(224, 245, 237, 0.62);
  border: 1px solid rgba(15, 163, 113, 0.13);
  border-radius: 13px;
}

.contact-form .form-alert-note-strong {
  box-shadow: 0 10px 24px rgba(15, 163, 113, 0.08);
}

.contact-form .form-alert-note-subtle {
  color: var(--muted);
  background: rgba(241, 244, 250, 0.8);
  border-color: rgba(212, 219, 232, 0.68);
}

.contact-form .button {
  justify-self: start;
  min-width: 180px;
}

.contact-form .form-submit-error {
  margin: -2px 0 0;
  color: #9f1d20;
  font-weight: var(--weight-label);
}

.next-step-card {
  min-height: 100%;
}

.next-step-card .button {
  margin-top: auto;
}

.update-card .button-group {
  margin-top: 6px;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

@media (max-width: 900px) {
  .option-group.amenity-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.option {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  width: fit-content;
  padding: 10px 12px;
  color: var(--text) !important;
  font-size: 0.88rem !important;
  font-weight: var(--weight-label) !important;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.amenity-options .option {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  border-radius: 14px;
}

.option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  min-height: auto;
  padding: 0;
  box-shadow: none;
}

/* Brand the native radios/checkboxes and remove the square focus glow that the
   generic .contact-form input:focus rule added to small controls. */
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary);
}

.option input:focus,
.contact-form input[type="radio"]:focus,
.contact-form input[type="checkbox"]:focus {
  box-shadow: none;
}

.option input:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

/* Date fields: match the other inputs and brand the picker control. */
.contact-form input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  color: var(--heading);
  font-weight: 700;
}

.contact-form input[type="date"]::-webkit-datetime-edit {
  color: var(--heading);
}

.contact-form input[type="date"]:required:invalid::-webkit-datetime-edit {
  color: var(--muted);
}

.contact-form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 17px;
  height: 17px;
  padding: 2px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.contact-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.9;
}

.consent {
  width: auto;
  max-width: 760px;
  align-items: flex-start;
  line-height: 1.45;
  border-radius: 14px;
}

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

.contact-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.contact-grid .content-card {
  gap: 10px;
}

.contact-grid .content-card a {
  color: var(--primary);
  font-weight: var(--weight-title);
}

a[href^="mailto:"] {
  font-weight: var(--weight-title);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(10, 157, 106, 0.45);
}

a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus-visible {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.form-layout > .section-heading p:last-child,
.contact-grid > aside p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  position: relative;
  padding: 48px 0 26px;
  color: rgba(255, 255, 255, 0.74);
  /* Premium Footer V1 — calm near-black (no gradient surface) */
  background: #0a0c12;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.footer-brand img {
  width: clamp(200px, 22vw, 240px);
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p,
.footer-bottom p {
  margin-bottom: 8px;
}

.footer-note {
  max-width: 390px;
  margin-left: clamp(43px, 4.5vw, 54px);
  margin-top: 0;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 0;
}

.site-footer .footer-note + .footer-note {
  margin-top: 6px;
  padding-top: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.5;
  border-top: 0;
}

.footer-link-groups {
  display: grid;
  /* Row 1: Platform | Trust | Legal | Contact — Row 2: Connect | Get the app */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.footer-link-groups h3 {
  margin-bottom: 9px;
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-link-groups a {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-link-groups > .footer-connect {
  grid-column: 1 / 3;
  min-width: 0;
  margin-top: 4px;
}

.footer-link-groups > .footer-app {
  grid-column: 3 / 5;
  min-width: 0;
  margin-top: 4px;
}

.site-footer .footer-app__link {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-footer .footer-app__link:hover,
.site-footer .footer-app__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-app__badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 100%;
}

.footer-app__badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
  text-decoration: none;
}

.footer-app__badge:hover {
  opacity: 0.9;
}

.footer-app__badge-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(160px, 100%);
  object-fit: contain;
  object-position: left center;
}

.footer-link-groups a:hover,
.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

/* Responsive */

/* Popular areas: 4 cols from 761px, 5 cols from 1100px (see earlier rules). */

@media (max-width: 1279px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    /* Above SERP/detail fixed chrome when header is static (commercial SERP).
       Sticky pages also raise .site-header under body.nav-open (3100). */
    z-index: 3100;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    background: #0c101c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0);
    transition:
      opacity 0.28s var(--ease-out),
      transform 0.28s var(--ease-out),
      visibility 0.28s var(--ease-out);
    /* Phone + tablet: viewport-safe scroll so lower actions stay reachable */
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  html[lang="si"] .nav-menu,
  html[lang="ta"] .nav-menu {
    align-content: start;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
  }

  .nav-menu .rv-lang--mobile {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu a {
    justify-content: flex-start;
    text-align: left;
    color: rgba(228, 235, 250, 0.86);
    border-radius: 0;
    min-height: 44px;
    padding: 12px 8px;
    background: transparent;
    font-weight: 500;
  }

  .nav-menu a:active:not(.nav-cta):not(.nav-agent-login),
  .nav-menu a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login) {
    color: #ffffff;
    background: transparent;
    box-shadow: inset 2px 0 0 var(--primary);
  }

  .nav-menu a.nav-cta {
    grid-column: 1 / -1;
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(10, 157, 106, 0.85);
    background: transparent;
    color: rgba(255, 255, 255, 0.94);
    box-shadow: none;
  }

  .nav-menu a.nav-cta .icon {
    display: none;
  }

  .nav-menu a.nav-agent-login {
    grid-column: 1 / -1;
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
    font-weight: 500;
  }

  .nav-menu a.nav-agent-login[aria-current="page"] {
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), inset 2px 0 0 var(--primary);
  }

  .nav-menu a[href="/safety.html"] {
    margin-top: 6px;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
  }

  .nav-menu a[href="/safety.html"][aria-current="page"] {
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08), inset 2px 0 0 var(--primary);
  }

  .nav-menu a.nav-desktop-only {
    /* Burger mode: show core destinations (Home / Listings / Contact / CTA)
       on every public page — including Map and mobile ≤760. */
    display: inline-flex;
  }

  /* P1 tablet restore is now universal (see below) — Map no longer suppresses core links. */

  .app-shell,
  .two-column,
  .form-layout,
  .contact-grid,
  .status-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .submit-support-panel {
    position: static;
  }

  .detail-summary-card {
    position: static;
    z-index: 2;
    margin-top: -8px;
  }

  .detail-media-frame {
    display: block;
    padding: 0;
  }

  .detail-gallery-thumbs {
    display: none;
  }

  .detail-gallery-dots {
    display: inline-flex;
  }

  .detail-gallery-main {
    border-radius: 0;
  }

  .search-card {
    justify-self: start;
  }

  .app-card-grid,
  .home-listing-grid,
  .listing-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Enquiry / agent tiles: one column on mobile — two-up cards are too narrow */
  .tile-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tile-card-grid .info-card,
  .tile-card-grid .why-card {
    min-width: 0;
  }

  .tile-card-grid .info-card h3,
  .tile-card-grid .why-card h3 {
    overflow-wrap: anywhere;
  }

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

  .app-page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 5.4vw, 2.65rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .listings-screen {
    padding-top: 22px;
  }

  .filter-chips {
    position: static;
    top: auto;
    z-index: 1;
  }
}

/*
 * P1 — Tablet hamburger (761–1080px): scrollable open menu on ALL public pages.
 * Map previously hid .nav-desktop-only (Home / Listings / Contact) inside the burger;
 * that exception is removed so Map matches other pages. Core links come from the
 * ≤1080 .nav-desktop-only: inline-flex rule above.
 */
@media (min-width: 761px) and (max-width: 1279px) {
  .nav-menu.is-open {
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  :root {
    /* FP2: match premium mobile masthead (was 62px). */
    --header-height: 64px;
    /* Floating mobile chrome — shared gutter with .container / listing cards */
    --mobile-floating-gutter: 10px;
    /* Deliberate gap between Filters toolbar and bottom nav */
    --mobile-floating-gap: 10px;
    /* Bottom nav footprint (content height + buffer for label wrap) */
    --mobile-app-nav-height: 72px;
    --mobile-app-nav-inset: calc(8px + env(safe-area-inset-bottom, 0px));
    /* Space from viewport bottom reserved under the Filters toolbar */
    --mobile-nav-clearance: calc(
      var(--mobile-app-nav-height) + var(--mobile-app-nav-inset) + var(--mobile-floating-gap)
    );
    /* Scroll padding for Filters bar + nav stack + small buffer */
    --mobile-listings-bottom-stack: calc(
      var(--mobile-filter-bar-height) + var(--mobile-nav-clearance) + 16px
    );
    --detail-mobile-cta-clearance: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: 0;
    overflow-x: hidden;
    background:
      linear-gradient(180deg, #ffffff 0%, #f7faf9 55%, #eef4f1 100%);
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 52px 0;
  }

  .compact-section {
    padding: 34px 0;
  }

  .site-header {
    position: sticky;
    background: rgba(7, 10, 20, 0.96);
  }

  .site-header.is-scrolled {
    background: rgba(7, 10, 20, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-menu {
    top: 62px;
  }

  .page-hero {
    padding: 26px 0 16px;
  }

  .app-page-hero {
    padding-top: calc(var(--header-height) + 8px);
  }

  .page-hero h1 {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .page-hero p {
    max-width: 30rem;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .detail-media-overlay {
    position: static;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 11px;
    background: #ffffff;
  }

  .detail-media-overlay strong {
    color: #ffffff;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), #07814f);
  }

  .detail-gallery-main {
    height: clamp(240px, 56vw, 320px);
  }

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

  .detail-facts-grid span {
    padding: 10px;
    font-size: 0.72rem;
    border-radius: 12px;
  }

  .detail-facts-grid strong {
    font-size: 0.86rem;
  }

  .app-page-hero .narrow {
    max-width: 100%;
  }

  .confirmation-hero {
    min-height: auto;
    align-items: start;
    margin-top: 0;
    padding-top: 18px;
    padding-bottom: 20px;
    padding-inline: 0;
    background: linear-gradient(180deg, #eef4f1 0%, #f7faf9 100%);
    border-bottom: 1px solid rgba(212, 219, 232, 0.72);
  }

  body.thank-you-page .confirmation-hero.app-page-hero {
    margin-top: 0;
    padding-top: 18px;
  }

  .confirmation-hero::before,
  .confirmation-hero::after {
    opacity: 0;
  }

  .confirmation-hero > .container.confirmation-card {
    width: calc(100% - 24px);
    max-width: none;
    margin-inline: auto;
    padding: 22px 18px 20px;
    background: #ffffff;
    border: 1px solid rgba(212, 219, 232, 0.72);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  }

  .confirmation-card-top {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .confirmation-success {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .confirmation-success .icon {
    width: 24px;
    height: 24px;
  }

  .confirmation-card h1 {
    font-size: clamp(1.5rem, 6.8vw, 1.95rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .confirmation-card p,
  .confirmation-hero .narrow p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .confirmation-review-note {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .confirmation-safety-note {
    font-size: 0.84rem;
  }

  .confirmation-hero .narrow .pill {
    max-width: min(100%, 280px);
    white-space: normal;
    line-height: 1.25;
    padding: 8px 12px;
  }

  .confirmation-hero .confirmation-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 10px;
  }

  .confirmation-hero .confirmation-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  body.thank-you-page .compact-section {
    padding: 22px 0 20px;
  }

  body.thank-you-page .thank-you-steps .button {
    width: 100%;
  }

  body.thank-you-page .section-heading.compact-heading h2 {
    font-size: 1.35rem;
  }

  body.thank-you-page.bayut-serp-page .confirmation-panel {
    width: 100%;
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  body.thank-you-has-context.thank-you-page.bayut-serp-page .confirmation-panel {
    padding: 16px 16px 14px;
  }

  body.thank-you-has-context.thank-you-page.bayut-serp-page .confirmation-panel .confirmation-actions {
    margin-top: 12px;
  }

  body.thank-you-page.bayut-serp-page .confirmation-panel .confirmation-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    gap: 10px;
  }

  body.thank-you-page.bayut-serp-page .confirmation-panel .confirmation-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  body.thank-you-page.bayut-serp-page .confirmation-panel .pill {
    max-width: min(100%, 280px);
    white-space: normal;
    line-height: 1.25;
    padding: 8px 12px;
  }

  .nav {
    min-height: 62px;
  }

  .logo img {
    width: min(200px, 54vw);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .app-hero {
    min-height: auto;
    align-items: end;
    padding: calc(var(--header-height) + 18px) 0 24px;
    background-position: center, center 72%, center;
  }

  .bayut-serp-page.home-page {
    padding-bottom: 0;
  }

  .app-hero + .section {
    margin-top: 0;
    padding-top: 10px;
  }

  .app-shell {
    gap: 18px;
    min-width: 0;
  }

  .app-shell > *,
  .hero-copy,
  .hero-text,
  .hero-stats,
  .search-card {
    min-width: 0;
    max-width: 100%;
  }

  .hero-aurora {
    inset-inline: 0;
    opacity: 0.42;
    filter: blur(28px);
    animation: none;
    transform: none;
    mix-blend-mode: normal;
  }

  .app-hero .pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-copy h1 {
    max-width: 320px;
    margin-bottom: 10px;
    font-size: clamp(1.85rem, 9.4vw, 2.75rem);
    line-height: 1.04;
  }

  .hero-text {
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-stat {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 10px 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .hero-stat span {
    font-size: 0.74rem;
  }

  .search-card {
    width: 100%;
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(12, 20, 36, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .search-card h2 {
    margin-bottom: 12px;
    font-size: 1.08rem;
  }

  .app-search-field input,
  .custom-select-trigger {
    min-height: 46px;
    padding-inline: 13px;
    font-size: 16px;
  }

  .app-search-field.has-icon input,
  .home-search-combobox.has-icon input {
    padding-left: 44px;
    padding-right: 40px;
  }

  .home-search-placeholder {
    left: 44px;
    right: 40px;
    font-size: 16px;
  }

  .home-search-placeholder__lead {
    margin-right: 6px;
  }

  .home-search-placeholder__divider {
    height: 15px;
    margin: 0 9px;
  }

  @media (max-width: 380px) {
    .home-search-placeholder__lead {
      display: none;
    }
  }

  .app-hero .home-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 1200;
    width: min(342px, calc(100vw - 48px));
    max-height: 230px;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(7, 10, 20, 0.28);
  }

  .home-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0;
  }

  .search-card .button {
    margin-top: 4px;
  }

  .home-areas-grid.popular-areas,
  .popular-areas {
    margin-top: 10px;
    gap: 8px;
  }

  .home-area-card {
    min-height: 72px;
    max-height: 84px;
    padding: 12px 12px 12px 14px;
  }

  .home-area-card__name {
    font-size: 0.9rem;
  }

  .home-area-card__count,
  .home-area-card .chip-count {
    font-size: 0.76rem;
  }

  .home-areas-secondary .button {
    width: 100%;
  }


  .launch-mini-card {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .app-hero .launch-mini-card {
    display: none;
  }

  .launch-mini-card span {
    font-size: 0.76rem;
  }

  .post-hero-panel,
  .why-section-panel,
  .how-panel,
  .home-listing-panel,
  .feature-panel,
  .content-card,
  .warning-box,
  .callout,
  .contact-form,
  .launch-notice-card {
    padding: 16px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  }

  .post-hero-panel,
  .why-section-panel,
  .how-panel,
  .home-listing-panel {
    gap: 16px;
  }

  .home-section {
    padding-block: 22px;
  }

  .home-section-areas {
    padding-top: 4px;
    padding-bottom: 20px;
  }

  .home-live-strip {
    display: none;
    margin: 0;
    padding: 0;
  }

  .home-listings-swipe-hint:not([hidden]) {
    display: block;
  }

  .compact-heading h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .compact-heading p:last-child {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
  }

  .swipe-hint::after {
    content: "→";
    color: var(--primary);
  }

  .app-card-grid,
  .listing-card-grid,
  .audience-cta-grid,
  .process-grid,
  .footer-grid,
  .form-grid,
  .safety-list,
  .check-list-2col,
  .sort-filter-bar {
    grid-template-columns: 1fr;
  }

  .footer-link-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Narrow: Connect then Get the app stack full-width after the 2-col link groups */
  .footer-link-groups > .footer-connect,
  .footer-link-groups > .footer-app {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .site-footer .footer-link-groups .footer-social {
    width: max-content;
    max-width: 100%;
  }

  .prep-checklist .check-list {
    grid-template-columns: 1fr;
  }

  .listings-screen {
    padding-top: 18px;
  }

  .listings-screen > .container {
    overflow: visible;
  }

  .filter-chips {
    position: static;
    z-index: 1;
    gap: 6px;
    margin: 0 0 10px;
    padding: 7px 0;
    max-width: 100%;
    background: transparent;
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
    scroll-padding-inline: 0;
  }

  .filter-chips .chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 12px;
    color: #4b5565;
    font-size: 0.76rem;
    font-weight: var(--weight-title);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(212, 219, 232, 0.78);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
  }

  .filter-chips .chip-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #07814f);
    border-color: rgba(10, 157, 106, 0.12);
    box-shadow: 0 10px 20px rgba(10, 157, 106, 0.2);
  }

  .why-section-panel .app-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .why-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .why-card h3,
  .why-card p {
    grid-column: auto;
  }

  .why-icon-tile {
    grid-row: auto;
  }

  .how-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .how-card {
    flex: none;
    touch-action: manipulation;
  }

  .home-listing-grid {
    display: flex;
    gap: 14px;
    margin-inline: -16px;
    padding: 0 16px 6px;
    overflow-x: auto;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .home-listing-grid::-webkit-scrollbar {
    display: none;
  }

  .home-property-card {
    flex: 0 0 calc(100% - 28px);
    max-width: calc(100% - 28px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 20px;
    transform: none !important;
  }

  .home-listing-grid::after {
    content: "";
    flex: 0 0 4px;
  }

  .home-listings-swipe-hint:not([hidden]) {
    display: inline-flex;
    margin: 2px 0 8px;
    padding: 6px 10px;
    color: #4b5565;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(212, 219, 232, 0.9);
    border-radius: 999px;
  }

  .home-property-card .home-property-media img,
  .property-media img {
    transform: none !important;
  }

  .home-property-card .home-property-media img {
    height: 100%;
  }

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

  .home-listing-actions .button {
    width: 100%;
  }

  .home-section-note {
    font-size: 0.9rem;
  }

  .bayut-serp-page.home-page .post-hero-panel,
  .bayut-serp-page.home-page .home-listing-panel,
  .bayut-serp-page.home-page .why-section-panel,
  .bayut-serp-page.home-page .how-panel {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .bayut-serp-page.home-page .chip-row {
    gap: 8px;
  }

  .bayut-serp-page.home-page .chip-row .button-small {
    width: 100%;
    justify-content: center;
  }

  .audience-card {
    min-height: auto;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px 12px;
    padding: 16px;
  }

  .audience-card h2 {
    margin-top: 0;
    font-size: 1.42rem;
  }

  .audience-card > p:not(.eyebrow) {
    margin-bottom: 12px;
    font-size: 0.9rem;
  }

  .audience-card .button {
    width: 100%;
  }

  .footer-note {
    margin-left: 0;
  }

  .why-card {
    min-height: auto;
    padding: 13px;
    border-radius: 18px;
  }

  .why-icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .why-svg-icon {
    width: 21px;
    height: 21px;
  }

  .why-card h3 {
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.18;
  }

  .why-card p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .how-icon,
  .audience-icon,
  .launch-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .how-card {
    padding: 16px;
    border-radius: 18px;
  }

  .how-note {
    padding: 12px;
    font-size: 0.84rem;
    border-radius: 14px;
  }

  .launch-notice-card {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .launch-notice-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .listing-status-banner {
    grid-template-columns: 1fr;
    align-items: start;
    margin: 0 0 18px;
    padding: 10px 11px;
  }

  .launch-chip-grid,
  .launch-notice-card > p {
    grid-column: 1;
    margin-left: 0;
  }

  .sort-filter-bar {
    position: relative;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 12px;
    padding: 10px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(212, 219, 232, 0.74);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  }

  .sort-filter-bar button {
    flex: 0 0 auto;
    min-width: 108px;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.8rem;
  }

  .filter-select {
    gap: 5px;
  }

  .sort-filter-bar .filter-select:last-child {
    grid-column: 1 / -1;
  }

  .filter-budget {
    grid-column: 1 / -1;
  }

  .filter-select select {
    min-height: 42px;
    padding-left: 11px;
    font-size: 0.8rem;
    border-radius: 12px;
  }

  .listing-custom-select .custom-select-trigger {
    min-height: 42px;
    padding-left: 11px;
    border-radius: 12px;
  }

  .listing-custom-select .custom-select-trigger span {
    font-size: 0.8rem;
  }

  .listing-custom-select .custom-select-menu {
    max-height: 240px;
    overflow-y: auto;
  }

  .result-toolbar {
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 14px;
  }

  .result-count {
    margin: 0;
    font-size: 0.84rem;
  }

  .result-meta {
    margin: 0;
    font-size: 0.8rem;
  }

  .listing-card-grid {
    gap: 16px;
  }

  .property-card {
    border-radius: 20px;
    transform: none !important;
  }

  .property-media {
    min-height: 188px;
  }

  .property-media-track {
    height: 190px;
  }

  .property-media img {
    height: 190px;
  }

  .media-badges {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: center;
    gap: 6px;
  }

  .media-badges .status-badge {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    font-size: 0.68rem;
    padding: 7px 9px;
    line-height: 1.2;
  }

  .media-badges .badge-checked,
  .media-badges .badge-visit {
    flex: 1 1 100%;
  }

  .rent-badge {
    flex: 1 1 100%;
    width: 100%;
    padding: 9px 11px;
    font-size: 0.98rem;
    border-radius: 12px;
  }

  .property-body {
    gap: 8px;
    padding: 14px;
  }

  .property-title-row {
    display: grid;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .property-title-row p {
    margin-bottom: 3px;
    font-size: 0.8rem;
  }

  .property-title-row h2 {
    font-size: 1.02rem;
    line-height: 1.2;
  }

  .listing-reference {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .fact-row,
  .property-meta,
  .badge-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .fact-row span,
  .property-meta span,
  .badge-row .status-badge {
    min-height: 28px;
    width: auto;
    padding: 6px 8px;
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    border-radius: 9px;
  }

  .property-body > .button {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .card-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }

  .card-actions .button {
    min-height: 42px;
    padding: 9px 7px;
    font-size: 0.76rem;
    justify-content: center;
  }

  .card-actions .button .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .property-body .small-note {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .listing-update-link {
    margin-top: -3px;
    font-size: 0.75rem;
  }

  .inline-detail-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .inline-detail-header strong {
    font-size: 0.92rem;
  }

  .inline-detail-grid article {
    padding: 10px;
  }

  .inline-detail-grid strong,
  .inline-detail-grid span {
    font-size: 0.8rem;
  }

  .detail-preview,
  .empty-state {
    margin-top: 20px;
    padding: 16px;
    border-radius: 20px;
  }

  .detail-preview h2,
  .empty-state h2 {
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .detail-preview p,
  .empty-state p {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .preview-grid {
    gap: 10px;
    margin: 14px 0;
  }

  .preview-grid article {
    padding: 12px;
    border-radius: 14px;
  }

  .preview-grid span {
    font-size: 0.84rem;
  }

  .form-layout,
  .contact-grid,
  .two-column,
  .status-grid {
    gap: 16px;
  }

  .status-grid .feature-panel + .feature-panel,
  .tile-card-grid .info-card + .info-card,
  .submit-support-cards .support-card + .support-card {
    margin-top: 0;
  }

  .tile-card-grid {
    gap: 14px;
  }

  .submit-support-cards {
    gap: 12px;
  }

  .process-grid {
    gap: 10px;
  }

  .detail-gallery-arrow {
    width: 28px;
    height: 40px;
    font-size: 1.12rem;
  }

  .image-viewer-nav {
    display: none !important;
  }

  .detail-gallery-prev {
    left: 8px;
  }

  .detail-gallery-next {
    right: 8px;
  }

  .detail-gallery-dots {
    bottom: 12px;
    gap: 0;
    padding: 2px 4px;
    background: rgba(7, 10, 20, 0.34);
  }

  .detail-gallery-dots button {
    width: 40px;
    height: 40px;
  }

  .detail-gallery-dots button::after {
    width: 6px;
    height: 6px;
  }

  .detail-gallery-dots button.is-active::after {
    width: 16px;
  }

  .detail-gallery-dots span {
    width: 6px;
    height: 6px;
  }

  .detail-gallery-dots span.is-active {
    width: 16px;
  }

  .mobile-app-nav {
    transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out);
    will-change: transform, opacity;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .custom-select-trigger,
  .form-custom-select .custom-select-trigger,
  .listing-custom-select .custom-select-trigger {
    max-width: 100%;
    font-size: 16px;
  }

  .two-column > div:first-child,
  .form-layout > .section-heading,
  .contact-grid > aside:first-child:not(.content-card) {
    padding: 14px;
    border-radius: 18px;
  }

  .safety-list {
    gap: 10px;
  }

  .safety-list li {
    padding: 14px 14px 14px 50px;
  }

  .safety-list li::before {
    top: 13px;
    left: 13px;
  }

  .form-progress {
    font-size: 0.72rem;
  }

  .contact-form .form-section {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .contact-form .form-section > legend {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .contact-form select {
    min-height: 44px;
    padding-left: 30px;
    font-size: 16px;
    background:
      radial-gradient(circle at 14px 50%, var(--primary) 0 3px, transparent 4px),
      linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
      linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
      linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  }

  .form-custom-select .custom-select-trigger {
    min-height: 44px;
    padding-inline: 30px;
    font-size: 16px;
  }

  .form-custom-select .custom-select-menu {
    max-height: 240px;
  }

  .contact-form .form-alert-note {
    padding: 10px 11px;
    border-radius: 12px;
  }

  .option-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .option {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .option input {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .option-group.amenity-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenity-options .option {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 0.78rem !important;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--mobile-nav-clearance);
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }

  .mobile-sticky-cta .button {
    min-height: 42px;
    padding: 10px;
    font-size: 0.82rem;
  }

  .mobile-app-nav {
    position: fixed;
    left: var(--mobile-floating-gutter, 10px);
    right: var(--mobile-floating-gutter, 10px);
    bottom: var(--mobile-app-nav-inset, calc(8px + env(safe-area-inset-bottom, 0px)));
    z-index: 3000;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
    /* Safe-area is applied via --mobile-app-nav-inset / bottom (not double-padded). */
    padding: 8px 6px;
    overflow: visible;
    /* Premium glass: translucent surface + restrained blur; solid fallback below. */
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 35, 58, 0.1);
    border-radius: 18px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 8px 22px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    touch-action: manipulation;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mobile-app-nav {
      background: rgba(255, 255, 255, 0.96);
    }
  }

  .site-footer {
    padding: 30px 0 calc(20px + env(safe-area-inset-bottom, 0px));
  }

  body:not(.listing-detail-page) .site-footer {
    padding-bottom: var(--mobile-nav-clearance);
  }

  .bayut-serp-page.home-page .site-footer {
    padding-bottom: var(--mobile-nav-clearance);
  }

  .footer-brand img {
    width: min(220px, 100%);
    height: auto;
    margin-bottom: 14px;
  }

  .site-footer .footer-app__link {
    font-size: 0.88rem;
    margin-bottom: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-note {
    max-width: 320px;
    margin-top: 0;
    padding-top: 0;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .site-footer .footer-note + .footer-note {
    margin-top: 6px;
    padding-top: 0;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .footer-link-groups {
    gap: 14px;
  }

  .footer-link-groups h3 {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .footer-link-groups a {
    margin-bottom: 6px;
    font-size: 0.84rem;
  }

  .mobile-app-nav a:not(:last-child) {
    border-right: 1px solid rgba(16, 24, 40, 0.1);
  }

  .mobile-app-nav a {
    position: relative;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2px;
    color: #5b6778;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 14px;
    transition:
      color 0.2s var(--ease),
      transform 0.16s var(--ease);
    touch-action: manipulation;
    user-select: none;
  }

  .mobile-app-nav a:active {
    transform: scale(0.95);
  }

  .mobile-app-nav a::before {
    content: "";
    position: absolute;
    inset: -2px 0;
  }

  .mobile-app-nav a > * {
    pointer-events: none;
  }

  .mobile-app-nav__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 36px;
    border-radius: 12px;
    transition:
      background 0.2s var(--ease),
      color 0.2s var(--ease),
      box-shadow 0.2s var(--ease),
      transform 0.2s var(--ease);
  }

  .mobile-app-nav .icon {
    width: 24px;
    height: 24px;
    transition: color 0.2s var(--ease);
  }

  .mobile-app-nav__badge {
    position: absolute;
    right: 4px;
    bottom: 0;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary);
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(10, 157, 106, 0.28);
  }

  .mobile-app-nav__badge .icon {
    width: 7px;
    height: 7px;
  }

  .mobile-app-nav__label {
    display: block;
    max-width: 100%;
    margin-top: 1px;
    overflow: hidden;
    color: inherit;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-nav a {
    gap: 1px;
    padding: 4px 2px 2px;
  }

  .mobile-app-nav__icon--list {
    box-shadow: inset 0 0 0 1px rgba(10, 157, 106, 0.18);
  }

  .mobile-app-nav__icon--list .mobile-app-nav__badge {
    width: 14px;
    height: 14px;
    right: 2px;
    bottom: -1px;
  }

  /* Active label: WCAG AA normal text (>=4.5:1) on frosted white nav.
     --primary #0a9d6a on #fff ≈ 3.47:1 (fails). #067a52 ≈ 5.37:1. */
  .mobile-app-nav a[aria-current="page"] {
    color: #067a52;
  }

  .mobile-app-nav a[aria-current="page"] .mobile-app-nav__icon {
    background: var(--grad-primary);
    box-shadow: 0 4px 14px rgba(10, 157, 106, 0.28);
    transform: translateY(-1px);
  }

  .mobile-app-nav a[aria-current="page"] .icon {
    color: #ffffff;
  }

  .mobile-app-nav a[aria-current="page"] .mobile-app-nav__badge {
    color: var(--primary);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
  }

  .mobile-app-nav a:active .mobile-app-nav__icon {
    background: rgba(111, 125, 140, 0.1);
  }

  .mobile-app-nav a[aria-current="page"]:active .mobile-app-nav__icon {
    background: var(--grad-primary);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(10, 157, 106, 0.22);
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-app-nav a:hover .mobile-app-nav__icon {
      background: rgba(111, 125, 140, 0.08);
    }

    .mobile-app-nav a[aria-current="page"]:hover .mobile-app-nav__icon {
      background: var(--grad-primary);
    }
  }

  .mobile-app-nav a:focus-visible {
    outline: 2px solid rgba(10, 157, 106, 0.5);
    outline-offset: 2px;
  }

  /* Legacy bottom-nav markup fallback (plain icon + text spans) */
  .mobile-app-nav a:not(:has(.mobile-app-nav__icon)) > span {
    display: none;
  }

  .mobile-app-nav a:not(:has(.mobile-app-nav__icon)) > svg.icon {
    width: 24px;
    height: 24px;
    padding: 6px 11px;
    box-sizing: content-box;
    border-radius: 12px;
    transition:
      background 0.2s var(--ease),
      color 0.2s var(--ease),
      box-shadow 0.2s var(--ease),
      transform 0.2s var(--ease);
  }

  .mobile-app-nav a[aria-current="page"]:not(:has(.mobile-app-nav__icon)) > svg.icon {
    color: #ffffff;
    background: var(--grad-primary);
    box-shadow: 0 4px 14px rgba(10, 157, 106, 0.28);
    transform: translateY(-1px);
  }

  .footer-bottom {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding-top: 14px;
  }
}

@media (max-width: 520px) {
  h2 {
    font-size: 1.45rem;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .hero-copy h1 {
    max-width: 300px;
    font-size: clamp(1.78rem, 8.8vw, 2.45rem);
  }

  .app-page-hero h1 {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
  }

  .filter-chips .chip {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.72rem;
    line-height: 1.2;
    border-radius: 11px;
  }

  .app-hero .pill {
    padding: 8px 11px;
    font-size: 0.68rem;
  }

  .search-card {
    padding: 13px;
  }

  .home-areas-grid.popular-areas,
  .popular-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .button {
    width: 100%;
  }

  .button-group .button {
    width: auto;
  }

  .area-empty-actions .button {
    width: 100%;
  }

  .media-badges {
    right: auto;
  }

  .property-media {
    min-height: 186px;
  }

  .property-media-track {
    height: 188px;
  }

  .property-media img {
    height: 188px;
  }

  .fact-row span,
  .property-meta span,
  .status-badge {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .button {
    line-height: 1.1;
  }

  .property-image-meta .status-badge,
  .detail-media-overlay .status-badge {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .fact-row,
  .property-meta,
  .badge-row {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

  .card-actions .button {
    min-height: 40px;
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .home-property-card {
    flex-basis: 100%;
  }

  .how-card {
    flex-basis: 80%;
  }

  .app-card-grid {
    gap: 10px;
  }

  .why-section-panel .app-card-grid {
    gap: 8px;
  }

  .why-card {
    padding: 12px;
  }

  .why-icon-tile {
    width: 36px;
    height: 36px;
  }

  .audience-card {
    border-radius: 20px;
  }

  .mobile-app-nav a {
    min-height: 48px;
  }

  .mobile-app-nav .icon {
    width: 23px;
    height: 23px;
  }

  .mobile-app-nav__icon {
    width: 44px;
    height: 34px;
  }
}

/* Scroll-reveal motion */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Motion polish */

@keyframes surface-rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .chip,
  .pill,
  .status-badge,
  .card-status,
  .bayut-quick-chip,
  .bayut-tag,
  .amenity-chip,
  .amenity-tag {
    transition:
      color var(--duration-ui) var(--ease-out),
      background var(--duration-ui) var(--ease-out),
      border-color var(--duration-ui) var(--ease-out),
      box-shadow var(--duration-ui) var(--ease-out),
      transform var(--duration-ui) var(--ease-out);
  }

  .custom-select-menu button,
  .home-search-suggestion {
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  }

  .detail-gallery-dots span,
  .detail-gallery-dots button::after {
    transition: width var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out), opacity var(--duration-ui) var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .custom-select-menu,
  .home-search-suggestions:not([hidden]) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Phase 2.5 additive: amenity filters, load-more, detail amenities */
[hidden] {
  display: none !important;
}

body.has-published-listings [data-prelaunch-empty] {
  display: none !important;
}

.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.amenity-label {
  font-size: 0.8rem;
  font-weight: var(--weight-label);
  color: var(--muted);
  margin-right: 2px;
}

/* Search page amenity filters — match filter bar panel style */
.listings-screen .amenity-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(212, 219, 232, 0.74);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.listings-screen .amenity-label {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-title);
  letter-spacing: normal;
  text-transform: none;
}

.listings-screen .amenity-chip {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 700;
  justify-content: flex-start;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  gap: 6px;
}

@media (max-width: 900px) {
  .listings-screen .amenity-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .listings-screen .amenity-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .listings-screen .amenity-chip {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.74rem;
    line-height: 1.15;
  }
}

.listings-screen .amenity-chip:focus,
.listings-screen .amenity-chip:active {
  color: var(--heading);
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  outline: none;
}

.listings-screen .amenity-chip:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 3px;
}

.listings-screen .amenity-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--icon-glyph-primary);
}

.listings-screen .amenity-chip.chip-active .icon {
  color: #ffffff;
}

.listings-screen .amenity-chip.chip-active {
  color: #ffffff;
  background: var(--heading);
  border-color: var(--heading);
  box-shadow: none;
}

.listings-screen .amenity-chip.chip-active:focus,
.listings-screen .amenity-chip.chip-active:active {
  color: #ffffff;
  background: var(--heading);
  border-color: var(--heading);
  box-shadow: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.detail-amenities {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.detail-amenities .amenity-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3f4a5a;
  background: #eef1f6;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.amenity-tag .icon {
  flex: 0 0 auto;
}

.area-safety-note {
  max-width: 100%;
  display: block;
  padding-inline: 14px;
  text-align: center;
  line-height: 1.55;
}

.amenity-tag .icon {
  width: 15px;
  height: 15px;
  color: var(--icon-glyph-primary);
}

.amenity-chip .icon {
  width: 16px;
  height: 16px;
}

/* Toggle filter chips: hover must look different from the selected state so
   that clicking an active amenity off doesn't keep it looking selected.
   Hover effects are limited to hover-capable devices so taps never "stick". */
.amenity-chip.chip-active {
  color: #ffffff;
  background: var(--heading);
  border-color: var(--heading);
}

@media (hover: hover) {
  .amenity-chip:hover {
    color: var(--heading);
    background: #ffffff;
    border-color: rgba(10, 157, 106, 0.55);
  }

  .amenity-chip.chip-active:hover {
    color: #ffffff;
    background: var(--heading);
    border-color: var(--heading);
  }
}

.amenity-groups {
  display: grid;
  gap: 14px;
}

.amenity-group {
  display: grid;
  gap: 8px;
}

.amenity-group-label,
.amenity-field-label {
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

.amenity-field-group {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-size span {
  white-space: nowrap;
}

.listing-missing {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 560px;
}

.prelaunch-panel {
  display: grid;
  gap: 14px;
  padding: 22px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: var(--shadow-sm);
}

.prelaunch-panel h2 {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.25;
}

.prelaunch-panel .button-group {
  margin-top: 4px;
}

.submit-rental-cta {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.submit-rental-cta h2 {
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
}

.contact-route-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 118, 110, 0.08);
  color: var(--heading);
  font-size: 0.92rem;
  line-height: 1.45;
}

.compliance-note {
  color: var(--muted);
}

.safety-guide-grid {
  margin-bottom: 24px;
}

@media (min-width: 760px) {
  .submit-rental-cta {
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 24px 28px;
  }

  .prelaunch-panel {
    padding: 28px 30px;
  }
}

.listings-search-field {
  margin-bottom: 14px;
}

/* Bayut-style listings SERP */

.bayut-serp-page {
  background: var(--portal-page-bg);
}

.bayut-serp-page .site-header {
  border-bottom: 1px solid #e3e3e3;
}

.bayut-serp {
  padding: var(--portal-breadcrumb-top) 0 40px;
}

.bayut-serp__wrap {
  max-width: 1280px;
}

.bayut-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #6a6a6a;
  font-size: 0.8rem;
}

.bayut-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.bayut-breadcrumb a:hover {
  text-decoration: underline;
}

.bayut-serp__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* Filters scroll with page content. Residential AI Search V3 lives in the sidebar (no float). */
.bayut-serp__sidebar {
  position: static;
  top: auto;
}

/* Residential AI Search V3 — compact sidebar entry (collapsed by default). */
body.listings-page .rv-ai-sidebar {
  margin: 0 0 12px;
}

body.listings-page .rv-ai-sidebar[hidden] {
  display: none !important;
}

body.listings-page .rv-ai-sidebar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 157, 106, 0.35);
  border-radius: 10px;
  background: #f4fbf8;
  color: #087b4d;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.listings-page .rv-ai-sidebar__toggle:hover,
body.listings-page .rv-ai-sidebar__toggle:focus-visible {
  background: #e8f7f0;
  border-color: #0a9d6a;
  box-shadow: 0 0 0 3px rgba(11, 163, 96, 0.16);
  outline: none;
}

body.listings-page .rv-ai-sidebar__sparkle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #0ba360;
}

body.listings-page .rv-ai-sidebar.is-expanded .rv-ai-sidebar__toggle {
  display: none;
}

body.listings-page .rv-ai-search--sidebar {
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
}

body.listings-page .rv-ai-search--sidebar[hidden] {
  display: none !important;
}

body.listings-page .rv-ai-search__sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.listings-page .rv-ai-search__sidebar-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 750;
  color: #062b5b;
}

body.listings-page .rv-ai-search__sidebar-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5a697b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

body.listings-page .rv-ai-search__sidebar-close:hover,
body.listings-page .rv-ai-search__sidebar-close:focus-visible {
  background: #eef3f8;
  color: #062b5b;
  outline: none;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__shell {
  border-radius: 10px;
  box-shadow: none;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__composer {
  flex-wrap: wrap;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__field input {
  font-size: 0.86rem;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__ask {
  min-height: 40px;
  padding: 0 12px;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__panel {
  margin-top: 8px;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__example {
  font-size: 0.78rem;
  white-space: normal;
  text-align: start;
}

body.listings-page .rv-ai-search__replace-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7eb;
  border: 1px solid #f0dfbf;
  color: #7a4e12;
  font-size: 0.78rem;
  line-height: 1.35;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__actions {
  display: flex !important; /* override legacy .rv-ai-search__actions { display:none !important } */
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__actions[hidden] {
  display: none !important;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__edit,
body.listings-page .rv-ai-search--sidebar [data-ai-search-cancel] {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #5a697b;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

body.listings-page .rv-ai-search--sidebar .rv-ai-search__continue {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #7a8699;
}

/* Permanently suppress legacy floating Ask AI on Residential Discovery. */
body.listings-page .rv-ai-float,
body.listings-page [data-ai-float] {
  display: none !important;
}

.bayut-filter-panel {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.bayut-filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

.bayut-filter-panel__head h2,
.bayut-filter-panel__head .bayut-filter-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* AI Search V2 — seamless Bayut-style composer (PropGlen branded) */
.rv-ai-search {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rv-ai-search__shell {
  border: 1px solid #a9b8c9;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(10, 157, 106, 0.06),
    0 2px 12px rgba(16, 24, 40, 0.07);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.rv-ai-search__shell:hover {
  border-color: #8fa3b8;
}

.rv-ai-search__shell:focus-within {
  border-color: rgba(10, 157, 106, 0.58);
  box-shadow:
    0 0 0 3px rgba(10, 157, 106, 0.15),
    0 4px 18px rgba(16, 24, 40, 0.07);
}

.rv-ai-search[data-ai-open="1"] .rv-ai-search__shell {
  border-color: #b8c4d4;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

.rv-ai-search[data-ai-open="1"] .rv-ai-search__shell:focus-within {
  border-color: rgba(10, 157, 106, 0.58);
  box-shadow:
    0 0 0 3px rgba(10, 157, 106, 0.15),
    0 10px 28px rgba(16, 24, 40, 0.08);
}

.rv-ai-search__form {
  margin: 0;
}

.rv-ai-search__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  background: #fff;
}

.rv-ai-search__field {
  position: relative;
  margin: 0;
  min-width: 0;
}

/* Quiet magnifier cue inside the main AI search input (visual only). */
.rv-ai-search__field::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E");
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* Decorative AI sparkle cue inside the floating Ask AI input (CSS-only). */
.rv-ai-float__field::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 0.92rem;
  height: 0.92rem;
  transform: translateY(-50%) rotate(18deg);
  background:
    radial-gradient(circle at 50% 50%, #fff 0 16%, var(--primary) 17% 34%, transparent 36%),
    linear-gradient(var(--primary-hover), var(--primary-hover)) center / 16% 100% no-repeat,
    linear-gradient(90deg, var(--primary-hover), var(--primary-hover)) center / 100% 16% no-repeat,
    linear-gradient(45deg, transparent 42%, var(--primary) 43% 57%, transparent 58%) center / 100% 100% no-repeat,
    linear-gradient(-45deg, transparent 42%, var(--primary) 43% 57%, transparent 58%) center / 100% 100% no-repeat;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(10, 157, 106, 0.32));
  pointer-events: none;
  z-index: 1;
}

.rv-ai-search__field input {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 0.75rem 2.15rem 0.75rem 2.55rem;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
  outline: none;
  box-shadow: none;
}

.rv-ai-search__field input::placeholder {
  color: #475467;
  font-weight: 500;
  opacity: 1;
}

.rv-ai-search__field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 0.95rem;
  width: 0.95rem;
  margin-right: 0.15rem;
  background:
    linear-gradient(45deg, transparent 42%, #667085 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #667085 43% 57%, transparent 58%);
  cursor: pointer;
  opacity: 0.85;
}

.rv-ai-search__composer:focus-within {
  background: #fff;
}

.rv-ai-search[data-ai-open="1"] .rv-ai-search__composer {
  box-shadow: inset 0 -1px 0 #eef2f6;
}

.rv-ai-search__ask,
.rv-ai-search__form [type="submit"] {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(10, 157, 106, 0.14);
  border-radius: 0;
  min-height: 54px;
  padding: 0 1.25rem;
  background:
    linear-gradient(135deg, #d9f5e8 0%, #bfeeda 38%, #9ee4c8 72%, #7fd9b8 100%);
  color: #066844;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(10, 157, 106, 0.08),
    0 0 14px rgba(10, 157, 106, 0.18);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rv-ai-search__ask::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.7) 48%, transparent 68%);
  transform: translateX(-55%) rotate(8deg);
  animation: rv-ai-ask-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.rv-ai-search__ask::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, rgba(10, 157, 106, 0.95) 36% 70%, transparent 72%);
  box-shadow:
    -18px 18px 0 -1px rgba(10, 157, 106, 0.55),
    -8px 26px 0 -1.5px rgba(14, 185, 140, 0.45);
  opacity: 0.9;
  animation: rv-ai-ask-twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rv-ai-ask-shimmer {
  0%, 45% { transform: translateX(-60%) rotate(8deg); opacity: 0.35; }
  60% { opacity: 0.85; }
  100% { transform: translateX(60%) rotate(8deg); opacity: 0.35; }
}

@keyframes rv-ai-ask-twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.rv-ai-search__ask-sparkle {
  position: relative;
  z-index: 1;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 16%, var(--primary) 17% 34%, transparent 36%),
    linear-gradient(var(--primary-hover), var(--primary-hover)) center / 16% 100% no-repeat,
    linear-gradient(90deg, var(--primary-hover), var(--primary-hover)) center / 100% 16% no-repeat,
    linear-gradient(45deg, transparent 42%, var(--primary) 43% 57%, transparent 58%) center / 100% 100% no-repeat,
    linear-gradient(-45deg, transparent 42%, var(--primary) 43% 57%, transparent 58%) center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 6px rgba(10, 157, 106, 0.55));
  transform: rotate(18deg);
}

.rv-ai-search__ask-label {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rv-ai-search__ask:hover,
.rv-ai-search__form [type="submit"]:hover {
  color: #055538;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(10, 157, 106, 0.14),
    0 0 18px rgba(10, 157, 106, 0.28);
}

.rv-ai-search__ask:focus-visible,
.rv-ai-search__form [type="submit"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.rv-ai-search.is-loading .rv-ai-search__ask-sparkle {
  animation: rv-ai-ask-spin 1.2s linear infinite;
}

@keyframes rv-ai-ask-spin {
  to { transform: rotate(378deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rv-ai-search__ask::before,
  .rv-ai-search__ask::after,
  .rv-ai-search.is-loading .rv-ai-search__ask-sparkle {
    animation: none !important;
  }
}

.rv-ai-search__panel {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}

.rv-ai-search__panel[hidden] {
  display: none !important;
}

.rv-ai-search__hints {
  position: relative;
  padding-right: 2rem;
  margin: 0 0 2px;
}

.rv-ai-search__hints[hidden] {
  display: none !important;
}

.rv-ai-search__hints-dismiss {
  position: absolute;
  top: -8px;
  right: -10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #98a2b3;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.rv-ai-search__hints-dismiss:hover,
.rv-ai-search__hints-dismiss:focus-visible {
  color: #475467;
  background: #f2f4f7;
  outline: none;
}

.rv-ai-search__panel-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #667085;
  padding-right: 0.25rem;
}

.rv-ai-search__loading {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #475467;
}

.rv-ai-search__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  max-width: 100%;
}

.rv-ai-search__example {
  border: 1px solid #e8edf3;
  background: #fff;
  color: #667085;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.35;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.rv-ai-search__example:hover,
.rv-ai-search__example:focus-visible {
  border-color: rgba(10, 157, 106, 0.35);
  color: #344054;
  background: var(--primary-soft);
  outline: none;
}

.rv-ai-search__error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 0.78rem;
}

.rv-ai-search__summary {
  margin-top: 10px;
}

.rv-ai-search__summary-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #667085;
  letter-spacing: 0.01em;
}

.rv-ai-search__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv-ai-search__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  border: 1px solid rgba(10, 157, 106, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #0f5132;
  padding: 0.15rem 0.25rem 0.15rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.rv-ai-search__chip-remove {
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

.rv-ai-search__chip-remove:hover,
.rv-ai-search__chip-remove:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-hover);
  outline: none;
}

.rv-ai-search__note {
  margin: 5px 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #98a2b3;
}

.rv-ai-search__note--unsupported {
  color: #667085;
  font-size: 0.72rem;
}

.rv-ai-search__actions {
  display: none !important;
}

.rv-ai-search__continue {
  margin: 8px 0 0;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #98a2b3;
}

@media (max-width: 720px) {
  .rv-ai-search {
    margin: 0 0 10px;
  }

  .rv-ai-search__shell {
    border-radius: 12px;
  }

  .rv-ai-search__composer {
    grid-template-columns: 1fr;
  }

  .rv-ai-search__field::before {
    left: 0.85rem;
    width: 0.9rem;
    height: 0.9rem;
  }

  .rv-ai-search__field input {
    min-height: 52px;
    padding: 0.72rem 2rem 0.72rem 2.4rem;
    font-size: 1rem;
  }

  .rv-ai-search__field input:placeholder-shown {
    padding-right: 0.95rem;
  }

  .rv-ai-search__ask,
  .rv-ai-search__form [type="submit"] {
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid #eef2f6;
    width: 100%;
    padding-inline: 0.9rem;
    font-size: 0.9rem;
  }

  .rv-ai-search__panel {
    padding: 7px 9px 9px;
  }

  .rv-ai-search__hints {
    padding-right: 2.1rem;
    margin-bottom: 0;
  }

  .rv-ai-search__hints-dismiss {
    top: -10px;
    right: -12px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.2rem;
  }

  .rv-ai-search__panel-hint {
    margin: 0 0 6px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .rv-ai-search__examples {
    gap: 4px;
  }

  .rv-ai-search__example {
    padding: 0.18rem 0.52rem;
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .rv-ai-search__continue {
    margin-top: 6px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .rv-ai-search__field::before {
    left: 0.7rem;
    width: 0.82rem;
    height: 0.82rem;
  }

  .rv-ai-search__field input {
    font-size: 0.92rem;
    padding: 0.7rem 1.1rem 0.7rem 2.15rem;
  }

  .rv-ai-search__field input:placeholder-shown {
    padding-right: 0.8rem;
  }

  .rv-ai-search__panel {
    padding: 6px 8px 8px;
  }

  .rv-ai-search__panel-hint {
    margin: 0 0 5px;
    font-size: 0.7rem;
  }

  .rv-ai-search__example {
    padding: 0.16rem 0.48rem;
    font-size: 0.64rem;
  }

  .rv-ai-float__field::before {
    left: 0.68rem;
    width: 0.76rem;
    height: 0.76rem;
  }

  .rv-ai-float__field input {
    font-size: 0.9rem;
    padding: 0.65rem 1.05rem 0.65rem 2.1rem;
  }

  .rv-ai-float__field input:placeholder-shown {
    padding-right: 0.75rem;
  }
}

@media (min-width: 721px) and (max-width: 1023px) {
  .rv-ai-search__field input {
    min-height: 52px;
  }

  .rv-ai-search__ask,
  .rv-ai-search__form [type="submit"] {
    min-height: 52px;
    padding-inline: 1rem;
  }
}

/* Floating Ask AI — compact control when main composer scrolls away */
.rv-ai-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 2850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(420px, calc(100vw - 24px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.rv-ai-float.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.rv-ai-float[hidden] {
  display: none !important;
}

.rv-ai-float__trigger {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1rem 0 0.85rem;
  background:
    linear-gradient(135deg, #d9f5e8 0%, #bfeeda 38%, #9ee4c8 72%, #7fd9b8 100%);
  color: #066844;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(10, 157, 106, 0.1),
    0 8px 22px rgba(10, 157, 106, 0.22);
  transition: box-shadow 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.rv-ai-float__trigger::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.7) 48%, transparent 68%);
  transform: translateX(-55%) rotate(8deg);
  animation: rv-ai-ask-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.rv-ai-float__trigger::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, rgba(10, 157, 106, 0.95) 36% 70%, transparent 72%);
  box-shadow: -14px 12px 0 -1px rgba(10, 157, 106, 0.5);
  opacity: 0.85;
  animation: rv-ai-ask-twinkle 2.4s ease-in-out infinite;
  pointer-events: none;
}

.rv-ai-float__trigger .rv-ai-search__ask-sparkle,
.rv-ai-float__trigger-label {
  position: relative;
  z-index: 1;
}

.rv-ai-float__trigger:hover,
.rv-ai-float__trigger:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(10, 157, 106, 0.16),
    0 10px 26px rgba(10, 157, 106, 0.3);
  outline: none;
}

.rv-ai-float__trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.rv-ai-float.is-open .rv-ai-float__trigger {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 1px rgba(10, 157, 106, 0.18),
    0 8px 20px rgba(10, 157, 106, 0.24);
}

.rv-ai-float__panel {
  width: min(420px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.14);
}

.rv-ai-float__panel[hidden] {
  display: none !important;
}

.rv-ai-float__form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  margin: 0;
  border: 1px solid #a9b8c9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10, 157, 106, 0.06);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.rv-ai-float__form:hover {
  border-color: #8fa3b8;
}

.rv-ai-float__form:focus-within {
  border-color: rgba(10, 157, 106, 0.58);
  box-shadow:
    0 0 0 3px rgba(10, 157, 106, 0.15),
    0 4px 14px rgba(16, 24, 40, 0.06);
}

.rv-ai-float__field {
  position: relative;
  margin: 0;
  min-width: 0;
}

.rv-ai-float__field::before {
  left: 0.85rem;
  width: 0.85rem;
  height: 0.85rem;
}

.rv-ai-float__field input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0.65rem 2rem 0.65rem 2.35rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
  outline: none;
  box-shadow: none;
}

.rv-ai-float__field input::placeholder {
  color: #475467;
  font-weight: 500;
  opacity: 1;
}

.rv-ai-float__field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 0.9rem;
  width: 0.9rem;
  margin-right: 0.1rem;
  background:
    linear-gradient(45deg, transparent 42%, #667085 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, #667085 43% 57%, transparent 58%);
  cursor: pointer;
  opacity: 0.85;
}

.rv-ai-float__ask {
  min-height: 46px !important;
  padding: 0 0.95rem !important;
  border-radius: 0 !important;
}

.rv-ai-float__summary {
  margin-top: 8px;
}

.rv-ai-float__summary .rv-ai-search__summary-title {
  margin: 0 0 6px;
  font-size: 0.72rem;
}

.rv-ai-float__error,
.rv-ai-float__loading {
  margin: 6px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.rv-ai-float__error {
  color: #b42318;
}

.rv-ai-float__loading {
  color: #475467;
}

.rv-ai-float.is-loading .rv-ai-float__trigger .rv-ai-search__ask-sparkle,
.rv-ai-float.is-loading .rv-ai-float__ask .rv-ai-search__ask-sparkle {
  animation: rv-ai-ask-spin 1.2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .rv-ai-float,
  .rv-ai-float__trigger {
    transition: none;
  }

  .rv-ai-float__trigger::before,
  .rv-ai-float__trigger::after,
  .rv-ai-float.is-loading .rv-ai-float__trigger .rv-ai-search__ask-sparkle,
  .rv-ai-float.is-loading .rv-ai-float__ask .rv-ai-search__ask-sparkle {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .rv-ai-float {
    right: 12px;
    bottom: calc(var(--mobile-nav-clearance, 88px) + 58px);
    max-width: min(360px, calc(100vw - 20px));
  }

  .rv-ai-float__panel {
    width: min(360px, calc(100vw - 20px));
  }

  .rv-ai-float__trigger {
    min-height: 42px;
    padding-inline: 0.85rem 0.9rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 430px) {
  .rv-ai-float {
    right: 10px;
    left: auto;
    bottom: calc(var(--mobile-nav-clearance, 88px) + 54px);
  }

  .rv-ai-float__form {
    grid-template-columns: 1fr;
  }

  .rv-ai-float__field::before {
    left: 0.8rem;
  }

  .rv-ai-float__field input {
    min-height: 50px;
    padding: 0.7rem 1.95rem 0.7rem 2.3rem;
    font-size: 0.98rem;
  }

  .rv-ai-float__field input:placeholder-shown {
    padding-right: 0.9rem;
  }

  .rv-ai-float__ask {
    width: 100%;
    border-left: 0 !important;
    border-top: 1px solid #eef2f6;
  }
}

.bayut-filter-clear {
  border: none;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.bayut-filter-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.bayut-filter-panel > .bayut-filter-field,
.bayut-filter-panel > .bayut-filter-fieldset,
.bayut-filter-panel > .bayut-filter-check {
  padding-top: 10px;
}

.bayut-filter-panel > .bayut-filter-field + .bayut-filter-field,
.bayut-filter-panel > .bayut-filter-field + .bayut-filter-fieldset,
.bayut-filter-panel > .bayut-filter-field + .bayut-filter-check,
.bayut-filter-panel > .bayut-filter-fieldset + .bayut-filter-field,
.bayut-filter-panel > .bayut-filter-fieldset + .bayut-filter-check,
.bayut-filter-panel > .bayut-filter-check + .bayut-filter-fieldset {
  border-top: 1px solid #eef2f6;
}

.bayut-filter-label {
  display: inline-flex;
  align-items: center;
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.bayut-filter-field--pills {
  gap: 8px;
}

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

.bayut-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bayut-filter-pill {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d5dbe3;
  border-radius: 999px;
  background: #f4f6f8;
  color: #1f2937;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  min-height: 32px;
  padding: 5px 10px;
  cursor: pointer;
  box-sizing: border-box;
}

.bayut-filter-pill.is-active {
  background: #0a9d6a;
  border-color: #08885b;
  color: #fff;
}

.bayut-filter-pill:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 2px;
}

.bayut-map-filters .bayut-filter-field--pills,
.bayut-filter-panel .bayut-filter-field--pills {
  margin-bottom: 10px;
}

.bayut-filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
}

.bayut-filter-input-wrap .icon {
  width: 16px;
  height: 16px;
  color: var(--icon-glyph-primary);
  flex-shrink: 0;
}

.bayut-filter-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.84rem;
  background: transparent;
}

.listings-area-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: min(280px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  box-sizing: border-box;
  width: 100%;
}

.listings-area-suggest[hidden] {
  display: none !important;
}

.listings-area-suggest__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  min-height: 44px;
  cursor: pointer;
  color: #1f2937;
}

.listings-area-suggest__option.is-active,
.listings-area-suggest__option:hover {
  background: #f3faf6;
}

.listings-area-suggest__label {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.listings-area-suggest__alias {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6a7280;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bayut-filter-field--search,
.bayut-filter-field--search .bayut-filter-input-wrap {
  overflow: visible;
}

.bayut-serp__sidebar,
.bayut-filter-panel,
.bayut-mobile-filters__body .bayut-filter-panel {
  overflow: visible;
}

.bayut-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}

.bayut-filter-row--pair > .filter-select--inline {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

.bayut-filter-label--inline {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6a6a6a;
}

.bayut-filter-fieldset {
  margin: 0 0 12px;
  padding: 0;
  border: none;
}

.bayut-filter-fieldset legend {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.bayut-filter-checks {
  display: grid;
  gap: 6px;
}

.bayut-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 0.82rem;
  line-height: 1.25;
  cursor: pointer;
}

.bayut-filter-check input {
  accent-color: var(--primary);
}

.bayut-serp .filter-select select,
.bayut-area-page .filter-select select,
.bayut-map-filters .filter-select select,
.bayut-serp .listing-custom-select .custom-select-trigger,
.bayut-area-page .listing-custom-select .custom-select-trigger {
  min-height: 38px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 4px;
  border-color: #d7d7d7;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.bayut-serp .filter-select > .bayut-filter-label,
.bayut-area-page .filter-select > .bayut-filter-label {
  color: #4a4a4a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.bayut-serp .filter-select.filter-select--inline,
.bayut-area-page .filter-select.filter-select--inline {
  gap: 0;
}

.bayut-serp .bayut-filter-row .listing-custom-select,
.bayut-serp .bayut-filter-row .filter-select select,
.bayut-area-page .bayut-filter-row .listing-custom-select,
.bayut-area-page .bayut-filter-row .filter-select select {
  width: 100%;
}

.bayut-serp .bayut-filter-checks {
  gap: 8px;
}

.bayut-serp .bayut-filter-check {
  min-height: 28px;
}

.bayut-serp__intro {
  margin-bottom: var(--portal-gap-intro);
}

.bayut-serp__title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
  color: var(--portal-text);
}

.bayut-serp__subtitle {
  margin: 0;
  color: #6a6a6a;
  font-size: 0.82rem;
}

.bayut-serp__main {
  min-width: 0;
}

.bayut-serp__toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  min-height: 56px;
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 24;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bayut-serp__toolbar.is-stuck {
  border-color: #dfe6ee;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.bayut-serp__count {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  margin: 0;
  min-height: 38px;
  min-width: 17.5rem;
  max-width: min(100%, 22rem);
  padding-right: 0;
  color: #4a5568;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bayut-serp__count-desktop {
  display: inline;
}

.bayut-serp__count-mobile {
  display: none;
}

.bayut-serp__toolbar-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.bayut-serp__toolbar-actions .bayut-view-toggle {
  margin-left: 0;
  flex: 0 1 auto;
  min-width: min(100%, 11.5rem);
  max-width: 18rem;
}

.bayut-serp__toolbar .bayut-sort.filter-select {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0;
  min-width: 0;
  flex: 1 1 9rem;
  max-width: 13.5rem;
}

/* Canonical SERP toolbar: no visible Sort label (match /listings/). */
.bayut-serp__toolbar .bayut-sort__label {
  display: none !important;
}

.bayut-serp__toolbar .bayut-sort .listing-custom-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}

/* Native sort must match .custom-select-trigger chrome before enhance swaps. */
.bayut-serp__toolbar .bayut-sort select:not(.native-filter-select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 8px;
  border-color: #d7d7d7;
  font-size: 0.82rem;
  font-weight: 700;
  background-position: calc(100% - 12px) 50%;
}

.bayut-serp__toolbar .bayut-sort .custom-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 8px;
  border-color: #d7d7d7;
  font-size: 0.82rem;
  font-weight: 700;
}

.bayut-serp__toolbar .bayut-sort .custom-select-menu {
  min-width: 100%;
  width: max(100%, 210px);
}

.bayut-serp__toolbar .bayut-sort .custom-select-trigger span {
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bayut-serp__toolbar-actions .bayut-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 2.75rem;
  min-height: 38px;
  height: 38px;
  padding: 0 12px;
  line-height: 1;
  white-space: nowrap;
}

body.commercial-page .bayut-serp__toolbar-actions .bayut-view-toggle {
  min-width: 0;
  width: auto;
  max-width: 100%;
}

body.commercial-page .bayut-serp__toolbar-actions .bayut-view-toggle__btn {
  flex: 0 0 auto;
}

.bayut-view-toggle {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.bayut-view-toggle__btn {
  min-height: 38px;
  padding: 0 14px;
  color: #333;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: #fff;
  border: none;
  border-right: 1px solid #d7d7d7;
  cursor: pointer;
}

.bayut-view-toggle__btn:last-child {
  border-right: none;
}

.bayut-view-toggle__btn.is-active {
  background: #f5f5f5;
  color: var(--primary);
}

@media (max-width: 719px) {
  .bayut-serp-page,
  .bayut-area-page,
  .bayut-area-serp,
  .bayut-serp__results,
  .bayut-serp__toolbar,
  .bayut-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .bayut-serp__toolbar {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0;
    /* Count row may use 2 lines for full range wording; keep geometry stable. */
    min-height: 110px;
    padding: 10px;
    top: calc(var(--header-height) + 4px);
  }

  .bayut-serp__count {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    /* Full range string may wrap on narrow screens; reserve 2-line height to avoid CLS. */
    min-height: 40px;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: none;
    border-bottom: 1px solid #e8edf2;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.25;
  }

  .bayut-serp__count-desktop {
    display: none;
  }

  .bayut-serp__count-mobile {
    display: inline;
    white-space: normal;
  }

  .bayut-serp__toolbar-actions {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin-top: 8px;
    justify-content: flex-start;
    gap: 6px;
    box-sizing: border-box;
  }

  /* Sort may shrink. View toggle keeps three readable columns. */
  .bayut-serp__toolbar-actions .bayut-saved-chip {
    flex: 0 1 auto;
    align-self: center;
    min-width: 0;
    max-width: 7.5rem;
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bayut-serp__toolbar .bayut-sort.filter-select {
    flex: 1 1 0;
    min-width: 0;
    max-width: 11rem;
  }

  .bayut-serp__toolbar .bayut-sort .listing-custom-select,
  .bayut-serp__toolbar .bayut-sort select:not(.native-filter-select) {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .bayut-serp__toolbar .bayut-sort .custom-select-trigger {
    min-width: 0;
    max-width: 100%;
    padding: 0 30px 0 10px;
  }

  .bayut-serp__toolbar .bayut-sort .custom-select-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bayut-serp__toolbar-actions .bayut-view-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(2.6rem, 1fr));
    flex: 1.35 1 9.5rem;
    width: auto;
    min-width: 8.75rem;
    max-width: none;
    margin-left: 0;
  }

  body.commercial-page .bayut-serp__toolbar-actions .bayut-view-toggle {
    grid-template-columns: repeat(2, minmax(2.6rem, 1fr));
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
  }

  .bayut-serp__toolbar-actions .bayut-view-toggle__btn {
    min-height: 38px;
    height: 38px;
    min-width: 0;
    max-width: 100%;
    padding-inline: 6px;
    font-size: 0.78rem;
    overflow: hidden;
  }

  .bayut-serp__toolbar-actions .bayut-view-toggle__btn span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Narrow phones: tighter Saved / view chrome; keep sort label readable. */
@media (max-width: 360px) {
  .bayut-serp__toolbar-actions {
    gap: 4px;
  }

  .bayut-serp__toolbar-actions .bayut-saved-chip {
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .bayut-serp__toolbar .bayut-sort.filter-select {
    max-width: 8.5rem;
  }

  .bayut-serp__toolbar-actions .bayut-view-toggle {
    min-width: 8.25rem;
    grid-template-columns: repeat(3, minmax(2.35rem, 1fr));
  }

  body.commercial-page .bayut-serp__toolbar-actions .bayut-view-toggle {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(2.35rem, 1fr));
  }

  .bayut-serp__toolbar .bayut-sort .custom-select-trigger {
    padding: 0 28px 0 8px;
  }

  .bayut-serp__toolbar-actions .bayut-view-toggle__btn {
    padding-inline: 4px;
    font-size: 0.74rem;
  }
}

.bayut-sort .listing-custom-select,
.bayut-sort select {
  min-width: 200px;
}

.bayut-serp__range {
  margin: 0;
  color: #333;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.bayut-serp__active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}

.bayut-serp__quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
  margin: 0 0 10px;
}

.bayut-quick-chip {
  min-height: 30px;
  padding: 5px 11px;
  color: #4b5f70;
  font-size: 0.76rem;
  font-weight: var(--weight-label);
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.bayut-quick-chip:hover {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

.bayut-quick-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0a9d6a, #087f57);
  border-color: #0a9d6a;
}

.bayut-quick-chip:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

/* Selected chips must keep white text on green — never dark-green-on-green. */
.bayut-quick-chip.is-active:hover,
.bayut-quick-chip.is-active:focus-visible,
.bayut-filter-pill.is-active:hover,
.bayut-filter-pill.is-active:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #08885b, #066a49);
  border-color: #066a49;
}

.bayut-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 11px;
  color: #304457;
  font: inherit;
  font-size: 0.76rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
  background: #f7fbff;
  border: 1px solid #d6e3f0;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.bayut-tag:hover,
.bayut-tag:focus-visible {
  color: var(--primary);
  border-color: rgba(10, 157, 106, 0.35);
  background: #ffffff;
}

.bayut-tag--clear {
  color: var(--primary);
  border-color: rgba(10, 157, 106, 0.32);
  background: rgba(10, 157, 106, 0.08);
}

.bayut-serp__results {
  display: grid;
  gap: 12px;
}

.bayut-serp__results[data-view-mode="grid"] {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card {
  grid-template-columns: 1fr;
  min-height: 0;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
  min-height: 190px;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media-track,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media img {
  min-height: 100%;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__body {
  border-right: none;
  border-bottom: 1px solid #efefef;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions {
  grid-auto-flow: column;
  width: 100%;
}

.bayut-serp-loading {
  margin: 12px 0 16px;
}

.bayut-serp-loading__label {
  margin: 10px 0 0;
  color: #6a7788;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
}

.bayut-serp-skeleton {
  display: grid;
  gap: 12px;
}

.bayut-serp-skeleton__card {
  min-height: 220px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 45%, #eef2f6 100%);
  background-size: 220% 100%;
  animation: detail-skeleton-shimmer 1.2s ease-in-out infinite;
}

.bayut-serp-error {
  margin: 16px 0;
  padding: 22px;
  background: #fff;
  border: 1px solid #e8c4c4;
  border-radius: 8px;
}

.bayut-serp-error h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.bayut-serp-error p {
  margin: 0 0 14px;
  color: #5a697b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.bayut-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 168px;
  align-items: stretch;
  min-height: 220px;
  background: #fff;
  border: 1px solid #dedede;
  /* Match Homepage Featured (.home-property-card → --radius-md / 20px). */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bayut-card:hover {
  border-color: #d3dde8;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
}

.bayut-card__media {
  position: relative;
  background: #e9e9e9;
  min-height: 220px;
  overflow: hidden;
}

.bayut-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.34), transparent);
  pointer-events: none;
  z-index: 1;
}

.bayut-card__media-link {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bayut-card__media .property-media-track {
  touch-action: pan-x pan-y;
}

.bayut-card__media .property-media {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.bayut-card__media .property-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.bayut-card__media .property-media img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.property-media img.is-broken,
.bayut-card__media img.is-broken,
.home-property-media img.is-broken,
.detail-similar-card__media img.is-broken,
.detail-rec-media img.is-broken {
  display: none;
}

.bayut-card__photo-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 3px;
}

.bayut-card__photo-count .icon {
  width: 12px;
  height: 12px;
}

.bayut-card__fav {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rv-save-heart-hit);
  height: var(--rv-save-heart-hit);
  padding: 0;
  margin: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: pointer;
  /* Single soft contrast halo — avoid heavy multi-shadow desktop look */
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.28));
  transition: transform 0.16s var(--ease), filter 0.2s var(--ease), opacity 0.2s var(--ease), color 0.16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.bayut-card__fav:hover {
  opacity: 0.92;
}

.bayut-card__fav:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: none;
}

.bayut-card__fav .icon,
.bayut-card__fav .rv-save-heart {
  width: var(--rv-save-heart-size);
  height: var(--rv-save-heart-size);
  display: block;
  flex: 0 0 auto;
  stroke-width: 1.45;
}

.bayut-card__fav.is-saved {
  color: var(--rv-save-heart);
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
}

/* External sprite <use> — style the host SVG; path selectors do not pierce. */
.bayut-card__fav.is-saved .icon,
.bayut-card__fav.is-saved .rv-save-heart {
  color: var(--rv-save-heart);
  fill: var(--rv-save-heart);
  stroke: var(--rv-save-heart);
}

.bayut-card__fav.is-saved .icon path,
.bayut-card__fav.is-saved .rv-save-heart path {
  fill: currentColor;
  stroke: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .bayut-card__fav {
    transition: none;
  }
}

.bayut-saved-chip {
  flex-shrink: 0;
}

.bayut-serp__toolbar-actions .bayut-saved-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  padding-block: 0;
  line-height: 1;
}

.bayut-empty--saved {
  text-align: center;
}

body.listings-page [data-saved-empty] .bayut-empty__actions {
  justify-content: center;
}

body.listings-page [data-saved-empty] .bayut-empty__actions .bayut-btn {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

/* Saved-mode SSR / early client shell — reserve space, understated copy */
.bayut-saved-shell {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: min(28rem, 70vh);
  padding: 2.5rem 1rem 3rem;
  box-sizing: border-box;
}

.bayut-saved-shell__label {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #6b7280;
  font-weight: 500;
  text-align: center;
}

.bayut-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  padding: 14px 16px 12px;
  border-right: 1px solid #efefef;
}

.bayut-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.bayut-card__price {
  margin: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.15;
  flex: 0 1 auto;
}

.bayut-card__price strong {
  font-weight: var(--weight-title);
}

.bayut-card__price span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

.bayut-card__badges {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.bayut-card__badges .rv-check-badge--compact,
.bayut-card__badges .rv-visit-badge--compact {
  padding: 3px 8px 3px 4px;
  gap: 5px;
  box-shadow: none;
}

.bayut-card__badges .rv-check-badge--compact .rv-check-badge__icon,
.bayut-card__badges .rv-visit-badge--compact .rv-visit-badge__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.bayut-card__badges .rv-check-badge--compact .rv-check-badge__icon .icon,
.bayut-card__badges .rv-visit-badge--compact .rv-visit-badge__icon .icon {
  width: 12px;
  height: 12px;
}

.bayut-card__badges .rv-check-badge--compact .rv-check-badge__text strong,
.bayut-card__badges .rv-visit-badge--compact .rv-visit-badge__text strong {
  font-size: 0.72rem;
}

.bayut-card__title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: var(--weight-title);
  line-height: 1.32;
}

.bayut-card__title a {
  color: var(--portal-text);
  text-decoration: none;
}

.bayut-card__title a:hover {
  color: var(--primary);
}

.bayut-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  color: #6a6a6a;
  font-size: 0.82rem;
}

.bayut-card__location .icon {
  width: 14px;
  height: 14px;
  margin-top: 0;
  flex-shrink: 0;
  color: var(--icon-glyph-primary);
}

.bayut-card__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: #333;
  font-size: 0.82rem;
  font-weight: 600;
}

.bayut-card__specs li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-right: 1px solid #ddd;
}

.bayut-card__specs li:first-child {
  padding-left: 0;
}

.bayut-card__specs li:last-child {
  border-right: none;
}

.bayut-card__specs .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--icon-glyph-muted);
}

.bayut-card__meta {
  margin: 0;
  color: #7b8697;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.bayut-card__agent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  text-align: left;
}

.bayut-card__agent-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.bayut-card__agent-brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
}

.lister-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: transparent;
}

.lister-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lister-brand-logo--company {
  padding: 0;
  background: transparent;
  border-color: #e3e8ef;
}

.lister-brand-logo--company img {
  object-fit: cover;
}

.lister-brand-name--agency,
.lister-brand-name-link.lister-brand-name--agency,
.home-property-lister-name.lister-brand-name--agency,
[data-listing-agent-name].is-agency-brand {
  text-transform: uppercase;
}

.lister-brand-logo--platform {
  padding: 5px;
  object-fit: contain;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
}

.lister-brand-logo--individual {
  color: #5a697b;
  background: #f0f4f8;
  border-color: #e3e8ef;
}

.lister-brand-logo--individual .icon {
  width: 22px;
  height: 22px;
}

.lister-brand-logo--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.76rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
  background: var(--primary);
  border-color: transparent;
}

.lister-brand-name-link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lister-brand-name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.lister-brand-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}

.lister-brand-logo-link:hover {
  opacity: 0.92;
}

.lister-brand-name-link:focus-visible,
.lister-brand-logo-link:focus-visible,
.detail-agent-name-link:focus-visible,
.detail-more-from-name-link:focus-visible,
.home-property-lister-name--link:focus-visible,
.rv-app-lister-name-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.detail-agent-name-link,
.detail-more-from-name-link,
.rv-app-lister-name-link {
  color: inherit;
  text-decoration: none;
}

.detail-agent-name-link:hover,
.detail-more-from-name-link:hover,
.rv-app-lister-name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.home-property-lister-name--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.home-property-lister-name--link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.bayut-card__agent-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  background: var(--primary);
  border-radius: 6px;
}

.bayut-serp__toolbar-sentinel {
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
}

.bayut-card__agent-brand > div,
.bayut-card__agent-brand-copy {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.lister-brand-eyebrow {
  display: block;
  color: #7a7a7a;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.bayut-card__agent-brand strong {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  font-size: 0.82rem;
  color: #222;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Public agency checkmark removed (V2 closeout) — hide even if stale markup appears. */
.lister-verified-badge {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lister-verified-badge .icon {
  display: none !important;
}

.lister-brand-meta,
.lister-brand-listed {
  display: block;
  color: #7a8797;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.lister-brand-meta {
  color: #5a697b;
}

.lister-brand-subtitle,
.bayut-card__agent-brand span:not(.lister-brand-logo):not(.lister-brand-eyebrow):not(.lister-verified-badge) {
  display: block;
  color: #888;
  font-size: 0.72rem;
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bayut-card__agent-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.rv-whatsapp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #2bdc6e 0%, #1da851 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.rv-whatsapp-icon-btn .icon {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .rv-whatsapp-icon-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.34);
  }
}

.rv-whatsapp-icon-btn:active {
  transform: scale(0.96);
}

.detail-scroll-bar-enquire.rv-whatsapp-icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}

.detail-scroll-bar-enquire.rv-whatsapp-icon-btn .icon {
  width: 18px;
  height: 18px;
}

.bayut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  text-decoration: none;
  border-radius: var(--button-radius);
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.bayut-btn:hover {
  transform: translateY(-2px);
}

.bayut-btn .icon,
.bayut-tag .icon {
  flex-shrink: 0;
}

.bayut-btn--call,
.bayut-btn--primary {
  color: #fff;
  background: var(--grad-primary);
  border-color: rgba(10, 157, 106, 0.35);
  box-shadow: var(--shadow-primary);
}

.bayut-btn--call:hover,
.bayut-btn--primary:hover {
  box-shadow: 0 20px 44px rgba(10, 157, 106, 0.46);
}

.bayut-btn--email,
.bayut-btn--outline {
  color: var(--heading);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.bayut-btn--email:hover,
.bayut-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.bayut-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.bayut-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  color: #333;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.bayut-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

.bayut-page-btn.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(10, 157, 106, 0.22);
}

.bayut-page-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f7f9fb;
  border-color: #e3e8ef;
  color: #9aa6b2;
}

.bayut-popular {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
}

.bayut-popular__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.bayut-popular__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.bayut-popular__links a {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.bayut-popular__links a:hover {
  text-decoration: underline;
}

.bayut-empty {
  margin-top: 12px;
  padding: 16px 18px 14px;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 4px;
}

.bayut-empty__suggestions {
  margin: 10px 0 14px;
  padding-left: 18px;
  color: #5a697b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.bayut-prelaunch {
  margin-bottom: 16px;
}

.bayut-mobile-bar {
  display: none;
}

.bayut-mobile-filters {
  width: min(100vw, 480px);
  height: fit-content;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.bayut-mobile-filters::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

html:has(.bayut-mobile-filters[open]),
body:has(.bayut-mobile-filters[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}

.bayut-mobile-filters__panel {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.bayut-mobile-filters__head,
.bayut-mobile-filters__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
}

.bayut-mobile-filters__foot {
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-bottom: none;
  border-top: 1px solid #e3e8ef;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(10px);
}

.bayut-mobile-filters__foot .bayut-btn {
  width: 100%;
  min-height: 42px;
}

.bayut-mobile-filters__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bayut-mobile-filters__close {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  background: #f5f5f5;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.bayut-mobile-filters__body {
  flex: 0 1 auto;
  min-height: 0;
  max-height: calc(100vh - 130px);
  max-height: calc(100dvh - 130px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bayut-mobile-filters__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.bayut-mobile-filters__body .bayut-filter-panel {
  overflow: visible;
  border: none;
  box-shadow: none;
  padding: 0;
}

.bayut-mobile-filters__body .bayut-filter-panel__head {
  display: none;
}

.bayut-mobile-filters__body .bayut-filter-field {
  margin-bottom: 10px;
}

.bayut-mobile-filters__body .bayut-filter-panel > :last-child {
  margin-bottom: 0;
}

.bayut-mobile-filters__body .bayut-filter-row--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.bayut-mobile-filters__body .bayut-filter-row--pair > .filter-select--inline {
  min-width: 0;
}

.bayut-mobile-filters__body .bayut-filter-row--pair > .filter-select:last-child {
  grid-column: auto;
}

.bayut-mobile-filters__body .bayut-filter-row--pair .filter-select select,
.bayut-mobile-filters__body .bayut-filter-row--pair .custom-select-trigger {
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .bayut-card:hover {
    border-color: #c9c9c9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 1024px) {
  .bayut-card {
    grid-template-columns: 240px minmax(0, 1fr) 150px;
  }
}

@media (max-width: 900px) {
  .bayut-serp__layout {
    grid-template-columns: 1fr;
  }

  .bayut-serp__sidebar {
    display: none;
  }

  .bayut-serp__quick-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    overflow: visible;
  }

  .bayut-serp__quick-chips .bayut-quick-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    text-align: center;
    white-space: nowrap;
  }

  .bayut-serp__intro {
    margin-bottom: 12px;
  }

  .bayut-serp__toolbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .bayut-serp {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  body.listings-page .bayut-serp {
    padding-bottom: 12px;
  }

  .bayut-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2900;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px 10px 8px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e3e8ef;
    box-shadow: 0 -6px 18px rgba(16, 24, 40, 0.07);
    backdrop-filter: blur(10px);
  }

  /* Same 900px gate as the sticky bar: one visible sort. */
  body.listings-page .bayut-serp__toolbar .bayut-sort.filter-select {
    display: none;
  }

  .bayut-mobile-bar__sort.filter-select,
  .bayut-mobile-bar__sort .listing-custom-select,
  .bayut-mobile-bar__sort .custom-select-trigger {
    min-width: 0;
    max-width: 100%;
  }

  .bayut-mobile-bar__sort .custom-select-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  @media (max-width: 760px) {
    /* Footer carries bottom-stack clearance; main should not duplicate it. */
    body.listings-page main.bayut-serp {
      padding-top: 8px;
      padding-bottom: 12px;
    }

    body.listings-page .bayut-serp__intro {
      margin-bottom: 8px;
    }

    body.listings-page .bayut-serp__toolbar {
      margin-bottom: 8px;
    }

    body.listings-page .site-footer {
      padding-bottom: var(--mobile-listings-bottom-stack);
    }

    .bayut-mobile-bar {
      left: var(--mobile-floating-gutter, 10px);
      right: var(--mobile-floating-gutter, 10px);
      bottom: var(--mobile-nav-clearance);
      width: auto;
      padding: 5px 6px;
      border: 1px solid rgba(16, 24, 40, 0.07);
      border-top: 1px solid rgba(16, 24, 40, 0.07);
      border-radius: 14px;
      box-shadow:
        0 8px 22px rgba(16, 24, 40, 0.1),
        0 1px 4px rgba(16, 24, 40, 0.04);
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(22px) saturate(180%);
      -webkit-backdrop-filter: blur(22px) saturate(180%);
    }
  }

  .bayut-mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    color: #333;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: var(--button-radius);
    cursor: pointer;
    transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
  }

  .bayut-mobile-bar__btn:hover {
    border-color: rgba(10, 157, 106, 0.35);
    color: var(--primary);
  }

  .bayut-mobile-bar__sort.filter-select {
    display: block;
    grid-column: auto;
    margin: 0;
  }

  .bayut-mobile-bar__sort select {
    height: 40px;
    min-height: 40px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--button-radius);
  }

  .bayut-mobile-bar__sort .listing-custom-select {
    width: 100%;
  }

  .bayut-mobile-bar__sort .listing-custom-select .custom-select-trigger {
    height: 40px;
    min-height: 40px;
    padding-left: 12px;
    padding-right: 34px;
    color: #333;
    font-size: 0.82rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: var(--button-radius);
  }

  .bayut-mobile-bar__sort .listing-custom-select.is-filtered .custom-select-trigger,
  .bayut-mobile-bar__sort .listing-custom-select.is-active-value .custom-select-trigger {
    padding-left: 28px;
  }

  .bayut-mobile-bar__sort .listing-custom-select.is-filtered .custom-select-trigger::before,
  .bayut-mobile-bar__sort .listing-custom-select.is-active-value .custom-select-trigger::before {
    left: 12px;
  }

  .bayut-mobile-bar__sort .custom-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: none;
  }

  .bayut-mobile-bar__sort .custom-select-trigger span::before,
  .bayut-mobile-bar__sort .listing-custom-select .custom-select-trigger span::before {
    content: none !important;
    display: none !important;
  }

  .bayut-mobile-bar__sort select {
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
  }

  .bayut-mobile-bar__btn .icon {
    width: 16px;
    height: 16px;
  }

  .bayut-card {
    grid-template-columns: 1fr;
  }

  .bayut-card__media {
    min-height: 200px;
  }

  .bayut-card__media .property-media,
  .bayut-card__media .property-media-track,
  .bayut-card__media .property-media img {
    min-height: 100%;
    height: 100%;
  }

  .bayut-card__title {
    font-size: 0.94rem;
  }

  .bayut-card__body {
    border-right: none;
    border-bottom: 1px solid #efefef;
  }

  .bayut-card__agent {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .bayut-card__agent-brand {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .bayut-card__agent-actions {
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, auto);
  }

  .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: 1fr;
  }

  .bayut-pagination {
    gap: 8px;
    margin-top: 24px;
    padding-bottom: 4px;
  }
}

@media (max-width: 560px) {
  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand > div,
  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand-copy {
    min-width: 0;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand strong,
  .bayut-serp__results[data-view-mode="list"] .lister-brand-name-link {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand span:not(.lister-brand-logo):not(.lister-brand-eyebrow):not(.lister-verified-badge) {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions {
    flex: 0 1 auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, auto);
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
    flex-direction: column;
    align-items: stretch;
  }

  .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions {
    grid-auto-flow: row;
    width: 100%;
  }
}

/* Portal consistency — listings SERP + listing detail */

.bayut-serp-page .section.compact-section {
  padding-bottom: var(--portal-page-bottom);
}

.bayut-serp-page .section.compact-section.areas-index-page,
.bayut-serp-page .section.compact-section.agents-directory-page,
.bayut-serp-page .section.compact-section.agent-profile-page,
.bayut-serp-page .section.compact-section.bayut-area-page,
.bayut-serp-page .section.compact-section.detail-portal-section,
.bayut-serp-page .section.compact-section.submit-listing-page,
.bayut-serp-page .section.compact-section.contact-page,
.bayut-serp-page .section.compact-section.find-rental-page,
.bayut-serp-page .section.compact-section.thank-you-page-section,
.bayut-serp-page .section.compact-section.agents-page,
.bayut-serp-page .section.compact-section.safety-page,
.bayut-serp-page .section.compact-section.verification-page,
.bayut-serp-page .section.compact-section.saved-page,
.bayut-serp-page .section.compact-section.legal-page {
  padding-top: var(--portal-breadcrumb-top);
}

.bayut-serp,
.detail-portal-section,
.agent-profile-page {
  padding-top: var(--portal-breadcrumb-top);
}

.area-page-body,
.areas-index-body {
  background: var(--portal-page-bg);
}

.area-page-body .site-header,
.areas-index-body .site-header {
  border-bottom: 1px solid #e3e3e3;
}

.listing-detail-page {
  background: var(--portal-page-bg);
}

.listing-detail-page .site-header {
  border-bottom: 1px solid var(--portal-border);
}

.portal-breadcrumb {
  margin: 0 0 var(--portal-gap-breadcrumb);
}

.portal-breadcrumb,
.bayut-breadcrumb,
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--portal-muted);
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.detail-top-bar .portal-breadcrumb,
.detail-top-bar .detail-breadcrumb {
  margin: 0;
}

.portal-breadcrumb a,
.bayut-breadcrumb a,
.detail-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.portal-breadcrumb a:hover,
.bayut-breadcrumb a:hover,
.detail-breadcrumb a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.detail-portal-section .content-card,
.detail-trust-strip,
.detail-portal-aside .detail-rent-card,
.detail-portal-aside .detail-agent-card {
  border-radius: var(--portal-card-radius);
  border-color: var(--portal-border);
  box-shadow: none;
}

.detail-location-note {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}


/* Compact property reference under enquiry summary (Res/Com/Sale shells). */
.detail-enquiry-property-link {
  margin: 0.15rem 0 0.55rem;
}
.detail-enquiry-property-link[hidden] {
  display: none !important;
}
.detail-enquiry-property-link a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.listing-detail-page:not(.sale-detail-page) .detail-enquiry-property-link a {
  color: var(--primary, #0a9d6a);
}
body.listing-detail-page:not(.sale-detail-page) .detail-enquiry-property-link a:hover,
body.listing-detail-page:not(.sale-detail-page) .detail-enquiry-property-link a:focus-visible {
  color: var(--primary-hover, #07814f);
}

.listing-enquiry-card {
  display: grid;
  gap: 14px;
}

.listing-enquiry-form textarea {
  min-height: 110px;
  resize: vertical;
}

.detail-enquiry-form-grid {
  display: grid;
  gap: 18px;
}

/* Portal: map, saved listings, badges */
.map-layout {
  display: grid;
  gap: 18px;
}

.map-canvas-wrap {
  display: grid;
  gap: 10px;
}

.map-canvas {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #e8f4ef 0%, #d7ebe3 55%, #cfe4db 100%);
}

.map-canvas-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.45), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(10,111,76,0.08), transparent 50%);
}

.map-pins {
  position: absolute;
  inset: 0;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.map-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.map-pin-active .map-pin-dot {
  background: #0a6f4c;
}

.map-pin.is-selected .map-pin-dot {
  transform: scale(1.15);
}

.map-pin-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--heading);
  background: rgba(255,255,255,0.92);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.map-area-list {
  display: grid;
  gap: 12px;
}

.map-area-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.map-area-card.is-active {
  border-color: rgba(10,111,76,0.35);
  box-shadow: 0 0 0 1px rgba(10,111,76,0.12);
}

.map-area-card h3 {
  margin: 0 0 6px;
}

.map-area-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.saved-listing-grid {
  display: grid;
  gap: 12px;
}

.saved-listing-grid[hidden] {
  display: none;
}

.saved-toolbar-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--portal-gap-toolbar);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.saved-toolbar-panel[hidden] {
  display: none;
}

.saved-summary {
  margin: 0;
  color: #425466;
  font-size: 0.84rem;
  font-weight: 700;
}

.saved-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-reference-panel {
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed #d8e0e8;
}

.saved-reference-title {
  margin: 0 0 8px;
  color: #5e6a79;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.03em;
}

.saved-reference-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-reference-list li code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d8e0e8;
  background: #f8fafc;
  color: #334155;
  font-size: 0.74rem;
}

.saved-empty-state {
  margin-top: 0;
}

.bayut-serp-page .saved-empty-state {
  border-color: #dedede;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.saved-listing-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 104px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.saved-listing-card:hover {
  border-color: #d3dde8;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
}

.saved-listing-media {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  background: #e9e9e9;
}

.saved-listing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.saved-listing-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
}

.saved-listing-body p {
  margin: 0;
  color: #6a7788;
  font-size: 0.76rem;
  font-weight: 600;
}

.saved-listing-body h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--portal-text);
}

.saved-listing-body span {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}

.saved-listing-body small {
  color: #61758a;
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .saved-listing-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .saved-listing-media {
    min-height: 190px;
  }

  .saved-listing-body h3 {
    font-size: 0.94rem;
  }
}

.areas-index-grid {
  display: grid;
  gap: 14px;
}

.areas-index-page {
  padding-bottom: var(--portal-page-bottom);
}

.areas-index-main {
  display: block;
}

.areas-index-intro,
.agents-directory-intro,
.submit-listing-intro,
.contact-intro,
.agents-intro,
.safety-intro,
.verification-intro,
.saved-intro,
.legal-intro {
  margin-bottom: var(--portal-gap-intro);
}

.areas-index-intro .bayut-serp__subtitle {
  max-width: 52ch;
}

.submit-listing-intro .bayut-serp__subtitle {
  max-width: 58ch;
}

.agents-intro .bayut-serp__subtitle,
.safety-intro .bayut-serp__subtitle,
.verification-intro .bayut-serp__subtitle,
.contact-intro .bayut-serp__subtitle,
.saved-intro .bayut-serp__subtitle,
.legal-intro .bayut-serp__subtitle {
  max-width: 52ch;
}

.bayut-serp-page .safety-page .feature-panel h2,
.bayut-serp-page .verification-page .feature-panel h2,
.bayut-serp-page .contact-page .info-card h3,
.bayut-serp-page .contact-page .feature-panel h2,
.bayut-serp-page .contact-page .content-card h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--portal-text);
}

.bayut-serp-page .safety-page .section-heading.compact-heading h2,
.bayut-serp-page .verification-page .section-heading.compact-heading h2,
.bayut-serp-page .contact-page .section-heading.compact-heading h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.28;
  color: var(--portal-text);
}

.bayut-serp-page .safety-page .feature-panel p,
.bayut-serp-page .verification-page .feature-panel p,
.bayut-serp-page .safety-page .check-list,
.bayut-serp-page .verification-page .check-list,
.bayut-serp-page .contact-page .info-card p,
.bayut-serp-page .contact-page .feature-panel p,
.bayut-serp-page .contact-page .content-card p,
.bayut-serp-page .contact-page .check-list {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5a697b;
}

.bayut-serp-page .contact-page .info-card {
  gap: 8px;
  font-weight: 700;
}

.bayut-serp-page .contact-page .info-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5a697b;
}

/* Extra-tight typography for safety / verification / contact pages */
.bayut-serp-page .safety-intro .bayut-serp__title,
.bayut-serp-page .verification-intro .bayut-serp__title,
.bayut-serp-page .contact-intro .bayut-serp__title,
.bayut-serp-page .find-rental-intro .bayut-serp__title {
  font-size: clamp(1.22rem, 1.9vw, 1.5rem);
  line-height: 1.22;
}

.bayut-serp-page.safety-body h2,
.bayut-serp-page.verification-body h2,
.bayut-serp-page.contact-body h2 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.bayut-serp-page.contact-body h3 {
  font-size: 0.98rem;
  line-height: 1.32;
}

.bayut-serp-page.safety-body p,
.bayut-serp-page.verification-body p,
.bayut-serp-page.contact-body p,
.bayut-serp-page.safety-body li,
.bayut-serp-page.verification-body li,
.bayut-serp-page.contact-body li {
  font-size: 0.88rem;
  line-height: 1.52;
}

.bayut-serp__note {
  margin: 8px 0 0;
  color: #6a6a6a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.bayut-serp__note a {
  color: var(--primary);
}

.bayut-serp-page .legal-document {
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.bayut-serp-page .legal-document h2 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--portal-text);
}

.bayut-serp-page .legal-document h2:first-of-type {
  margin-top: 0.75rem;
}

.bayut-serp-page .legal-document p,
.bayut-serp-page .legal-document li {
  color: #5a697b;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bayut-serp-page .legal-document .small-note {
  color: #6a7788;
  font-size: 0.8rem;
}

.bayut-serp-page .section.section-muted {
  background: #fff;
}

.bayut-serp-page .confirmation-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  text-align: center;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.bayut-serp-page .confirmation-panel h1 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--portal-text);
}

.bayut-serp-page .confirmation-panel p {
  color: #5a697b;
}

.bayut-serp-page .confirmation-panel .pill {
  color: #07814f;
  background: var(--primary-soft);
  border: 1px solid rgba(10, 157, 106, 0.18);
}

.bayut-serp-page .confirmation-panel .confirmation-actions {
  justify-content: center;
  margin-top: 22px;
}

.bayut-serp-page .confirmation-panel .thank-listing-context {
  width: 100%;
  margin-top: 16px;
  text-align: left;
}

/* Portal pages — mobile pass (forms, legal, trust, saved) */
@media (max-width: 900px) {
  .bayut-serp-page .section.compact-section {
    padding-bottom: 24px;
  }

  .bayut-serp-page .section.compact-section + .section.compact-section {
    padding-top: 20px;
  }

  .bayut-serp-page .bayut-serp__title {
    font-size: clamp(1.28rem, 5.4vw, 1.55rem);
  }

  .bayut-serp-page .bayut-serp__subtitle,
  .bayut-serp-page .bayut-serp__note {
    font-size: 0.8rem;
  }

  .bayut-serp-page .portal-breadcrumb {
    margin-bottom: 8px;
    font-size: 0.76rem;
  }

  .bayut-serp-page .section-heading.compact-heading h2 {
    font-size: 1.22rem;
    line-height: 1.2;
  }

  .bayut-serp-page .safety-intro .bayut-serp__title,
  .bayut-serp-page .verification-intro .bayut-serp__title,
  .bayut-serp-page .contact-intro .bayut-serp__title,
  .bayut-serp-page .find-rental-intro .bayut-serp__title {
    font-size: clamp(1.14rem, 4.8vw, 1.36rem);
  }

  .bayut-serp-page.safety-body h2,
  .bayut-serp-page.verification-body h2,
  .bayut-serp-page.contact-body h2 {
    font-size: 0.98rem;
  }

  .bayut-serp-page.contact-body h3 {
    font-size: 0.94rem;
  }

  .bayut-serp-page.safety-body p,
  .bayut-serp-page.verification-body p,
  .bayut-serp-page.contact-body p,
  .bayut-serp-page.safety-body li,
  .bayut-serp-page.verification-body li,
  .bayut-serp-page.contact-body li {
    font-size: 0.84rem;
  }

  .bayut-serp-page .legal-document,
  .bayut-serp-page .confirmation-panel,
  .bayut-serp-page .saved-empty-state,
  .bayut-serp-page .empty-state {
    padding: 18px 16px;
    border-radius: 8px;
  }

  .bayut-serp-page .status-grid,
  .bayut-serp-page .contact-grid,
  .bayut-serp-page .two-column,
  .bayut-serp-page .form-layout {
    gap: 14px;
  }

  .bayut-serp-page .status-grid .feature-panel,
  .bayut-serp-page .warning-box,
  .bayut-serp-page .callout.safety-callout,
  .bayut-serp-page .feature-panel.update-card {
    padding: 18px 16px;
    border-radius: 8px;
  }

  .bayut-serp-page .warning-box .panel-illustration,
  .bayut-serp-page .callout .panel-illustration {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  .bayut-serp-page .process-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bayut-serp-page .process-card {
    padding: 14px;
  }

  .bayut-serp-page .submit-rental-cta {
    padding: 18px 16px;
    border-radius: 8px;
  }

  .bayut-serp-page .submit-rental-cta .button {
    width: 100%;
    justify-content: center;
  }

  .bayut-serp-page .thank-you-steps .button,
  .bayut-serp-page .tile-card-grid .button {
    width: 100%;
  }

  .bayut-serp-page .saved-toolbar-panel {
    margin-bottom: 12px;
    padding: 10px 12px;
  }

  .bayut-serp-page .submit-support-panel {
    margin-bottom: 14px;
  }

  .bayut-serp-page.safety-body .feature-panel .eyebrow,
  .bayut-serp-page.verification-body .feature-panel .eyebrow,
  .bayut-serp-page.contact-body .feature-panel .eyebrow,
  .bayut-serp-page.contact-body .section-heading .eyebrow {
    min-height: 24px;
    padding: 5px 9px;
    font-size: 0.6rem;
    letter-spacing: normal;
    line-height: 1;
  }

  .bayut-serp-page.safety-body .feature-panel .eyebrow::before,
  .bayut-serp-page.verification-body .feature-panel .eyebrow::before,
  .bayut-serp-page.contact-body .feature-panel .eyebrow::before,
  .bayut-serp-page.contact-body .section-heading .eyebrow::before {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.1);
  }

  .bayut-serp-page.safety-body .small-note,
  .bayut-serp-page.verification-body .small-note,
  .bayut-serp-page.contact-body .small-note {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  .bayut-serp-page .section.compact-section {
    padding-bottom: 22px;
  }

  .bayut-serp-page .contact-form .form-section,
  .bayut-serp-page .contact-form.large-form .form-section {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .bayut-serp-page .contact-grid .content-card {
    padding: 16px 14px;
    border-radius: 8px;
  }

  .bayut-serp-page .legal-document h2 {
    font-size: 1rem;
  }

  .bayut-serp-page .agents-intro .bayut-serp__note {
    line-height: 1.5;
  }
}

.areas-index-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: var(--portal-gap-filters);
}

.areas-index-controls .areas-index-search {
  flex: 0 1 240px;
  width: min(100%, 240px);
  max-width: 100%;
  margin: 0;
}

.areas-index-controls .areas-index-filters {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  grid-template-columns: none;
}

.areas-index-toolbar-panel {
  display: none;
}

.areas-index-toolbar-panel .areas-index-search {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
  margin-left: auto;
}

.areas-index-summary {
  margin: 0;
  color: #425466;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.areas-index-search {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
}

.areas-index-search__input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--heading);
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
}

.areas-index-search__input:focus {
  outline: 2px solid rgba(10, 157, 106, 0.28);
  border-color: rgba(10, 157, 106, 0.45);
}

.areas-index-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: var(--portal-gap-filters);
}

.areas-index-controls .areas-index-filters .bayut-quick-chip {
  width: auto;
}

.areas-index-map-cta {
  margin: 0 0 var(--portal-gap-filters);
}

.areas-index-map-cta .bayut-btn {
  min-height: 36px;
  font-size: 0.8rem;
}

@media (max-width: 759px) {
  .areas-index-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .areas-index-controls .areas-index-search {
    width: 100%;
    flex-basis: 100%;
  }

  .areas-index-controls .areas-index-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .areas-index-controls .areas-index-filters .bayut-quick-chip {
    width: 100%;
  }
}

.areas-index-filters .bayut-quick-chip {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.areas-index-section {
  display: grid;
  gap: 12px;
  margin-bottom: var(--portal-gap-section);
}

.areas-index-section[hidden] {
  display: none !important;
}

.areas-index-section__title {
  margin: 0;
  color: var(--portal-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-title);
  line-height: 1.3;
}

.areas-index-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.areas-index-card:hover {
  border-color: rgba(10, 157, 106, 0.24);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.areas-index-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.areas-index-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-title);
  line-height: 1.3;
}

.areas-index-card__title a {
  color: var(--portal-text);
  text-decoration: none;
}

.areas-index-card__title a:hover {
  color: var(--primary);
}

.areas-index-card__badge {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 999px;
  white-space: nowrap;
}

.areas-index-card__badge--live {
  color: #0a6d4b;
  background: #e8f7f0;
  border: 1px solid rgba(10, 157, 106, 0.22);
}

.areas-index-card__badge--review {
  color: #6b7280;
  background: #f4f6f8;
  border: 1px solid #e3e8ef;
}

.areas-index-card__intro {
  margin: 0;
  color: #4b5f70;
  font-size: 0.86rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Name-only / guide-pending areas: compact card, no empty whitespace block. */
.areas-index-card--guide-pending {
  gap: 8px;
}

.areas-index-card__intro--pending {
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.areas-index-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.areas-index-card__actions .bayut-btn {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.78rem;
}

.areas-index-card__guide-link {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.areas-index-card__guide-link:hover {
  text-decoration: underline;
}

[data-area-card][hidden] {
  display: none !important;
}

.areas-index-empty {
  margin-top: 8px;
}

.areas-index-loading.is-error {
  position: static;
  width: auto;
  height: auto;
  margin: 8px 0 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  display: block !important;
  color: #9a3412;
  font-size: 0.9375rem;
  line-height: 1.4;
}

html.rv-data-pending [data-areas-page]:not(.areas-index-ready) [data-areas-directory],
html.rv-data-pending [data-areas-page]:not(.areas-index-ready) [data-areas-empty] {
  display: none !important;
}

.areas-index-map-panel {
  padding: 16px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.areas-index-map-panel__head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.areas-index-map-panel__title {
  margin: 0;
  color: var(--portal-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-title);
  line-height: 1.3;
}

.areas-index-map-panel__copy,
.areas-index-map-panel__note {
  margin: 0;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.45;
}

.areas-index-map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  background: #e8f4ef;
}

.areas-index-map-leaflet {
  width: 100%;
  min-height: 240px;
  height: 100%;
  z-index: 0;
}

.areas-index-map-leaflet .leaflet-control-zoom {
  margin-top: 8px;
  margin-right: 8px;
}

.areas-index-map-leaflet .leaflet-control-attribution {
  font-size: 0.62rem;
}

.areas-index-map-fallback[hidden] {
  display: none !important;
}

.areas-index-map {
  min-height: 240px;
}

.areas-index-map .map-pin-label {
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.areas-index-map .map-pin:hover .map-pin-label,
.areas-index-map .map-pin:focus-visible .map-pin-label {
  opacity: 1;
  transform: translateY(0);
}

.areas-index-map .map-pin:not(.map-pin-active) .map-pin-dot {
  width: 10px;
  height: 10px;
  opacity: 0.72;
}

.areas-index-map-panel__note {
  margin-top: 8px;
}

.areas-index-card__label {
  display: block;
  margin-bottom: 2px;
  color: #7a8797;
  font-size: 0.68rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.04em;
  text-transform: none;
}

.areas-index-card__suits,
.areas-index-card__types {
  margin: 0;
  color: #4b5f70;
  font-size: 0.8rem;
  line-height: 1.45;
}

.areas-index-card__types {
  color: #6b7280;
}

.area-index-card {
  display: grid;
  gap: 10px;
}

.badge-status-row:empty {
  display: none;
}

.badge-explainer-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.badge-explainer {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.badge-explainer-panel {
  display: block;
  position: absolute;
  z-index: 5;
  max-width: 280px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}

.badge-explainer-panel[hidden] {
  display: none !important;
}

.status-badge.badge-warn {
  background: rgba(234, 179, 8, 0.14);
  color: #8a6100;
}

.detail-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  position: relative;
  margin: 10px 0 14px;
}

.detail-icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.detail-icon-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 58px;
  padding: 8px 6px 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.detail-icon-action:hover,
.detail-icon-action:focus-visible {
  border-color: rgba(10, 111, 76, 0.35);
  box-shadow: var(--shadow-sm);
}

.detail-icon-action:active {
  transform: translateY(1px);
}

.detail-icon-action__glyph {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--icon-surface-soft);
  color: var(--icon-glyph-primary);
  box-shadow: var(--icon-tile-shadow-soft);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.detail-icon-action__glyph .icon {
  width: 18px;
  height: 18px;
}

.detail-icon-action--whatsapp .detail-icon-action__glyph {
  background: rgba(37, 211, 102, 0.14);
  color: #128c43;
}

.detail-icon-action:hover .detail-icon-action__glyph,
.detail-icon-action:focus-visible .detail-icon-action__glyph {
  box-shadow: var(--icon-tile-shadow-soft), 0 0 0 1px rgba(10, 157, 106, 0.12);
}

.detail-icon-action:not(.detail-icon-action--whatsapp):hover .detail-icon-action__glyph,
.detail-icon-action:not(.detail-icon-action--whatsapp):focus-visible .detail-icon-action__glyph {
  background: rgba(10, 157, 106, 0.16);
}

.detail-icon-action--whatsapp:hover .detail-icon-action__glyph,
.detail-icon-action--whatsapp:focus-visible .detail-icon-action__glyph {
  background: rgba(37, 211, 102, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(37, 211, 102, 0.18);
}

.detail-icon-action.is-saved {
  border-color: rgba(225, 29, 72, 0.28);
}

.detail-icon-action.is-saved .detail-icon-action__glyph {
  background: var(--icon-surface-soft);
  color: var(--icon-glyph-primary);
  box-shadow: var(--icon-tile-shadow-soft), 0 0 0 1px rgba(10, 157, 106, 0.16);
}

.detail-icon-action.is-saved .detail-icon-action__label {
  color: #0a6f4c;
}

.detail-icon-action.is-saved .detail-icon-action__glyph svg path {
  fill: currentColor;
}

/* Detail Save — same red heart standard; no circular glyph tile */
.detail-icon-action[data-shortlist-toggle] {
  min-height: 44px;
}
.detail-icon-action[data-shortlist-toggle] .detail-icon-action__glyph {
  width: var(--rv-save-heart-size);
  height: var(--rv-save-heart-size);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--rv-save-heart);
}

.detail-icon-action[data-shortlist-toggle] .detail-icon-action__glyph .icon,
.detail-icon-action[data-shortlist-toggle] .detail-icon-action__glyph .rv-save-heart {
  width: var(--rv-save-heart-size);
  height: var(--rv-save-heart-size);
  stroke-width: 1.45;
}

.detail-icon-action[data-shortlist-toggle].is-saved {
  border-color: rgba(225, 29, 72, 0.28);
}

.detail-icon-action[data-shortlist-toggle].is-saved .detail-icon-action__glyph {
  background: transparent;
  box-shadow: none;
  color: var(--rv-save-heart);
}

.detail-icon-action[data-shortlist-toggle].is-saved .detail-icon-action__label {
  color: var(--rv-save-heart);
}

.detail-icon-action[data-shortlist-toggle].is-saved .detail-icon-action__glyph svg path {
  fill: currentColor;
}

.detail-share-feedback {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 26;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(10, 157, 106, 0.2);
  background: #fff;
  color: #0a6f4c;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.detail-share-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  min-width: 170px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.16);
}

.detail-share-menu__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--heading);
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.detail-share-menu__item .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--icon-glyph-primary);
}

.detail-share-menu__item:hover,
.detail-share-menu__item:focus-visible {
  background: #f3f7f5;
  color: var(--primary);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge-status-row {
  margin: 0 0 12px;
  position: relative;
}

.agent-draft-note {
  margin: 0 auto;
  max-width: 720px;
}

.app-page-hero--slim {
  padding-bottom: 28px;
}

.agent-profile-body {
  background:
    radial-gradient(1200px 420px at 12% -8%, rgba(10, 157, 106, 0.09), transparent 58%),
    radial-gradient(900px 380px at 92% 0%, rgba(15, 34, 54, 0.045), transparent 55%),
    linear-gradient(180deg, #f4f7f5 0%, var(--portal-page-bg, #f0f0f0) 42%, #eef2f0 100%);
  background-attachment: local;
  max-width: 100%;
  overflow-x: clip;
}

.agent-profile-body .site-header {
  border-bottom: 1px solid rgba(16, 35, 58, 0.08);
}

.agent-profile-main {
  display: block;
  max-width: 100%;
  min-width: 0;
}

.agent-profile-page {
  padding-top: 8px;
  padding-bottom: calc(var(--portal-page-bottom, 48px) + 8px);
  max-width: 100%;
  min-width: 0;
}

.agent-profile-page > .container {
  max-width: 1120px;
  min-width: 0;
  box-sizing: border-box;
}

.agent-profile-breadcrumb {
  margin-bottom: 18px;
}

.agent-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 32px;
  align-items: center;
  margin: 0 0 26px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 32px rgba(16, 35, 58, 0.06);
  animation: agent-profile-hero-in 0.45s ease both;
}

.agent-profile-header__identity {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

/* Premium identity tile — fixed box; contain, never crop/stretch/escape. */
.agent-profile-page .agent-profile-avatar.detail-agent-avatar,
.agent-profile-page .detail-agent-avatar.agent-profile-avatar,
.agent-profile-avatar {
  flex: 0 0 112px;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  min-width: 112px;
  max-width: 112px;
  min-height: 112px;
  max-height: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 20px;
  border: 1px solid #d9e4ec;
  background: #ffffff;
  color: #0b5c45;
  box-shadow: 0 4px 14px rgba(16, 35, 58, 0.06);
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.agent-profile-page .agent-profile-avatar.has-photo,
.agent-profile-page .agent-profile-avatar.is-company-logo,
.agent-profile-avatar.has-photo,
.agent-profile-avatar.is-company-logo {
  background: #ffffff;
  border-color: #d5e1ea;
  padding: 14px;
}

.agent-profile-page .agent-profile-avatar img,
.agent-profile-page .agent-profile-avatar.is-company-logo img,
.agent-profile-page .agent-profile-avatar.has-photo img,
.agent-profile-avatar img,
.agent-profile-avatar.is-company-logo img,
.agent-profile-avatar.has-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: none;
  box-sizing: border-box;
}

.agent-profile-avatar.is-initials,
.agent-profile-page .agent-profile-avatar.is-initials {
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(160deg, #0a9d6a 0%, #087a54 100%);
  color: #fff;
  border: 0;
  padding: 0;
}

.agent-profile-header__copy {
  min-width: 0;
}

.agent-profile-header__eyebrow {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a54;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-profile-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: var(--weight-title);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f2236;
}

.agent-profile-kind {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 35, 58, 0.06);
  color: #3d5161;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-profile-rentals {
  margin: 12px 0 0;
  color: #1c2f3f;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.agent-profile-areas-summary {
  margin: 6px 0 0;
  color: #5a6b79;
  font-size: 0.94rem;
  line-height: 1.45;
  max-width: 42ch;
}

.agent-profile-tagline {
  margin: 6px 0 0;
  color: #4b5f70;
  font-size: 0.9rem;
  line-height: 1.45;
}

.agent-profile-title {
  margin: 8px 0 0;
  color: #1f2a33;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.agent-profile-established {
  margin: 4px 0 0;
  color: #4b5f70;
  font-size: 0.9rem;
  line-height: 1.4;
}

.agent-profile-response {
  margin-top: 8px;
}

.agent-profile-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.agent-profile-header__actions .bayut-btn {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(10, 122, 88, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.agent-profile-header__actions .bayut-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 122, 88, 0.22);
}

.agent-profile-missing {
  margin-top: 12px;
  padding: 36px 28px;
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(16, 35, 58, 0.05);
}

.agent-profile-missing__eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 35, 58, 0.06);
  color: #4b5f70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agent-profile-missing__actions {
  margin-top: 18px;
  gap: 10px;
}

@keyframes agent-profile-hero-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 719px) {
  .agent-profile-header {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 16px;
  }

  .agent-profile-header__identity {
    align-items: flex-start;
    gap: 14px;
  }

  .agent-profile-page .agent-profile-avatar.detail-agent-avatar,
  .agent-profile-page .detail-agent-avatar.agent-profile-avatar,
  .agent-profile-avatar {
    flex-basis: 84px;
    width: 84px;
    height: 84px;
    min-width: 84px;
    max-width: 84px;
    min-height: 84px;
    max-height: 84px;
    border-radius: 16px;
    font-size: 1.2rem;
  }

  .agent-profile-page .agent-profile-avatar.has-photo,
  .agent-profile-page .agent-profile-avatar.is-company-logo,
  .agent-profile-avatar.has-photo,
  .agent-profile-avatar.is-company-logo {
    padding: 10px;
  }

  .agent-profile-header__actions {
    width: 100%;
  }

  .agent-profile-header__actions .bayut-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .agents-directory-card__head {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.agent-profile-layout {
  display: grid;
  gap: 20px;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .agent-profile-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }

  .agent-profile-listings {
    position: sticky;
    top: calc(var(--header-height, 76px) + 12px);
  }
}

@media (min-width: 1280px) {
  .agent-profile-layout {
    grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
    gap: 32px;
  }
}

.agent-profile-info,
.agent-profile-aside {
  display: grid;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}

.agent-profile-panel {
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(16, 35, 58, 0.05);
}

.agent-profile-panel--facts {
  display: grid;
  gap: 18px;
}

.agent-profile-fact + .agent-profile-fact {
  padding-top: 16px;
  border-top: 1px solid #e8f0eb;
}

.agent-profile-fact__value {
  margin: 0;
  color: #1f2a33;
  font-size: 0.97rem;
  line-height: 1.55;
}

.agent-profile-about {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #243746;
  font-size: 1rem;
  line-height: 1.7;
}

.agent-profile-panel__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #657685;
  line-height: 1.25;
}

.agent-profile-details {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.agent-profile-details > div {
  display: grid;
  gap: 0.2rem;
}

.agent-profile-details dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b6b78;
}

.agent-profile-details dd {
  margin: 0;
  color: #1f2a33;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.agent-profile-panel--details {
  padding-bottom: 12px;
}

.agent-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.agent-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  color: #1f3648;
  font-size: 0.8rem;
  font-weight: var(--weight-label);
  background: #f3f8f5;
  border: 1px solid #d5e5dc;
  border-radius: 999px;
}

.agent-profile-chip--muted {
  color: #6b7280;
  background: #f4f6f8;
  border-color: #e3e8ef;
}

a.agent-profile-chip,
a.agent-profile-chip--link {
  text-decoration: none;
  color: #1f3648;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

a.agent-profile-chip:hover,
a.agent-profile-chip--link:hover {
  color: #087a54;
  border-color: rgba(10, 157, 106, 0.35);
  background: #eef8f3;
}

a.agent-profile-chip:focus-visible,
a.agent-profile-chip--link:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 2px;
}

.agent-areas-expand {
  margin: 8px 0 0;
  min-width: 0;
}

.agent-areas-expand__summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 2px;
  color: #087a54;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.agent-areas-expand__summary::-webkit-details-marker {
  display: none;
}

.agent-areas-expand__summary::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.agent-areas-expand[open] > .agent-areas-expand__summary::before {
  transform: rotate(45deg);
}

.agent-areas-expand__label--less {
  display: none;
}

.agent-areas-expand[open] > .agent-areas-expand__summary .agent-areas-expand__label--more {
  display: none;
}

.agent-areas-expand[open] > .agent-areas-expand__summary .agent-areas-expand__label--less {
  display: inline;
}

.agent-areas-expand__summary:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.agent-areas-expand__panel {
  margin-top: 8px;
}

.agents-directory-card__areas-expand,
.agents-directory-card__types-expand {
  margin-top: 6px;
}

.agents-directory-card__areas-expand .agent-areas-expand__summary,
.agents-directory-card__types-expand .agent-areas-expand__summary {
  min-height: 32px;
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .agent-areas-expand__summary::before {
    transition: none;
  }
}

.agent-profile-panel p {
  margin: 0;
  color: #4b5f70;
  font-size: 0.86rem;
  line-height: 1.55;
}

.agent-profile-panel .compliance-note {
  margin-top: 10px;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.5;
}

.agent-profile-listings {
  padding: 24px;
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(16, 35, 58, 0.05);
}

.agent-profile-listings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8f0eb;
}

.agent-profile-listings__heading {
  min-width: 0;
  flex: 1 1 auto;
}

.agent-profile-listings__eyebrow {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a54;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-profile-listings__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: var(--weight-title);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #0f2236;
  min-width: 0;
}

.agent-profile-listings__count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a54;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 0;
  flex: 0 1 auto;
  text-align: right;
  white-space: nowrap;
}

.agent-profile-listings__count:empty {
  display: none;
}

.agent-profile-listings__note {
  margin: 14px 0 16px;
  color: #667788;
  font-size: 0.9rem;
  line-height: 1.45;
}

.agent-profile-listings__grid {
  max-width: 100%;
  min-width: 0;
}

.agent-profile-listings__more {
  display: flex;
  justify-content: center;
  margin: 1.1rem 0 0;
}

.agent-profile-listings__more[hidden] {
  display: none;
}

.agent-profile-listings__more .bayut-btn {
  min-width: min(100%, 16rem);
  text-align: center;
}

.agent-profile-inventory {
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.agent-profile-inventory + .agent-profile-inventory {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(16, 35, 58, 0.1);
}

.agent-profile-inventory--sale {
  border-radius: 18px;
  padding: 1.15rem 1rem 1rem;
  background: linear-gradient(180deg, #f3f7fb 0%, #eef4fa 100%);
  border: 1px solid rgba(6, 43, 91, 0.12);
}

.agent-profile-inventory--sale + .agent-profile-inventory,
.agent-profile-inventory + .agent-profile-inventory--sale {
  border-top: 0;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
}

.agent-profile-listings__breakdown {
  margin: 0 0 0.85rem;
  color: #5b6b78;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

.agent-profile-listings__breakdown[hidden] {
  display: none;
}

.agent-profile-listings__title--sale {
  color: #062B5B;
}

.agent-profile-listings__count--sale {
  background: rgba(6, 43, 91, 0.1);
  color: #062B5B;
}

/* Discovery-aligned card tracks — prefer fuller columns inside the profile listings pane. */
.agent-profile-listings .bayut-serp__results[data-view-mode="grid"],
.agent-profile-listings__grid.bayut-serp__results[data-view-mode="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1280px) {
  .agent-profile-listings .bayut-serp__results[data-view-mode="grid"],
  .agent-profile-listings__grid.bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 18px;
  }
}

.agent-profile-listings .bayut-card {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.agent-profile-listings__grid--sale {
  /* Match rent-card track width so a single Sale card is not a thin orphan strip. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  justify-content: start;
}

.agent-profile-listings__grid--sale .bayut-card--sale {
  max-width: 100%;
  width: 100%;
}

@media (min-width: 960px) {
  .agent-profile-listings__grid--sale .bayut-card--sale:only-child {
    max-width: min(100%, 420px);
  }
}

.agent-profile-listings .bayut-card__body,
.agent-profile-listings .bayut-card__media,
.agent-profile-listings .bayut-card__agent,
.agent-profile-listings .bayut-card__price-row,
.agent-profile-listings .bayut-card__title {
  max-width: 100%;
  min-width: 0;
}

.agent-profile-listings .bayut-card__title,
.agent-profile-listings .bayut-card__title a {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.agent-profile-listings .bayut-card__badges {
  flex: 0 1 auto;
  min-width: 0;
}

.agent-profile-listings .bayut-card__agent--actions-only {
  flex-direction: column;
  align-items: stretch;
}

.agent-profile-listings .bayut-card__agent--actions-only .bayut-card__agent-actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 8px;
}

.agent-profile-listings .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.agent-profile-listings .bayut-card__agent--actions-only .bayut-card__agent-actions a,
.agent-profile-listings .bayut-card__agent--actions-only .bayut-card__agent-actions .bayut-btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
}

/* Override global Discovery grid action max-width:48% on profile cards. */
.agent-profile-listings .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent--actions-only .bayut-card__agent-actions,
.agent-profile-listings .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
}

.agent-profile-listings .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.agent-profile-listings .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions:not(.bayut-card__agent-actions--single) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 719px) {
  .agent-profile-listings .bayut-serp__results[data-view-mode="grid"],
  .agent-profile-listings__grid.bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-profile-header,
  .agent-profile-listings,
  .agent-profile-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .agent-profile-listings__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .agent-profile-listings__count {
    text-align: left;
  }
}

.agent-profile-listing-card {
  width: 100%;
}

.agents-directory-body {
  background:
    radial-gradient(1200px 420px at 12% -8%, rgba(10, 157, 106, 0.09), transparent 58%),
    radial-gradient(900px 380px at 92% 0%, rgba(15, 34, 54, 0.045), transparent 55%),
    linear-gradient(180deg, #f4f7f5 0%, var(--portal-page-bg, #f0f0f0) 42%, #eef2f0 100%);
  background-attachment: local;
}

.agents-directory-body .site-header {
  border-bottom: 1px solid rgba(16, 35, 58, 0.08);
}

.agents-directory-page {
  padding-top: 8px;
  padding-bottom: calc(var(--portal-page-bottom, 48px) + 16px);
}

.agents-directory-main {
  display: block;
}

.agents-directory-page > .container {
  max-width: 1180px;
}

.agents-directory-page--low-count > .container {
  max-width: 760px;
}

.agents-directory-page--single > .container {
  max-width: 560px;
}

.agents-directory-breadcrumb {
  margin-bottom: 18px;
}

.agents-directory-intro {
  margin: 0 0 28px;
  padding: 4px 0 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(16, 35, 58, 0.08);
  border-radius: 0;
  box-shadow: none;
  animation: agents-directory-intro-in 0.45s ease both;
}

.agents-directory-intro__eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a54;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agents-directory-intro__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.agents-directory-intro__copy {
  min-width: 0;
  flex: 1 1 240px;
}

.agents-directory-intro__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.6vw, 2.55rem);
  font-weight: var(--weight-title);
  color: #0f2236;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.agents-directory-intro__subtitle {
  margin: 12px 0 0;
  max-width: 44ch;
  color: #5a6b79;
  font-size: 1.02rem;
  line-height: 1.55;
}

.agents-directory-intro .bayut-serp__subtitle {
  max-width: 52ch;
}

.agents-directory-toolbar-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--portal-gap-toolbar);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.agents-directory-summary {
  margin: 0;
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a54;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.agents-directory-summary:empty {
  display: none;
}

.agents-directory-search,
.agents-directory-toolbar-panel .areas-index-search {
  flex: 1 1 220px;
  max-width: 320px;
  margin: 0;
  margin-left: auto;
}

.agents-directory-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  justify-content: start;
}

.agents-directory-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin: 0 auto;
}

.agents-directory-grid--low-count {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  justify-content: center;
}

.agents-directory-grid:not(.agents-directory-grid--single):not(.agents-directory-grid--low-count):has(> .agents-directory-card:only-child),
.agents-directory-grid:not(.agents-directory-grid--single):not(.agents-directory-grid--low-count):has(> .agents-directory-card:nth-child(2):last-child),
.agents-directory-grid:not(.agents-directory-grid--single):not(.agents-directory-grid--low-count):has(> .agents-directory-card:nth-child(3):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
  justify-content: center;
}

.agents-directory-grid[hidden] {
  display: none !important;
}

.agents-directory-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  min-height: 100%;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(16, 35, 58, 0.055);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.agents-directory-card:hover {
  border-color: rgba(10, 157, 106, 0.34);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(16, 35, 58, 0.09);
  transform: translateY(-2px);
}

.agents-directory-card:focus-within {
  border-color: rgba(10, 157, 106, 0.42);
  box-shadow:
    0 0 0 3px rgba(10, 157, 106, 0.14),
    0 12px 28px rgba(16, 35, 58, 0.08);
}

.agents-directory-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
}

.agents-directory-card__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  outline-offset: 3px;
}

.agents-directory-card__logo-link:focus-visible {
  outline: 2px solid rgba(11, 163, 96, 0.55);
}

.agents-directory-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 84px;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  min-width: 84px;
  max-width: 84px;
  min-height: 84px;
  max-height: 84px;
  border-radius: 0;
  background: transparent;
  color: #0a6d4b;
  font-size: 1.05rem;
  font-weight: var(--weight-label);
  overflow: visible;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  padding: 0;
}

.agents-directory-card__avatar.has-photo,
.agents-directory-card__avatar.is-company-logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.agents-directory-card__avatar.has-photo img,
.agents-directory-card__avatar.is-company-logo img,
.agents-directory-card__avatar img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  transform: none;
}

.agents-directory-card__avatar.is-initials {
  background: linear-gradient(160deg, #0a9d6a 0%, #087a54 100%);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: none;
}

.agents-directory-card__avatar.is-company-logo img {
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: none;
}

.agents-directory-card__identity {
  min-width: 0;
}

.agents-directory-card__kind {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a54;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agents-directory-card__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.agents-directory-card__verified {
  flex: 0 0 auto;
}

.agents-directory-card__name {
  margin: 10px 0 0;
  min-width: 0;
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.agents-directory-card__name a {
  color: #0f2236;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.agents-directory-card__name a:hover {
  color: #087a54;
}

.agents-directory-card__count {
  margin: 8px 0 0;
  min-width: 0;
  color: #1c2f3f;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agents-directory-card__meta {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.45;
}

.agents-directory-card__body {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8f0eb;
}

.agents-directory-card__areas {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.agents-directory-card__areas-label,
.agents-directory-card__types-label {
  margin: 0;
  color: #6b7280;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
}

.agents-directory-card__area-chips {
  gap: 6px;
}

.agents-directory-card__areas-more {
  color: #5a6b79;
}

.agents-directory-card__types {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.agents-directory-card__type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.agents-directory-card__type {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 2px 9px;
  color: #4b5f70;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  background: #f5f7f8;
  border: 1px solid #e6ecef;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.agents-directory-card__about {
  margin: 0;
  align-self: start;
  min-width: 0;
  min-height: 0;
  max-height: 2.9em;
  max-height: 2lh;
  color: #4b5f70;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.agents-directory-card__focus {
  margin: 0;
  color: #4b5f70;
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agents-directory-card__response {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #0a6d4b;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.agents-directory-card__response .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.agents-directory-card__badge {
  align-self: start;
  min-height: 24px;
  padding: 3px 8px;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  background: #f4f6f8;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  white-space: nowrap;
}

.agents-directory-card__badge--live {
  color: #0a6d4b;
  background: #e8f7f0;
  border-color: rgba(10, 157, 106, 0.22);
}

.agents-directory-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 0;
}

.agents-directory-card__actions .bayut-btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: center;
}

.agents-directory-empty[hidden],
.agent-profile-listings [data-agent-listings-empty][hidden] {
  display: none !important;
}

.agents-directory-empty {
  margin-top: 4px;
  padding: 36px 28px;
  text-align: left;
  background: #fff;
  border: 1px solid #d7e5dc;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(16, 35, 58, 0.05);
}

.agents-directory-empty__eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 35, 58, 0.06);
  color: #4b5f70;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.agents-directory-empty h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  color: #0f2236;
}

.agents-directory-empty > p {
  margin: 10px 0 0;
  max-width: 42ch;
  color: #5a6b79;
  line-height: 1.55;
}

.agents-directory-empty__actions {
  margin-top: 20px;
  gap: 10px;
}

@keyframes agents-directory-intro-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 719px) {
  .agents-directory-page > .container,
  .agents-directory-page--low-count > .container,
  .agents-directory-page--single > .container {
    max-width: 100%;
  }

  .agents-directory-intro {
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .agents-directory-intro__row {
    align-items: flex-start;
  }

  .agents-directory-summary {
    align-self: flex-start;
  }

  .agents-directory-grid,
  .agents-directory-grid--single,
  .agents-directory-grid--low-count,
  .agents-directory-grid:has(> .agents-directory-card:only-child),
  .agents-directory-grid:has(> .agents-directory-card:nth-child(2):last-child),
  .agents-directory-grid:has(> .agents-directory-card:nth-child(3):last-child) {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin: 0;
  }

  .agents-directory-card {
    padding: 18px;
  }

  .agents-directory-card__avatar {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    min-height: 72px;
    max-height: 72px;
  }

  .agents-directory-card__avatar.has-photo,
  .agents-directory-card__avatar.is-company-logo {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .agents-directory-card__actions .bayut-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .agents-directory-empty {
    padding: 28px 18px;
  }

  .agents-directory-empty__actions .bayut-btn {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 429px) {
  .agents-directory-summary,
  .agents-directory-card__count,
  .agents-directory-empty__eyebrow {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 900px) {
  .agents-directory-grid:not(.agents-directory-grid--single):not(.agents-directory-grid--low-count):not(:has(> .agents-directory-card:only-child)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .agent-profile-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .agent-profile-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1160px) {
  .agents-directory-grid:not(.agents-directory-grid--single):not(.agents-directory-grid--low-count):not(:has(> .agents-directory-card:only-child)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .agents-directory-grid.agents-directory-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
    justify-content: center;
  }

  .agents-directory-grid.agents-directory-grid--low-count {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px));
    justify-content: center;
    max-width: none;
    margin-inline: auto;
  }
}

@media (min-width: 760px) {
  .map-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .map-canvas {
    min-height: 420px;
  }

  .areas-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .areas-index-controls .areas-index-filters {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: none;
  }

  .areas-index-controls .areas-index-filters .bayut-quick-chip {
    flex: 0 1 auto;
    width: auto;
  }
}

@media (min-width: 1100px) {
  .areas-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Listing detail — portal-style layout (Bayut-inspired hierarchy, PropGlen identity) */

.listing-detail-page main {
  padding-bottom: 0;
}

body.has-detail-mobile-cta:not(.listing-detail-page) {
  padding-bottom: var(--mobile-nav-clearance, calc(68px + env(safe-area-inset-bottom, 0px)));
}

.detail-portal-head {
  margin-bottom: 12px;
}

.detail-gallery-stage {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 14px;
}

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

.detail-trust-strip {
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.detail-trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 14px 14px;
}

.detail-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-trust-meta {
  margin: 0 0 0 auto;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.rv-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e9f8f1 0%, #f6fcf9 55%, #ffffff 100%);
  border: 1px solid rgba(10, 157, 106, 0.3);
  color: #0a5c40;
  box-shadow: 0 6px 18px rgba(10, 157, 106, 0.1);
}

.rv-check-badge__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--icon-grad-primary);
  color: #fff;
  box-shadow: var(--icon-tile-shadow-raised);
}

.rv-check-badge__icon .icon {
  width: 18px;
  height: 18px;
}

.rv-check-badge__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rv-check-badge__text strong {
  font-size: 0.9rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.rv-check-badge__sub {
  font-size: 0.7rem;
  font-weight: var(--weight-label);
  color: #2f6f57;
}

.rv-check-badge--compact {
  padding: 5px 10px 5px 6px;
  gap: 7px;
  border-radius: 10px;
}

.rv-check-badge--compact .rv-check-badge__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.rv-check-badge--compact .rv-check-badge__icon .icon {
  width: 14px;
  height: 14px;
}

.rv-check-badge--compact .rv-check-badge__text strong {
  font-size: 0.78rem;
}

/* Sale Listing Checked — same geometry as rental; navy Buy channel styling. */
.rv-check-badge--sale {
  background: linear-gradient(135deg, #e8eef6 0%, #f5f8fc 55%, #ffffff 100%);
  border-color: rgba(6, 43, 91, 0.28);
  color: #062b5b;
  box-shadow: 0 6px 18px rgba(6, 43, 91, 0.1);
}

.rv-check-badge--sale .rv-check-badge__icon {
  background: linear-gradient(145deg, #0a3a72 0%, #062b5b 100%);
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.22);
}

.rv-check-badge--sale .rv-check-badge__sub {
  color: #35557a;
}

.rv-check-badge--strip {
  box-shadow: none;
}

button.rv-check-badge,
button.rv-visit-badge {
  margin: 0;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.rv-check-badge:hover,
button.rv-visit-badge:hover {
  filter: brightness(0.98);
}

.rv-visit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a2238 0%, #2f3f67 52%, #1a2238 100%);
  border: 1px solid rgba(234, 179, 8, 0.34);
  color: #fff8e8;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.18);
}

.rv-visit-badge__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #d4a017 0%, #9a6f0c 100%);
  color: #1a2238;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 18px rgba(154, 111, 12, 0.22);
}

.rv-visit-badge__icon .icon {
  width: 18px;
  height: 18px;
}

.rv-visit-badge__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rv-visit-badge__text strong {
  font-size: 0.9rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.rv-visit-badge__sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 248, 232, 0.82);
}

.rv-visit-badge--compact {
  padding: 5px 10px 5px 6px;
  gap: 7px;
  border-radius: 10px;
}

.rv-visit-badge--compact .rv-visit-badge__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.rv-visit-badge--compact .rv-visit-badge__icon .icon {
  width: 14px;
  height: 14px;
}

.rv-visit-badge--compact .rv-visit-badge__text strong {
  font-size: 0.78rem;
}

.rv-visit-badge--strip {
  box-shadow: none;
}

.property-image-meta .rv-visit-badge {
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.14);
}

.rv-badge-dialog {
  width: min(520px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

.rv-badge-dialog::backdrop {
  background: rgba(7, 10, 20, 0.52);
  backdrop-filter: blur(4px);
}

.rv-badge-dialog-panel {
  position: relative;
  margin: 0;
  overflow-wrap: anywhere;
}

.rv-badge-dialog-panel h2 {
  padding-right: 2.75rem;
}

.rv-badge-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.badge-rv-checked {
  color: #0a5c40;
  background: #e9f8f1;
  border-color: rgba(10, 157, 106, 0.24);
}

.detail-portal-section .detail-media-card .detail-media-frame {
  display: block;
}

.detail-portal-section .detail-media-card .detail-gallery-thumbs {
  display: none !important;
}

.detail-portal-section .detail-media-card .detail-gallery-main {
  height: clamp(240px, 56vw, 320px);
  border-radius: 8px;
}

.detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
  min-height: clamp(240px, 56vw, 320px);
  height: clamp(240px, 56vw, 320px);
  border-radius: 8px;
  overflow: hidden;
}

.detail-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: var(--portal-gap-breadcrumb);
}

.detail-top-bar .back-link {
  flex-shrink: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.detail-top-bar .detail-breadcrumb {
  flex: 1 1 12rem;
  min-width: 0;
}

.detail-top-bar .detail-toolbar {
  margin-left: auto;
}

.detail-top-bar .detail-action-bar {
  margin: 0;
  align-items: center;
}

.detail-top-bar .detail-icon-actions {
  align-items: center;
}

.detail-top-bar .detail-icon-action {
  flex-direction: row;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 8px;
}

.detail-top-bar .detail-icon-action__glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.detail-top-bar .detail-icon-action[data-shortlist-toggle] {
  padding: 4px 10px;
  gap: 6px;
}

.detail-top-bar .detail-icon-action[data-shortlist-toggle] .detail-icon-action__glyph {
  width: var(--rv-save-heart-size);
  height: var(--rv-save-heart-size);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.detail-top-bar .detail-icon-action__glyph .icon {
  width: 16px;
  height: 16px;
}

.detail-top-bar .detail-icon-action[data-shortlist-toggle] .detail-icon-action__glyph .icon,
.detail-top-bar .detail-icon-action[data-shortlist-toggle] .detail-icon-action__glyph .rv-save-heart {
  width: var(--rv-save-heart-size);
  height: var(--rv-save-heart-size);
}

.detail-top-bar .detail-icon-action__label {
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-top-bar .back-link-light {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--portal-muted);
}

.detail-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.detail-toolbar {
  margin-left: auto;
}

.back-link-light {
  color: var(--heading);
}

.back-link-light::before {
  color: var(--brand);
}

.back-link-light:hover {
  color: var(--brand);
}

.detail-portal-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

/*
 * Option C — full-width gallery/trust, then post-hero MAIN | sticky summary (≥1080).
 * Gallery is NEVER inside the split columns.
 */
.detail-post-hero {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
  margin-top: 18px;
}

.detail-portal-main.detail-longform {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-more-from-section {
  padding-top: 28px;
}

.detail-agent-listed-by-section {
  padding-top: 18px;
  padding-bottom: 4px;
}

.detail-agent-listed-by {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
}

.detail-agent-listed-by .detail-agent-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.detail-agent-listed-by__copy {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--heading, #101828);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.detail-agent-listed-by__label {
  color: #5a697b;
  font-weight: 600;
  margin-right: 0.35em;
}

.detail-agent-listed-by__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-agent-listed-by__cta {
  flex: 0 0 auto;
  margin-left: auto;
  font-weight: 700;
}

@media (max-width: 520px) {
  .detail-agent-listed-by {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .detail-agent-listed-by__copy {
    flex: 1 1 calc(100% - 52px);
    font-size: 0.9rem;
  }

  .detail-agent-listed-by__cta {
    margin-left: 52px;
    width: auto;
  }
}

.detail-more-from-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.03em;
}

.detail-more-from-card {
  display: grid;
  gap: 14px;
}

.detail-more-from-card h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
}

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

.detail-more-from-profile-wrap {
  margin: 14px 0 0;
}

.detail-more-from-profile {
  justify-self: start;
  width: auto;
  margin-top: 4px;
  font-weight: 700;
}

.detail-portal-aside [data-agent-profile-cta]:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-color: rgba(10, 122, 88, 0.35);
  color: #0a7a58;
}

.detail-title-block {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.detail-title-block h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--portal-text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-title-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-area-line {
  margin: 0;
  color: var(--portal-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.detail-area-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.detail-area-link:hover {
  color: var(--primary);
}

.detail-area-neighbourhood {
  font-weight: 600;
  color: #444;
}

.detail-location-facts {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-card-radius);
}

.detail-location-facts__place {
  /* Pin centres against location text only; Nearby stays on the row below. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 5px;
  align-items: center;
}

.detail-location-facts__pin {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--icon-glyph-primary);
  background: var(--icon-surface-soft);
  border-radius: 10px;
  box-shadow: var(--icon-tile-shadow-soft);
}

.detail-location-facts__pin .icon {
  width: 18px;
  height: 18px;
}

.detail-location-facts__copy {
  display: contents; /* area-line + nearby become place-grid children */
}

.detail-location-facts__place .detail-area-line {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.detail-location-facts__place .detail-nearby-line {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.detail-nearby-line {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.detail-nearby-line__label {
  margin-right: 4px;
  color: #666;
  font-weight: 700;
}

.detail-nearby-line__label::after {
  content: ":";
}

.detail-location-facts .detail-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #ececec;
  list-style: none;
  color: var(--portal-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-location-facts .detail-quick-stats li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.2;
  text-align: center;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafafa;
}

.detail-location-facts .detail-quick-stats li > span {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.detail-location-facts .detail-quick-stats .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
  color: var(--primary);
}

.detail-location-facts .detail-quick-stats__item--rate {
  justify-content: center;
  color: #555;
  font-size: 0.8rem;
  font-weight: 600;
  background: #fff;
}

.detail-location-facts .detail-quick-stats__item--furnished {
  background: rgba(10, 157, 106, 0.06);
  border-color: rgba(10, 157, 106, 0.18);
}

@media (min-width: 560px) {
  .detail-location-facts .detail-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.detail-quick-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--portal-text);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-quick-stats li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  border-right: 1px solid #ddd;
}

.detail-quick-stats li:first-child {
  padding-left: 0;
}

.detail-quick-stats li:last-child {
  border-right: none;
}

.detail-quick-stats .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--icon-glyph-muted);
}

.detail-description-card h2,
.detail-features-card h2 {
  margin: 0;
  font-size: 1.1rem;
}

.detail-features-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.detail-features-card__lead {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-amenity-groups {
  display: grid;
  gap: 12px;
}

.detail-amenity-group__title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
  font-size: 0.76rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  text-transform: none;
  color: #666;
}

.detail-amenity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
}

.detail-amenity-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--icon-glyph-primary);
  background: var(--icon-surface-soft);
  border-radius: 8px;
  box-shadow: var(--icon-tile-shadow-soft);
}

/* Reserve amenity icon tile on SSR so hydrate icon fill does not reflow rows. */
.detail-amenity-item__icon:empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-amenity-item__icon .icon {
  width: 16px;
  height: 16px;
}

.detail-amenity-item__label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--portal-text);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .detail-amenity-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.detail-description-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-portal-aside.content-card {
  padding: 16px;
  gap: 0;
}

.detail-portal-aside {
  display: grid;
  gap: 0;
  padding: 16px;
}

.detail-portal-aside > * + * {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Extra air above “Similar in …” after the More-from card / lister panel. */
.detail-portal-aside > .detail-aside-similar:not([hidden]) {
  margin-top: 28px;
  padding-top: 20px;
}

.detail-rent-card {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-rent-amount {
  margin: 0;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: var(--weight-title);
  color: var(--primary);
  line-height: 1.15;
}

.detail-rent-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-rent-yearly {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 100%;
}

.detail-aside-ref {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.detail-aside-ref__code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--heading);
  background: transparent;
}

.detail-copy-ref-btn {
  flex-shrink: 0;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(10, 157, 106, 0.28);
  border-radius: 6px;
  cursor: pointer;
}

.detail-copy-ref-btn:hover {
  border-color: rgba(10, 157, 106, 0.45);
  background: rgba(10, 157, 106, 0.06);
}

.detail-aside-lister-panel {
  display: grid;
  gap: 10px;
  padding: 0;
}

.detail-portal-aside .detail-agent-card,
.detail-portal-aside .detail-aside-lister-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/*
 * Desktop agent hierarchy V1 inset removed for legacy two-column summary.
 * The right summary card already groups rent / agent / enquire — nested
 * card-inside-card chrome is redundant on wide desktop. Mobile nested
 * styling (max-width: 959px) remains intact below.
 */

.detail-portal-aside .detail-agent-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.76rem;
}

.detail-portal-aside .detail-agent-head {
  margin-bottom: 0;
  gap: 8px;
}

.detail-portal-aside .detail-aside-facts dd {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-aside-lister-panel__note {
  margin: 0;
}

.detail-aside-accordion {
  margin: 0;
}

.detail-aside-accordion__summary {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: var(--weight-label);
  letter-spacing: -0.02em;
  color: var(--heading);
  list-style: none;
}

.detail-aside-accordion__summary::-webkit-details-marker {
  display: none;
}

.detail-aside-similar__cta {
  margin-top: 10px;
}

.detail-aside-lister-more {
  margin-top: 2px;
}

.detail-portal-aside .detail-aside-lister-more .detail-aside-more-card,
.detail-portal-aside .detail-aside-similar .detail-aside-more-card {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px;
  padding: 5px;
  min-width: 0;
}

.detail-portal-aside .detail-aside-more-card__body {
  min-width: 0;
}

.detail-portal-aside .detail-aside-lister-more .detail-aside-more-card__body strong,
.detail-portal-aside .detail-aside-similar .detail-aside-more-card__body strong {
  font-size: 0.82rem;
}

.detail-portal-aside .detail-aside-lister-more .detail-aside-more-card__title,
.detail-portal-aside .detail-aside-similar .detail-aside-more-card__title {
  font-size: 0.78rem;
}

.detail-portal-aside .detail-aside-lister-more .detail-aside-more-card__meta,
.detail-portal-aside .detail-aside-similar .detail-aside-more-card__meta {
  font-size: 0.72rem;
}

@media (min-width: 960px) {
  .detail-aside-accordion__summary {
    pointer-events: none;
    cursor: default;
  }

  .detail-aside-accordion[open] .detail-aside-accordion__summary::after {
    display: none;
  }
}

@media (max-width: 959px) {
  .detail-aside-accordion {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .detail-aside-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
  }

  .detail-aside-accordion__summary::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
  }

  .detail-aside-accordion[open] .detail-aside-accordion__summary::after {
    transform: rotate(-135deg) translateY(-2px);
  }
}

.detail-area-map--preview {
  margin: 10px 0;
  padding: 6px;
  border-radius: 14px;
}

.detail-area-map--preview .detail-area-map-leaflet {
  height: clamp(140px, 28vw, 200px);
}

.detail-area-map--preview .detail-area-map-canvas {
  height: clamp(140px, 28vw, 200px);
  min-height: clamp(140px, 28vw, 200px);
  border-radius: 10px;
}

.detail-area-map--preview .detail-area-map-pin {
  width: 14px;
  height: 14px;
}

.detail-scroll-bar-actions,
.detail-mobile-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.detail-bar-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.detail-bar-save__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: inherit;
}

.detail-bar-save__icon .icon {
  width: 18px;
  height: 18px;
}

.detail-bar-save__label {
  white-space: nowrap;
}

.detail-bar-save:hover,
.detail-bar-save:focus-visible {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

.detail-bar-save.is-saved {
  color: #0a6f4c;
  border-color: rgba(10, 111, 76, 0.35);
  background: rgba(10, 157, 106, 0.08);
}

.detail-bar-save.is-saved .detail-bar-save__icon svg path {
  fill: currentColor;
}

.detail-bar-save--mobile {
  min-height: 42px;
  padding: 0 14px;
}

.detail-mobile-cta-actions .detail-mobile-cta-enquire {
  flex: 0 0 auto;
  width: auto;
  min-width: 5.75rem;
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* UX C — mobile Listing Detail quick actions (secondary sticky trigger) */
.detail-mobile-cta-actions .detail-mobile-actions-trigger {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: none;
}

.detail-mobile-cta-actions .detail-mobile-actions-trigger:hover,
.detail-mobile-cta-actions .detail-mobile-actions-trigger:focus-visible {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

.detail-mobile-cta-actions .detail-mobile-actions-trigger:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.detail-mobile-cta-enquire.rv-whatsapp-icon-btn .icon {
  width: 20px;
  height: 20px;
}

.detail-rent-card .detail-aside-facts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.detail-aside-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-aside-facts div {
  display: grid;
  gap: 2px;
}

.detail-aside-facts dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.detail-aside-facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
}

.detail-aside-deposit-wrap {
  grid-column: 1 / -1;
  /* Extra air above/below the multi-line terms block (on top of facts gap: 10px). */
  margin-block: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(6, 43, 91, 0.06);
}

.detail-aside-deposit-lines {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--heading);
}

/* Legacy <br> joins; hide so grid gap controls rhythm. */
.detail-aside-deposit-lines > br {
  display: none;
}

.detail-rental-terms-heading {
  display: block;
  margin: 0 0 2px;
  color: #062b5b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-aside-deposit-line {
  display: inline;
}

.detail-aside-deposit-lines .detail-aside-deposit-line {
  display: block;
}

.detail-aside-deposit-lines .detail-aside-deposit-line.small-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a697b;
}

.detail-term-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 6px 10px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid rgba(6, 43, 91, 0.07);
}

.detail-aside-deposit-lines > .detail-rental-terms-heading + .detail-term-row,
.detail-mobile-deposit > .detail-rental-terms-heading + .detail-term-row {
  border-top: 0;
  padding-top: 2px;
}

.detail-term-row__label {
  color: #6a7788;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.detail-term-row__value {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-mobile-deposit .detail-term-row {
  margin: 0;
}

.detail-cash-move {
  min-width: 0;
  margin-top: 12px;
}

.detail-cash-move[hidden] {
  display: none !important;
}

.rv-cash-move {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11, 163, 96, 0.16);
  box-shadow: 0 1px 0 rgba(6, 43, 91, 0.03);
}

.rv-cash-move h2 {
  margin: 0 0 6px;
  color: #062b5b;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rv-cash-move__support,
.rv-cash-move__safety {
  margin: 0;
  color: #5a697b;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.rv-cash-move__support {
  margin-bottom: 10px;
}

.rv-cash-move__lines {
  display: grid;
  gap: 0;
  margin: 0;
}

.rv-cash-move__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: baseline;
  min-width: 0;
  padding: 7px 0;
  border-top: 1px solid rgba(6, 43, 91, 0.07);
}

.rv-cash-move__row:first-child {
  border-top: 0;
  padding-top: 2px;
}

.rv-cash-move__row dt {
  margin: 0;
  color: #6a7788;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rv-cash-move__row dd {
  margin: 0;
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rv-cash-move__term {
  font-weight: 700;
}

.rv-cash-move__sep {
  color: #8b97a6;
  font-weight: 600;
}

.rv-cash-move__total {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(11, 163, 96, 0.22);
}

.rv-cash-move__total dt {
  color: #062b5b;
  font-size: 0.78rem;
  font-weight: 800;
}

.rv-cash-move__total dd,
.rv-cash-move__ongoing dd {
  color: #0ba360;
  font-size: 1.08rem;
  font-weight: 850;
}

.rv-cash-move__rent {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed rgba(6, 43, 91, 0.14);
}

.rv-cash-move__rent dt,
.rv-cash-move__rent dd,
.rv-cash-move__ongoing dt,
.rv-cash-move__ongoing dd {
  opacity: 0.92;
  font-weight: 650;
}

.rv-cash-move__safety {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(6, 43, 91, 0.06);
}

@media (max-width: 420px) {
  .detail-term-row,
  .rv-cash-move__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .detail-term-row__value,
  .rv-cash-move__row dd {
    text-align: left;
    white-space: normal;
  }
}

/* Listing detail mobile — Reference + rental terms must wrap (no clip/ellipsis).
 * Root cause: stacked portal grid track keeps min-content width; children with
 * min-width:auto / nowrap (esp. .detail-aside-ref__code) lay out wider than the
 * viewport and are clipped by .detail-portal-body overflow-x:clip.
 * Desktop ≥960px unchanged. */
@media (max-width: 959px) {
  .listing-detail-page .detail-portal-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-detail-page .detail-evidence-card,
  .listing-detail-page .detail-portal-aside,
  .listing-detail-page .detail-portal-aside.detail-summary-card,
  .listing-detail-page .detail-rent-card-aside {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .listing-detail-page .detail-evidence-card .detail-property-info {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .listing-detail-page .detail-evidence-card .detail-property-info > div {
    min-width: 0;
    max-width: 100%;
  }

  .listing-detail-page .detail-evidence-card .detail-property-info dd,
  .listing-detail-page .detail-evidence-card .detail-property-info dd[data-listing-info-reference] {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .listing-detail-page .detail-aside-ref {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .listing-detail-page .detail-aside-ref__code {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .listing-detail-page .detail-aside-facts,
  .listing-detail-page .detail-aside-facts > div,
  .listing-detail-page .detail-aside-deposit-wrap,
  .listing-detail-page .detail-aside-deposit-lines {
    min-width: 0;
    max-width: 100%;
  }

  .listing-detail-page .detail-aside-deposit-lines,
  .listing-detail-page .detail-aside-deposit-line {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Detail aside / rent-card grids use one auto column. That track sizes to the
   max-content of a rental-term line, so a long Tamil label paints past the
   aside content box. Lock the track to the available column; lines wrap. */
.listing-detail-page .detail-portal-aside.detail-summary-card,
.listing-detail-page .detail-rent-card-aside,
.listing-detail-page .detail-rent-card-aside .detail-aside-facts,
.listing-detail-page .detail-rent-card-aside .detail-aside-facts > div,
.listing-detail-page .detail-rent-card-aside .detail-aside-deposit-lines {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 959px) {
  .detail-enquiry-safety-note--desktop {
    display: none !important;
  }
}

@media (min-width: 960px) {
  .detail-enquiry-safety-note--mobile {
    display: none !important;
  }
}

.detail-report-inline {
  margin: 0;
  font-size: 0.86rem;
}

.detail-report-inline a {
  color: var(--muted);
  text-decoration: underline;
}

.detail-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px max(14px, calc((100vw - var(--container)) / 2 + 10px)) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 -10px 26px rgba(16, 24, 40, 0.11);
}

.detail-mobile-cta[hidden] {
  display: none !important;
}

.detail-mobile-cta-rent {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.detail-mobile-cta-rent strong {
  font-size: 1.02rem;
  line-height: 1.1;
  color: var(--heading);
}

.detail-mobile-cta-rent span {
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--muted);
}

.detail-mobile-cta .button:not(.button-primary) {
  flex-shrink: 0;
}

.detail-media-overlay .rent-badge {
  display: none;
}

/* UX C — native <dialog> bottom sheet (mobile sticky Actions) */
.detail-quick-actions-dialog {
  width: min(100%, 28rem);
  max-width: 100%;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.detail-quick-actions-dialog::backdrop {
  background: rgba(7, 10, 20, 0.42);
}

.detail-quick-actions-sheet {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.12);
}

.detail-quick-actions-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.detail-quick-actions-sheet__head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--heading);
}

.detail-quick-actions-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.detail-quick-actions-close:hover {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

.detail-quick-actions-close:focus-visible,
.detail-quick-action:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.detail-quick-actions-list {
  display: grid;
  gap: 8px;
}

.detail-quick-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.detail-quick-action:hover {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

.detail-quick-action[hidden] {
  display: none !important;
}

.detail-quick-actions-feedback {
  margin: 0;
  min-height: 1.2em;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
}

.detail-quick-actions-feedback[hidden] {
  display: none !important;
}

@media (min-width: 960px) {
  .detail-gallery-stage {
    margin-bottom: 18px;
  }

  .detail-portal-section .detail-media-card .detail-gallery-main {
    height: clamp(360px, 34vw, 480px);
  }

  .detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
    min-height: clamp(360px, 34vw, 480px);
    height: clamp(360px, 34vw, 480px);
  }

  .detail-mobile-cta {
    display: none !important;
  }

  .detail-mobile-actions-trigger,
  .detail-quick-actions-dialog {
    display: none !important;
  }

  body.has-detail-mobile-cta {
    padding-bottom: 0;
  }
}

/*
 * Option C (≥1080): full-width gallery already above; post-hero MAIN | sticky summary.
 * Right sidebar stays narrow (~300–340px); main content remains dominant.
 */
@media (min-width: 1080px) {
  .listing-detail-page .detail-post-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: clamp(18px, 2.5vw, 28px);
  }

  .listing-detail-page .detail-portal-aside {
    position: sticky;
    top: calc(var(--header-height) + var(--detail-scroll-bar-offset, 0px) + 18px);
    align-self: start;
  }

  /* Compact Option C evidence row — keep all fields, no duplicate section. */
  .listing-detail-page .detail-evidence-card {
    position: relative;
    padding: 12px 14px;
  }

  .listing-detail-page .detail-evidence-card > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .listing-detail-page .detail-evidence-card .detail-property-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .listing-detail-page .detail-evidence-card .detail-property-info div {
    display: grid;
    gap: 3px;
  }

  /* More-from cards use shared .detail-similar-card geometry */
}

/* Stacked modern layout below Option C desktop breakpoint.
 * Mobile Option B: title → gallery → compact evidence → commercial aside →
 * facts before About → features/media → location → more-from.
 * Desktop Option C (≥1080) is unchanged above. */
@media (max-width: 1079px) {
  /* minmax(0,1fr): prevent gallery/track min-content from widening the
   * stacked grid column; otherwise title stretches wide and is clipped by
   * overflow-x:clip on .detail-portal-body (≤959px). */
  .listing-detail-page .detail-portal-body {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-detail-page .detail-post-hero {
    display: contents;
    margin-top: 0;
  }

  .listing-detail-page .detail-portal-main.detail-longform {
    display: contents;
  }

  .listing-detail-page .detail-title-block {
    order: 1;
    min-width: 0;
    max-width: 100%;
  }

  .listing-detail-page .detail-title-block h1 {
    min-width: 0;
    max-width: 100%;
  }

  .listing-detail-page .detail-gallery-stage {
    order: 2;
    min-width: 0;
    max-width: 100%;
  }

  .listing-detail-page .detail-trust-strip {
    order: 3;
  }

  .listing-detail-page .detail-evidence-card {
    order: 4;
  }

  .listing-detail-page .detail-portal-aside {
    order: 5;
    position: static;
  }

  .listing-detail-page .detail-rental-facts-card {
    order: 6;
  }

  .listing-detail-page .detail-description-card {
    order: 7;
  }

  .listing-detail-page .detail-features-card {
    order: 8;
  }

  .listing-detail-page .detail-floorplans-card {
    order: 9;
  }

  .listing-detail-page .detail-video-card {
    order: 10;
  }

  .listing-detail-page .detail-location-card {
    order: 11;
  }
}

@media (max-width: 959px) {
  .detail-toolbar {
    width: 100%;
    margin-left: 0;
  }

  .detail-icon-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .detail-icon-action {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 4px;
  }

  .detail-portal-aside .detail-enquire-cta {
    display: none;
  }
}

.detail-portal-aside .detail-enquire-cta {
  border-radius: var(--portal-card-radius);
}

.detail-scroll-bar .detail-scroll-bar-enquire.button {
  border-radius: 999px;
}

.detail-portal-aside .button-secondary {
  border-radius: var(--portal-card-radius);
  border-color: var(--primary);
  color: var(--primary);
}

/* Tier 1–3 listing detail enhancements */

.detail-gallery-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  color: #fff;
  background: rgba(7, 10, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.detail-gallery-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.1);
  cursor: pointer;
}

.detail-gallery-expand .icon {
  width: 15px;
  height: 15px;
}

.detail-property-info-card h2,
.detail-rental-facts-card h2,
.detail-location-card h2,
.detail-video-card h2,
.detail-floorplans-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.detail-rental-facts-card.content-card {
  gap: 8px;
  align-content: start;
  align-self: start;
}

.detail-rental-facts-card h2 {
  margin: 0;
}

.detail-property-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.detail-property-info div {
  display: grid;
  gap: 3px;
}

.detail-property-info dt {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.detail-property-info dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--heading);
}

.detail-rental-facts {
  display: grid;
  grid-template-columns: minmax(7.25rem, max-content) minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 5px;
  margin: 0;
}

.detail-rental-facts dt {
  grid-column: 1;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.detail-rental-facts dd {
  grid-column: 2;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-similar-checked-section,
.detail-recommended-section {
  content-visibility: visible;
}

@media (max-width: 420px) {
  .detail-rental-facts {
    grid-template-columns: minmax(6.75rem, 40%) minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 4px;
  }
}

@media (max-width: 360px) {
  .detail-rental-facts {
    grid-template-columns: minmax(6.25rem, 38%) minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 4px;
  }

  .detail-rental-facts dt,
  .detail-rental-facts dd {
    font-size: 0.84rem;
  }
}

.detail-public-phone-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-public-phone-number {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.detail-call-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(145deg, #0bb07a 0%, #07814f 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 157, 106, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.detail-call-icon-btn .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .detail-call-icon-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 8px 18px rgba(10, 157, 106, 0.34);
  }
}

.detail-call-icon-btn:active {
  transform: scale(0.96);
}

.detail-scroll-bar-call.detail-call-icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.detail-scroll-bar-call.detail-call-icon-btn .icon {
  width: 17px;
  height: 17px;
}

.detail-mobile-cta-call.detail-call-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.detail-mobile-cta-call.detail-call-icon-btn .icon {
  width: 19px;
  height: 19px;
}

.detail-mobile-cta-enquire,
.detail-scroll-bar-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-mobile-cta-enquire__icon,
.detail-strip-enquire__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.detail-mobile-cta-enquire__icon {
  width: 28px;
  height: 28px;
}

.detail-strip-enquire__icon {
  width: 24px;
  height: 24px;
}

.detail-mobile-cta-enquire__icon .icon,
.detail-strip-enquire__icon .icon {
  width: 16px;
  height: 16px;
}

.detail-location-card .detail-area-map {
  position: relative;
  margin: 12px 0;
  padding: 8px;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafd 0%, #f2f6fb 100%);
}

.detail-area-map.is-map-pending .detail-area-map-fallback {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: stretch;
}

.detail-area-map.is-map-pending .detail-area-map-fallback .detail-area-map-canvas {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.detail-area-map-leaflet {
  height: clamp(220px, 36vw, 320px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e1ea;
  background: #eef2f7;
  z-index: 1;
}

.detail-area-map-unavailable {
  margin: 12px 8px;
  text-align: center;
}

.detail-area-map-leaflet .leaflet-control-attribution {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.88);
}

.detail-enquiry-sent-note {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(10, 157, 106, 0.08);
  border: 1px solid rgba(10, 157, 106, 0.18);
  color: var(--heading);
}

.thank-listing-context {
  margin: 16px 0 0;
  text-align: left;
}

.thank-listing-context-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.detail-area-map-canvas {
  position: relative;
  min-height: 220px;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
  overflow: hidden;
  background: #eef3f8;
}

.detail-area-map-canvas .map-canvas-bg {
  position: absolute;
  inset: 0;
}

.detail-area-map-pin {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(10, 157, 106, 0.35);
}

/* Approximate-area ring on fallback map so first paint closer to Leaflet radius circle. */
.detail-area-map-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(10, 157, 106, 0.16);
  border: 1px solid rgba(10, 157, 106, 0.32);
  pointer-events: none;
  z-index: -1;
}

.detail-location-area {
  margin: 0 0 12px;
  color: #475569;
  font-weight: 600;
}

.detail-agent-card {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.detail-aside-similar:not([hidden]) {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

@media (max-width: 959px) {
  .detail-portal-aside {
    padding: 14px;
  }

  .detail-portal-aside .detail-agent-card,
  .detail-portal-aside .detail-aside-lister-panel {
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .detail-portal-aside > .detail-agent-card,
  .detail-portal-aside > .detail-aside-similar:not([hidden]) {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 0;
  }

  .detail-portal-aside > .detail-aside-similar:not([hidden]) {
    margin-top: 24px;
    padding-top: 4px;
  }

  .detail-aside-similar:not([hidden]) {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
}

.detail-agent-eyebrow {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

.detail-agent-name {
  margin: 0;
  font-size: 1rem;
}

.detail-agent-name-wrap {
  min-width: 0;
  align-self: center;
}

.detail-agent-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-agent-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  flex-shrink: 0;
}

.detail-agent-verified .icon {
  width: 12px;
  height: 12px;
}

.detail-agent-meta,
.detail-agent-listed {
  margin: 0 0 8px;
  color: #5a697b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.detail-agent-listed {
  color: #7a8797;
}

.detail-agent-response {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  color: #5b6b7c;
  font-size: 0.76rem;
  font-weight: 550;
  line-height: 1.4;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
}

.detail-agent-response .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #6b7c8a;
}

.detail-agent-listings-heading {
  margin-bottom: 16px;
}

.detail-agent-listings-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
}

.detail-aside-agent-listings {
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--border);
}

.detail-aside-agent-listings__title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: var(--weight-label);
  letter-spacing: -0.02em;
  color: var(--heading);
}

.detail-aside-agent-listings__list {
  display: grid;
  gap: 10px;
}

.detail-aside-agent-listings__cta {
  margin-top: 10px;
}

.detail-aside-more-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  color: inherit;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.detail-aside-more-card:hover {
  border-color: rgba(10, 157, 106, 0.35);
  background: #fff;
}

.detail-aside-more-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef3;
  aspect-ratio: 4 / 3;
}

.detail-aside-more-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-aside-more-card__badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 5px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.03em;
  background: rgba(10, 157, 106, 0.92);
  border-radius: 3px;
}

.detail-aside-more-card__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.detail-aside-more-card__body strong {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
}

.detail-aside-more-card__body strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.detail-aside-more-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-aside-more-card__meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.detail-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
}

.detail-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-floorplans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.detail-floorplan-thumb {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}

.detail-floorplan-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-portal-aside .compliance-note a {
  font-weight: 700;
}

@media (min-width: 760px) {
  .detail-property-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Listing detail — phase 2 UX pass */

.detail-section-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 0 8px;
  position: sticky;
  top: calc(var(--header-height) + var(--detail-scroll-bar-offset, 0px) + 8px);
  z-index: 12;
  background: var(--portal-page-bg);
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-section-nav::-webkit-scrollbar {
  display: none;
}

body.listing-detail-page.has-detail-scroll-bar {
  --detail-scroll-bar-offset: 0px;
}

body.listing-detail-page.has-detail-scroll-bar .site-header {
  visibility: hidden;
  pointer-events: none;
}

.detail-scroll-bar {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(219, 227, 235, 0.9);
}

.detail-scroll-bar.is-visible {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: block;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.1);
}

.detail-scroll-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.detail-scroll-bar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.detail-scroll-bar-back:hover {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--brand);
}

.detail-section-nav a {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.detail-section-nav a:hover,
.detail-section-nav a:focus-visible {
  color: var(--primary);
  border-color: rgba(10, 157, 106, 0.28);
}

.detail-section-nav a.is-active {
  color: var(--heading);
  border-color: rgba(10, 157, 106, 0.45);
  background: rgba(10, 157, 106, 0.1);
  box-shadow: inset 0 -2px 0 rgba(10, 157, 106, 0.42);
}

.detail-sample-banner {
  background: #fff6e8;
  border-bottom: 1px solid #f0d9a6;
  color: #6a4d12;
  font-size: 0.88rem;
}

.detail-sample-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.detail-sample-banner code {
  font-size: 0.82rem;
}

.detail-sample-banner-dismiss {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 4px 8px;
}

.detail-scroll-bar-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.detail-scroll-bar-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4b5f70;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-scroll-bar-title {
  margin: 0;
  flex: 0 1 auto;
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  letter-spacing: -0.01em;
  color: var(--heading);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-scroll-bar-line span + span::before {
  content: "|";
  margin-right: 6px;
  color: #9aa8b8;
}

@media (max-width: 1360px) {
  .detail-scroll-bar-line__type {
    display: none;
  }
}

@media (max-width: 1240px) {
  .detail-scroll-bar-line__bath {
    display: none;
  }
}

.detail-scroll-bar .detail-scroll-bar-enquire.rv-whatsapp-icon-btn {
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.28);
}

@media (max-width: 959px) {
  .detail-scroll-bar {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-scroll-bar {
    transition: none;
  }
}

.detail-loading-skeleton {
  margin-bottom: 18px;
}

.detail-loading-label {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted, #5b6b7c);
}

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

.detail-skeleton-main,
.detail-skeleton-aside {
  display: grid;
  gap: 12px;
}

.detail-skeleton-aside span {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8edf4 0%, #f4f7fb 45%, #e8edf4 90%);
  background-size: 200% 100%;
  animation: detail-skeleton-shimmer 1.2s ease-in-out infinite;
}

.detail-skeleton-aside span:nth-child(1) {
  height: 28px;
  width: 72%;
}

.detail-skeleton-aside span:nth-child(2) {
  width: 88%;
}

.detail-skeleton-aside span:nth-child(3) {
  width: 56%;
}

@media (min-width: 960px) {
  .detail-skeleton-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    align-items: start;
  }

  .detail-skeleton-aside {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
  }
}

.detail-skeleton-gallery {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(90deg, #e8edf4 0%, #f4f7fb 45%, #e8edf4 90%);
  background-size: 200% 100%;
  animation: detail-skeleton-shimmer 1.2s ease-in-out infinite;
}

.detail-skeleton-lines {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-skeleton-lines span {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8edf4 0%, #f4f7fb 45%, #e8edf4 90%);
  background-size: 200% 100%;
  animation: detail-skeleton-shimmer 1.2s ease-in-out infinite;
}

.detail-skeleton-lines span:nth-child(1) {
  width: 68%;
  height: 22px;
}

.detail-skeleton-lines span:nth-child(2) {
  width: 92%;
}

.detail-skeleton-lines span:nth-child(3) {
  width: 48%;
}

@keyframes detail-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.detail-hero-facts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(10, 157, 106, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 157, 106, 0.06) 0%, rgba(10, 157, 106, 0.02) 100%);
}

.detail-hero-rent {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-hero-rent strong {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  line-height: 1.05;
  color: var(--primary);
}

.detail-hero-rent span,
.detail-hero-available {
  margin: 0;
  color: #486173;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-hero-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-hero-available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0a9d6a;
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.15);
}

.detail-mobile-deposit {
  display: none;
}

.detail-mobile-deposit-line {
  margin: 0;
  color: #486173;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.detail-mobile-deposit .detail-rental-terms-heading {
  margin: 0;
}

.detail-mobile-deposit-line + .detail-mobile-deposit-line {
  margin-top: 0;
}

.detail-building-line,
.detail-visited-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-visited-note {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(10, 157, 106, 0.08);
  border: 1px solid rgba(10, 157, 106, 0.16);
}

.detail-description-body p,
.detail-description-body ul {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-description-body p:last-child,
.detail-description-body ul:last-child {
  margin-bottom: 0;
}

.detail-description-body ul {
  padding-left: 1.1rem;
}

.detail-description-collapsible.is-collapsible:not(.is-expanded) .detail-description-body {
  max-height: 9.6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent);
  mask-image: linear-gradient(180deg, #000 68%, transparent);
}

/* No-JS: keep long About readable (collapse is progressive enhancement). */
@media (scripting: none) {
  .detail-description-collapsible.is-collapsible:not(.is-expanded) .detail-description-body {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .detail-description-toggle {
    display: none !important;
  }
}

.detail-description-toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: var(--weight-label);
  cursor: pointer;
}

.detail-similar-cta-wrap {
  margin-top: 16px;
  text-align: center;
}

.listing-detail-page .detail-trust-section.compact-section {
  padding: 32px 0;
}

.listing-detail-page .detail-recommended-section {
  padding-top: 44px;
}

.listing-detail-page .detail-similar-checked-section {
  padding-top: 36px;
  padding-bottom: 8px;
}

.detail-similar-checked-heading {
  margin-bottom: 16px;
}

.detail-similar-checked-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
}

/* Shared Listing Detail related-card system (More from / Similar / Recently viewed) */
.detail-similar-checked-grid,
.detail-recommended-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-similar-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.detail-similar-card:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .detail-similar-card:hover {
    border-color: rgba(10, 157, 106, 0.35);
    box-shadow: var(--shadow-sm);
  }
}

.detail-similar-card__media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.detail-similar-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-similar-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(233, 248, 241, 0.96);
  border: 1px solid rgba(10, 157, 106, 0.28);
  color: #0a5c40;
  font-size: 0.64rem;
  font-weight: var(--weight-title);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.detail-similar-card__badge--visited {
  background: rgba(255, 248, 232, 0.96);
  border-color: rgba(180, 130, 20, 0.28);
  color: #6a4d12;
}

.detail-similar-card__rent {
  margin: 0;
  font-size: 1.02rem;
  font-weight: var(--weight-title);
  line-height: 1.2;
  color: var(--heading);
}

.detail-similar-card__rent small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-label);
}

.detail-similar-card__rent--overlay {
  display: none;
}

.detail-similar-card__rent--inline {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
  color: var(--heading);
  font-size: 1.02rem;
}

.detail-similar-card__photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 20, 38, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.detail-similar-card__photo-count .icon {
  width: 11px;
  height: 11px;
}

.detail-similar-card__body {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(2.6em, auto) auto auto;
  gap: 5px;
  padding: 12px 14px 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.detail-similar-card__avail {
  margin: 0;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-similar-card__avail.is-empty {
  visibility: hidden;
}

.detail-similar-card__title {
  margin: 0;
  min-height: 2.6em;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.detail-similar-card__area {
  margin: 0;
  min-height: 1.25em;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-similar-card__area.is-empty {
  visibility: hidden;
}

.detail-similar-card__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 1.35em;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-similar-card__facts.is-empty {
  visibility: hidden;
}

.detail-similar-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.detail-similar-card__facts .icon {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

.detail-similar-card__meta,
.detail-similar-card__view {
  display: none;
}

.detail-similar-checked-area-cta-wrap {
  margin: 14px 0 0;
  text-align: left;
}

.detail-similar-checked-area-cta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(100, 116, 139, 0.4);
}

.detail-similar-checked-area-cta:hover,
.detail-similar-checked-area-cta:focus-visible {
  color: #0a7a52;
}

@media (max-width: 1100px) {
  .detail-more-from-grid,
  .detail-similar-checked-grid,
  .detail-recommended-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .listing-detail-page .detail-similar-checked-section {
    padding-top: 32px;
  }

  .detail-similar-checked-grid,
  .detail-recommended-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 300px);
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    padding-bottom: 6px;
    scrollbar-width: none;
    grid-template-columns: none;
  }

  .detail-similar-checked-grid::-webkit-scrollbar,
  .detail-recommended-rail::-webkit-scrollbar {
    display: none;
  }

  .detail-similar-checked-grid > .detail-similar-card,
  .detail-recommended-rail > .detail-similar-card {
    flex: 0 0 min(78vw, 300px);
    width: min(78vw, 300px);
    min-width: min(78vw, 300px);
    max-width: min(78vw, 300px);
    align-self: stretch;
    height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .detail-similar-checked-grid > .detail-similar-card > .detail-similar-card__body,
  .detail-recommended-rail > .detail-similar-card > .detail-similar-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }

  .detail-similar-checked-grid > .detail-similar-card > .detail-similar-card__body > .detail-similar-card__area,
  .detail-recommended-rail > .detail-similar-card > .detail-similar-card__body > .detail-similar-card__area {
    margin-top: auto;
  }

  .detail-more-from-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-similar-card {
    flex-direction: column;
    min-height: 0;
  }

  .detail-similar-card__media {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .detail-similar-card__photo-count {
    display: inline-flex;
  }

  .detail-similar-card__badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 8px;
    font-size: 0.64rem;
  }

  .detail-similar-card__body {
    padding: 12px 14px 14px;
  }

  .detail-similar-card__title {
    font-size: 0.98rem;
  }
}

@media (max-width: 760px) {
  .listing-detail-page .detail-trust-section.compact-section {
    padding: 48px 0;
  }

  .listing-detail-page .detail-recommended-section {
    padding-top: 48px;
  }
}

.detail-recommended-heading {
  margin-bottom: 16px;
}

.detail-recommended-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
}

/* Public UX B physical micro-fix — Detail Recent View all + Clear history */
.listing-detail-page .detail-recommended-heading.section-heading {
  max-width: none;
  width: 100%;
}

.listing-detail-page .detail-recommended-heading__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  width: 100%;
}

.listing-detail-page .detail-recommended-heading__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}

.listing-detail-page .detail-recommended-view-all,
.listing-detail-page .detail-recommended-clear-recent {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  background-color: transparent;
  color: #5b6b78;
  font: inherit;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.listing-detail-page a.detail-recommended-view-all {
  color: #5b6b78;
  text-decoration: underline;
}

.listing-detail-page button.detail-recommended-clear-recent {
  color: #5b6b78;
  background: transparent;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

.listing-detail-page .detail-recommended-view-all:hover,
.listing-detail-page .detail-recommended-clear-recent:hover {
  color: #152028;
  background: rgba(16, 24, 40, 0.04);
  background-color: rgba(16, 24, 40, 0.04);
  text-decoration: none;
}

.listing-detail-page .detail-recommended-view-all:focus-visible,
.listing-detail-page .detail-recommended-clear-recent:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

@media (max-width: 430px) {
  .listing-detail-page .detail-recommended-heading__row {
    align-items: flex-start;
  }

  .listing-detail-page .detail-recommended-heading__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.detail-recommended-rail {
  padding: 0;
  margin: 0;
}

@media (min-width: 641px) {
  .detail-recommended-rail {
    overflow: visible;
  }
}

.detail-rec-card {
  flex: 0 0 min(272px, 82vw);
  scroll-snap-align: start;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .detail-rec-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 157, 106, 0.45);
    box-shadow: var(--shadow);
  }
}

.detail-rec-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
}

.detail-rec-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-rec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(233, 248, 241, 0.96);
  border: 1px solid rgba(10, 157, 106, 0.28);
  color: #0a5c40;
  font-size: 0.68rem;
  font-weight: var(--weight-title);
  letter-spacing: 0.01em;
  text-transform: none;
}

.detail-rec-badge--visited {
  background: rgba(255, 248, 232, 0.96);
  border-color: rgba(180, 130, 20, 0.28);
  color: #6a4d12;
}

.detail-rec-rent {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(212, 219, 232, 0.85);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.1);
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: var(--weight-title);
  line-height: 1.1;
}

.detail-rec-rent small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: var(--weight-label);
}

.detail-rec-body {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
}

.detail-rec-body h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-rec-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.detail-gallery-mosaic {
  display: none;
  grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: clamp(240px, 56vw, 320px);
  height: clamp(240px, 56vw, 320px);
}

.detail-mosaic-cell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 0;
  background: #dfe5eb;
  cursor: zoom-in;
}

.detail-mosaic-hero {
  grid-row: span 2;
  height: 100%;
}

.detail-mosaic-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-row: span 2;
  gap: 4px;
  min-height: 0;
  height: 100%;
}

.detail-mosaic-stack--solo {
  grid-template-rows: 1fr;
}

.detail-mosaic-cell img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.detail-mosaic-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  color: #fff;
  background: rgba(7, 10, 20, 0.62);
  border-radius: 6px;
  pointer-events: none;
}

.detail-mosaic-stack .detail-mosaic-cell img {
  min-height: 0;
}

.detail-mosaic-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 20, 0.48);
  color: #fff;
  font-size: 1.35rem;
  font-weight: var(--weight-label);
  pointer-events: none;
}

.detail-media-card.is-gallery-mosaic .detail-media-frame {
  display: block;
}

.detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
  display: grid;
}

.detail-media-card.is-gallery-mosaic .detail-gallery-main,
.detail-media-card.is-gallery-mosaic .detail-gallery-thumbs {
  display: none !important;
}

.detail-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-location-actions .button .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.detail-area-guide-intro {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-agent-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-agent-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.14);
  color: #0a6f4c;
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  overflow: hidden;
  flex-shrink: 0;
}

.detail-agent-avatar.has-photo {
  background: #eef2f7;
}

.detail-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-agent-avatar.is-company-logo {
  border-radius: 10px;
  background: transparent;
  border: 1px solid #e3e8ef;
  padding: 0;
}

.detail-agent-avatar.is-company-logo img {
  object-fit: cover;
}

/* Public Agent profile hero: never inherit listing-detail cover/crop avatar rules. */
.agent-profile-page .detail-agent-avatar.agent-profile-avatar,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar {
  width: 112px;
  height: 112px;
  min-width: 112px;
  max-width: 112px;
  min-height: 112px;
  max-height: 112px;
  border-radius: 20px;
  overflow: hidden;
  flex: 0 0 112px;
}

.agent-profile-page .detail-agent-avatar.agent-profile-avatar.has-photo,
.agent-profile-page .detail-agent-avatar.agent-profile-avatar.is-company-logo,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar.has-photo,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar.is-company-logo {
  padding: 14px;
  background: #ffffff;
}

.agent-profile-page .detail-agent-avatar.agent-profile-avatar img,
.agent-profile-page .detail-agent-avatar.agent-profile-avatar.is-company-logo img,
.agent-profile-page .detail-agent-avatar.agent-profile-avatar.has-photo img,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar img,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar.is-company-logo img,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar.has-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.agent-profile-page .detail-agent-avatar.agent-profile-avatar.is-initials,
.agent-profile-page .agent-profile-avatar.detail-agent-avatar.is-initials {
  padding: 0;
  border: 0;
  background: linear-gradient(160deg, #0a9d6a 0%, #087a54 100%);
  color: #fff;
}

@media (max-width: 720px) {
  .agent-profile-page .detail-agent-avatar.agent-profile-avatar,
  .agent-profile-page .agent-profile-avatar.detail-agent-avatar {
    width: 84px;
    height: 84px;
    min-width: 84px;
    max-width: 84px;
    min-height: 84px;
    max-height: 84px;
    flex-basis: 84px;
    border-radius: 16px;
  }

  .agent-profile-page .detail-agent-avatar.agent-profile-avatar.has-photo,
  .agent-profile-page .detail-agent-avatar.agent-profile-avatar.is-company-logo,
  .agent-profile-page .agent-profile-avatar.detail-agent-avatar.has-photo,
  .agent-profile-page .agent-profile-avatar.detail-agent-avatar.is-company-logo {
    padding: 10px;
  }
}

.detail-agent-avatar.is-individual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5a697b;
  background: #f0f4f8;
  border: 1px solid #e3e8ef;
  line-height: 0;
}

.detail-agent-avatar.is-individual .icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.detail-agent-avatar.is-initials {
  color: #fff;
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  background: var(--primary);
  border: 0;
}

.detail-trust-card h2 {
  margin: 0 0 10px;
}

.compact-check-list {
  margin: 10px 0;
}

.detail-report-disclosure {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.detail-report-disclosure summary {
  cursor: pointer;
  font-weight: var(--weight-label);
  color: var(--heading);
}

.detail-report-body {
  margin-top: 12px;
}

.detail-enquiry-dialog {
  width: min(640px, calc(100vw - 24px));
  padding: 0;
  border: none;
  background: transparent;
}

.detail-enquiry-dialog::backdrop {
  background: rgba(7, 10, 20, 0.55);
  backdrop-filter: blur(4px);
}

.detail-enquiry-dialog-panel {
  position: relative;
  margin: 0;
  padding: 16px 18px 14px;
  gap: 8px;
  overflow: visible;
}

.detail-enquiry-dialog-panel h2 {
  padding-right: 4.75rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.detail-enquiry-dialog-summary,
.detail-enquiry-dialog-privacy,
.detail-enquiry-dialog-panel > .detail-enquiry-sent-note {
  font-size: 0.82rem;
  line-height: 1.4;
}

.detail-enquiry-dialog-whatsapp {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 0.86rem;
}

/* FIX42C — public lead capture */
.detail-lead-form-grid {
  margin-bottom: 0.75rem;
}

.detail-lead-intent-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.detail-lead-intent-fieldset > legend {
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--heading);
}

.detail-lead-intent-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.detail-lead-intent-option {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
}

.detail-lead-intent-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.detail-lead-intent-option__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--heading);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

.detail-lead-intent-option input:focus-visible + .detail-lead-intent-option__label {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 2px;
}

.detail-lead-intent-option input:checked + .detail-lead-intent-option__label {
  border-color: rgba(10, 157, 106, 0.55);
  background: rgba(233, 248, 241, 0.9);
  box-shadow: inset 0 0 0 1px rgba(10, 157, 106, 0.12);
}

.detail-lead-viewing-prefs {
  display: grid;
  gap: 6px;
}

.detail-lead-viewing-prefs[hidden] {
  display: none !important;
}

.detail-lead-viewing-note {
  margin: 0;
}

.detail-lead-viewing-grid {
  display: grid;
  gap: 8px;
}

.detail-lead-viewing-window {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.detail-lead-viewing-window > legend {
  margin: 0 0 4px;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--heading);
}

.detail-lead-viewing-window-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.detail-lead-viewing-window-option {
  position: relative;
  display: block;
  margin: 0;
}

.detail-lead-viewing-window-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.detail-lead-viewing-window-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.detail-lead-viewing-window-option input:focus-visible + span {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 2px;
}

.detail-lead-viewing-window-option input:checked + span {
  border-color: rgba(10, 157, 106, 0.55);
  background: rgba(233, 248, 241, 0.9);
}

.detail-lead-success {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.detail-lead-success[hidden] {
  display: none !important;
}

.detail-lead-success h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.detail-lead-direct-wa-note {
  margin-top: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.detail-lead-direct-wa-note a {
  display: inline;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-lead-direct-wa-note--aside {
  margin-top: 0.55rem;
  margin-bottom: 0;
  line-height: 1.45;
}

.detail-email-enquiry-disclosure {
  margin-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.75rem;
}

.detail-email-enquiry-disclosure > summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.listing-lead-form .form-submit-error {
  margin: 0.35rem 0 0.65rem;
  color: #b42318;
  font-size: 0.9rem;
}

.detail-enquiry-dialog .listing-lead-form.contact-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.detail-enquiry-dialog .listing-lead-form label {
  gap: 5px;
  font-size: 0.82rem;
}

.detail-enquiry-dialog .listing-lead-form input,
.detail-enquiry-dialog .listing-lead-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
}

.detail-enquiry-dialog .listing-enquiry-form.contact-form {
  margin-top: 2px;
  padding: 0;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.detail-enquiry-dialog .listing-enquiry-form label {
  gap: 5px;
  font-size: 0.82rem;
}

.detail-enquiry-dialog .listing-enquiry-form input,
.detail-enquiry-dialog .listing-enquiry-form select,
.detail-enquiry-dialog .listing-enquiry-form textarea {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.detail-enquiry-dialog .listing-enquiry-form select {
  padding: 0 34px 0 30px;
}

.detail-enquiry-dialog .listing-enquiry-form textarea {
  min-height: 72px;
  max-height: 140px;
  resize: vertical;
}

.detail-enquiry-dialog .listing-enquiry-form .button {
  min-height: 42px;
  margin-top: 0;
}

.detail-enquiry-dialog .listing-enquiry-form .form-submit-error,
.detail-enquiry-dialog .listing-enquiry-form .form-alert-note {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.detail-enquiry-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  width: auto;
  height: auto;
  padding: 6px 12px;
  border: 1px solid #d2d9e6;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.detail-similar-carousel {
  display: grid;
  gap: 14px;
}

.detail-mobile-cta .button-small {
  min-width: 72px;
}

@media (max-width: 959px) {
  body.listing-detail-page.has-detail-mobile-cta .mobile-app-nav {
    display: none;
  }

  body.listing-detail-page.has-detail-mobile-cta {
    padding-bottom: 0;
  }

  body.listing-detail-page.has-detail-mobile-cta .detail-recommended-section {
    padding-bottom: 8px;
  }

  body.listing-detail-page.has-detail-mobile-cta .site-footer {
    padding-bottom: calc(var(--detail-mobile-cta-clearance, calc(72px + env(safe-area-inset-bottom, 0px))) + 16px);
  }
}

@media (min-width: 960px) {
  .detail-enquiry-section {
    display: none;
  }

  .detail-hero-facts {
    display: none;
  }

  .detail-enquiry-dialog .detail-enquiry-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .detail-enquiry-dialog-panel {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 959px) {
  .detail-enquiry-dialog-panel {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 959px) {
  .detail-hero-facts {
    display: inline-flex;
  }

  .detail-mobile-deposit {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 4px;
    padding: 12px;
    border: 1px solid rgba(10, 157, 106, 0.14);
    border-radius: 12px;
    background: rgba(248, 251, 249, 0.96);
  }

  .detail-mobile-deposit > br {
    display: none;
  }

  .listing-detail-page .detail-portal-section,
  .listing-detail-page .detail-portal-head,
  .listing-detail-page .detail-portal-body {
    overflow-x: clip;
    max-width: 100%;
  }

  .listing-detail-page .detail-portal-head.container,
  .listing-detail-page .detail-portal-body.container {
    width: min(100% - 24px, var(--container));
  }

  .listing-detail-page .detail-section-nav {
    margin-inline: -12px;
    padding-inline: 12px;
    padding-right: 16px;
    scroll-padding-inline: 12px;
  }

  .listing-detail-page .detail-section-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
    min-height: 34px;
    line-height: 1.1;
  }

  @media (max-width: 420px) {
    .listing-detail-page .detail-section-nav {
      flex-wrap: wrap;
      overflow-x: visible;
      padding-bottom: 4px;
    }
  }

  .listing-detail-page .detail-gallery-stage {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .listing-detail-page .detail-media-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .listing-detail-page .detail-gallery-main,
  .listing-detail-page .detail-gallery-main > .detail-gallery-hero-img {
    border-radius: 0;
  }

  .listing-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(240px, 56vw, 320px);
  }

  .listing-detail-page .detail-gallery-main.is-scroll-gallery .detail-gallery-arrow {
    display: inline-flex;
  }

  .listing-detail-page .detail-gallery-track {
    height: 100%;
  }

  .listing-detail-page .detail-portal-section .detail-media-card .detail-gallery-thumbs {
    display: none !important;
  }

  .listing-detail-page .detail-gallery-dots {
    display: none !important;
  }

  .listing-detail-page .detail-trust-strip {
    margin-bottom: 12px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .listing-detail-page .detail-trust-strip-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
  }

  .listing-detail-page .detail-trust-badges {
    width: 100%;
  }

  .listing-detail-page .detail-trust-badges .rv-check-badge,
  .listing-detail-page .detail-trust-badges .rv-visit-badge {
    width: fit-content;
    max-width: 100%;
  }

  .listing-detail-page .detail-trust-meta {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
  }

  .detail-rent-card-aside {
    display: none;
  }

  .detail-similar-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .detail-similar-carousel > * {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }
}

@media print {
  .site-header,
  .mobile-app-nav,
  .detail-top-bar,
  .detail-section-nav,
  .detail-action-bar,
  .detail-mobile-cta,
  .detail-gallery-thumbs,
  .detail-gallery-arrow,
  .detail-gallery-expand,
  .detail-gallery-dots,
  .detail-enquiry-dialog,
  [data-share-trigger],
  [data-share-native],
  [data-share-copy],
  [data-share-whatsapp],
  [data-share-email],
  [data-share-feedback],
  [data-enquiry-open],
  [data-enquiry-open-mobile],
  .detail-loading-skeleton,
  .detail-sample-banner,
  .detail-scroll-bar {
    display: none !important;
  }

  body.listing-detail-page {
    padding-bottom: 0;
    background: #fff;
    color: #111;
  }

  .detail-post-hero,
  .detail-two-col,
  .detail-legacy-hero,
  .detail-portal-layout {
    display: block !important;
  }

  .detail-portal-aside {
    break-inside: avoid;
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
  }

  .detail-media-card,
  .content-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .detail-enquiry-section {
    display: block !important;
  }

  .detail-gallery-main img {
    max-height: 320px;
    object-fit: cover;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    color: #555;
    word-break: break-all;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
}

/* Listings SERP + detail — shared Bayut-style control polish */
.bayut-filter-input-wrap,
.bayut-serp .filter-select select,
.bayut-area-page .filter-select select,
.bayut-map-filters .filter-select select,
.bayut-serp .listing-custom-select .custom-select-trigger,
.bayut-area-page .listing-custom-select .custom-select-trigger {
  border-radius: 8px;
}

.bayut-view-toggle__btn {
  min-height: 38px;
}

.bayut-serp__toolbar .bayut-sort .custom-select-trigger {
  border-radius: 8px;
}

.bayut-serp-error .bayut-btn,
.bayut-empty .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bayut-serp-error .bayut-btn,
.bayut-empty .bayut-btn {
  min-width: 132px;
}

.bayut-empty__actions {
  width: 100%;
}

.bayut-empty__save-search {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
}

.bayut-empty__route-hint {
  margin: 0.45rem 0 0;
  max-width: 40rem;
  color: #6a7380;
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Listings no-results panel: compact recovery block. */
body.listings-page [data-listings-empty] {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.listings-page [data-listings-empty] > h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #2c3440;
}

body.listings-page [data-listings-empty] > [data-empty-state-hint] {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5b6470;
}

body.listings-page [data-listings-empty] > * {
  width: 100%;
  max-width: 560px;
  margin-left: 0;
  margin-right: 0;
}

body.listings-page [data-listings-empty] .bayut-empty__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}

body.listings-page [data-listings-empty] .bayut-empty__save-search {
  grid-column: auto;
  width: 100%;
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
  min-height: 42px;
}

body.listings-page [data-listings-empty] .bayut-empty__save-search[hidden] ~ [data-personal-help] {
  grid-column: 1 / -1;
}

body.listings-page [data-listings-empty] .bayut-empty__actions .bayut-btn {
  width: 100%;
  margin: 0;
  justify-content: center;
  min-width: 0;
}

body.listings-page [data-listings-empty] .bayut-empty__route-hint {
  max-width: 560px;
}

@media (max-width: 900px) {
  body.listings-page [data-listings-empty] > * {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.listings-page [data-listings-empty] {
    margin-top: 10px;
    padding: 14px 14px 12px;
  }

  body.listings-page [data-listings-empty] .bayut-empty__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  body.listings-page [data-listings-empty] .bayut-empty__save-search {
    font-size: clamp(0.82rem, 3.3vw, 0.92rem);
  }

  body.listings-page [data-listings-empty] .bayut-empty__route-hint {
    overflow-wrap: anywhere;
  }
}

/* Listings empty state: recover first, nearby tertiary, then help CTAs. */
body.listings-page [data-listings-empty] {
  gap: 0;
}

body.listings-page [data-listings-empty] > .bayut-empty__recover-block,
body.listings-page [data-listings-empty] > .bayut-empty__help-block {
  width: 100%;
  max-width: 560px;
}

body.listings-page [data-listings-empty] .bayut-empty__recover-block > h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

body.listings-page [data-listings-empty] .bayut-empty__recover-block > [data-empty-state-hint] {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #667085;
}

body.listings-page [data-listings-empty] .bayut-empty__recover {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
}

body.listings-page [data-listings-empty] .bayut-empty__recover-primary {
  display: contents;
}

body.listings-page [data-listings-empty] .bayut-empty__recover-primary[hidden] {
  display: none !important;
}

body.listings-page [data-listings-empty] .bayut-empty__recover .bayut-empty__recover-btn,
body.listings-page [data-listings-empty] .bayut-empty__recover .bayut-btn--primary {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-inline: 0.95rem;
  font-weight: 750;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  box-shadow: 0 6px 14px rgba(10, 157, 106, 0.2);
}

body.listings-page [data-listings-empty] .bayut-empty__clear {
  flex: 0 1 auto;
  min-height: 40px;
  padding-inline: 0.85rem;
  font-weight: 600;
  color: #475467;
  border-color: #d0d5dd;
  background: #fff;
}

body.listings-page [data-listings-empty] .bayut-empty__nearby {
  margin: 12px 0 0;
}

body.listings-page [data-listings-empty] .bayut-empty__nearby-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #667085;
}

body.listings-page [data-listings-empty] .bayut-empty__nearby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.listings-page [data-listings-empty] .bayut-empty__nearby-chips .bayut-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 30px;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 550;
  border-radius: 999px;
  border-color: #e4e7ec;
  color: #475467;
  background: #f8fafc;
  box-shadow: none;
}

body.listings-page [data-listings-empty] .bayut-empty__help-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

body.listings-page [data-listings-empty] .bayut-empty__help-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #344054;
}

body.listings-page [data-listings-empty] .bayut-empty__actions--secondary {
  margin-top: 0;
}

body.listings-page [data-listings-empty] .bayut-empty__actions--secondary .bayut-btn {
  min-height: 38px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: none;
}

body.listings-page [data-listings-empty] .bayut-empty__save-search {
  border-color: rgba(10, 157, 106, 0.35);
  color: #0f5132;
  background: #f3fbf7;
}

body.listings-page [data-listings-empty] .bayut-empty__find-rental {
  color: #475467;
  border-color: #d0d5dd;
  background: #fff;
}

body.listings-page [data-listings-empty] .bayut-empty__route-hint {
  margin: 8px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #98a2b3;
}

@media (max-width: 760px) {
  body.listings-page [data-listings-empty] .bayut-empty__recover {
    flex-direction: column;
  }

  body.listings-page [data-listings-empty] .bayut-empty__recover .bayut-empty__recover-btn,
  body.listings-page [data-listings-empty] .bayut-empty__recover .bayut-btn--primary,
  body.listings-page [data-listings-empty] .bayut-empty__clear {
    width: 100%;
  }

  body.listings-page [data-listings-empty] .bayut-empty__help-block {
    margin-top: 12px;
    padding-top: 10px;
  }
}

.bayut-card__agent-actions .bayut-btn {
  width: 100%;
  padding-inline: 10px;
  font-size: 0.8rem;
}

.bayut-card__price-row {
  align-items: flex-start;
}

.detail-portal-aside .detail-enquire-cta,
.detail-portal-aside .button-secondary.button-full,
.detail-portal-aside [data-agent-profile-cta] {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--button-radius);
}

.detail-aside-secondary-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-aside-secondary-ctas > .button,
.detail-aside-secondary-ctas > a.button {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding-inline: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(0.74rem, 2.9vw, 0.88rem);
  font-weight: 700;
  border-radius: var(--button-radius);
  white-space: nowrap;
  text-align: center;
}

.detail-scroll-bar-enquire.button {
  flex: 0 0 auto;
  min-width: 5.5rem;
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.detail-copy-ref-btn {
  border-radius: 8px;
  min-height: 30px;
  padding: 5px 10px;
}

.detail-copy-ref-btn {
  border-radius: 12px;
}

/* Area landing — Bayut-style listings block */
.bayut-area-page {
  padding-top: 0;
  padding-bottom: var(--portal-page-bottom);
}

[data-area-page] > .bayut-area-page > .container {
  padding-top: 10px;
}

.area-page-body main[data-area-page] {
  padding-top: 14px;
}

[data-area-page].is-area-resolved .app-page-hero {
  display: none;
}

[data-area-page].is-area-resolved .bayut-area-serp__intro {
  margin-top: 0;
}

[data-area-page] [data-area-guide].compact-section,
[data-area-page] .area-guide-panel.compact-section {
  padding-top: 6px;
  padding-bottom: 6px;
}

.area-guide-panel {
  border: none;
  background: transparent;
}

.area-guide-panel__summary {
  display: flex;
  list-style: none;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
  padding: 12px 14px;
  max-width: var(--container-width, 1120px);
  width: calc(100% - 32px);
  color: var(--heading);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
}

.area-guide-panel__summary::-webkit-details-marker {
  display: none;
}

.area-guide-panel__summary::after {
  content: "+";
  color: #7a8797;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.area-guide-panel[open] .area-guide-panel__summary::after {
  content: "−";
}

.area-guide-panel__name {
  color: var(--primary);
}

.area-guide-panel__body {
  padding-top: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.area-guide-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.area-guide-panel__actions .bayut-btn {
  min-height: 38px;
}

[data-area-page] .area-guide-panel .content-card > p:not(.eyebrow):not(.small-note) {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #425466;
}

[data-area-page] .area-guide-panel .eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

[data-area-page] .area-guide-panel .check-list {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}

[data-area-page] .area-guide-panel .small-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #5c6773;
}

.bayut-area-nearby {
  margin-top: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
}

.bayut-area-nearby__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d3748;
}

.bayut-area-nearby__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bayut-area-nearby__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  color: #4b5f70;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.bayut-area-nearby__links a:hover {
  color: var(--primary);
  border-color: rgba(10, 157, 106, 0.35);
}

.bayut-area-filters .bayut-filter-field {
  flex: 1 1 140px;
}

@media (max-width: 899px) {
  .area-guide-panel__body {
    padding-top: 10px;
  }
}

@media (min-width: 900px) {
  .area-guide-panel__body {
    padding-top: 10px;
  }
}

@media (max-width: 719px) {
  .bayut-area-filters {
    padding: 10px 12px;
    gap: 10px;
  }

  .bayut-area-filters .bayut-filter-field {
    flex: 1 1 100%;
  }

  .bayut-area-serp__more-link {
    width: 100%;
    justify-content: center;
    padding-top: 2px;
  }
}

.bayut-area-page > .container > .prelaunch-panel {
  margin-bottom: 16px;
}

.bayut-area-serp {
  display: grid;
  gap: 14px;
}

.bayut-area-serp__intro {
  margin: 0 0 var(--portal-gap-intro);
}

.bayut-area-serp__intro .bayut-serp__title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
  color: var(--portal-text);
}

.bayut-area-serp__intro .bayut-serp__subtitle {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6a6a6a;
}

/* Rent Price Context V1 — editorial “Rental price perspective” */
.area-rental-snapshot {
  margin: 0 0 14px;
  padding: 16px 18px 14px;
  border: 1px solid #e4e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.area-rental-snapshot--perspective {
  border-top: 2px solid var(--primary);
}

.area-rental-snapshot__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--primary);
}

.area-rental-snapshot__title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--portal-text);
}

.area-rental-snapshot__lede {
  margin: 0 0 14px;
  max-width: 40rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
  color: #5b6570;
}

.area-rental-snapshot__groups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.area-rental-snapshot__group {
  padding: 12px 0;
  border-top: 1px solid #e8ecf1;
  min-width: 0;
}

.area-rental-snapshot__group:first-child {
  padding-top: 2px;
  border-top: 0;
}

.area-rental-snapshot__group-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--portal-text);
}

.area-rental-snapshot__metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0 0 8px;
  min-width: 0;
}

.area-rental-snapshot__metric--primary {
  margin-bottom: 10px;
}

.area-rental-snapshot__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: #6b7280;
}

.area-rental-snapshot__value {
  display: block;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--portal-text);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.area-rental-snapshot__value--secondary {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2f3742;
}

.area-rental-snapshot__unit {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #6b7280;
}

.area-rental-snapshot__meta {
  margin: 2px 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  color: #7b8794;
}

.area-rental-snapshot__note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e8ecf1;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #7b8794;
}

/* Mobile disclosure for additional comparisons (checkbox + label; no JS required). */
.area-rental-snapshot__more {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

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

.area-rental-snapshot__more-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid #e8ecf1;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
  user-select: none;
}

.area-rental-snapshot__more-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.12rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.area-rental-snapshot__more-toggle:focus-visible + .area-rental-snapshot__more-summary {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.area-rental-snapshot__more-toggle:checked + .area-rental-snapshot__more-summary::after {
  margin-top: 0.12rem;
  transform: rotate(-135deg);
}

.area-rental-snapshot__more-label--open {
  display: none;
}

.area-rental-snapshot__more-toggle:checked + .area-rental-snapshot__more-summary .area-rental-snapshot__more-label--closed {
  display: none;
}

.area-rental-snapshot__more-toggle:checked + .area-rental-snapshot__more-summary .area-rental-snapshot__more-label--open {
  display: inline;
}

.area-rental-snapshot__more-body {
  min-width: 0;
}

.area-rental-snapshot__more-body > .area-rental-snapshot__group:first-child {
  border-top: 1px solid #e8ecf1;
  padding-top: 12px;
}

@media (max-width: 767px) {
  .area-rental-snapshot__more-body {
    display: none;
  }

  .area-rental-snapshot__more-toggle:checked ~ .area-rental-snapshot__more-body {
    display: block;
  }
}

@media (min-width: 768px) {
  .area-rental-snapshot {
    padding: 18px 22px 16px;
  }

  .area-rental-snapshot__title {
    font-size: 1.2rem;
  }

  .area-rental-snapshot__value {
    font-size: 1.28rem;
  }

  .area-rental-snapshot__value--secondary {
    font-size: 1.05rem;
  }

  /* Desktop: every comparison visible; hide disclosure chrome. */
  .area-rental-snapshot__more-toggle,
  .area-rental-snapshot__more-summary {
    display: none;
  }

  .area-rental-snapshot__more-body {
    display: block;
  }

  .area-rental-snapshot__more-body > .area-rental-snapshot__group:first-child {
    border-top: 1px solid #e8ecf1;
  }
}

@media (min-width: 1280px) {
  .area-rental-snapshot {
    margin-bottom: 16px;
  }
}

@media (max-width: 767px) {
  .area-rental-snapshot {
    margin-bottom: 12px;
    padding: 13px 14px 12px;
  }

  .area-rental-snapshot__eyebrow {
    margin-bottom: 5px;
  }

  .area-rental-snapshot__title {
    margin-bottom: 5px;
    font-size: 1.05rem;
  }

  .area-rental-snapshot__lede {
    margin-bottom: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .area-rental-snapshot__group {
    padding: 10px 0;
  }

  .area-rental-snapshot__group-title {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .area-rental-snapshot__metric {
    margin-bottom: 6px;
  }

  .area-rental-snapshot__metric--primary {
    margin-bottom: 8px;
  }

  .area-rental-snapshot__value {
    font-size: 1.12rem;
  }

  .area-rental-snapshot__value--secondary {
    font-size: 0.94rem;
  }

  .area-rental-snapshot__meta {
    margin-top: 1px;
  }

  .area-rental-snapshot__more-summary {
    min-height: 44px;
    padding: 12px 0;
    margin-bottom: 2px;
  }

  .area-rental-snapshot__note {
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 2px;
  }
}

@media (max-width: 430px) {
  .area-rental-snapshot {
    padding: 12px 13px 11px;
    border-radius: 8px;
  }

  .area-rental-snapshot__lede {
    margin-bottom: 11px;
    line-height: 1.52;
    overflow-wrap: anywhere;
  }

  .area-rental-snapshot__value {
    font-size: 1.08rem;
  }

  .area-rental-snapshot__value--secondary {
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) {
  .area-rental-snapshot__eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
  }

  .area-rental-snapshot__title {
    font-size: 1.02rem;
    margin-bottom: 4px;
  }

  .area-rental-snapshot__lede {
    font-size: 0.78rem;
    margin-bottom: 10px;
    line-height: 1.55;
  }

  .area-rental-snapshot__group-title {
    font-size: 0.88rem;
  }

  .area-rental-snapshot__value {
    font-size: 1.05rem;
  }

  .area-rental-snapshot__more-summary {
    font-size: 0.78rem;
  }
}

.bayut-area-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
}

.bayut-area-filters .bayut-filter-field {
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
}

.bayut-area-filters .bayut-filter-row {
  display: flex;
  gap: 8px;
}

.bayut-area-serp__more-link {
  flex: 0 0 auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.bayut-area-serp__more-link:hover {
  text-decoration: underline;
}

.bayut-area-filters .bayut-filter-field.filter-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bayut-area-filters .filter-select--inline {
  flex: 1 1 0;
  min-width: 0;
}

.bayut-area-page .listing-custom-select {
  width: 100%;
}

.bayut-area-page .listing-custom-select .custom-select-trigger {
  border-radius: 8px;
}

.bayut-area-page .listing-custom-select.is-open {
  z-index: 80;
}

.bayut-area-filters .listing-custom-select .custom-select-menu {
  z-index: 90;
}

.bayut-area-page .bayut-serp__toolbar {
  margin-top: 0;
  margin-bottom: 0;
}

.bayut-area-page .bayut-serp__quick-chips {
  margin: 0;
}

.bayut-area-page .bayut-serp__active-filters {
  margin: 0;
}

.bayut-area-page .bayut-serp__results {
  margin-top: 8px;
}

.bayut-area-page .bayut-pagination {
  margin-top: 4px;
}

.bayut-area-page .bayut-empty {
  margin-top: 4px;
}

.bayut-area-page .bayut-empty .button-group {
  justify-content: flex-start;
  gap: 10px;
}

@media (max-width: 719px) {
  [data-area-page] > .bayut-area-page > .container {
    padding-top: 8px;
  }

  .bayut-area-filters {
    padding: 10px 12px;
    gap: 10px;
  }

  .bayut-area-filters .bayut-filter-field {
    flex: 1 1 100%;
  }

  .bayut-area-serp__more-link {
    width: 100%;
    justify-content: center;
    padding-top: 2px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .bayut-area-filters > label:has(#area-type-filter),
  .bayut-area-filters > label:has(#area-furnished-filter) {
    flex: 1 1 12rem;
    max-width: 16rem;
  }

  .bayut-area-filters > label:has(#area-bedrooms-filter),
  .bayut-area-filters > label:has(#area-bathrooms-filter) {
    flex: 0 1 9rem;
    max-width: 10.5rem;
  }
}

@media (min-width: 1024px) {
  .bayut-area-filters {
    display: grid;
    grid-template-columns:
      minmax(8.5rem, 1.15fr)
      minmax(16rem, 2.2fr)
      minmax(7rem, 0.68fr)
      minmax(7rem, 0.68fr)
      minmax(8.5rem, 1.05fr)
      max-content;
    align-items: end;
  }

  .bayut-area-filters > .bayut-filter-field,
  .bayut-area-filters > .bayut-area-serp__more-link {
    flex: none;
    width: auto;
    min-width: 0;
  }

  .bayut-area-filters > .bayut-filter-field--price {
    align-self: start;
  }

  .bayut-area-filters .bayut-filter-label {
    display: block;
    max-width: 100%;
    white-space: normal;
  }
}

.bayut-area-filters .listing-custom-select .custom-select-trigger,
.bayut-area-filters select,
.bayut-serp-page .bayut-quick-chip,
.bayut-area-page .bayut-quick-chip {
  min-height: 38px;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .bayut-area-page {
    padding-bottom: 8px;
  }

  .area-page-body .site-footer {
    padding-bottom: var(--mobile-nav-clearance);
  }

  .bayut-area-page .bayut-serp__results {
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .bayut-area-filters .custom-select-trigger,
  .bayut-area-filters .listing-custom-select .custom-select-trigger {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  .bayut-area-page .bayut-card {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (min-width: 900px) {
  [data-area-page] > .bayut-area-page > .container {
    padding-top: 10px;
  }

  .bayut-area-serp {
    gap: 14px;
  }

  .bayut-area-page .bayut-serp__results {
    margin-top: 8px;
  }
}

.bayut-serp__map-panel {
  display: none;
}

.bayut-serp__map-host {
  width: 100%;
  min-height: 420px;
}

.bayut-serp__map-host.bayut-map-leaflet {
  position: relative;
  inset: auto;
}

.bayut-serp__map-note {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.35;
}

.bayut-serp__map-error {
  margin: 8px 0 0;
  color: #8a4b12;
}

@media (max-width: 960px) {
  body.listings-page.is-mobile-map-view {
    overflow: hidden;
    height: 100svh;
    height: 100dvh;
  }

  body.listings-page.is-mobile-map-view .site-footer {
    display: none !important;
  }

  body.listings-page.is-mobile-map-view .portal-breadcrumb,
  body.listings-page.is-mobile-map-view .bayut-prelaunch,
  body.listings-page.is-mobile-map-view [data-prelaunch-empty] {
    display: none !important;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__intro,
  body.listings-page.is-mobile-map-view .bayut-serp__quick-chips,
  body.listings-page.is-mobile-map-view .bayut-serp__active-filters,
  body.listings-page.is-mobile-map-view .bayut-serp__results,
  body.listings-page.is-mobile-map-view .bayut-pagination,
  body.listings-page.is-mobile-map-view .bayut-popular,
  body.listings-page.is-mobile-map-view .bayut-serp-loading,
  body.listings-page.is-mobile-map-view .bayut-serp-error,
  body.listings-page.is-mobile-map-view .bayut-empty,
  body.listings-page.is-mobile-map-view .bayut-mobile-bar {
    display: none !important;
  }

  body.listings-page.is-mobile-map-view main.bayut-serp {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-height) - var(--mobile-nav-clearance, calc(68px + env(safe-area-inset-bottom, 0px))));
    height: calc(100dvh - var(--header-height) - var(--mobile-nav-clearance, calc(68px + env(safe-area-inset-bottom, 0px))));
    min-height: 0;
    padding: 8px 0 0;
    overflow: hidden;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__wrap {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding-inline: 12px;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__layout {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: 100%;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__main {
    display: flex;
    position: relative;
    flex: 1 1 auto;
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__toolbar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 2;
    flex: 0 0 auto;
    order: 0;
    width: 100%;
    max-width: none;
    margin: 0 0 6px;
    padding: 4px;
    gap: 0;
    min-height: 0;
    background: #fff;
    border-color: #dfe6ee;
    border-radius: 10px;
    box-shadow: none;
    backdrop-filter: none;
  }

  /* Back overlays the map surface (not browser history). */
  body.listings-page.is-mobile-map-view .bayut-serp__map-back {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 650;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 12px;
    margin: 0;
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.12);
  }

  body.listings-page.is-mobile-map-view .bayut-serp__count {
    display: none;
  }

  /* Map mode: Sort is irrelevant and crowds the map — hide completely. */
  body.listings-page.is-mobile-map-view .bayut-serp__toolbar .bayut-sort {
    display: none !important;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__toolbar-actions {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: stretch;
    gap: 0;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__toolbar-actions .bayut-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
    border-radius: 6px;
  }

  /* Map chrome: List | Map only (Grid stays available outside Map mode). */
  body.listings-page.is-mobile-map-view .bayut-serp__toolbar-actions .bayut-view-toggle__btn[data-view-toggle="grid"] {
    display: none !important;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__toolbar-actions [data-saved-search-cta] {
    display: none !important;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__toolbar-actions .bayut-view-toggle__btn {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-note {
    display: block !important;
    flex: 0 0 auto;
    order: 1;
    margin: 0 0 8px;
    padding: 0 2px;
    color: #6b7280;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-panel {
    display: flex !important;
    position: relative;
    flex: 1 1 auto;
    order: 2;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-panel .bayut-map-disclaimer {
    display: block;
    position: absolute;
    left: 10px;
    right: 58px;
    bottom: 8px;
    z-index: 500;
    margin: 0;
    padding: 6px 8px;
    color: #4b5563;
    font-size: 0.62rem;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 224, 232, 0.9);
    border-radius: 6px;
    pointer-events: none;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eef4;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host.is-map-pending::before {
    content: "Loading map…";
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    background: linear-gradient(180deg, #eef3f8 0%, #e4ebf2 100%);
    pointer-events: none;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host.is-map-pending .leaflet-container {
    opacity: 0.35;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host .leaflet-container {
    height: 100% !important;
    width: 100%;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host .leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.18);
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host .leaflet-bottom.leaflet-right .leaflet-control-zoom {
    margin-bottom: 10px;
    margin-right: 10px;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host .leaflet-control-zoom a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-host .leaflet-control-attribution {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.92);
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-error {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
  }
}

/* Bayut-style listings map (map.html) */
.bayut-map-body {
  overflow-x: hidden;
  background: var(--portal-page-bg);
}

.bayut-map-body .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #e3e3e3;
}

/* Map keeps the shared marketplace bottom nav on mobile only (desktop stays hidden
   via the base .mobile-app-nav { display:none }). Lift Leaflet chrome / disclaimer
   above --mobile-nav-clearance so zoom/attribution remain usable. */
@media (max-width: 900px) {
  .bayut-map-body .mobile-app-nav {
    display: grid;
  }

  .bayut-map-body .leaflet-bottom {
    bottom: calc(var(--mobile-nav-clearance, 88px) + 8px) !important;
  }

  .bayut-map-body .upm-map-disclaimer,
  .bayut-map-body .upm-live .upm-map-disclaimer {
    bottom: calc(var(--mobile-nav-clearance, 88px) + 10px);
  }

  .bayut-map-body .site-footer {
    padding-bottom: var(--mobile-nav-clearance, 88px);
  }
}

main.bayut-map-page {
  display: block;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
}

.bayut-map-shell {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  background: #f4f6f8;
}

.bayut-map-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  background: #fff;
  border-right: 1px solid #e8edf2;
}

/* Desktop: fill remaining viewport after natural header height (no fixed header subtraction). */
@media (min-width: 961px) {
  .bayut-map-body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .bayut-map-body .site-header {
    flex: 0 0 auto;
  }

  main.bayut-map-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .bayut-map-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .bayut-map-sidebar {
    max-height: none;
    height: 100%;
    min-height: 0;
  }

  .bayut-map-panel {
    min-height: 0;
    height: 100%;
  }
}

.bayut-map-sidebar__head {
  flex: 0 0 auto;
  padding: var(--portal-breadcrumb-top) 14px 10px;
  border-bottom: 1px solid #eef2f6;
}

.bayut-map-back-btn {
  min-height: 32px;
  padding: 0 10px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.bayut-map-back-btn--sidebar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bayut-map-back-btn--overlay {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-height: 34px;
  margin: 0;
}

.bayut-map-sidebar__title {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--portal-text);
}

.bayut-map-sidebar__summary {
  margin: 0;
  color: #6a6a6a;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.bayut-map-site-footer {
  flex: 0 0 auto;
  padding: 10px 14px 12px;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.bayut-map-site-footer p {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 0.72rem;
  line-height: 1.45;
}

.bayut-map-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.bayut-map-site-footer__links a {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.bayut-map-site-footer__links a:hover {
  text-decoration: underline;
}

.bayut-map-body .site-footer--map-page {
  border-top: 1px solid var(--portal-border);
}

.bayut-map-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f6;
}

.bayut-map-filters .bayut-filter-field {
  margin: 0;
  min-width: 0;
}

.bayut-map-filters__budget {
  grid-column: 1 / -1;
}

.bayut-map-filters__furnishing {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.bayut-map-filters__furnishing .bayut-filter-label {
  display: block;
  margin: 0;
}

.bayut-map-filters__furnishing .bayut-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.bayut-map-filters__furnishing .bayut-filter-pill {
  min-height: 32px;
  padding: 5px 10px;
  line-height: 1.2;
}

.bayut-map-more-filters {
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}

.bayut-map-more-filters__summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0;
  color: #087a52;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.bayut-map-more-filters__summary::-webkit-details-marker {
  display: none;
}

.bayut-map-more-filters__summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.16s ease;
}

.bayut-map-more-filters[open] > .bayut-map-more-filters__summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.bayut-map-more-filters__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
}

.bayut-map-more-filters__search .bayut-filter-input-wrap,
.bayut-map-more-filters__size .listing-custom-select,
.bayut-map-more-filters__size select {
  width: 100%;
}

.bayut-map-more-filters__search .bayut-filter-input-wrap {
  min-height: 34px;
  border-radius: 8px;
}

.bayut-map-more-filters__search input {
  min-width: 0;
  font-size: 0.84rem;
}

.bayut-map-filters .bayut-filter-row {
  display: flex;
  gap: 8px;
}

.bayut-map-filters .filter-select--inline {
  flex: 1 1 0;
  min-width: 0;
}

.bayut-map-page .listing-custom-select {
  width: 100%;
}

.bayut-map-page .listing-custom-select .custom-select-trigger {
  border-radius: 8px;
}

.bayut-map-sidebar__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px 0;
}

.bayut-map-sidebar__chips .bayut-quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.bayut-map-sidebar__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px;
}

.bayut-map-sidebar__toolbar .bayut-btn {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.8rem;
}

.bayut-map-sidebar__toolbar--actions[hidden] {
  display: none !important;
}

.bayut-map-sidebar__toolbar--actions:not([hidden]) {
  padding-top: 0;
}

.bayut-map-card-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.bayut-map-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bayut-map-card.is-active {
  border-color: rgba(10, 157, 106, 0.45);
  box-shadow: 0 0 0 1px rgba(10, 157, 106, 0.14);
}

.bayut-map-card__media {
  display: block;
  overflow: hidden;
  width: 96px;
  height: 72px;
  border-radius: 6px;
  background: #eef2f6;
}

.bayut-map-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bayut-map-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f4ef, #d7ebe3);
}

.bayut-map-card__body {
  min-width: 0;
}

.bayut-map-card__price {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.2;
}

.bayut-map-card__price span {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 600;
}

.bayut-map-card__title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.bayut-map-card__title a {
  color: var(--heading);
  text-decoration: none;
}

.bayut-map-card__title a:hover {
  color: var(--primary);
}

.bayut-map-card__meta {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.35;
}

.bayut-map-card__focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--primary);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  background: #f7faf9;
  border: 1px solid rgba(10, 157, 106, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.bayut-map-card__focus:hover {
  background: #eef8f3;
}

.bayut-map-empty {
  flex: 1 1 auto;
  padding: 20px 14px;
}

.bayut-map-empty h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.bayut-map-empty p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 0.88rem;
}

.bayut-map-panel {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  min-width: 0;
}

.bayut-map-leaflet {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #dfe8e3;
}

/* Re-assert desktop flex fill after panel base min-height (cascade safety). */
@media (min-width: 961px) {
  .bayut-map-shell {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .bayut-map-sidebar {
    max-height: none;
    height: 100%;
    min-height: 0;
  }

  .bayut-map-panel {
    min-height: 0;
    height: 100%;
  }
}

.bayut-map-leaflet .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.12);
}

.bayut-map-disclaimer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  color: #425466;
  font-size: 0.72rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8edf2;
  border-radius: 8px;
  pointer-events: none;
}

.bayut-map-pin-wrap {
  background: transparent;
  border: none;
}

.bayut-map-pin-marker {
  /* Centre spot on lat/lng; padding expands mobile tap target without moving visual. */
  transform: translate(-50%, -50%);
  padding: 14px;
  margin: -14px;
  box-sizing: content-box;
  cursor: pointer;
}

.bayut-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  line-height: 1;
  white-space: nowrap;
  background: #0a9d6a;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.bayut-map-pin.is-active {
  background: #066843;
  border-color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
  transform: scale(1.08);
}

/* Public map resting / hover / active spots (circular — not elongated bars). */
.bayut-map-pin--spot,
.bayut-map-pin--dot {
  width: 12px;
  min-width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #0a9d6a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transform: none;
}

.bayut-map-pin--spot.is-active,
.bayut-map-pin--spot.is-hover,
.bayut-map-pin--dot.is-active,
.bayut-map-pin--dot.is-hover {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 50%;
  background: #066843;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  transform: scale(1.06);
}

/* Focused listing: circular spot + compact price chip (same visual family). */
.bayut-map-pin--selected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.bayut-map-pin--selected .bayut-map-pin__spot {
  width: 14px;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #066843;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bayut-map-pin--selected .bayut-map-pin__price {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  background: #066843;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.bayut-map-pin__label {
  letter-spacing: 0.01em;
}

.bayut-map-filters .filter-select select,
.bayut-map-page .listing-custom-select .custom-select-trigger {
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.bayut-map-filters .bayut-filter-label {
  font-size: 0.76rem;
}

@media (max-width: 960px) {
  .bayut-map-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .bayut-map-sidebar {
    order: 2;
    max-height: none;
    border-right: none;
    border-top: none;
  }

  .bayut-map-panel {
    order: 2;
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .bayut-map-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .bayut-map-filters__budget,
  .bayut-map-filters__furnishing,
  .bayut-map-more-filters {
    grid-column: 1 / -1;
  }

  .bayut-map-filters__furnishing .bayut-filter-pills {
    gap: 6px;
  }

  .bayut-map-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .bayut-map-card__media {
    width: 84px;
    height: 64px;
  }
}

/* Map page polish — active filters, mobile + popups */
.bayut-map-empty[hidden] {
  display: none !important;
}

.bayut-map-active-filters {
  flex: 0 0 auto;
  margin: 0 14px var(--portal-gap-filters);
  padding: 0;
}

.bayut-map-filters-panel {
  display: block;
  flex: 0 0 auto;
  margin: var(--portal-gap-toolbar) 14px var(--portal-gap-filters);
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: #fafbfc;
}

.bayut-map-filters-panel .bayut-map-filters {
  border-bottom: none;
  padding: 12px 14px 10px;
}

.bayut-map-filters-panel .bayut-map-sidebar__chips {
  padding: 8px 14px 12px;
  border-top: 1px solid #eef2f6;
}

.bayut-map-results {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  border-top: 1px solid #eef2f6;
  background: #fff;
}

.bayut-map-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 14px 6px;
}

.bayut-map-results__count {
  margin: 0;
  color: #425466;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.bayut-map-results__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.bayut-map-card-list {
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 157, 106, 0.45) #eef2f6;
}

.bayut-map-card-list::-webkit-scrollbar {
  width: 8px;
}

.bayut-map-card-list::-webkit-scrollbar-thumb {
  background: rgba(10, 157, 106, 0.4);
  border-radius: 999px;
}

.bayut-map-card__badges {
  margin: 0 0 6px;
}

.bayut-map-card__no-pin {
  display: inline-block;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}

.bayut-map-mobile-toggle {
  display: none;
}

.bayut-map-mobile-chrome {
  display: none;
}

.bayut-map-mobile-note {
  margin: 0;
  padding: 0 14px 8px;
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.35;
}

.bayut-map-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
}

.bayut-map-leaflet-popup .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
}

.bayut-map-popup__media {
  display: block;
  height: 88px;
  overflow: hidden;
  background: #eef2f6;
}

.bayut-map-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bayut-map-popup__body {
  padding: 10px 12px 12px;
}

.bayut-map-popup__price {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.bayut-map-popup__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.bayut-map-popup__link {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 960px) {
  .bayut-map-back-btn--overlay {
    display: inline-flex;
    align-items: center;
  }

  .bayut-map-mobile-chrome {
    display: block;
    order: 0;
    grid-column: 1 / -1;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
  }

  .bayut-map-mobile-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 14px 6px;
  }

  .bayut-map-mobile-toggle__btn {
    min-height: 38px;
    padding: 0 12px;
    color: #425466;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    cursor: pointer;
  }

  .bayut-map-mobile-toggle__btn.is-active {
    color: #087a52;
    background: #eef8f3;
    border-color: rgba(10, 157, 106, 0.35);
  }

  .bayut-map-shell.is-map-view {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .bayut-map-shell.is-map-view .bayut-map-sidebar {
    display: none;
  }

  .bayut-map-shell.is-map-view .bayut-map-panel {
    order: 2;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    height: calc(100dvh - var(--header-height) - 88px);
    height: calc(100vh - var(--header-height) - 88px);
  }

  .bayut-map-shell.is-map-view .bayut-map-leaflet {
    flex: 1 1 auto;
    min-height: 420px;
  }

  .bayut-map-shell.is-map-view.is-map-empty {
    position: relative;
  }

  .bayut-map-shell.is-map-view.is-map-empty .bayut-map-sidebar {
    display: flex;
    position: absolute;
    z-index: 650;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: calc(100% - 24px);
    max-height: min(52dvh, 360px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e8edf2;
    border-right: 1px solid #e8edf2;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.16);
  }

  .bayut-map-shell.is-map-view.is-map-empty .bayut-map-sidebar > :not(.bayut-map-empty) {
    display: none !important;
  }

  .bayut-map-shell.is-map-view.is-map-empty .bayut-map-empty {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .bayut-map-shell.is-map-view.is-map-empty .bayut-map-empty .button-group {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .bayut-map-shell.is-map-view.is-map-empty .bayut-map-empty .bayut-btn {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .bayut-map-shell.is-list-view .bayut-map-panel {
    display: none;
  }

  .bayut-map-shell.is-list-view .bayut-map-sidebar {
    order: 2;
    max-height: none;
    border-top: none;
  }
}

/* Map polish — sticky head, card index, pin hover, results actions */
.bayut-map-results__head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bayut-map-results__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bayut-map-results__list-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  color: #425466;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.bayut-map-results__list-link:hover {
  color: var(--primary);
  background: #f7faf9;
}

.bayut-map-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.bayut-map-card__index {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bayut-map-card__topline .bayut-map-card__badges,
.bayut-map-card__topline .bayut-card__badges {
  margin: 0;
}

.bayut-map-pin.is-hover:not(.bayut-map-pin--spot):not(.bayut-map-pin--dot):not(.bayut-map-pin--selected) {
  background: #0cbf7f;
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
}

.bayut-map-pin--spot.is-hover,
.bayut-map-pin--dot.is-hover {
  background: #0cbf7f;
}

.bayut-map-card:hover,
.bayut-map-card:focus-within {
  border-color: rgba(10, 157, 106, 0.28);
}

/* Map filters — prevent dropdown clipping in sidebar */
.bayut-map-filters-panel,
.bayut-map-filters-panel .bayut-map-filters,
.bayut-map-filters .filter-select,
.bayut-map-filters .listing-custom-select,
.bayut-map-more-filters,
.bayut-map-more-filters__body {
  overflow: visible;
}

.bayut-map-filters .listing-custom-select.is-open {
  z-index: 120;
}

.bayut-map-filters .listing-custom-select .custom-select-menu {
  z-index: 130;
  max-height: min(320px, 52vh);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.bayut-map-filters .listing-custom-select .custom-select-menu button {
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
}

/* Desktop map sidebar: fixed menu escapes overflow-y scroll clip (coords via JS). */
.bayut-map-filters .listing-custom-select .custom-select-menu.is-map-sidebar-fixed {
  position: fixed;
  right: auto;
  z-index: 400;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 961px) {
  .bayut-map-sidebar__head {
    padding: 8px 14px 6px;
  }

  .bayut-map-back-btn {
    min-height: 30px;
    margin-bottom: 6px;
  }

  .bayut-map-sidebar__title {
    margin-bottom: 2px;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.18;
  }

  .bayut-map-filters-panel {
    margin: 8px 14px;
  }

  .bayut-map-filters-panel .bayut-map-filters {
    gap: 8px;
    padding: 8px 12px 6px;
  }

  .bayut-map-filters-panel .bayut-map-sidebar__chips {
    gap: 6px;
    padding: 6px 12px 8px;
  }

  .bayut-map-filters .filter-select select,
  .bayut-map-page .listing-custom-select .custom-select-trigger,
  .bayut-map-sidebar__toolbar .bayut-btn,
  .bayut-map-sidebar__chips .bayut-quick-chip {
    min-height: 34px;
  }

  /* Whole sidebar scrolls as one column (head → filters → results → cards). */
  .bayut-map-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(10, 157, 106, 0.45) #eef2f6;
  }

  .bayut-map-results {
    flex: 0 0 auto;
    min-height: auto;
  }

  .bayut-map-results__viewport {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  .bayut-map-card-list,
  .bayut-map-results__viewport > .bayut-map-card-list {
    flex: 0 0 auto;
    min-height: auto;
    height: auto;
    overflow: visible;
  }
}

/* Final hard overrides for mobile polish consistency */
@media (max-width: 900px) {
  .bayut-mobile-bar__sort.filter-select {
    display: block !important;
    grid-column: auto !important;
    margin: 0 !important;
  }

  .bayut-mobile-bar__sort .custom-select-trigger,
  .bayut-mobile-bar__sort .listing-custom-select .custom-select-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 34px 0 12px !important;
    color: #333 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    background: #fff !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: var(--button-radius) !important;
    box-shadow: none !important;
  }

  .bayut-mobile-bar__sort .listing-custom-select.is-filtered .custom-select-trigger,
  .bayut-mobile-bar__sort .listing-custom-select.is-active-value .custom-select-trigger {
    padding-left: 28px !important;
  }

  .bayut-mobile-bar__sort .custom-select-trigger span::before,
  .bayut-mobile-bar__sort .listing-custom-select .custom-select-trigger span::before {
    content: none !important;
    display: none !important;
  }

  .bayut-mobile-bar__sort .listing-custom-select {
    position: relative;
    z-index: 160;
  }

  .bayut-mobile-bar__sort .listing-custom-select .custom-select-menu {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 170 !important;
    max-height: min(220px, 40vh) !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 560px) {
  .bayut-map-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .bayut-map-filters__budget {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .detail-title-block h1 {
    line-height: 1.25;
  }

  .detail-top-bar {
    gap: 6px 10px;
    margin-bottom: 10px;
  }

  .detail-top-bar .detail-icon-action__label {
    display: none;
  }

  .detail-top-bar .detail-icon-action {
    padding: 6px 8px;
  }
}

/* ============================================================
   Bayut typography system — Trebuchet MS primary via --font-ui, 400–700 scale
   ============================================================ */

.bayut-serp-page:not(.home-page),
.listing-detail-page,
.bayut-map-body,
.agent-profile-body {
  font-size: var(--type-body-portal);
  line-height: var(--type-line-portal);
  color: var(--portal-text);
}

.bayut-serp-page:not(.home-page) h1,
.bayut-serp-page:not(.home-page) h2,
.bayut-serp-page:not(.home-page) h3,
.listing-detail-page h1,
.listing-detail-page h2,
.listing-detail-page h3,
.bayut-map-body h1,
.bayut-map-body h2,
.bayut-map-body h3,
.agent-profile-body h1,
.agent-profile-body h2,
.agent-profile-body h3 {
  color: var(--portal-text);
  font-family: var(--font-body);
  font-weight: var(--weight-title);
  letter-spacing: -0.01em;
}

.bayut-serp-page:not(.home-page) .section-heading h2,
.bayut-serp-page .bayut-serp__title,
.bayut-serp-page .areas-index-page h1,
.bayut-area-page .bayut-serp__title {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
}

.bayut-serp-page:not(.home-page) .section-heading p:not(.eyebrow),
.bayut-serp-page .bayut-serp__subtitle,
.bayut-serp-page .home-section-note,
.bayut-serp-page .small-note,
.listing-detail-page .small-note,
.bayut-map-body .small-note {
  color: var(--portal-muted);
  font-size: 0.875rem;
  line-height: var(--type-line-portal);
}

.listing-detail-page .small-note a,
.listing-detail-page .compliance-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(10, 157, 106, 0.35);
}

.listing-detail-page .small-note a:hover,
.listing-detail-page .compliance-note a:hover,
.listing-detail-page .small-note a:focus-visible,
.listing-detail-page .compliance-note a:focus-visible {
  color: var(--primary-hover);
  text-decoration-color: currentColor;
}

.bayut-serp-page:not(.home-page) .eyebrow,
.bayut-serp-page .bayut-serp .eyebrow,
.bayut-serp-page .prelaunch-panel .eyebrow,
.listing-detail-page .eyebrow,
.bayut-map-body .eyebrow {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
  text-transform: none;
}

.bayut-serp-page .bayut-breadcrumb,
.listing-detail-page .portal-breadcrumb,
.listing-detail-page .detail-breadcrumb,
.bayut-map-body .bayut-breadcrumb {
  font-size: 0.8rem;
  font-weight: var(--weight-body);
}

.bayut-serp-page .bayut-card__title,
.bayut-serp-page .bayut-card__specs,
.bayut-serp-page .bayut-card__meta,
.bayut-serp-page .bayut-card__location,
.listing-detail-page .detail-portal-body,
.listing-detail-page .detail-spec-list,
.listing-detail-page .detail-facts-grid {
  font-family: var(--font-body);
}

.bayut-serp-page .bayut-quick-chip,
.bayut-serp-page .bayut-tag,
.bayut-serp-page .bayut-view-toggle__btn,
.bayut-serp-page .bayut-page-btn,
.bayut-map-body .bayut-quick-chip,
.bayut-map-body .bayut-tag {
  font-family: var(--font-body);
  font-weight: var(--weight-label);
  letter-spacing: normal;
}

.bayut-serp-page .bayut-serp__count,
.bayut-serp-page .bayut-filter-label,
.bayut-serp-page .bayut-filter-clear,
.bayut-serp-page .bayut-sort__label {
  font-weight: var(--weight-label);
}

/* Home — hero display without ultra-bold marketing scale */
.home-page.bayut-serp-page {
  font-size: var(--type-body);
  line-height: var(--type-line);
}

.home-page .hero-copy h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-page .section-heading h2,
.home-page .home-section h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
}

.home-page .eyebrow {
  color: var(--portal-muted);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
  text-transform: none;
}

.home-page .home-section-note,
.home-page .compact-heading p:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.home-page .search-card h2 {
  font-size: 1.05rem;
  font-weight: var(--weight-title);
}

/* Legal / policy pages — document reading scale */
.legal-body.bayut-serp-page {
  font-size: var(--type-body-portal);
  line-height: 1.55;
}

.legal-body h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: var(--weight-title);
  line-height: 1.25;
  margin-bottom: 14px;
}

.legal-body h2 {
  font-size: 1.125rem;
  font-weight: var(--weight-title);
  margin-top: 1.5rem;
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: var(--weight-title);
}

.legal-body p,
.legal-body li {
  color: var(--portal-text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.legal-body .eyebrow {
  color: var(--portal-muted);
}

/* Trust / contact content pages on portal shell */
.safety-body .feature-panel h2,
.verification-body .feature-panel h2,
.contact-body .content-card h2 {
  font-size: 1.125rem;
  font-weight: var(--weight-title);
}

.safety-body .feature-panel p,
.verification-body .feature-panel p,
.contact-body .content-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Footer typography alignment */
.site-footer,
.site-footer p,
.site-footer a {
  font-size: 0.875rem;
  line-height: 1.45;
}

.site-footer h3 {
  font-size: 0.875rem;
  font-weight: var(--weight-title);
  letter-spacing: normal;
}

/* Form labels — portal forms */
.bayut-serp-page label,
.listing-detail-page label,
.submit-listing-body label,
.contact-body label {
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  letter-spacing: normal;
}

.listing-detail-page .detail-rent-meta,
.listing-detail-page .detail-rent-yearly,
.listing-detail-page .detail-aside-lister-panel__note {
  font-size: 0.875rem;
  line-height: var(--type-line-portal);
}

.agent-profile-body,
.agents-directory-body {
  font-size: var(--type-body-portal);
  line-height: var(--type-line-portal);
  color: var(--portal-text);
}

/* ============================================================
   Typography sweep — final enforcement (Bayut parity)
   ============================================================ */

.bayut-serp-page,
.listing-detail-page,
.bayut-map-body,
.agent-profile-body,
.agents-directory-body {
  --heading: var(--portal-text);
  --text: var(--portal-text);
  --muted: var(--portal-muted);
}

/* Title-weight recovery after global 800→label pass */
h1,
h2,
h3,
.bayut-serp__title,
.bayut-card__title,
.bayut-card__price strong,
.detail-title-block h1,
.detail-rent-amount,
.agent-profile-name,
.agents-directory-card__name,
.agent-profile-panel__title,
.agent-profile-listings__title,
.areas-index-section__title,
.areas-index-map-panel__title,
.property-title-row h2,
.home-page .hero-copy h1,
.home-page .section-heading h2 {
  font-weight: var(--weight-title);
}

.agent-profile-panel__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--weight-title);
  color: var(--portal-text);
}

.agent-profile-listings__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--portal-text);
}

.agent-profile-tagline,
.agent-profile-panel p,
.agents-directory-card__meta,
.agents-directory-card__focus {
  color: var(--portal-muted);
  font-size: 0.875rem;
  line-height: var(--type-line-portal);
}

.agents-directory-card__response {
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
}

.rv-check-badge__text strong,
.rv-visit-badge__text strong {
  font-weight: var(--weight-title);
  letter-spacing: normal;
}

.property-title-row p,
.listing-reference,
.listing-update-link,
.how-note,
.how-step,
.launch-chip-grid span {
  font-weight: var(--weight-label);
  letter-spacing: normal;
  text-transform: none;
}

.audience-card h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: var(--weight-title);
  line-height: 1.2;
}

.detail-amenity-group__title {
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  color: var(--portal-muted);
}


.chip,
.pill,
.status-badge,
.card-status,
.bayut-quick-chip,
.bayut-tag,
.bayut-filter-label,
.bayut-filter-clear,
.form-progress,
.nav-menu a,
.mobile-app-nav a {
  letter-spacing: normal;
  text-transform: none;
}

/* Footer — keep light text on dark ink background across portal pages */
.site-footer,
.site-footer p,
.site-footer .footer-bottom p,
.site-footer .footer-note {
  color: rgba(255, 255, 255, 0.74);
}

.site-footer .footer-link-groups h3 {
  color: #ffffff;
}

.site-footer .footer-link-groups a,
.site-footer .footer-brand a {
  color: rgba(255, 255, 255, 0.85);
}

/* Footer social monochrome closeout V3 — high specificity beats .footer-link-groups a { display:block } */
.site-footer .footer-link-groups .footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.site-footer .footer-link-groups .footer-social > a {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: opacity 0.15s ease;
}

.site-footer .footer-link-groups .footer-social > a:hover {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  opacity: 1;
  transform: none;
  filter: none;
}

.site-footer .footer-link-groups .footer-social > a:focus-visible {
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.site-footer .footer-link-groups .footer-social > a .footer-social__img {
  display: block;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.site-footer .footer-link-groups .footer-social > a .footer-social__img--facebook {
  width: 20px;
  height: 20px;
}

.site-footer .footer-link-groups .footer-social > a .footer-social__img--instagram {
  width: 22px;
  height: 22px;
}

.site-footer .footer-link-groups .footer-social > a .footer-social__img--linkedin {
  width: 22px;
  height: 22px;
}

.site-footer .footer-link-groups .footer-social > a .footer-social__img--youtube {
  width: 23px;
  height: 23px;
}

.site-footer .footer-link-groups .footer-social > a .footer-social__img--tiktok {
  width: 21px;
  height: 21px;
}

.site-footer .footer-link-groups .footer-social > a[aria-label="Facebook"],
.site-footer .footer-link-groups .footer-social > a[aria-label="Instagram"],
.site-footer .footer-link-groups .footer-social > a[aria-label="LinkedIn"],
.site-footer .footer-link-groups .footer-social > a[aria-label="YouTube"],
.site-footer .footer-link-groups .footer-social > a[aria-label="TikTok"] {
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Premium Footer V1 — Google Play secondary shortcut under /app/ primary link */
.site-footer .footer-link-groups .footer-app__badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: max-content;
  max-width: 100%;
}

.site-footer .footer-link-groups .footer-app__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  box-shadow: none;
}

.site-footer .footer-link-groups .footer-app__badge:hover,
.site-footer .footer-link-groups .footer-app__badge:focus-visible {
  background: transparent;
  box-shadow: none;
  opacity: 0.9;
}

.site-footer .footer-link-groups .footer-app__badge-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(160px, 100%);
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.site-footer a[href^="mailto:"] {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.site-footer a[href^="mailto:"]:hover,
.site-footer a[href^="mailto:"]:focus-visible {
  color: #ffffff;
  text-decoration-color: currentColor;
}

/* Listings SERP — Bayut-style list + grid view polish */
.bayut-serp .bayut-filter-panel {
  padding: 12px;
}

.bayut-serp .bayut-filter-panel__head {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.bayut-serp .bayut-filter-panel > .bayut-filter-field {
  gap: 4px;
  margin-bottom: 9px;
}

.bayut-serp .bayut-filter-panel > .bayut-filter-field,
.bayut-serp .bayut-filter-panel > .bayut-filter-fieldset,
.bayut-serp .bayut-filter-panel > .bayut-filter-check {
  padding-top: 6px;
}

.bayut-serp .bayut-filter-panel > .bayut-filter-fieldset {
  margin-bottom: 8px;
}

.bayut-serp .bayut-filter-panel > .bayut-filter-fieldset legend {
  margin-bottom: 6px;
}

.bayut-serp .bayut-filter-panel .bayut-filter-checks,
.bayut-serp .bayut-filter-panel .bayut-serp__quick-chips {
  gap: 6px;
}

.bayut-card__avail {
  display: inline-block;
  padding: 2px 8px;
  color: #49645a;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  background: #eef6f2;
  border-radius: 4px;
}

.bayut-serp__results[data-view-mode="list"] {
  gap: 16px;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card {
  border: 1px solid #e3e3e3;
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card:hover {
  border-color: #c9c9c9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__media::after {
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent);
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__media > a,
.bayut-serp__results[data-view-mode="list"] .bayut-card__media .property-media,
.bayut-serp__results[data-view-mode="list"] .bayut-card__media .property-media-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__media .property-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__photo-count {
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.72);
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__body {
  gap: 0;
  padding: 16px 18px 14px;
  border-right-color: #ececec;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__price-row {
  align-items: center;
  margin-bottom: 6px;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__price {
  color: #1f1f1f;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__price strong {
  font-weight: 700;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__price span {
  color: #5c5c5c;
  font-size: 0.8rem;
  font-weight: 600;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .bayut-serp__results[data-view-mode="list"] .bayut-card__title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 0;
  }
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__location {
  margin: 0 0 6px;
  color: #5f5f5f;
  font-size: 0.8125rem;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__specs {
  margin: 0 0 6px;
  color: #2a2a2a;
  font-size: 0.8125rem;
  font-weight: 600;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__specs li {
  padding-inline: 12px;
  border-right-color: #d8d8d8;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__meta {
  color: #8a8a8a;
  font-size: 0.75rem;
  font-weight: 500;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
  justify-content: center;
  padding: 12px 10px;
  background: #fafafa;
  border-left: 1px solid #ececec;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand img,
.bayut-serp__results[data-view-mode="list"] .lister-brand-logo {
  width: 36px;
  height: 36px;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand {
  gap: 6px;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand strong,
.bayut-serp__results[data-view-mode="list"] .lister-brand-name-link {
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
  overflow-wrap: break-word;
  word-break: normal;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand span:not(.lister-brand-logo):not(.lister-brand-eyebrow):not(.lister-verified-badge) {
  color: #7a7a7a;
  font-size: 0.72rem;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 4px;
  transform: none;
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn:hover {
  transform: none;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--call,
.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--call:hover,
.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--primary:hover {
  background: #088d62;
  border-color: #088d62;
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--email,
.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--outline {
  color: var(--primary);
  background: #fff;
  border-color: var(--primary);
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--email:hover,
.bayut-serp__results[data-view-mode="list"] .bayut-card__agent-actions .bayut-btn--outline:hover {
  color: #088d62;
  border-color: #088d62;
  background: rgba(10, 157, 106, 0.06);
  box-shadow: none;
}

@media (min-width: 901px) {
  .bayut-serp__results[data-view-mode="list"] .bayut-card {
    grid-template-columns: minmax(248px, 31%) minmax(0, 1fr) 184px;
    min-height: 200px;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__media {
    min-height: 200px;
    max-height: none;
    align-self: stretch;
    background: #efefef;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__body {
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .bayut-serp__results[data-view-mode="list"] .bayut-card {
    grid-template-columns: 300px minmax(0, 1fr) 192px;
  }
}

@media (max-width: 900px) {
  .bayut-serp__results[data-view-mode="list"] .bayut-card {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__media,
  .bayut-serp__results[data-view-mode="list"] .bayut-card__body,
  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
    min-width: 0;
    max-width: 100%;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__media {
    min-height: 210px;
    max-height: none;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__body {
    padding: 14px 14px 12px;
    border-right: none;
    border-bottom: 1px solid #ececec;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
    background: #fff;
    border-left: none;
    border-top: 1px solid #ececec;
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  .bayut-serp__results[data-view-mode="list"] .bayut-card__price {
    font-size: 1.2rem;
  }
}

/* Grid view — Bayut-style property cards (2-column layout) */
.bayut-serp__results[data-view-mode="grid"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card {
  border: 1px solid #e3e3e3;
  border-radius: var(--radius-md);
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card:hover {
  border-color: #c9c9c9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
  min-height: 240px;
  height: 240px;
  max-height: 240px;
  background: #efefef;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__media::after {
  height: 34%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent);
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__photo-count {
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.72);
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__body {
  gap: 0;
  padding: 14px 16px 12px;
  border-right: none;
  border-bottom: 1px solid #ececec;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__price {
  color: #1f1f1f;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__price strong {
  font-weight: 700;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__price span {
  color: #5c5c5c;
  font-size: 0.78rem;
  font-weight: 600;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__badges {
  margin-left: auto;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .bayut-serp__results[data-view-mode="grid"] .bayut-card__title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 0;
  }
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__location {
  margin-bottom: 8px;
  color: #5f5f5f;
  font-size: 0.8rem;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__specs {
  margin-bottom: 8px;
  color: #2a2a2a;
  font-size: 0.78rem;
  font-weight: 600;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__specs li {
  padding-inline: 10px;
  border-right-color: #d8d8d8;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__specs li:first-child {
  padding-left: 0;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__meta {
  color: #8a8a8a;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
  background: #fff;
  min-width: 0;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-brand {
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-brand-copy {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-brand img,
.bayut-serp__results[data-view-mode="grid"] .lister-brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-brand strong,
.bayut-serp__results[data-view-mode="grid"] .lister-brand-name-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #333;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: normal;
}

.bayut-serp__results[data-view-mode="grid"] .lister-brand-eyebrow {
  font-size: 0.64rem;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-brand span:not(.lister-brand-logo):not(.lister-brand-eyebrow):not(.lister-verified-badge),
.bayut-serp__results[data-view-mode="grid"] .lister-brand-subtitle {
  color: #7a7a7a;
  font-size: 0.68rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 48%;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 4px;
  transform: none;
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn:hover {
  transform: none;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--call,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--call:hover,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--primary:hover {
  background: #088d62;
  border-color: #088d62;
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--email,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--outline {
  color: var(--primary);
  background: #fff;
  border-color: var(--primary);
  box-shadow: none;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--email:hover,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions .bayut-btn--outline:hover {
  color: #088d62;
  border-color: #088d62;
  background: rgba(10, 157, 106, 0.06);
  box-shadow: none;
}

@media (min-width: 641px) {
  .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
    min-height: 220px;
    height: 220px;
    max-height: 220px;
  }
}

@media (max-width: 900px) {
  .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
    flex-direction: row;
    align-items: center;
    padding: 10px 12px 12px;
  }

  .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions {
    min-width: 0;
    max-width: 46%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent-actions {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
  }
}

/* Residential Listings — Premium R1 (scoped; cosmetic + restrained motion only).
   Media height / aspect locks and filter semantics remain unchanged. */
body.listings-page .bayut-serp__results[data-view-mode="grid"] .bayut-card,
body.listings-page .bayut-serp__results[data-view-mode="list"] .bayut-card {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-ui) var(--ease),
    box-shadow var(--duration-ui) var(--ease);
}

body.listings-page .bayut-card__media .property-media img {
  transition: transform 0.55s var(--ease);
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  body.listings-page .bayut-serp__results[data-view-mode="grid"] .bayut-card:hover,
  body.listings-page .bayut-serp__results[data-view-mode="list"] .bayut-card:hover {
    border-color: rgba(10, 157, 106, 0.42);
    box-shadow:
      0 0 0 1px rgba(10, 157, 106, 0.22),
      var(--shadow);
  }

  body.listings-page .bayut-card:hover .bayut-card__media .property-media img {
    transform: scale(1.04);
  }
}

body.listings-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__body,
body.listings-page .bayut-serp__results[data-view-mode="list"] .bayut-card__body {
  gap: 4px;
  padding: 15px 16px 13px;
}

body.listings-page .bayut-card__price-row {
  margin-bottom: 2px;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__price,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price {
  color: var(--heading);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__price strong,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price strong {
  font-size: 1em;
  letter-spacing: -0.025em;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__price span,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

body.listings-page .bayut-card__trust-row {
  margin: 0 0 4px;
  gap: 6px 8px;
}

body.listings-page .bayut-card__trust-row .bayut-card__avail {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-strong);
}

body.listings-page .bayut-card__trust-row .rv-check-badge {
  transform: none;
  opacity: 0.96;
}

body.listings-page.bayut-serp-page .bayut-card__title {
  margin: 0 0 2px;
  color: var(--heading);
  font-size: 0.94rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.015em;
  line-height: 1.28;
}

body.listings-page .bayut-card__specs {
  margin: 0 0 4px;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 650;
}

body.listings-page .bayut-card__spec-type span,
body.listings-page .bayut-card__spec-furnished span {
  font-weight: 550;
  color: #5a697b;
}

body.listings-page .bayut-card__location {
  margin: 0 0 4px;
  color: #667585;
  font-size: 0.8rem;
}

body.listings-page .bayut-card__meta {
  color: #8a95a3;
  font-weight: 500;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
  opacity: 0.88;
  background: var(--surface-warm);
  border-color: rgba(227, 232, 241, 0.9);
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
  padding: 10px 14px 12px;
  background: #fafbfd;
}

body.listings-page.bayut-serp-page .bayut-card__agent-brand strong,
body.listings-page.bayut-serp-page .bayut-card__agent-brand .lister-brand-name-link {
  color: #6a7884;
  font-weight: 600;
  font-size: 0.76rem;
}

body.listings-page .bayut-card__agent-actions .bayut-btn {
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    filter var(--duration-fast) var(--ease);
}

body.listings-page .bayut-card__agent-actions .bayut-btn:hover {
  filter: brightness(0.98);
}

body.listings-page .bayut-card__agent-actions .bayut-btn:active {
  filter: brightness(0.96);
}

body.listings-page .bayut-card__agent-actions .bayut-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.listings-page .bayut-filter-panel {
  border-color: var(--border);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

body.listings-page .bayut-serp__toolbar {
  border-color: var(--border);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  padding: 10px 12px;
}

/*
 * D2-R2 discovery parity: Rental results toolbar scrolls with content
 * (matches Sale / Commercial). Sticky overlay was obscuring listing photographs.
 */
body.listings-page.bayut-serp-page .bayut-serp__toolbar[data-listings-toolbar] {
  position: static;
  top: auto;
  z-index: auto;
}

body.listings-page .bayut-serp__toolbar.is-stuck {
  box-shadow: var(--shadow-xs);
}

body.listings-page .bayut-serp__count {
  color: #4a5568;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.listings-page .bayut-view-toggle {
  border-color: var(--border-strong);
  border-radius: 10px;
}

body.listings-page .bayut-view-toggle__btn {
  transition:
    background var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

body.listings-page .bayut-view-toggle__btn:hover {
  color: var(--primary);
  background: var(--accent-soft);
}

body.listings-page .bayut-view-toggle__btn.is-active {
  color: var(--primary-hover);
  background: var(--primary-soft);
}

body.listings-page .bayut-view-toggle__btn:active {
  filter: brightness(0.97);
}

body.listings-page .bayut-view-toggle__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  z-index: 1;
}

body.listings-page .bayut-quick-chip,
body.listings-page .bayut-filter-pill,
body.listings-page .bayut-tag {
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

body.listings-page .bayut-quick-chip:hover,
body.listings-page .bayut-filter-pill:hover {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

body.listings-page .bayut-quick-chip.is-active,
body.listings-page .bayut-filter-pill.is-active {
  box-shadow: 0 4px 12px rgba(10, 157, 106, 0.18);
}

body.listings-page .bayut-quick-chip.is-active:hover,
body.listings-page .bayut-quick-chip.is-active:focus-visible,
body.listings-page .bayut-filter-pill.is-active:hover,
body.listings-page .bayut-filter-pill.is-active:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #08885b, #066a49);
  border-color: #066a49;
  box-shadow: 0 4px 14px rgba(8, 121, 77, 0.28);
}

body.listings-page .bayut-quick-chip:active,
body.listings-page .bayut-filter-pill:active,
body.listings-page .bayut-tag:active {
  filter: brightness(0.97);
}

body.listings-page .bayut-serp__toolbar .bayut-sort .custom-select-trigger,
body.listings-page .bayut-serp__toolbar .bayut-sort select:not(.native-filter-select) {
  border-radius: 10px;
  border-color: var(--border-strong);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

body.listings-page .bayut-serp__toolbar .bayut-sort .custom-select-trigger:hover,
body.listings-page .bayut-serp__toolbar .bayut-sort select:not(.native-filter-select):hover {
  border-color: rgba(10, 157, 106, 0.35);
}

body.listings-page .bayut-page-btn {
  border-radius: 10px;
  border-color: var(--border-strong);
  transition:
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    filter var(--duration-fast) var(--ease);
}

body.listings-page .bayut-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(10, 157, 106, 0.4);
  color: var(--primary);
  background: #fff;
}

body.listings-page .bayut-page-btn:active:not(:disabled) {
  filter: brightness(0.97);
}

body.listings-page .bayut-page-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.listings-page .bayut-empty,
body.listings-page [data-listings-empty] {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

body.listings-page .rv-needs-bar {
  border-color: var(--border);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

body.listings-page .bayut-card__fav {
  /* Hover/focus only — no pulse on hydrated .is-saved */
  transition:
    transform var(--duration-fast) var(--ease),
    filter 0.2s var(--ease),
    opacity 0.2s var(--ease),
    color var(--duration-fast) var(--ease);
}

body.listings-page .bayut-card__fav:hover {
  transform: scale(1.06);
  opacity: 1;
}

body.listings-page .bayut-card__fav:active {
  transform: scale(0.94);
}

body.listings-page .bayut-card__fav.is-saved {
  animation: none;
  transition:
    transform var(--duration-fast) var(--ease),
    filter 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

@media (max-width: 760px) {
  body.listings-page main.bayut-serp {
    padding-top: 4px;
    padding-bottom: 12px;
  }

  body.listings-page .rv-ai-search {
    margin-bottom: 8px;
  }

  body.listings-page .bayut-serp__intro {
    margin-bottom: 6px;
  }

  /* Discovery D1 H1 consistency — tablet/mobile token match (≤760 overlaps ≤900 Commercial/Sale). */
  body.listings-page .bayut-serp__title {
    margin-bottom: 2px;
    font-family: var(--font-body);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  body.listings-page .bayut-serp__subtitle {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  body.listings-page .rv-needs-bar {
    margin-bottom: 8px;
    padding: 8px 10px;
    gap: 6px 10px;
  }

  body.listings-page .rv-needs-bar__title {
    font-size: 0.88rem;
  }

  body.listings-page .rv-needs-bar__invite,
  body.listings-page .rv-needs-bar__meta {
    font-size: 0.78rem;
  }

  body.listings-page .bayut-serp__toolbar {
    margin-bottom: 6px;
    padding: 8px 10px;
  }

  body.listings-page .bayut-serp__quick-chips {
    margin-bottom: 8px;
    gap: 6px;
  }

  body.listings-page .bayut-serp__results {
    gap: 12px;
  }

  body.listings-page .bayut-serp__results[data-view-mode="grid"],
  body.listings-page .bayut-serp__results[data-view-mode="list"] {
    gap: 14px;
  }

  body.listings-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__body,
  body.listings-page .bayut-serp__results[data-view-mode="list"] .bayut-card__body {
    padding: 12px 12px 10px;
  }

  body.listings-page .bayut-pagination {
    margin-top: 18px;
    gap: 6px;
  }

  body.listings-page .bayut-empty,
  body.listings-page [data-listings-empty] {
    margin-top: 8px;
    padding: 14px 12px 12px;
  }
}

@media (max-width: 390px) {
  body.listings-page .bayut-serp__toolbar {
    min-height: 0;
  }

  body.listings-page .bayut-serp__count {
    font-size: 0.78rem;
  }

  body.listings-page .bayut-page-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.listings-page .bayut-serp__results[data-view-mode="grid"] .bayut-card,
  body.listings-page .bayut-serp__results[data-view-mode="list"] .bayut-card,
  body.listings-page .bayut-card__media .property-media img,
  body.listings-page .bayut-card__fav,
  body.listings-page .bayut-card__agent-actions .bayut-btn,
  body.listings-page .bayut-view-toggle__btn,
  body.listings-page .bayut-quick-chip,
  body.listings-page .bayut-filter-pill,
  body.listings-page .bayut-tag,
  body.listings-page .bayut-page-btn {
    transition: none !important;
  }

  body.listings-page .bayut-card:hover .bayut-card__media .property-media img,
  body.listings-page .bayut-card__fav:hover,
  body.listings-page .bayut-card__fav:active {
    transform: none !important;
  }
}

/* Listings data pending — suppress error/empty flashes before listings.json resolves.
   Exception: SSR already resolved zero-results (attribute removed) must stay visible. */
html.rv-data-pending [data-listings-error],
html.rv-data-pending [data-listing-missing],
html.rv-data-pending [data-listing-load-error],
html.rv-data-pending [data-home-listings-empty],
html.rv-data-pending [data-areas-empty] {
  display: none !important;
}

html.rv-data-pending [data-listings-empty][hidden],
html.rv-data-pending [data-area-empty][hidden] {
  display: none !important;
}

/* SSR-unhidden empty states remain visible during rv-data-pending. */
html.rv-data-pending [data-listings-page][data-ssr-listings-serp] [data-listings-empty]:not([hidden]),
html.rv-data-pending [data-area-page][data-ssr-area-serp] [data-area-empty]:not([hidden]) {
  display: block !important;
}

/* Show loaders only when intentionally unhidden — never override [hidden] for SSR first paint. */
html.rv-data-pending [data-listings-loading]:not([hidden]) {
  display: block !important;
}

html.rv-data-pending [data-area-loading]:not([hidden]) {
  display: block !important;
}

html.rv-data-pending [data-area-page][data-ssr-area-serp] [data-area-grid]:not([hidden]) {
  display: block !important;
}


@media (max-width: 900px) {
  .search-card__hint {
    margin-bottom: 10px;
    font-size: 0.78rem;
  }

  .home-list-prompt {
    padding: 12px;
  }

  .home-rv-checked-note {
    font-size: 0.8rem;
  }
}

/* Homepage polish patch 1 — mid/lower-page density only */
.home-page .home-section-areas .post-hero-panel {
  gap: 12px;
}

.home-page .home-section-areas .home-areas-secondary {
  margin-top: 0;
}

/* Featured checked listings — equal-height cards; readable 3-line titles;
   footer aligned; scoped to homepage Featured section only. */
.home-page .home-section-listings .home-property-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.home-page .home-section-listings .home-property-media {
  flex: 0 0 auto;
}

.home-page .home-section-listings .home-property-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
}

.home-page .home-section-listings .home-property-avail {
  flex: 0 0 auto;
  margin: 0;
}

.home-page .home-section-listings .home-property-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.35;
  /* Reserve 3-line title region so 1–3 line titles keep lower content aligned. */
  min-height: calc(3 * 1.35em);
  margin: 0;
}

.home-page .home-section-listings .home-property-meta {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1.45;
  /* Room for typical wrap; do not clip factual metadata. */
  min-height: calc(2 * 1.45em);
}

.home-page .home-section-listings .home-property-reviewed {
  flex: 0 0 auto;
  margin: 0;
}

.home-page .home-section-listings .home-property-footer {
  margin-top: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.home-page .home-section-listings .home-property-lister {
  flex: 1 1 auto;
  min-width: 0;
}

.home-page .home-section-listings .home-property-lister-name {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home-page .home-section-listings .home-card-link {
  flex: 0 0 auto;
}

/* Horizontal Featured track (≤900): compact purpose-built mobile cards.
   Desktop Featured (≥901) remains locked above. */
@media (max-width: 900px) {
  .home-page .home-section-listings .home-listing-grid {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-inline: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .home-section-listings .home-listing-grid::-webkit-scrollbar {
    display: none;
  }

  /* End spacer so last card can settle without viewport clip. */
  .home-page .home-section-listings .home-listing-grid::after {
    content: "";
    flex: 0 0 4px;
  }

  .home-page .home-section-listings .home-property-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(100% - 28px);
    align-self: stretch;
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    height: auto;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 14px;
    transform: none !important;
  }

  /* Compact preview image — not a hero (desktop 4:3 + min-height untouched). */
  .home-page .home-section-listings .home-property-media {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
    height: clamp(150px, 40vw, 172px);
  }

  /*
   * Kill the large white inset overlay panel on mobile Featured.
   * Prefer small chips: RV Checked top-left, rent bottom-right.
   * (Generic mobile .media-badges / .rent-badge full-width rules do not apply here.)
   */
  .home-page .home-section-listings .home-property-media .property-image-meta,
  .home-page .home-section-listings .home-property-media .property-image-meta--overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
  }

  .home-page .home-section-listings .home-property-media .media-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    width: auto;
    max-width: calc(100% - 88px);
    justify-content: flex-start;
    gap: 4px;
  }

  .home-page .home-section-listings .home-property-media .media-badges .rv-check-badge,
  .home-page .home-section-listings .home-property-media .media-badges .rv-check-badge--compact,
  .home-page .home-section-listings .home-property-media .media-badges .rv-visit-badge {
    min-height: 0;
    gap: 4px;
    padding: 3px 8px 3px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.16);
  }

  .home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__icon,
  .home-page .home-section-listings .home-property-media .media-badges .rv-visit-badge__icon {
    width: 18px;
    height: 18px;
  }

  .home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__icon .icon,
  .home-page .home-section-listings .home-property-media .media-badges .rv-visit-badge__icon .icon {
    width: 12px;
    height: 12px;
  }

  .home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__text strong,
  .home-page .home-section-listings .home-property-media .media-badges .rv-visit-badge__text strong {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .home-page .home-section-listings .home-property-media .media-badges .rv-check-badge__sub,
  .home-page .home-section-listings .home-property-media .media-badges .rv-visit-badge__sub {
    display: none;
  }

  .home-page .home-section-listings .home-property-media .rent-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: auto;
    top: auto;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 0;
    padding: 5px 9px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    background: rgba(7, 18, 14, 0.72);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.28);
  }

  .home-page .home-section-listings .home-property-media .rent-badge::before {
    content: none;
    display: none;
  }

  .home-page .home-section-listings .home-property-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 4px;
    padding: 9px 11px 11px;
  }

  .home-page .home-section-listings .home-property-avail {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .home-page .home-section-listings .home-property-body h3 {
    min-height: 0;
    font-size: 0.98rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .home-page .home-section-listings .home-property-meta {
    min-height: 0;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .home-page .home-section-listings .home-property-reviewed {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .home-page .home-section-listings .home-property-footer {
    margin-top: auto;
    flex: 0 0 auto;
    gap: 8px;
  }

  .home-page .home-section-listings .home-property-lister-name {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .home-page .home-section-listings .home-card-link {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  /* Modest section-header compaction — wording unchanged. */
  .home-page .home-section-listings .compact-heading {
    margin-bottom: 10px;
  }

  .home-page .home-section-listings .compact-heading h2 {
    margin-bottom: 4px;
    font-size: 1.28rem;
    line-height: 1.15;
  }

  .home-page .home-section-listings .home-section-note {
    margin: 0 0 6px;
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .home-page .home-section-listings .home-rv-checked-note {
    margin: 0 0 8px;
    font-size: 0.82rem;
    line-height: 1.4;
  }
}

@media (max-width: 560px) {
  .home-page .home-section-listings .home-card-link {
    gap: 2px;
    padding-inline: 7px;
    font-size: 0.75rem;
  }

  .home-page .home-section-listings .home-card-link::after {
    font-size: 0.9rem;
  }
}

.home-page .home-section-process .how-panel {
  gap: 14px;
}

.home-page .home-section-process .how-note {
  margin-top: 10px;
  padding: 10px 14px;
}

@media (min-width: 901px) {
  .bayut-serp-page.home-page .home-section-areas {
    padding-top: 28px;
    padding-bottom: 12px;
  }

  .home-page .home-section-areas .post-hero-panel {
    padding: 16px;
  }

  .bayut-serp-page.home-page .home-section-trust {
    padding-top: 56px;
  }

  .home-page .home-section-trust .why-section-panel {
    gap: 16px;
    padding: 24px;
  }

  .home-page .home-section-trust .why-card {
    min-height: 134px;
    padding: 18px;
  }

  .bayut-serp-page.home-page .home-section-process {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .home-page .home-section-process .how-panel {
    padding-block: 28px;
  }
}


@media (max-width: 340px) {
  .home-areas-grid.popular-areas,
  .popular-areas {
    grid-template-columns: 1fr;
  }
}

/* FIX21 — public Agent Login / registration discoverability */
.agent-portal-access {
  margin: 0 0 1.75rem;
}

.agent-portal-access__grid {
  display: grid;
  gap: 1rem;
}

.agent-portal-access__card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.agent-portal-access__card p {
  margin: 0 0 0.85rem;
}

.agent-portal-access__card .button-group {
  margin: 0;
}

.agent-portal-access__card .small-note {
  margin: 0.75rem 0 0;
}

.contributor-route-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contributor-route-note p {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.contributor-route-note p:last-child {
  margin-bottom: 0;
}

.contributor-route-note a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 760px) {
  .agent-portal-access__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

@media (max-width: 430px) {
  .agent-portal-access__card .button,
  .contributor-route-note a {
    min-height: 44px;
  }

  .agent-portal-access__card .button-group .button {
    width: 100%;
  }
}

/* Cosmetic Batch 1 — scoped public content-page alignment.
 * Values mirror the approved public listing-intake surfaces without changing
 * its protected form selectors or the global component system.
 */
.bayut-serp-page.contact-body .contact-page .info-card,
.bayut-serp-page.contact-body .feature-panel.update-card,
.bayut-serp-page.contact-body #contact-form > .container > .content-card,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form,
.bayut-serp-page.safety-body .safety-page .feature-panel,
.bayut-serp-page.safety-body .safety-page .warning-box,
.bayut-serp-page.safety-body .safety-page .safety-callout,
.bayut-serp-page.verification-body .verification-page .feature-panel,
.bayut-serp-page.verification-body main > .section > .container.status-grid > .feature-panel,
.bayut-serp-page.verification-body main > .section > .container.callout,
.bayut-serp-page.agents-body .agents-page .feature-panel,
.bayut-serp-page.agents-body .agents-page .why-card,
.bayut-serp-page.agents-body main > .section .status-grid > .feature-panel,
.bayut-serp-page.agents-body main > .section .submit-rental-cta,
.bayut-serp-page.thank-you-page .confirmation-panel,
.bayut-serp-page.thank-you-page .thank-you-steps .next-step-card,
.bayut-serp-page.thank-you-page .thank-listing-context,
.bayut-serp-page.legal-body .legal-page .legal-document,
.bayut-serp-page.submit-listing-body .submit-listing-page .process-card,
.bayut-serp-page.submit-listing-body main > .section > .container.two-column > div:first-child,
.bayut-serp-page.submit-listing-body main > .section > .container.two-column > .content-card,
.bayut-serp-page.submit-listing-body #listing-submission > .container > .submit-support-panel,
.bayut-serp-page.submit-listing-body #listing-submission .support-card,
.bayut-serp-page.submit-listing-body .contributor-route-note {
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(10, 16, 32, 0.07);
}

.bayut-serp-page.contact-body .contact-page .info-card,
.bayut-serp-page.contact-body .feature-panel.update-card,
.bayut-serp-page.contact-body #contact-form > .container > .content-card,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form,
.bayut-serp-page.safety-body .safety-page .feature-panel,
.bayut-serp-page.safety-body .safety-page .warning-box,
.bayut-serp-page.safety-body .safety-page .safety-callout,
.bayut-serp-page.verification-body .verification-page .feature-panel,
.bayut-serp-page.verification-body main > .section > .container.status-grid > .feature-panel,
.bayut-serp-page.verification-body main > .section > .container.callout,
.bayut-serp-page.agents-body .agents-page .feature-panel,
.bayut-serp-page.agents-body .agents-page .why-card,
.bayut-serp-page.agents-body main > .section .status-grid > .feature-panel,
.bayut-serp-page.agents-body main > .section .submit-rental-cta,
.bayut-serp-page.thank-you-page .thank-you-steps .next-step-card,
.bayut-serp-page.thank-you-page .thank-listing-context,
.bayut-serp-page.legal-body .legal-page .legal-document,
.bayut-serp-page.submit-listing-body .submit-listing-page .process-card,
.bayut-serp-page.submit-listing-body main > .section > .container.two-column > div:first-child,
.bayut-serp-page.submit-listing-body main > .section > .container.two-column > .content-card,
.bayut-serp-page.submit-listing-body #listing-submission > .container > .submit-support-panel {
  padding: 1.35rem 1.4rem;
}

.bayut-serp-page.contact-body .contact-page .tile-card-grid,
.bayut-serp-page.thank-you-page .thank-you-steps,
.bayut-serp-page.agents-body .agents-page .tile-card-grid,
.bayut-serp-page.safety-body .safety-page .status-grid,
.bayut-serp-page.verification-body main > .section .status-grid,
.bayut-serp-page.agents-body main > .section .status-grid {
  gap: 1rem;
}

.bayut-serp-page.contact-body .contact-intro,
.bayut-serp-page.safety-body .safety-intro,
.bayut-serp-page.verification-body .verification-intro,
.bayut-serp-page.agents-body .agents-intro,
.bayut-serp-page.legal-body .legal-intro,
.bayut-serp-page.submit-listing-body .submit-listing-intro {
  margin-bottom: 1.25rem;
}

/*
 * P5 — Align submit-listing page heading/intro with the 980px intake form column.
 * Form width remains in listing-form.css (min(100%, 980px) centered); only page
 * chrome above the form is narrowed to the same visual left/right edges.
 */
.bayut-serp-page.submit-listing-body .submit-listing-page > .container > .bayut-breadcrumb,
.bayut-serp-page.submit-listing-body .submit-listing-page > .container > .submit-listing-intro {
  width: min(100%, 980px);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.bayut-serp-page.contact-body main > .section.compact-section + .section.compact-section,
.bayut-serp-page.verification-body main > .section.compact-section + .section.compact-section,
.bayut-serp-page.agents-body main > .section.compact-section + .section.compact-section,
.bayut-serp-page.thank-you-page main > .section.compact-section + .section.compact-section,
.bayut-serp-page.submit-listing-body main > .section.compact-section + .section.compact-section {
  padding-top: 2.5rem;
}

.bayut-serp-page.contact-body main > .section.section-muted,
.bayut-serp-page.verification-body main > .section.section-muted,
.bayut-serp-page.agents-body main > .section.section-muted,
.bayut-serp-page.submit-listing-body main > .section.section-muted {
  background: #eff2f9;
  border-top: 1px solid #e3e8f1;
  border-bottom: 1px solid #e3e8f1;
}

/* Contact: retain listing-form control geometry, scoped to the public Contact page. */
.bayut-serp-page.contact-body #contact-form > .container > .contact-form {
  gap: 1rem;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea {
  min-height: 48px;
  padding: 12px 14px;
  border-color: #d2d9e6;
  border-radius: 12px;
  font-size: 0.95rem;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select:focus,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea:focus {
  border-color: #0a9d6a;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.18);
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form label {
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .form-progress {
  margin-top: 0.25rem;
  padding-bottom: 0.55rem;
  border-bottom-color: #e3e8f1;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .consent {
  padding: 0.85rem 1rem;
  border: 1px solid #e3e8f1;
  border-radius: 10px;
  background: #eff2f9;
}

/* Trust and agent pages: keep cards calm and equal without changing global panels. */
.bayut-serp-page.safety-body .safety-page .feature-panel,
.bayut-serp-page.verification-body main > .section .feature-panel,
.bayut-serp-page.agents-body main > .section .feature-panel {
  gap: 1rem;
}

.bayut-serp-page.safety-body .safety-page .warning-box,
.bayut-serp-page.safety-body .safety-page .safety-callout,
.bayut-serp-page.verification-body main > .section > .container.callout {
  margin-top: 1rem;
}

.bayut-serp-page.agents-body .agent-portal-access {
  margin-bottom: 2rem;
}

.bayut-serp-page.agents-body .agent-portal-access__card,
.bayut-serp-page.agents-body .agents-page .why-card,
.bayut-serp-page.agents-body main > .section .status-grid > .feature-panel {
  min-height: 100%;
}

/* Thank-you: use the same approved card geometry while preserving hierarchy. */
.bayut-serp-page.thank-you-page .confirmation-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

body.thank-you-has-context.bayut-serp-page.thank-you-page .confirmation-panel {
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.bayut-serp-page.thank-you-page .confirmation-panel .confirmation-review-note,
.bayut-serp-page.thank-you-page .confirmation-panel .confirmation-safety-note {
  line-height: 1.55;
}

body.thank-you-has-context.bayut-serp-page.thank-you-page .confirmation-panel .confirmation-review-note,
body.thank-you-has-context.bayut-serp-page.thank-you-page .confirmation-panel .confirmation-safety-note {
  line-height: 1.45;
}

.bayut-serp-page.thank-you-page .thank-you-steps .next-step-card {
  min-height: 100%;
}

/* Legal: comfortable reading measure and hierarchy, confined to legal pages. */
.bayut-serp-page.legal-body .legal-page .legal-document {
  width: min(100%, 900px);
  margin-inline: auto;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.bayut-serp-page.legal-body .legal-page .legal-document h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.bayut-serp-page.legal-body .legal-page .legal-document h2:first-of-type {
  margin-top: 1rem;
}

.bayut-serp-page.legal-body .legal-page .legal-document p,
.bayut-serp-page.legal-body .legal-page .legal-document li {
  color: #5a697b;
  font-size: 0.95rem;
  line-height: 1.65;
}

.bayut-serp-page.legal-body .legal-page .legal-document .check-list {
  gap: 0.65rem;
}

/* Submit listing: surrounding chrome only; no listing-intake form selectors. */
.bayut-serp-page.submit-listing-body .submit-listing-page .process-grid {
  gap: 1rem;
}

.bayut-serp-page.submit-listing-body .submit-listing-page .process-card {
  min-height: 122px;
}

.bayut-serp-page.submit-listing-body .submit-listing-page .process-note {
  margin-top: 1rem;
}

.bayut-serp-page.submit-listing-body .contributor-route-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
}

.bayut-serp-page.submit-listing-body #listing-submission .support-card {
  padding: 1rem;
}

@media (max-width: 900px) {
  .bayut-serp-page.contact-body main > .section.compact-section + .section.compact-section,
  .bayut-serp-page.verification-body main > .section.compact-section + .section.compact-section,
  .bayut-serp-page.agents-body main > .section.compact-section + .section.compact-section,
  .bayut-serp-page.thank-you-page main > .section.compact-section + .section.compact-section,
  .bayut-serp-page.submit-listing-body main > .section.compact-section + .section.compact-section {
    padding-top: 2rem;
  }

  .bayut-serp-page.contact-body .contact-page .info-card,
  .bayut-serp-page.contact-body .feature-panel.update-card,
  .bayut-serp-page.contact-body #contact-form > .container > .content-card,
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form,
  .bayut-serp-page.safety-body .safety-page .feature-panel,
  .bayut-serp-page.safety-body .safety-page .warning-box,
  .bayut-serp-page.safety-body .safety-page .safety-callout,
  .bayut-serp-page.verification-body main > .section .feature-panel,
  .bayut-serp-page.verification-body main > .section > .container.callout,
  .bayut-serp-page.agents-body main > .section .feature-panel,
  .bayut-serp-page.agents-body .agents-page .why-card,
  .bayut-serp-page.agents-body main > .section .submit-rental-cta,
  .bayut-serp-page.thank-you-page .confirmation-panel,
  .bayut-serp-page.thank-you-page .thank-you-steps .next-step-card,
  .bayut-serp-page.thank-you-page .thank-listing-context,
  .bayut-serp-page.legal-body .legal-page .legal-document,
  .bayut-serp-page.submit-listing-body .submit-listing-page .process-card,
  .bayut-serp-page.submit-listing-body main > .section > .container.two-column > div:first-child,
  .bayut-serp-page.submit-listing-body main > .section > .container.two-column > .content-card,
  .bayut-serp-page.submit-listing-body #listing-submission > .container > .submit-support-panel,
  .bayut-serp-page.submit-listing-body #listing-submission .support-card,
  .bayut-serp-page.submit-listing-body .contributor-route-note {
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .bayut-serp-page.contact-body .contact-page .info-card,
  .bayut-serp-page.contact-body .feature-panel.update-card,
  .bayut-serp-page.contact-body #contact-form > .container > .content-card,
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form,
  .bayut-serp-page.safety-body .safety-page .feature-panel,
  .bayut-serp-page.safety-body .safety-page .warning-box,
  .bayut-serp-page.safety-body .safety-page .safety-callout,
  .bayut-serp-page.verification-body main > .section .feature-panel,
  .bayut-serp-page.verification-body main > .section > .container.callout,
  .bayut-serp-page.agents-body main > .section .feature-panel,
  .bayut-serp-page.agents-body .agents-page .why-card,
  .bayut-serp-page.agents-body main > .section .submit-rental-cta,
  .bayut-serp-page.thank-you-page .confirmation-panel,
  .bayut-serp-page.thank-you-page .thank-you-steps .next-step-card,
  .bayut-serp-page.thank-you-page .thank-listing-context,
  .bayut-serp-page.legal-body .legal-page .legal-document,
  .bayut-serp-page.submit-listing-body .submit-listing-page .process-card,
  .bayut-serp-page.submit-listing-body main > .section > .container.two-column > div:first-child,
  .bayut-serp-page.submit-listing-body main > .section > .container.two-column > .content-card,
  .bayut-serp-page.submit-listing-body #listing-submission > .container > .submit-support-panel,
  .bayut-serp-page.submit-listing-body #listing-submission .support-card,
  .bayut-serp-page.submit-listing-body .contributor-route-note {
    padding: 1rem;
  }

  .bayut-serp-page.contact-body .contact-intro,
  .bayut-serp-page.safety-body .safety-intro,
  .bayut-serp-page.verification-body .verification-intro,
  .bayut-serp-page.agents-body .agents-intro,
  .bayut-serp-page.legal-body .legal-intro,
  .bayut-serp-page.submit-listing-body .submit-listing-intro {
    margin-bottom: 1rem;
  }

  .bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form select,
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea {
    font-size: 16px;
  }

  .bayut-serp-page.legal-body .legal-page .legal-document h2 {
    margin-top: 1.4rem;
    font-size: 1.05rem;
  }

  .bayut-serp-page.legal-body .legal-page .legal-document p,
  .bayut-serp-page.legal-body .legal-page .legal-document li {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}


/* Cosmetic Batch 2 — scoped public contact-form + lead-enquiry polish.
 * Contact: #contact-form scoped only. Lead: listing-detail lead form/dialog only.
 * Does not alter Batch 1 geometry, global .button, .bayut-btn, email enquiry,
 * report form, or listing-intake controls.
 */

/* ------------------------------------------------------------------ */
/* Contact page — controls & states (Batch 1 card chrome preserved)   */
/* ------------------------------------------------------------------ */

.bayut-serp-page.contact-body #contact-form > .container > .contact-form label {
  color: #1f2a37;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .small-note,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form .form-progress {
  color: #5a697b;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .form-progress {
  letter-spacing: 0.01em;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea {
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select:hover,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea:hover {
  border-color: #c5cedc;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select:focus-visible,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea:focus-visible {
  outline: none;
  border-color: #0a9d6a;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.18);
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):user-invalid,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select:user-invalid,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea:user-invalid {
  border-color: #c4473a;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):user-invalid:focus-visible,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form select:user-invalid:focus-visible,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form textarea:user-invalid:focus-visible {
  border-color: #c4473a;
  box-shadow: 0 0 0 4px rgba(196, 71, 58, 0.16);
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .form-submit-error {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #f0c2bd;
  border-radius: 10px;
  background: #fff5f4;
  color: #9f1d20;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .consent {
  align-items: flex-start;
  gap: 0.65rem;
  color: #3d4a5c;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form > .button {
  justify-self: stretch;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  margin-top: 0.25rem;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form > .button:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form > .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 560px) {
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form {
    gap: 0.9rem;
  }

  .bayut-serp-page.contact-body #contact-form > .container > .contact-form > .button {
    max-width: none;
  }

  .bayut-serp-page.contact-body #contact-form > .container > .contact-form .consent {
    padding: 0.75rem 0.85rem;
  }
}

/* ------------------------------------------------------------------ */
/* Listing-detail — lead enquiry dialog shell                         */
/* ------------------------------------------------------------------ */

body.listing-detail-page .detail-enquiry-dialog {
  width: min(640px, calc(100vw - 20px));
  max-height: calc(100vh - 24px);
  margin: auto;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

body.listing-detail-page .detail-enquiry-dialog::backdrop {
  background: rgba(7, 10, 20, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.listing-detail-page .detail-enquiry-dialog .detail-enquiry-dialog-panel {
  display: grid;
  gap: 0.7rem;
  max-height: min(88vh, calc(100vh - 28px));
  padding: 1.15rem 1.2rem 1.1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10, 16, 32, 0.18);
}

body.listing-detail-page .detail-enquiry-dialog .detail-enquiry-dialog-panel > h2 {
  margin: 0;
  padding-right: 5rem;
  font-size: 1.12rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page .detail-enquiry-dialog .detail-enquiry-dialog-summary,
body.listing-detail-page .detail-enquiry-section [data-enquiry-listing-summary],
body.listing-detail-page .detail-enquiry-dialog .detail-enquiry-dialog-privacy,
body.listing-detail-page .detail-enquiry-section .detail-lead-direct-wa-note,
body.listing-detail-page .detail-enquiry-dialog .detail-lead-direct-wa-note {
  margin: 0;
  max-width: 100%;
  color: #5a697b;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page .detail-enquiry-dialog-close {
  top: 10px;
  right: 10px;
  z-index: 2;
  width: auto;
  height: auto;
  min-width: 48px;
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d9e6;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.listing-detail-page:not(.sale-detail-page) .detail-enquiry-dialog-close:hover {
  border-color: rgba(10, 157, 106, 0.45);
  background: #f3fbf7;
  color: #0a6d4b;
}

body.listing-detail-page:not(.sale-detail-page) .detail-enquiry-dialog-close:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.18);
}

/* ------------------------------------------------------------------ */
/* Listing-detail — lead form (dialog + mobile inline section)        */
/* ------------------------------------------------------------------ */

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-x: hidden;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .detail-lead-form-grid,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .detail-lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form label,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  color: #1f2a37;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Consent: checkbox + one text column. Prevent Privacy Policy from becoming a
   squeezed third flex/grid item that wraps one letter per line. */
body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form label.option.consent,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label.option.consent {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.65rem !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form label.option.consent > input[type="checkbox"],
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label.option.consent > input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form label.option.consent .consent-copy,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label.option.consent .consent-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form label.option.consent .consent-copy a,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label.option.consent .consent-copy a {
  display: inline;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form label .small-note,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label .small-note {
  color: #5a697b;
  font-size: 0.82rem;
  font-weight: 500;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d2d9e6;
  border-radius: 12px;
  background: #fff;
  color: #1f2a37;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea:hover,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea:hover {
  border-color: #c5cedc;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea:focus-visible,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea:focus-visible {
  outline: none;
  border-color: #0a9d6a;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.18);
}

/* Error panel — existing [data-lead-form-error] hook only */
body.listing-detail-page [data-lead-form-error] {
  margin: 0.15rem 0 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid #f0c2bd;
  border-radius: 10px;
  background: #fff5f4;
  color: #9f1d20;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page [data-lead-form-error][hidden] {
  display: none !important;
}

/* Submit + scoped buttons (enquiry only) */
body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .button,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .button,
body.listing-detail-page [data-lead-success] .button,
body.listing-detail-page [data-lead-success-dialog] .button {
  justify-self: stretch;
  width: 100%;
  min-height: 48px;
  margin-top: 0.15rem;
  border-radius: 12px;
}

body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .button:focus-visible,
body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .button:focus-visible,
body.listing-detail-page [data-lead-success] .button:focus-visible,
body.listing-detail-page [data-lead-success-dialog] .button:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

/* Loading / disabled via existing aria-busy + disabled on submit */
body.listing-detail-page .listing-lead-form.contact-form [data-lead-submit]:disabled,
body.listing-detail-page .listing-lead-form.contact-form [data-lead-submit][aria-busy="true"] {
  opacity: 0.62;
  cursor: wait;
  transform: none;
  box-shadow: none;
  filter: saturate(0.85);
}

body.listing-detail-page .listing-lead-form.contact-form[data-lead-submitting="1"] [data-lead-submit] {
  position: relative;
}

body.listing-detail-page .listing-lead-form.contact-form [data-lead-submit][aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: auto 14px 50% auto;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rv-batch2-spin 0.7s linear infinite;
  pointer-events: none;
}

@keyframes rv-batch2-spin {
  to { transform: rotate(360deg); }
}

body.listing-detail-page .listing-lead-form.contact-form [data-lead-submit] {
  position: relative;
}

/* Success panels */
body.listing-detail-page [data-lead-success],
body.listing-detail-page [data-lead-success-dialog] {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.15rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #eff2f9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page [data-lead-success][hidden],
body.listing-detail-page [data-lead-success-dialog][hidden] {
  display: none !important;
}

body.listing-detail-page [data-lead-success] .eyebrow,
body.listing-detail-page [data-lead-success-dialog] .eyebrow {
  margin: 0;
  color: #0a9d6a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.listing-detail-page [data-lead-success] h3,
body.listing-detail-page [data-lead-success-dialog] h3,
body.listing-detail-page [data-lead-success-title],
body.listing-detail-page [data-lead-success-dialog] [data-lead-success-title] {
  margin: 0;
  color: #1f2a37;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page [data-lead-success] .small-note,
body.listing-detail-page [data-lead-success-dialog] .small-note,
body.listing-detail-page [data-lead-success-body],
body.listing-detail-page [data-lead-success-id] {
  margin: 0;
  color: #5a697b;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page [data-lead-success-property],
body.listing-detail-page [data-lead-success-dialog] [data-lead-success-property] {
  margin: 0;
  color: #1f2a37;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page [data-lead-success-property-actions],
body.listing-detail-page [data-lead-success-dialog] [data-lead-success-property-actions] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0.15rem 0 0;
}

body.listing-detail-page [data-lead-success-property-actions][hidden],
body.listing-detail-page [data-lead-success-dialog] [data-lead-success-property-actions][hidden] {
  display: none !important;
}

body.listing-detail-page [data-lead-success-view-property],
body.listing-detail-page [data-lead-success-dialog] [data-lead-success-view-property] {
  color: #0a9d6a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.sale-detail-page [data-lead-success-view-property],
body.sale-detail-page [data-lead-success-dialog] [data-lead-success-view-property] {
  color: #062b5b;
}

body.listing-detail-page [data-lead-success-copy-property],
body.listing-detail-page [data-lead-success-dialog] [data-lead-success-copy-property] {
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
}

body.sale-detail-page [data-lead-success-copy-property],
body.sale-detail-page [data-lead-success-dialog] [data-lead-success-copy-property] {
  border-color: rgba(6, 43, 91, 0.28);
  color: #062b5b;
}

body.listing-detail-page [data-lead-success] [data-lead-continue-whatsapp],
body.listing-detail-page [data-lead-success-dialog] [data-lead-continue-whatsapp] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(10, 157, 106, 0.28);
}

body.listing-detail-page [data-lead-success] [data-lead-continue-whatsapp]:focus-visible,
body.listing-detail-page [data-lead-success-dialog] [data-lead-continue-whatsapp]:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

/* Mobile inline enquiry section spacing */
body.listing-detail-page .detail-enquiry-section .listing-enquiry-card {
  gap: 0.85rem;
  overflow-x: hidden;
}

body.listing-detail-page .detail-enquiry-section [data-enquiry-listing-summary] {
  margin-bottom: 0.35rem;
}

@media (min-width: 960px) {
  body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .detail-lead-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.85rem;
  }

  body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .detail-lead-form-grid .form-grid-span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 959px) {
  body.listing-detail-page .detail-enquiry-dialog .detail-enquiry-dialog-panel {
    max-height: calc(100vh - 24px);
    padding: 1rem;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea,
  body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea {
    font-size: 16px;
  }
}

/* Listing-detail — mobile inline enquiry card compact pass (phones only) */
@media (max-width: 640px) {
  body.listing-detail-page .detail-enquiry-section.compact-section {
    padding-block: 36px;
  }

  body.listing-detail-page .detail-enquiry-section > .container.narrow {
    width: min(var(--container), calc(100% - 36px));
  }

  body.listing-detail-page .detail-enquiry-section .listing-enquiry-card {
    gap: 0.65rem;
    padding: 22px 18px;
    overflow-x: hidden;
  }

  body.listing-detail-page .detail-enquiry-section .listing-enquiry-card > .eyebrow {
    margin-bottom: 2px;
    font-size: 0.72rem;
  }

  body.listing-detail-page .detail-enquiry-section .listing-enquiry-card > h2 {
    margin-bottom: 4px;
    font-size: 1.06rem;
    line-height: 1.28;
    letter-spacing: -0.02em;
  }

  body.listing-detail-page .detail-enquiry-section [data-enquiry-listing-summary] {
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  body.listing-detail-page .detail-enquiry-section .detail-enquiry-safety-note--mobile {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form {
    gap: 0.6rem;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .detail-lead-form-grid {
    gap: 0.6rem;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label {
    gap: 0.28rem;
    font-size: 0.84rem;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label .small-note {
    font-size: 0.78rem;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea {
    min-height: 44px;
    padding: 10px 12px;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea {
    min-height: 84px;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form label.option.consent {
    gap: 0.55rem !important;
    padding: 0.55rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  body.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .button {
    min-height: 46px;
    margin-top: 0.05rem;
  }

  body.listing-detail-page.has-detail-mobile-cta .detail-enquiry-section#listing-enquiry {
    scroll-margin-bottom: calc(var(--detail-mobile-cta-clearance, calc(72px + env(safe-area-inset-bottom, 0px))) + 16px);
  }

  body.listing-detail-page.has-detail-mobile-cta .detail-enquiry-section .listing-lead-form.contact-form [data-lead-submit] {
    scroll-margin-bottom: calc(var(--detail-mobile-cta-clearance, calc(72px + env(safe-area-inset-bottom, 0px))) + 12px);
  }

  body.listing-detail-page .detail-enquiry-section .detail-lead-intent-fieldset > legend {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }

  body.listing-detail-page .detail-enquiry-section .detail-lead-intent-options {
    gap: 5px;
  }

  body.listing-detail-page .detail-enquiry-section .detail-lead-intent-option__label {
    min-height: 44px;
    padding: 5px 6px;
    font-size: 0.72rem;
  }

  body.listing-detail-page .detail-enquiry-section .detail-lead-viewing-note {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  body.listing-detail-page .detail-enquiry-section .detail-lead-viewing-window-option span {
    min-height: 40px;
    font-size: 0.72rem;
  }
}

/* Listing detail — mobile major-block spacing rhythm (phones / small tablets) */
@media (max-width: 959px) {
  .listing-detail-page {
    --detail-mobile-block-gap: 16px;
    --detail-mobile-section-pad: 24px;
  }

  .listing-detail-page .detail-portal-body {
    display: grid;
    gap: var(--detail-mobile-block-gap);
    grid-template-columns: minmax(0, 1fr);
  }

  .listing-detail-page .detail-portal-main {
    display: grid;
    gap: var(--detail-mobile-block-gap);
  }

  .listing-detail-page .detail-portal-layout {
    gap: var(--detail-mobile-block-gap);
  }

  .listing-detail-page .detail-portal-section.compact-section {
    padding-bottom: var(--detail-mobile-section-pad);
  }

  .listing-detail-page .detail-enquiry-section.compact-section,
  .listing-detail-page .detail-trust-section.compact-section,
  .listing-detail-page .detail-similar-checked-section.compact-section,
  .listing-detail-page .detail-recommended-section.compact-section {
    padding-block: var(--detail-mobile-section-pad);
  }

  .listing-detail-page main > .section.compact-section[data-detail-section]:last-of-type {
    padding-bottom: calc(var(--detail-mobile-section-pad) + 12px);
  }

  body.listing-detail-page.has-detail-mobile-cta .detail-recommended-section.compact-section:last-of-type {
    padding-bottom: calc(var(--detail-mobile-section-pad) + 8px);
  }
}

@media (max-width: 390px) {
  body.listing-detail-page .detail-enquiry-dialog-close {
    min-width: 48px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  body.listing-detail-page .detail-enquiry-dialog .detail-enquiry-dialog-panel > h2 {
    padding-right: 4.75rem;
  }
}

/* Phase 1 — saved search notify dialog */
.rv-saved-search-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(28rem, calc(100vw - 1.5rem));
  width: 100%;
  max-height: min(92dvh, calc(100vh - 1.25rem));
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.22);
  overflow: hidden;
}
.rv-saved-search-dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}
.rv-saved-search-dialog__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.2rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(92dvh, calc(100vh - 1.25rem));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.rv-saved-search-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.rv-saved-search-dialog__head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.rv-saved-search-dialog__close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #475467;
}
.rv-saved-search-dialog__summary,
.rv-saved-search-dialog__hint {
  margin: 0;
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.45;
}
.rv-saved-search-dialog__summary-label {
  margin: 0;
  font-size: 0.85rem;
  color: #1f2937;
}
.rv-saved-search-dialog__guidance {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.4;
}
.rv-saved-search-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.rv-saved-search-dialog__field input {
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
}
.rv-saved-search-dialog__consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #344054;
}
.rv-saved-search-dialog__consent input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.rv-saved-search-dialog__consent span,
.rv-saved-search-dialog__summary,
.rv-saved-search-dialog__hint,
.rv-saved-search-dialog__guidance,
.rv-saved-search-dialog__head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rv-saved-search-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.rv-saved-search-dialog__error {
  color: #b42318;
  margin: 0;
  font-size: 0.9rem;
}
.rv-saved-search-dialog__success {
  color: #087443;
  margin: 0;
  font-size: 0.9rem;
}
.bayut-btn--compact {
  height: auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

/* Contact page — mobile overflow hardening (320–430px). Stack cards; contain selects. */
.bayut-serp-page.contact-body #contact-form > .container.contact-grid,
.bayut-serp-page.contact-body .contact-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bayut-serp-page.contact-body #contact-form > .container.contact-grid > *,
.bayut-serp-page.contact-body .contact-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form select,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form .custom-select-trigger,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form .form-custom-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form select {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form .small-note,
.bayut-serp-page.contact-body #contact-form > .container > .contact-form [data-contact-save-search-hint] {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form [data-contact-save-search-return] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.bayut-serp-page.contact-body .contact-grid .content-card a,
.bayut-serp-page.contact-body .contact-grid .content-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 760px) {
  .bayut-serp-page.contact-body #contact-form > .container.contact-grid,
  .bayut-serp-page.contact-body .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .bayut-serp-page.contact-body #contact-form > .container > .content-card,
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bayut-serp-page.contact-body .contact-grid > aside:first-child {
    max-width: 100%;
  }

  .bayut-serp-page.contact-body #contact-form > .container > .contact-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  /* Keep standard public gutters (~16px each side) — do not stretch edge-to-edge */
  .bayut-serp-page.contact-body main > .section > .container {
    width: min(100% - 32px, var(--container));
    max-width: var(--container);
    min-width: 0;
    box-sizing: border-box;
    margin-inline: auto;
  }
}

/* ------------------------------------------------------------------ */
/* Contact — page alignment (normal + focused)                         */
/* Use the shared .container gutters; balanced desktop contact grid.   */
/* ------------------------------------------------------------------ */

.bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form > .container.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 32px);
  align-items: start;
  width: min(var(--container), calc(100% - 32px));
  max-width: var(--container);
  margin-inline: auto;
  box-sizing: border-box;
}

.bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form > .container.contact-grid > [data-contact-options],
.bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form > .container.contact-grid > .contact-form {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  align-self: start;
  /* Neutralise scroll-reveal translate so both cards share one top edge. */
  opacity: 1;
  transform: none;
  will-change: auto;
}

.bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form > .container.contact-grid > [data-contact-options] {
  width: 100%;
  max-width: 340px;
}

.bayut-serp-page.contact-body .contact-page > .container,
.bayut-serp-page.contact-body #listing-update > .container {
  width: min(var(--container), calc(100% - 32px));
  max-width: var(--container);
  margin-inline: auto;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Contact — intent form focus (agent support / partnership / other)  */
/* ------------------------------------------------------------------ */

html.rv-contact-form-focus [data-contact-journey="chooser"],
html.rv-contact-form-focus [data-contact-journey="default-intro"],
body.contact-form-focus [data-contact-journey="chooser"],
body.contact-form-focus [data-contact-journey="default-intro"] {
  display: none !important;
}

html.rv-contact-form-focus [data-contact-journey="form-intro"],
html.rv-contact-form-focus [data-contact-journey="form-section"],
body.contact-form-focus [data-contact-journey="form-intro"],
body.contact-form-focus [data-contact-journey="form-section"] {
  display: block !important;
}

.contact-intent-other {
  opacity: 0.92;
}

.contact-intent-other h3 {
  font-weight: 600;
}

body.contact-form-focus .contact-rental-back {
  margin: 0.5rem 0 0;
}

/* ------------------------------------------------------------------ */
/* Contact — legacy focused personal-help journey (type=rental)       */
/* Kept for CSS safety; rental now redirects to Save Search.          */
/* ------------------------------------------------------------------ */

.bayut-serp-page.contact-body #contact-form {
  scroll-margin-top: calc(var(--header-height, 72px) + 16px);
}

body.contact-rental-focus [data-contact-journey="chooser"],
body.contact-rental-focus [data-contact-journey="listing-update"],
body.contact-rental-focus [data-contact-journey="default-intro"],
body.contact-rental-focus [data-contact-options],
html.rv-contact-rental [data-contact-journey="chooser"],
html.rv-contact-rental [data-contact-journey="listing-update"],
html.rv-contact-rental [data-contact-journey="default-intro"],
html.rv-contact-rental [data-contact-options] {
  display: none !important;
}

body.contact-rental-focus [data-contact-journey="rental-intro"],
html.rv-contact-rental [data-contact-journey="rental-intro"] {
  display: block !important;
}

body.contact-rental-focus .mobile-app-nav,
html.rv-contact-rental .mobile-app-nav {
  display: none !important;
}

html.rv-contact-rental body.contact-body .contact-page .contact-intro[data-contact-journey="rental-intro"],
body.contact-rental-focus .contact-page .contact-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.35rem;
}

html.rv-contact-rental body.contact-body .contact-page .bayut-breadcrumb,
body.contact-rental-focus .contact-page .bayut-breadcrumb {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.contact-rental-focus .contact-page,
html.rv-contact-rental body.contact-body .contact-page {
  padding-bottom: 0;
}

body.contact-rental-focus .contact-rental-back {
  margin: 0.85rem 0 0;
}

body.contact-rental-focus #contact-form,
html.rv-contact-rental body.contact-body #contact-form {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
  scroll-margin-top: 0;
  scroll-margin-bottom: 0;
}

body.contact-rental-focus #contact-form > .container.contact-grid,
html.rv-contact-rental body.contact-body #contact-form > .container.contact-grid {
  display: block;
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: none;
  gap: 0;
  box-sizing: border-box;
}

html.rv-contact-rental body.contact-body .contact-page > .container,
body.contact-rental-focus .contact-page > .container {
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  margin-inline: auto;
  box-sizing: border-box;
}

body.contact-rental-focus #contact-form > .container.contact-grid > .contact-form,
html.rv-contact-rental body.contact-body #contact-form > .container.contact-grid > .contact-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.contact-rental-focus .site-footer,
html.rv-contact-rental body.contact-body .site-footer {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 760px) {
  /* Non-focused contact pages still clear the floating mobile nav */
  html:has(body.bayut-serp-page.contact-body:not(.contact-rental-focus)),
  body.bayut-serp-page.contact-body:not(.contact-rental-focus) {
    scroll-padding-top: calc(var(--header-height, 62px) + 12px);
    scroll-padding-bottom: calc(var(--mobile-nav-clearance, 90px) + 28px);
  }

  body.bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form {
    scroll-margin-top: calc(var(--header-height, 62px) + 12px);
    padding-bottom: calc(var(--mobile-nav-clearance, 90px) + 48px);
  }

  body.bayut-serp-page.contact-body:not(.contact-rental-focus) .contact-form [type="submit"] {
    scroll-margin-bottom: calc(var(--mobile-nav-clearance, 90px) + 28px);
  }

  body.contact-rental-focus .contact-page.compact-section {
    padding-top: 1.1rem;
    padding-bottom: 0;
  }

  body.contact-rental-focus #contact-form.compact-section {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

  /* Focused mobile: same ~16px gutters as normal contact; shared centred column */
  body.contact-rental-focus .contact-page > .container,
  html.rv-contact-rental body.contact-body .contact-page > .container,
  body.contact-rental-focus #contact-form > .container.contact-grid,
  html.rv-contact-rental body.contact-body #contact-form > .container.contact-grid {
    width: min(100% - 32px, 760px);
    max-width: 760px;
    margin-inline: auto;
    box-sizing: border-box;
  }

  body.contact-rental-focus .contact-page .contact-intro,
  body.contact-rental-focus .contact-page .bayut-breadcrumb {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form > .container.contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: min(100% - 32px, var(--container));
  }

  .bayut-serp-page.contact-body:not(.contact-rental-focus) #contact-form > .container.contact-grid > [data-contact-options] {
    max-width: none;
  }

  /* Focused mode has no mobile nav — do not reserve nav clearance */
  body.contact-rental-focus .site-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* Find-a-rental requirement intake — aligned with Contact / bayut portal pages */
.find-rental-body .find-rental-main {
  padding-bottom: 0;
}

.find-rental-body .find-rental-shell {
  max-width: var(--container, 1120px);
  display: grid;
  gap: var(--portal-gap-hero, 20px);
}

.find-rental-body .find-rental-breadcrumb {
  margin: 0;
}

.find-rental-body .find-rental-intro {
  max-width: 40rem;
}

.find-rental-body .find-rental-intro .bayut-serp__title,
.find-rental-body .find-rental-intro .bayut-serp__subtitle {
  overflow-wrap: break-word;
}

.find-rental-body .find-rental-intro .bayut-serp__subtitle {
  max-width: 38rem;
  line-height: 1.5;
}

.find-rental-body .find-rental-layout {
  display: grid;
  grid-template-columns: minmax(210px, 268px) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
  min-width: 0;
}

.find-rental-body .find-rental-guide.content-card {
  margin: 0;
  padding: 2px 0 2px 16px;
  height: fit-content;
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(10, 157, 106, 0.42);
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  min-width: 0;
}

.find-rental-body .find-rental-guide__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading, #0f172a);
}

.find-rental-body .find-rental-guide__steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: find-rental-step;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #334155);
}

.find-rental-body .find-rental-guide__steps li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  counter-increment: find-rental-step;
  overflow-wrap: break-word;
}

.find-rental-body .find-rental-guide__steps li::before {
  content: counter(find-rental-step);
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.1);
  color: #087a52;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.find-rental-body .find-rental-guide__note {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
}

.find-rental-body .find-rental-guide__quiet {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted, #64748b);
}

.find-rental-body .find-rental-guide__quiet a {
  color: var(--primary, #0a9d6a);
  font-weight: 600;
  text-underline-offset: 2px;
}

.find-rental-body .find-rental-form.contact-form {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.find-rental-body .find-rental-form .form-section,
.find-rental-body .find-rental-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.find-rental-body .find-rental-fieldset + .find-rental-fieldset {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.find-rental-body .find-rental-form .form-section > legend {
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--heading, #0f172a);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.find-rental-body .find-rental-form .form-section > legend::before {
  content: none;
  display: none;
}

.find-rental-body .find-rental-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  min-width: 0;
}

.find-rental-body .find-rental-label > [data-i18n]:first-child {
  min-width: 0;
  overflow-wrap: break-word;
}

.find-rental-body .find-rental-mark {
  flex: 0 1 auto;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.find-rental-body .find-rental-mark--req {
  color: #087a52;
}

.find-rental-body .find-rental-mark--opt {
  color: #64748b;
  font-weight: 500;
}

.find-rental-body .find-rental-section-hint {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}

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

.find-rental-body .find-rental-field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.find-rental-body .find-rental-field--full {
  grid-column: 1 / -1;
}

.find-rental-body .find-rental-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 4px 0 0;
  min-width: 0;
}

.find-rental-body .find-rental-consent-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.find-rental-body .find-rental-consent input[type="checkbox"] {
  margin-top: 0.2rem;
}

.find-rental-body .find-rental-consent [data-i18n],
.contact-form label.option.consent,
.contact-form label.option.consent .consent-copy,
.contact-form label.option.consent [data-i18n] {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.find-rental-body .find-rental-form .small-note,
.find-rental-body .find-rental-privacy {
  overflow-wrap: break-word;
}

.find-rental-body .find-rental-form .form-custom-select,
.find-rental-body .find-rental-form .custom-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.find-rental-body .find-rental-privacy {
  margin: 0;
}

.find-rental-body .find-rental-areas {
  gap: 10px;
}

.find-rental-body .find-rental-extra-areas {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.find-rental-body .find-rental-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.find-rental-body .find-rental-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text, #0f172a);
}

.find-rental-body .find-rental-area-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.find-rental-body .find-rental-area-chip__remove {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.find-rental-body .find-rental-area-chip__remove:hover,
.find-rental-body .find-rental-area-chip__remove:focus-visible {
  background: rgba(15, 23, 42, 0.16);
}

.find-rental-body .find-rental-add-area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.find-rental-body .find-rental-add-area-label {
  margin: 0;
}

.find-rental-body .find-rental-add-area-btn {
  min-height: 44px;
  white-space: nowrap;
}

.find-rental-body .find-rental-area-limit-note {
  margin: 0;
}

.find-rental-body .find-rental-submit {
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 16rem);
  min-height: 48px;
  height: auto;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
  line-height: 1.25;
}

.find-rental-body .find-rental-form .form-submit-error,
.find-rental-body .find-rental-form .form-alert-note {
  margin: 0;
  overflow-wrap: break-word;
}

.find-rental-body .find-rental-form .form-submit-error:not([hidden]) {
  padding: 10px 12px;
  color: #9f1d20;
  font-weight: 600;
  background: #fdf4f4;
  border: 1px solid rgba(159, 29, 32, 0.22);
  border-radius: 10px;
}

.find-rental-body .find-rental-form .form-alert-note-strong:not([hidden]) {
  box-shadow: none;
  border-color: rgba(10, 157, 106, 0.28);
}

@media (max-width: 860px) {
  .find-rental-body .find-rental-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .find-rental-body .find-rental-form.contact-form {
    order: 1;
  }

  .find-rental-body .find-rental-guide.content-card {
    order: 2;
    margin-top: 2px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 760px) {
  .find-rental-body .find-rental-form.contact-form,
  .find-rental-body .find-rental-guide.content-card {
    box-shadow: none;
  }

  .find-rental-body .find-rental-form.contact-form {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .find-rental-body .find-rental-main {
    padding-bottom: calc(var(--mobile-nav-clearance, 96px) + 12px);
  }

  .find-rental-body .find-rental-submit {
    scroll-margin-bottom: calc(var(--mobile-nav-clearance, 96px) + 24px);
  }

  .find-rental-body .find-rental-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .find-rental-body .find-rental-form select,
  .find-rental-body .find-rental-form .form-custom-select .custom-select-trigger {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .find-rental-body .find-rental-row {
    grid-template-columns: 1fr;
  }

  .find-rental-body .find-rental-add-area-row {
    grid-template-columns: 1fr;
  }

  .find-rental-body .find-rental-add-area-btn {
    width: 100%;
    white-space: normal;
  }

  .find-rental-body .find-rental-submit {
    width: 100%;
  }
}

/* Agent Collaboration V1 — compact SSR-revealed card (eligibility server-owned) */
.detail-agent-collaboration {
  margin: 0.85rem 0 0.55rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid rgba(22, 101, 52, 0.22);
  border-radius: 12px;
  background: rgba(22, 101, 52, 0.06);
}

.detail-agent-collaboration .eyebrow {
  margin: 0 0 0.25rem;
  color: #166534;
}

.detail-agent-collaboration__title {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: #14532d;
}

.detail-agent-collaboration__help {
  margin: 0 0 0.75rem;
}

.detail-agent-collaboration__open {
  margin: 0;
  width: 100%;
}

.detail-agent-collaboration.is-expanded .detail-agent-collaboration__open {
  display: none;
}

/*
 * Root cause of empty white pill: inherited .contact-form chrome
 * (white bg, padding, border, radius, shadow) while fields are hidden.
 * Keep plumbing in the DOM; strip visual shell until expanded.
 */
.detail-agent-collaboration__form.contact-form {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.detail-agent-collaboration:not(.is-expanded) .detail-agent-collaboration__form {
  /* Collapsed: hide form chrome entirely (hidden inputs stay in DOM for JS). */
  display: none;
}

.detail-agent-collaboration__fields {
  margin-top: 0.7rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Beat .contact-form label { display:grid } so caption stays one line above textarea */
.detail-agent-collaboration__form.contact-form .detail-agent-collaboration__note-label {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}

.detail-agent-collaboration__note-caption {
  display: block;
  white-space: nowrap;
}

.detail-agent-collaboration__note-caption .small-note {
  display: inline;
  margin: 0;
  font-weight: 500;
  opacity: 0.85;
}

.detail-agent-collaboration__form.contact-form textarea,
.detail-agent-collaboration__form textarea {
  min-height: 4.25rem;
  padding: 10px 12px;
  resize: vertical;
  background: #fff;
}

.detail-agent-collaboration__ok {
  color: #166534;
  margin: 0 0 0.55rem;
}

.detail-agent-collaboration__form .form-submit-error {
  margin: 0 0 0.55rem;
}

.detail-agent-collaboration__form [data-collab-submit] {
  margin: 0;
}

.detail-agent-collaboration__cancel {
  margin-top: 0.4rem;
}

.detail-agent-collaboration.is-expanded {
  padding-bottom: 0.9rem;
}

@media (max-width: 389.98px) {
  .detail-agent-collaboration {
    margin: 0.75rem 0 0.45rem;
    padding: 0.85rem 0.85rem 0.95rem;
  }

  .detail-agent-collaboration.is-expanded {
    padding-bottom: 0.85rem;
  }

  .detail-agent-collaboration__title {
    font-size: 1rem;
  }

  .detail-agent-collaboration__fields {
    margin-top: 0.6rem;
  }

  .detail-agent-collaboration__note-caption {
    white-space: normal;
  }

  .detail-agent-collaboration__form.contact-form textarea,
  .detail-agent-collaboration__form textarea {
    min-height: 4rem;
  }
}

/* ==========================================================================
   Mobile / tablet Option B — Compact after hero (max-width: 1079px)
   Desktop Option C (≥1080) remains locked; do not alter those rules.
   ========================================================================== */
@media (max-width: 1079px) {
  /* Early orientation signal (including 960–1079 tablet). */
  .listing-detail-page .detail-hero-facts {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    width: fit-content;
    max-width: 100%;
    margin: 0.35rem 0 0.15rem;
    padding: 7px 11px;
    border-radius: 10px;
    line-height: 1.2;
  }

  .listing-detail-page .detail-hero-rent {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    line-height: 1.15;
  }

  .listing-detail-page .detail-hero-rent strong {
    font-size: clamp(1.2rem, 3.6vw, 1.45rem);
    line-height: 1.15;
  }

  .listing-detail-page .detail-hero-rent span {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .listing-detail-page .detail-hero-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  .listing-detail-page .detail-hero-available::before {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin: 0;
    align-self: center;
  }

  .listing-detail-page .detail-location-facts {
    margin-top: 0.45rem;
  }

  .listing-detail-page .detail-quick-stats {
    gap: 0.35rem 0.65rem;
  }

  /* Duplicate rental-terms card under title — terms live in commercial block. */
  .listing-detail-page .detail-mobile-deposit {
    display: none !important;
  }

  /* Compact RV Checked + evidence (two slim rows, not two large cards). */
  .listing-detail-page .detail-trust-strip {
    margin: 0;
    border-radius: 12px;
  }

  body.has-detail-trust-strip.listing-detail-page .detail-trust-strip {
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
  }

  .listing-detail-page .detail-trust-strip-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .listing-detail-page .detail-trust-meta {
    margin: 0;
    flex: 1 1 10rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
  }

  .listing-detail-page .detail-evidence-card {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: none;
  }

  body.has-detail-trust-strip.listing-detail-page .detail-evidence-card {
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(10, 157, 106, 0.1);
    background: linear-gradient(180deg, #f8fbf9 0%, #ffffff 100%);
  }

  .listing-detail-page .detail-evidence-card > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Date already on trust strip when present — avoid two availability rows. */
  body.has-detail-trust-strip.listing-detail-page .detail-evidence-card [data-listing-info-checked-wrap] {
    display: none;
  }

  .listing-detail-page .detail-evidence-card .detail-property-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
  }

  body:not(.has-detail-trust-strip).listing-detail-page .detail-evidence-card .detail-property-info {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listing-detail-page .detail-evidence-card .detail-property-info div {
    display: grid;
    gap: 2px;
  }

  .listing-detail-page .detail-evidence-card .detail-property-info dt {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .listing-detail-page .detail-evidence-card .detail-property-info dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
  }

  @media (max-width: 430px) {
    body:not(.has-detail-trust-strip).listing-detail-page .detail-evidence-card .detail-property-info {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body:not(.has-detail-trust-strip).listing-detail-page .detail-evidence-card .detail-property-info > div:last-child {
      grid-column: 1 / -1;
    }
  }

  /* ONE commercial / agency / enquiry block immediately after evidence. */
  .listing-detail-page .detail-portal-aside.detail-summary-card {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .listing-detail-page .detail-rent-card-aside {
    display: grid !important;
    gap: 4px;
  }

  .listing-detail-page .detail-rent-card-aside .detail-rent-amount {
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    line-height: 1.1;
  }

  .listing-detail-page .detail-rent-card-aside .detail-rent-meta,
  .listing-detail-page .detail-rent-card-aside .detail-rent-yearly {
    font-size: 0.8rem;
  }

  .listing-detail-page .detail-aside-facts {
    margin-top: 8px;
    gap: 8px;
  }

  .listing-detail-page .detail-aside-lister-panel {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  /* Premium polish V1: keep compact coordination strip on tablet/narrow desktop. */
  .listing-detail-page .detail-agent-response:not([hidden]) {
    display: flex !important;
  }

  .listing-detail-page .detail-aside-lister-panel .detail-agent-response:not([hidden]) ~ .detail-aside-lister-panel__note {
    display: none !important;
  }

  .listing-detail-page .detail-portal-aside .detail-enquire-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .listing-detail-page .detail-portal-aside .detail-enquiry-safety-note--desktop:not([hidden]) {
    display: flex !important;
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .listing-detail-page .detail-aside-secondary-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .listing-detail-page .detail-aside-secondary-ctas .button {
    width: 100%;
    justify-content: center;
  }

  .listing-detail-page .detail-aside-similar {
    display: none !important;
  }

  /* About — tighter progressive disclosure on narrow viewports. */
  .listing-detail-page .detail-description-collapsible.is-collapsible:not(.is-expanded) .detail-description-body {
    max-height: 7.2em;
  }

  /* Location — usable map without oversized chrome. */
  .listing-detail-page .detail-location-card .detail-area-map,
  .listing-detail-page .detail-location-card .detail-area-map--preview,
  .listing-detail-page .detail-location-card .detail-area-map-leaflet,
  .listing-detail-page .detail-location-card .detail-area-map-canvas {
    min-height: 0;
    height: clamp(160px, 42vw, 210px);
  }

  .listing-detail-page .detail-location-card {
    padding: 14px;
  }

  .listing-detail-page .detail-location-card > h2 {
    margin-bottom: 6px;
  }

  .listing-detail-page .detail-location-card > .small-note {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .listing-detail-page .detail-location-actions {
    gap: 8px;
  }

  /* More-from — shared related cards (single column via global 640 rule). */
  .listing-detail-page .detail-more-from-section {
    padding-top: 24px;
  }

  .listing-detail-page .detail-more-from-heading h2 {
    font-size: 1.1rem;
  }

  .listing-detail-page .detail-trust-section.compact-section {
    padding: 20px 0;
  }

  .listing-detail-page .detail-rental-facts-card,
  .listing-detail-page .detail-description-card,
  .listing-detail-page .detail-features-card {
    padding: 14px;
  }
}

@media (max-width: 959px) {
  /* Option B gallery: dominant hero + compact thumbs (override prior hide). */
  .listing-detail-page .detail-portal-section .detail-media-card .detail-gallery-thumbs {
    display: flex !important;
    grid-auto-rows: unset;
    max-height: none;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .listing-detail-page .detail-portal-section .detail-media-card .detail-gallery-thumbs button,
  .listing-detail-page .detail-portal-section .detail-media-card .detail-gallery-thumbs .detail-gallery-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    border-radius: 8px;
    overflow: hidden;
  }

  .listing-detail-page .detail-portal-section .detail-media-card .detail-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .listing-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(220px, 52vw, 300px);
  }

  .listing-detail-page .detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
    min-height: clamp(220px, 52vw, 300px);
    height: clamp(220px, 52vw, 300px);
  }

  /* Keep existing sticky Enquire bar; hide app nav while it is present. */
  body.listing-detail-page.has-detail-mobile-cta .detail-mobile-cta {
    bottom: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   Mobile Option B — Final visual cleanup V1
   Share compact · enquiry progressive disclosure · sticky CTA guard · More-from width
   ========================================================================== */
@media (max-width: 959px) {
  /* Share: compact utility on the back/breadcrumb row — no full-width empty card. */
  .listing-detail-page .detail-top-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back share"
      "crumb crumb";
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
  }

  .listing-detail-page .detail-top-bar .back-link {
    grid-area: back;
  }

  .listing-detail-page .detail-top-bar .detail-breadcrumb {
    grid-area: crumb;
    flex: none;
    width: 100%;
  }

  .listing-detail-page .detail-top-bar .detail-toolbar,
  .listing-detail-page .detail-top-bar .detail-action-bar {
    grid-area: share;
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    position: relative;
  }

  .listing-detail-page .detail-top-bar .detail-icon-actions {
    width: auto;
    justify-content: flex-end;
    gap: 0;
  }

  .listing-detail-page .detail-top-bar .detail-icon-action {
    flex: 0 0 auto;
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
  }

  .listing-detail-page .detail-top-bar .detail-icon-action__label {
    display: none;
  }

  .listing-detail-page .detail-top-bar .detail-icon-action__glyph {
    width: 40px;
    height: 40px;
    background: transparent;
    box-shadow: none;
  }

  .listing-detail-page .detail-top-bar .detail-share-feedback:empty {
    display: none;
  }

  /* Enquiry: fully hidden when collapsed — no placeholder card/gap.
     Inline Enquire + sticky CTA reveal the same form. */
  .listing-detail-page .detail-enquiry-section:not(.is-enquiry-expanded) {
    display: none !important;
  }

  .listing-detail-page .detail-enquiry-section.is-enquiry-expanded {
    scroll-margin-bottom: calc(var(--detail-mobile-cta-clearance, 72px) + 24px);
  }

  /* Suspend sticky rent/Enquire bar while the form region is on-screen. */
  body.listing-detail-page.is-enquiry-form-active .detail-mobile-cta {
    display: none !important;
  }

  body.listing-detail-page.is-enquiry-form-active .detail-enquiry-section.is-enquiry-expanded {
    scroll-margin-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.listing-detail-page.is-enquiry-form-active .detail-enquiry-section .listing-lead-form.contact-form [data-lead-submit],
  body.listing-detail-page.is-enquiry-form-active .detail-enquiry-section .listing-lead-form.contact-form .consent {
    scroll-margin-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Public UX Package A — SERP continuity + card trust polish ===== */
.bayut-card__trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 2px 0 6px;
}

.bayut-card__trust-row .bayut-card__badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bayut-card__trust-row .bayut-card__avail {
  order: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f6b4a;
}

.bayut-card__trust-row .rv-check-badge {
  transform: scale(0.94);
  transform-origin: left center;
}

.bayut-serp-page .bayut-card__price strong,
.bayut-area-page .bayut-card__price strong {
  font-size: 1.18em;
  letter-spacing: -0.01em;
}

.bayut-card__spec-type span {
  font-weight: 600;
  color: #2f3f4c;
}

.bayut-serp-page .bayut-card__specs,
.bayut-area-page .bayut-card__specs {
  gap: 6px 10px;
}

.bayut-serp-page .bayut-card__title,
.bayut-area-page .bayut-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #33404a;
}

.bayut-serp-page .bayut-card__agent,
.bayut-area-page .bayut-card__agent {
  opacity: 0.92;
}

.bayut-serp-page .bayut-card__agent-brand strong,
.bayut-area-page .bayut-card__agent-brand strong {
  font-weight: 600;
  color: #5a6a76;
  font-size: 0.84rem;
}

.bayut-card__media--gallery .property-media-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.bayut-card__media--gallery .property-media-track img {
  scroll-snap-align: start;
}

.property-media-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.property-media-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.95);
}

.property-media-nav--prev {
  left: 8px;
}

.property-media-nav--prev::before {
  margin: -4px 0 0 -2px;
  transform: rotate(135deg);
}

.property-media-nav--next {
  right: 8px;
}

.property-media-nav--next::before {
  margin: -4px 0 0 -6px;
  transform: rotate(-45deg);
}

.property-media-nav:hover,
.property-media-nav:focus-visible {
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.46);
}

.property-media-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

/* Mobile multi-photo: subtle edge cue only (not on single-photo / desktop arrows). */
.bayut-card__swipe-cue {
  display: none;
  position: absolute;
  right: 8px;
  bottom: 10px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.bayut-card__swipe-cue::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -4px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.95);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.95);
  transform: rotate(-45deg);
}

.bayut-card__photo-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  border-radius: 999px;
}

.bayut-serp__active-filters {
  gap: 6px 8px;
  margin: 4px 0 8px;
  max-width: 100%;
  align-items: center;
}

.bayut-serp__active-filters .bayut-tag {
  max-width: min(100%, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bayut-tag--clear {
  flex: 0 0 auto;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 12px;
  color: #0a5c40;
  border-color: rgba(10, 157, 106, 0.35);
  background: #f3fbf7;
}

.bayut-serp__range {
  margin: 0 0 2px;
  align-self: center;
}

.bayut-empty__recover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.bayut-empty__recover-primary {
  display: contents;
}

.bayut-empty__recover-primary[hidden] {
  display: none !important;
}

.bayut-empty__recover .bayut-empty__recover-btn {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 700;
}

.bayut-empty__recover .bayut-btn--outline {
  flex: 0 1 auto;
  min-width: 0;
}

.bayut-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bayut-empty__actions--secondary {
  margin-top: 8px;
}

.bayut-empty__clear-wrap {
  margin: 8px 0 0;
}

.bayut-empty__clear-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6b78;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.bayut-empty__nearby {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.bayut-empty__nearby[hidden] {
  display: none !important;
  margin: 0;
  min-height: 0;
}

.bayut-empty__nearby-label {
  margin: 0;
  color: #5b6b78;
  font-size: 0.85rem;
  font-weight: 600;
}

.bayut-empty__nearby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bayut-empty__nearby .bayut-btn {
  min-width: 0;
}

.bayut-empty__suggestions {
  display: block;
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  color: #5a697b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bayut-empty__suggestions[hidden] {
  display: none !important;
}

.bayut-empty__suggest-item {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bayut-empty__suggest-lead {
  font-weight: 600;
  color: #4a5563;
}

.bayut-empty__suggest-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #cfd8d3;
  background: #f4faf7;
  color: #0a5c40;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 6px;
  cursor: pointer;
}

.bayut-empty__suggest-btn:hover {
  background: #e8f6ef;
}

.bayut-empty__suggest-btn:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

/* Touch / mobile: 1/N + dots + subtle swipe cue; no arrows */
@media (hover: none), (pointer: coarse), (max-width: 900px) {
  .bayut-card__media--gallery .property-media-nav {
    display: none !important;
  }

  .bayut-card__media--gallery .property-media-dots {
    display: inline-flex;
  }

  .bayut-card__media--gallery .bayut-card__swipe-cue {
    display: block;
  }
}

/* Pointer desktop: 1/N + quiet arrows, no dots / swipe cue */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .bayut-card__media--gallery .property-media-dots {
    display: none !important;
  }

  .bayut-card__media--gallery .property-media-nav {
    display: block;
  }

  .bayut-card__media--gallery:not(:hover):not(:focus-within) .property-media-nav {
    opacity: 0.45;
  }

  .bayut-card__swipe-cue {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .bayut-serp__active-filters {
    margin-bottom: 8px;
  }

  .bayut-card__trust-row {
    gap: 5px 7px;
  }

  .bayut-empty .bayut-btn {
    min-width: min(100%, 148px);
  }

  body.listings-page [data-listings-empty] .bayut-empty__nearby-chips .bayut-btn {
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
  }

  .bayut-empty__recover .bayut-btn--primary {
    flex: 1 1 auto;
  }
}

@media (max-width: 430px) {
  .bayut-serp__active-filters {
    gap: 5px 6px;
  }

  .bayut-tag--clear {
    padding: 5px 10px;
  }
}

/* Public multilingual layout tolerance: shared control metrics for EN/SI/TA. */
.bayut-filter-panel,
.bayut-filter-row,
.bayut-filter-field,
.areas-index-card,
.site-header .nav,
.site-footer {
  min-width: 0;
  max-width: 100%;
}
.bayut-filter-label,
.areas-index-card__badge,
.site-footer a {
  line-height: 1.35;
}
.bayut-btn,
.areas-index-card__actions .bayut-btn--primary {
  min-height: 40px;
  height: auto;
  max-height: none;
  align-items: center;
}
.bayut-filter-row {
  flex-wrap: wrap;
}
@media (max-width: 430px) {
  .site-header,
  .bayut-filter-panel,
  .areas-index-card,
  .listing-card {
    max-width: 100%;
  }
}

.commercial-page {
  overflow-x: clip;
}
.commercial-main {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}
.commercial-main h1,
.commercial-count,
.commercial-card__rent,
.commercial-card__facts,
.commercial-filters label {
  overflow-wrap: anywhere;
}
.commercial-count {
  margin: 0.35rem 0 1rem;
}
.commercial-filters fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.commercial-filters legend {
  grid-column: 1 / -1;
  font-weight: 700;
}
.commercial-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.commercial-filters select,
.commercial-filters input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.commercial-filters__check {
  flex-direction: row;
  align-items: center;
  align-self: end;
}
.commercial-filters__check input {
  width: auto;
}
.commercial-empty {
  margin: 1rem 0 1.5rem;
}
.commercial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  min-width: 0;
}
.commercial-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(15, 20, 38, 0.08);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.commercial-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.commercial-detail__gallery,
.commercial-detail__facts,
.commercial-detail__enquiry,
.commercial-detail-page h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.commercial-detail__gallery {
  position: relative;
}
.commercial-detail__gallery img,
.commercial-detail__dialog img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.commercial-detail__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem 1rem;
}
.commercial-detail__facts div { min-width: 0; }
.commercial-detail__enquiry {
  display: grid;
  gap: 0.75rem;
}
.commercial-detail__enquiry input,
.commercial-detail__enquiry textarea,
.commercial-detail__enquiry select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.commercial-card__media {
  position: relative;
  background: #f3f5f8;
}
.commercial-card__photos img,
.commercial-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7ebf0;
}
.commercial-card__nav {
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}
.commercial-card__nav--prev { left: 0.5rem; }
.commercial-card__nav--next { right: 0.5rem; }
.commercial-card__count,
.commercial-card__badge {
  position: absolute;
  margin: 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.72);
  color: #fff;
  font-size: 0.75rem;
}
.commercial-card__count { right: 0.5rem; bottom: 0.5rem; }
.commercial-card__badge { left: 0.5rem; top: 0.5rem; }
.commercial-card__body { padding: 0.85rem 0.9rem 1rem; }
.commercial-card__rent { margin: 0 0 0.35rem; font-weight: 700; }
.commercial-card__per { font-weight: 500; }
.commercial-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.commercial-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
@media (max-width: 420px) {
  .commercial-filters fieldset {
    grid-template-columns: 1fr;
  }
}

body.commercial-page .bayut-filter-panel > form[data-commercial-filters] {
  display: contents;
}

body.commercial-page .bayut-filter-field input[type="number"],
body.commercial-page .bayut-filter-row input[type="number"] {
  width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--heading);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  background: #fff;
}

body.commercial-page .bayut-serp__results {
  min-width: 0;
}

body.commercial-page .bayut-card,
body.commercial-page .bayut-card__body,
body.commercial-page .bayut-card__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.commercial-page.bayut-serp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.commercial-page.bayut-serp-page main.bayut-serp {
  flex: 1 0 auto;
}

/* SERP only — Commercial Detail keeps sticky header stacking (Mobile Nav Overlay P1). */
body.commercial-page.bayut-serp-page .site-header {
  position: static;
  top: auto;
}

body.commercial-page.bayut-serp-page .bayut-serp__sidebar {
  position: static;
  top: auto;
  z-index: auto;
}

body.commercial-page.bayut-serp-page .bayut-serp__toolbar {
  position: static;
  top: auto;
  z-index: auto;
  justify-content: space-between;
}

@media (max-width: 900px) {
  body.commercial-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort.filter-select {
    display: none;
  }
}

@media (max-width: 719px) {
  body.commercial-page .bayut-serp__count {
    min-height: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  body.commercial-page.bayut-serp-page .site-footer {
    padding-bottom: var(--mobile-listings-bottom-stack);
  }
}

.commercial-detail-page .detail-media-frame:not(:has(.detail-gallery-thumbs)) {
  grid-template-columns: minmax(0, 1fr);
}

.commercial-detail-page .commercial-detail__dialog {
  width: min(100vw, 960px);
  max-width: calc(100vw - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: #111;
}

.commercial-detail-page .commercial-detail__dialog img {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: #111;
}

.commercial-detail-page .commercial-detail__dialog [data-commercial-detail-close] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.commercial-detail-page .detail-similar-commercial {
  display: grid;
  gap: 12px;
}

.commercial-detail-page .detail-similar-commercial .bayut-serp__results {
  min-width: 0;
}

body.commercial-detail-page.listing-detail-page > main {
  width: 100%;
  min-width: 0;
}

body.commercial-detail-page.listing-detail-page .detail-location-card .detail-area-map,
body.commercial-detail-page.listing-detail-page .detail-location-card .detail-area-map--preview,
body.commercial-detail-page.listing-detail-page .detail-location-card .detail-area-map-leaflet,
body.commercial-detail-page.listing-detail-page .detail-location-card .detail-area-map-canvas {
  overflow: hidden;
}

body.commercial-detail-page .detail-area-map-pin::before {
  max-width: 100%;
  max-height: 100%;
}

@media (min-width: 1080px) {
  .listing-detail-page .detail-aside-lister-panel .detail-agent-response:not([hidden]) ~ .detail-aside-lister-panel__note {
    display: none;
  }
}

@media (max-width: 390px) {
  body.commercial-detail-page .detail-aside-secondary-ctas,
  body.commercial-detail-page .detail-location-actions,
  body.commercial-detail-page .detail-quick-stats {
    min-width: 0;
  }

  body.commercial-detail-page .detail-scroll-bar-line {
    min-width: 0;
    overflow: hidden;
  }
}

/* ===== Public UX A2 — Ultra-premium listing card trust V1 ===== */
.bayut-serp-page .bayut-card,
.bayut-area-page .bayut-card {
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: #fff;
  overflow: hidden;
}

.bayut-serp-page .bayut-card:hover,
.bayut-area-page .bayut-card:hover {
  border-color: #d5dbe3;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
}

.bayut-serp-page .bayut-card__media,
.bayut-area-page .bayut-card__media {
  isolation: isolate;
}

.bayut-serp-page .bayut-card__media::after,
.bayut-area-page .bayut-card__media::after {
  height: 36%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 72%);
}

.bayut-serp-page .bayut-card__photo-count,
.bayut-area-page .bayut-card__photo-count {
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(15, 23, 32, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Default over media: white outline. Saved state must NOT inherit this white. */
.bayut-serp-page .bayut-card__fav:not(.is-saved),
.bayut-area-page .bayut-card__fav:not(.is-saved) {
  top: 8px;
  right: 8px;
  color: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.bayut-serp-page .bayut-card__fav.is-saved,
.bayut-area-page .bayut-card__fav.is-saved {
  top: 8px;
  right: 8px;
  color: var(--rv-save-heart);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

.bayut-serp-page .bayut-card__fav.is-saved .rv-save-heart,
.bayut-area-page .bayut-card__fav.is-saved .rv-save-heart,
.bayut-serp-page .bayut-card__fav.is-saved .icon,
.bayut-area-page .bayut-card__fav.is-saved .icon {
  color: var(--rv-save-heart);
  fill: var(--rv-save-heart);
  stroke: var(--rv-save-heart);
}

.bayut-serp-page .bayut-card__body,
.bayut-area-page .bayut-card__body {
  gap: 0;
  padding: 12px 14px 12px;
}

.bayut-serp-page .bayut-card__price-row,
.bayut-area-page .bayut-card__price-row {
  margin: 0 0 6px;
  gap: 4px 8px;
}

.bayut-serp-page .bayut-card__price,
.bayut-area-page .bayut-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  color: #122018;
  font-size: 1.22rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.bayut-serp-page .bayut-card__price strong,
.bayut-area-page .bayut-card__price strong {
  font-size: 1em;
  font-weight: 750;
  color: #122018;
}

.bayut-serp-page .bayut-card__price span,
.bayut-area-page .bayut-card__price span {
  font-size: 0.78rem;
  font-weight: 550;
  color: #6a7884;
  letter-spacing: 0;
}

.bayut-serp-page .bayut-card__trust-row,
.bayut-area-page .bayut-card__trust-row {
  gap: 6px 8px;
  margin: 0 0 8px;
}

.bayut-serp-page .bayut-card__trust-row .bayut-card__avail,
.bayut-area-page .bayut-card__trust-row .bayut-card__avail {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef7f2;
  color: #1b6b4a;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
}

.bayut-serp-page .bayut-card__trust-row .rv-check-badge,
.bayut-area-page .bayut-card__trust-row .rv-check-badge,
.bayut-serp-page .bayut-card__trust-row .rv-visit-badge,
.bayut-area-page .bayut-card__trust-row .rv-visit-badge {
  transform: none;
  min-height: 24px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  box-shadow: none;
  border: 1px solid rgba(16, 24, 40, 0.06);
  background: #f6f8fa;
}

.bayut-serp-page .bayut-card__trust-row .rv-check-badge__text strong,
.bayut-area-page .bayut-card__trust-row .rv-check-badge__text strong,
.bayut-serp-page .bayut-card__trust-row .rv-visit-badge__text strong,
.bayut-area-page .bayut-card__trust-row .rv-visit-badge__text strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2f3d48;
}

.bayut-serp-page .bayut-card__specs,
.bayut-area-page .bayut-card__specs {
  gap: 0;
  margin: 0 0 6px;
  color: #243039;
  font-size: 0.8rem;
  font-weight: 600;
}

.bayut-serp-page .bayut-card__specs li,
.bayut-area-page .bayut-card__specs li {
  padding: 0 9px;
  border-right-color: #e1e6ec;
}

.bayut-serp-page .bayut-card__spec-size span,
.bayut-area-page .bayut-card__spec-size span {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.bayut-serp-page .bayut-card__location,
.bayut-area-page .bayut-card__location {
  margin: 0 0 6px;
  color: #5d6b76;
  font-size: 0.8rem;
  line-height: 1.3;
}

.bayut-serp-page .bayut-card__title,
.bayut-area-page .bayut-card__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #5a6670;
  min-height: 0;
}

.bayut-serp-page .bayut-card__title a,
.bayut-area-page .bayut-card__title a {
  color: inherit;
}

.bayut-serp-page .bayut-card__title a:hover,
.bayut-area-page .bayut-card__title a:hover {
  color: var(--primary);
}

.bayut-serp-page .bayut-card__agent,
.bayut-area-page .bayut-card__agent {
  opacity: 1;
  border-top: 1px solid #eef1f4;
  background: #fbfcfd;
}

.bayut-serp-page .bayut-card__agent-brand strong,
.bayut-area-page .bayut-card__agent-brand strong {
  font-weight: 600;
  color: #4d5b66;
  font-size: 0.8rem;
}

/*
 * Public UX A2 micro-fix — mobile/grid media full width.
 * Prior A2 set aspect-ratio:4/3 while older grid rules left height/max-height
 * locked (240px desktop grid, 220px ≤640px). With a definite height, aspect-ratio
 * transferred inline size (~293–320px), leaving a blank strip beside the media.
 * Keep 4/3 proportion via aspect-ratio + width:100%; clear fixed height locks.
 */
.bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media-track,
.bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
}

.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price,
.bayut-area-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price {
  color: #122018;
  font-size: 1.28rem;
}

.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price span,
.bayut-area-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price span {
  color: #6a7884;
  font-size: 0.78rem;
  font-weight: 550;
}

.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title,
.bayut-area-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title {
  font-size: 0.86rem;
  font-weight: 550;
  color: #5a6670;
}

.bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
  background: #fbfcfd;
}

@media (max-width: 430px) {
  .bayut-serp-page .bayut-card__body,
  .bayut-area-page .bayut-card__body {
    padding: 11px 12px 10px;
  }

  .bayut-serp-page .bayut-card__price,
  .bayut-area-page .bayut-card__price {
    font-size: 1.14rem;
  }

  .bayut-serp-page .bayut-card__specs,
  .bayut-area-page .bayut-card__specs {
    font-size: 0.76rem;
  }

  .bayut-serp-page .bayut-card__specs li,
  .bayut-area-page .bayut-card__specs li {
    padding-inline: 7px;
  }

  .bayut-serp-page .bayut-card__title,
  .bayut-area-page .bayut-card__title {
    font-size: 0.82rem;
  }
}

@media (max-width: 360px) {
  .bayut-serp-page .bayut-card__price,
  .bayut-area-page .bayut-card__price {
    font-size: 1.08rem;
  }

  .bayut-serp-page .bayut-card__price span,
  .bayut-area-page .bayut-card__price span {
    font-size: 0.74rem;
  }

  /* Do not reintroduce fixed height — width must stay 100% with aspect-ratio. */
  .bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
  }
}

@media (max-width: 320px) {
  .bayut-serp-page .bayut-card,
  .bayut-area-page .bayut-card {
    max-width: 100%;
  }

  .bayut-serp-page .bayut-card__body,
  .bayut-area-page .bayut-card__body {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bayut-serp-page .bayut-card,
  .bayut-area-page .bayut-card {
    transition: none;
  }
}

/* ===== Public UX A2B — red saved heart + premium desktop filter panel ===== */
@media (min-width: 901px) {
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel {
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    padding: 16px 16px 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.05);
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel__head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom-color: #eef1f4;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel__title {
    font-size: 1.02rem;
    font-weight: 720;
    letter-spacing: -0.01em;
    color: #152028;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-clear {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0a7a52;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-clear:hover {
    background: #f3faf7;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-field {
    gap: 7px;
    margin-bottom: 14px;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-field,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-fieldset,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-check {
    padding-top: 12px;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-field + .bayut-filter-field,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-field + .bayut-filter-fieldset,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-fieldset + .bayut-filter-field,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-field + .bayut-filter-check,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-panel > .bayut-filter-check + .bayut-filter-fieldset {
    border-top-color: #f0f3f6;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-label,
  .bayut-serp-page .bayut-serp__sidebar .filter-select > .bayut-filter-label,
  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-fieldset legend {
    color: #3d4b57;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-input-wrap {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background: #fbfcfd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-input-wrap:focus-within {
    border-color: rgba(10, 157, 106, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.1);
  }

  .bayut-serp-page .bayut-serp__sidebar .filter-select select,
  .bayut-serp-page .bayut-serp__sidebar .listing-custom-select .custom-select-trigger {
    min-height: 40px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background-color: #fbfcfd;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1a2430;
  }

  .bayut-serp-page .bayut-serp__sidebar .filter-select select:focus,
  .bayut-serp-page .bayut-serp__sidebar .listing-custom-select.is-open .custom-select-trigger,
  .bayut-serp-page .bayut-serp__sidebar .listing-custom-select .custom-select-trigger:focus-visible {
    border-color: rgba(10, 157, 106, 0.45);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.1);
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-row {
    gap: 10px;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-pills {
    gap: 7px;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-pill {
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #d7dee6;
    border-radius: 999px;
    background: #f5f7f9;
    color: #24303a;
    font-size: 0.78rem;
    font-weight: 650;
    box-shadow: none;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-pill:hover {
    border-color: #c5ced8;
    background: #eef2f5;
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-pill.is-active {
    background: #0a9d6a;
    border-color: #08885b;
    color: #fff;
    box-shadow: 0 1px 2px rgba(8, 100, 68, 0.18);
  }

  .bayut-serp-page .bayut-serp__sidebar .bayut-filter-check {
    font-size: 0.84rem;
    color: #2a3640;
  }

  /* Area desktop filter strip — same shell language when present */
  .bayut-area-page .bayut-area-filters {
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 22px rgba(16, 24, 40, 0.05);
  }

  .bayut-area-page .bayut-area-filters .bayut-filter-label,
  .bayut-area-page .bayut-area-filters .filter-select > .bayut-filter-label {
    color: #3d4b57;
    font-size: 0.76rem;
    font-weight: 700;
  }

  .bayut-area-page .bayut-area-filters .filter-select select,
  .bayut-area-page .bayut-area-filters .listing-custom-select .custom-select-trigger {
    min-height: 40px;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    background-color: #fbfcfd;
    font-weight: 600;
  }
}

/* ===== Public UX B — Saved + Recently viewed destination V1 ===== */
.bayut-saved-destination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 14px;
  padding: 8px 10px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #fbfcfd;
}

.bayut-saved-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #eef2f5;
}

.bayut-saved-tabs__tab {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  color: #3d4b57;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  line-height: 1.2;
  /* Motion M1 Batch 1 — P1.1: restrained active/hover chrome. */
  transition:
    background var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.bayut-saved-tabs__tab:hover {
  color: #152028;
  background: rgba(255, 255, 255, 0.55);
}

.bayut-saved-tabs__tab.is-active {
  background: #fff;
  color: #102018;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.bayut-saved-tabs__tab:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

.bayut-saved-clear-recent {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: #5b6b78;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.bayut-saved-clear-recent:hover {
  color: #152028;
  background: rgba(16, 24, 40, 0.04);
  text-decoration: none;
}

.bayut-saved-clear-recent:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

body.listings-page [data-recent-empty] .bayut-empty__actions {
  margin-top: 12px;
}

@media (max-width: 430px) {
  .bayut-saved-destination {
    padding: 8px;
    gap: 8px;
  }

  .bayut-saved-tabs {
    width: 100%;
  }

  .bayut-saved-tabs__tab {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .bayut-saved-clear-recent {
    margin-left: auto;
  }
}

/* ==========================================================================
   Listing Detail Ultra Premium Polish V1 — 20261007ListingDetailPremiumV1
   Shared by Residential detail and Commercial detail.
   The original Residential selector is unchanged. Commercial is an added twin.
   Presentation-only. No layout-measurement JS. No new fonts/images/network.
   ========================================================================== */

body.listing-detail-page:not(.commercial-detail-page),
body.listing-detail-page.commercial-detail-page {
  --rv-detail-premium-radius: 13px;
  --rv-detail-premium-radius-sm: 10px;
  --rv-detail-premium-ink: #152028;
  --rv-detail-premium-muted: #5b6b78;
  --rv-detail-premium-soft: #f6f7f9;
  --rv-detail-premium-border: #e5e8ee;
  --rv-detail-premium-gap: 16px;
  --rv-detail-premium-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* --- Page rhythm / surfaces --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-section.compact-section,
body.listing-detail-page.commercial-detail-page .detail-portal-section.compact-section {
  padding-top: 18px;
  padding-bottom: 8px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-body,
body.listing-detail-page.commercial-detail-page .detail-portal-body {
  gap: var(--rv-detail-premium-gap);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-stage,
body.listing-detail-page.commercial-detail-page .detail-gallery-stage {
  margin-bottom: 12px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-section .content-card,
body.listing-detail-page.commercial-detail-page .detail-portal-section .content-card {
  border-radius: var(--rv-detail-premium-radius);
  border-color: var(--rv-detail-premium-border);
  box-shadow: none;
  background: #fff;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-main.detail-longform,
body.listing-detail-page.commercial-detail-page .detail-portal-main.detail-longform {
  gap: var(--rv-detail-premium-gap);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-post-hero,
body.listing-detail-page.commercial-detail-page .detail-post-hero {
  gap: clamp(16px, 2.2vw, 24px);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-description-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-features-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-floorplans-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-video-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-location-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-evidence-card,
body.listing-detail-page.commercial-detail-page .detail-description-card,
body.listing-detail-page.commercial-detail-page .detail-rental-facts-card,
body.listing-detail-page.commercial-detail-page .detail-features-card,
body.listing-detail-page.commercial-detail-page .detail-floorplans-card,
body.listing-detail-page.commercial-detail-page .detail-video-card,
body.listing-detail-page.commercial-detail-page .detail-location-card,
body.listing-detail-page.commercial-detail-page .detail-evidence-card {
  padding: 18px 18px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-description-card h2,
body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts-card h2,
body.listing-detail-page:not(.commercial-detail-page) .detail-features-card h2,
body.listing-detail-page:not(.commercial-detail-page) .detail-floorplans-card h2,
body.listing-detail-page:not(.commercial-detail-page) .detail-video-card h2,
body.listing-detail-page:not(.commercial-detail-page) .detail-location-card h2,
body.listing-detail-page.commercial-detail-page .detail-description-card h2,
body.listing-detail-page.commercial-detail-page .detail-rental-facts-card h2,
body.listing-detail-page.commercial-detail-page .detail-features-card h2,
body.listing-detail-page.commercial-detail-page .detail-floorplans-card h2,
body.listing-detail-page.commercial-detail-page .detail-video-card h2,
body.listing-detail-page.commercial-detail-page .detail-location-card h2 {
  margin: 0 0 12px;
  color: var(--rv-detail-premium-ink);
  font-size: 1.05rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-description-body,
body.listing-detail-page.commercial-detail-page .detail-description-body {
  max-width: 62ch;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-description-body p,
body.listing-detail-page:not(.commercial-detail-page) .detail-description-body ul,
body.listing-detail-page.commercial-detail-page .detail-description-body p,
body.listing-detail-page.commercial-detail-page .detail-description-body ul {
  color: #3d4b57;
  line-height: 1.68;
  font-size: 0.95rem;
}

/* --- Gallery polish (visual only; dimensions / loading unchanged) --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-media-card,
body.listing-detail-page.commercial-detail-page .detail-media-card {
  border-radius: var(--rv-detail-premium-radius);
  border: 1px solid var(--rv-detail-premium-border);
  box-shadow: var(--rv-detail-premium-shadow);
  background: #fff;
  overflow: hidden;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-media-frame::after,
body.listing-detail-page.commercial-detail-page .detail-media-frame::after {
  background: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-section .detail-media-card .detail-gallery-main,
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic,
body.listing-detail-page.commercial-detail-page .detail-portal-section .detail-media-card .detail-gallery-main,
body.listing-detail-page.commercial-detail-page .detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
  border-radius: var(--rv-detail-premium-radius);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-arrow,
body.listing-detail-page.commercial-detail-page .detail-gallery-arrow {
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-count,
body.listing-detail-page.commercial-detail-page .detail-gallery-count {
  border-radius: 999px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(7, 10, 20, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
  font-weight: 650;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-media-overlay,
body.listing-detail-page.commercial-detail-page .detail-media-overlay {
  margin: 10px 12px 12px;
  padding: 8px 10px;
  border-radius: var(--rv-detail-premium-radius-sm);
  border-color: var(--rv-detail-premium-border);
  box-shadow: none;
  background: var(--rv-detail-premium-soft);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-media-overlay strong,
body.listing-detail-page.commercial-detail-page .detail-media-overlay strong {
  min-height: 0;
  padding: 6px 10px;
  font-size: 0.92rem;
  color: var(--rv-detail-premium-ink);
  background: #fff;
  border: 1px solid var(--rv-detail-premium-border);
  border-radius: 8px;
  box-shadow: none;
}

/* --- Title / location / trust / rent hierarchy --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-title-block,
body.listing-detail-page.commercial-detail-page .detail-title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-title-block > h1,
body.listing-detail-page.commercial-detail-page .detail-title-block > h1 {
  order: 1;
  margin: 0;
  color: var(--rv-detail-premium-ink);
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts,
body.listing-detail-page.commercial-detail-page .detail-location-facts {
  display: contents;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts__place,
body.listing-detail-page.commercial-detail-page .detail-location-facts__place {
  order: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 5px;
  align-items: center; /* Shared Residential / Commercial / Sale pin ↔ location-text alignment. */
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts__pin,
body.listing-detail-page.commercial-detail-page .detail-location-facts__pin {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--rv-detail-premium-muted);
  background: var(--rv-detail-premium-soft);
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts__pin .icon,
body.listing-detail-page.commercial-detail-page .detail-location-facts__pin .icon {
  width: 16px;
  height: 16px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-area-line,
body.listing-detail-page.commercial-detail-page .detail-area-line {
  color: var(--rv-detail-premium-muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-area-neighbourhood,
body.listing-detail-page.commercial-detail-page .detail-area-neighbourhood {
  color: #6a7884;
  font-weight: 550;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-nearby-line,
body.listing-detail-page.commercial-detail-page .detail-nearby-line {
  color: #7a8792;
  font-size: 0.8rem;
  font-weight: 500;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-nearby-line__label,
body.listing-detail-page.commercial-detail-page .detail-nearby-line__label {
  color: #7a8792;
  font-weight: 650;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta,
body.listing-detail-page.commercial-detail-page .detail-title-meta {
  order: 3;
  gap: 6px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-facts,
body.listing-detail-page.commercial-detail-page .detail-hero-facts {
  display: contents;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-available,
body.listing-detail-page.commercial-detail-page .detail-hero-available {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 0;
  color: var(--rv-detail-premium-muted);
  font-size: 0.8rem;
  font-weight: 650;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-available::before,
body.listing-detail-page.commercial-detail-page .detail-hero-available::before {
  width: 5px;
  height: 5px;
  background: #2f9d6a;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent,
body.listing-detail-page.commercial-detail-page .detail-hero-rent {
  order: 5;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent strong,
body.listing-detail-page.commercial-detail-page .detail-hero-rent strong {
  color: var(--rv-detail-premium-ink);
  font-size: clamp(1.55rem, 4.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent > span,
body.listing-detail-page.commercial-detail-page .detail-hero-rent > span {
  color: #7a8792;
  font-size: 0.86rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.2;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-deposit,
body.listing-detail-page.commercial-detail-page .detail-mobile-deposit {
  order: 6;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-building-line,
body.listing-detail-page.commercial-detail-page .detail-building-line {
  order: 7;
  color: var(--rv-detail-premium-muted);
  font-size: 0.84rem;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-visited-note,
body.listing-detail-page.commercial-detail-page .detail-visited-note {
  order: 8;
  padding: 8px 10px;
  border-radius: var(--rv-detail-premium-radius-sm);
  background: var(--rv-detail-premium-soft);
  border: 1px solid var(--rv-detail-premium-border);
  color: var(--rv-detail-premium-muted);
  font-size: 0.8rem;
}

/* --- Trust / status chips (calmer, smaller) --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill,
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .status-badge,
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill-compact,
body.listing-detail-page.commercial-detail-page .detail-title-meta .pill,
body.listing-detail-page.commercial-detail-page .detail-title-meta .status-badge,
body.listing-detail-page.commercial-detail-page .detail-title-meta .pill-compact {
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip,
body.listing-detail-page.commercial-detail-page .detail-trust-strip {
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid var(--rv-detail-premium-border);
  border-radius: var(--rv-detail-premium-radius);
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip-inner,
body.listing-detail-page.commercial-detail-page .detail-trust-strip-inner {
  gap: 8px 12px;
  padding: 10px 12px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-meta,
body.listing-detail-page.commercial-detail-page .detail-trust-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rv-detail-premium-muted);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-check-badge,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-check-badge,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-check-badge,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-check-badge {
  gap: 7px;
  padding: 4px 9px 4px 5px;
  border-radius: 8px;
  background: #f3faf6;
  border: 1px solid rgba(10, 122, 88, 0.18);
  color: #0a5c40;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-check-badge__icon,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-check-badge__icon,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-check-badge__icon,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-check-badge__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-check-badge__icon .icon,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-check-badge__icon .icon,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-check-badge__icon .icon,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-check-badge__icon .icon {
  width: 12px;
  height: 12px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-check-badge__text strong,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-check-badge__text strong,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-check-badge__text strong,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-check-badge__text strong {
  font-size: 0.74rem;
  font-weight: 700;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-check-badge__sub,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-check-badge__sub,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-check-badge__sub,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-check-badge__sub {
  font-size: 0.66rem;
  color: #3f7460;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-visit-badge,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-visit-badge,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-visit-badge,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-visit-badge {
  gap: 7px;
  padding: 4px 9px 4px 5px;
  border-radius: 8px;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-visit-badge__icon,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-visit-badge__icon,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-visit-badge__icon,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-visit-badge__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip .rv-visit-badge__text strong,
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-badges .rv-visit-badge__text strong,
body.listing-detail-page.commercial-detail-page .detail-trust-strip .rv-visit-badge__text strong,
body.listing-detail-page.commercial-detail-page .detail-trust-badges .rv-visit-badge__text strong {
  font-size: 0.74rem;
}

/* --- Property facts (compact, scannable) --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats,
body.listing-detail-page.commercial-detail-page .detail-quick-stats {
  order: 9;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats li,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats li,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--rv-detail-premium-border);
  border-radius: 8px;
  background: var(--rv-detail-premium-soft);
  color: var(--rv-detail-premium-ink);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats .icon,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats .icon,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats .icon,
body.listing-detail-page.commercial-detail-page .detail-quick-stats .icon {
  width: 14px;
  height: 14px;
  color: #6a7884;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats__item--furnished,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats__item--furnished,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats__item--furnished,
body.listing-detail-page.commercial-detail-page .detail-quick-stats__item--furnished {
  background: var(--rv-detail-premium-soft);
  border-color: var(--rv-detail-premium-border);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts,
body.listing-detail-page.commercial-detail-page .detail-rental-facts {
  row-gap: 8px;
  column-gap: 16px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts dt,
body.listing-detail-page.commercial-detail-page .detail-rental-facts dt {
  color: #6a7884;
  font-size: 0.78rem;
  font-weight: 650;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts dd,
body.listing-detail-page.commercial-detail-page .detail-rental-facts dd {
  color: var(--rv-detail-premium-ink);
  font-size: 0.9rem;
  font-weight: 650;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts-card h2 {
  margin-bottom: 4px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-living-essentials__support {
  margin: 0 0 12px;
  max-width: 40rem;
  color: #6a7884;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts dd.detail-rental-facts__muted {
  color: #8b97a3;
  font-weight: 500;
}

/* --- Amenities --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-item,
body.listing-detail-page.commercial-detail-page .detail-amenity-item {
  min-height: 40px;
  padding: 7px 10px;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--rv-detail-premium-border);
  border-radius: 8px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-item__icon,
body.listing-detail-page.commercial-detail-page .detail-amenity-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #4d5d6a;
  background: var(--rv-detail-premium-soft);
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-item__icon .icon,
body.listing-detail-page.commercial-detail-page .detail-amenity-item__icon .icon {
  width: 14px;
  height: 14px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-item__label,
body.listing-detail-page.commercial-detail-page .detail-amenity-item__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #243038;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-group__title,
body.listing-detail-page.commercial-detail-page .detail-amenity-group__title {
  color: #6a7884;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom-color: #eef0f3;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-list,
body.listing-detail-page.commercial-detail-page .detail-amenity-list {
  gap: 6px;
}

/* --- Enquiry / aside conversion surface --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside.detail-summary-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside.content-card,
body.listing-detail-page.commercial-detail-page .detail-portal-aside.detail-summary-card,
body.listing-detail-page.commercial-detail-page .detail-portal-aside.content-card {
  padding: 18px;
  border-radius: var(--rv-detail-premium-radius);
  border: 1px solid var(--rv-detail-premium-border);
  box-shadow: var(--rv-detail-premium-shadow);
  background: #fff;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside > * + *,
body.listing-detail-page.commercial-detail-page .detail-portal-aside > * + * {
  margin-top: 14px;
  padding-top: 14px;
  border-top-color: #eef0f3;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rent-amount,
body.listing-detail-page.commercial-detail-page .detail-rent-amount {
  color: var(--rv-detail-premium-ink);
  font-size: clamp(1.4rem, 2.4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rent-meta,
body.listing-detail-page.commercial-detail-page .detail-rent-meta {
  margin-top: 2px;
  color: #7a8792;
  font-size: 0.8rem;
  font-weight: 550;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rent-yearly,
body.listing-detail-page.commercial-detail-page .detail-rent-yearly {
  color: var(--rv-detail-premium-muted);
  font-weight: 550;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-aside-ref,
body.listing-detail-page.commercial-detail-page .detail-aside-ref {
  border-radius: 8px;
  background: var(--rv-detail-premium-soft);
  border-color: var(--rv-detail-premium-border);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-enquire-cta,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta {
  width: 100%;
  border-radius: 12px;
  min-height: 48px;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(8, 138, 92, 0.16);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-enquire-cta .icon,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta .icon {
  width: 18px;
  height: 18px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .button-secondary,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .button-secondary {
  border-radius: 10px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-aside-secondary-ctas,
body.listing-detail-page.commercial-detail-page .detail-aside-secondary-ctas {
  gap: 8px;
  margin-top: 2px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-enquiry-whatsapp-note,
body.listing-detail-page:not(.commercial-detail-page) .detail-enquiry-safety-note--desktop,
body.listing-detail-page:not(.commercial-detail-page) .detail-enquiry-safety-note--mobile,
body.listing-detail-page.commercial-detail-page .detail-enquiry-whatsapp-note,
body.listing-detail-page.commercial-detail-page .detail-enquiry-safety-note--desktop,
body.listing-detail-page.commercial-detail-page .detail-enquiry-safety-note--mobile {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 9px 10px;
  color: var(--rv-detail-premium-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 10px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-enquiry-safety-note--desktop .icon,
body.listing-detail-page:not(.commercial-detail-page) .detail-enquiry-safety-note--mobile .icon,
body.listing-detail-page.commercial-detail-page .detail-enquiry-safety-note--desktop .icon,
body.listing-detail-page.commercial-detail-page .detail-enquiry-safety-note--mobile .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex-shrink: 0;
  color: #5b6b7c;
}

/* --- Listed-by / agent (premium polish V1) --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-agent-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-aside-lister-panel,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-agent-card,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-aside-lister-panel {
  gap: 12px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-agent-head,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-agent-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-eyebrow,
body.listing-detail-page.commercial-detail-page .detail-agent-eyebrow {
  color: #7a8792;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-name,
body.listing-detail-page.commercial-detail-page .detail-agent-name {
  color: var(--rv-detail-premium-ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-name-row,
body.listing-detail-page.commercial-detail-page .detail-agent-name-row {
  align-items: flex-start;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-agent-avatar,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-agent-avatar {
  width: 48px;
  height: 48px;
  font-size: 0.78rem;
}

/* Agency logo unboxed V2 — Property Detail (Residential / Commercial / Sale).
 * Removes CSS white tile / border / radius / padding behind company logos only.
 * Does not touch homepage cards, SERP brand tiles, or agent-profile avatars.
 */
body.listing-detail-page .detail-agent-avatar.is-company-logo,
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-agent-avatar.is-company-logo,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-agent-avatar.is-company-logo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}

body.listing-detail-page .detail-agent-avatar.is-company-logo img,
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-agent-avatar.is-company-logo img,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-agent-avatar.is-company-logo img {
  object-fit: contain;
  background: transparent;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-agent-avatar.is-initials,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-agent-avatar.is-initials {
  border-radius: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-response,
body.listing-detail-page.commercial-detail-page .detail-agent-response {
  color: #5b6b7c;
  font-size: 0.76rem;
  font-weight: 550;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-aside-lister-panel__note,
body.listing-detail-page.commercial-detail-page .detail-aside-lister-panel__note {
  color: #7a8792;
  font-size: 0.76rem;
}

body.listing-detail-page .detail-aside-lister-panel .detail-agent-response:not([hidden]) ~ .detail-aside-lister-panel__note {
  display: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-listed-by-section.compact-section,
body.listing-detail-page.commercial-detail-page .detail-agent-listed-by-section.compact-section {
  padding-top: 20px;
  padding-bottom: 8px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-listed-by,
body.listing-detail-page.commercial-detail-page .detail-agent-listed-by {
  padding: 12px 14px;
  border: 1px solid var(--rv-detail-premium-border);
  border-radius: var(--rv-detail-premium-radius);
  background: #fff;
  box-shadow: none;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-listed-by__label,
body.listing-detail-page.commercial-detail-page .detail-agent-listed-by__label {
  color: #7a8792;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-agent-listed-by__name,
body.listing-detail-page.commercial-detail-page .detail-agent-listed-by__name {
  color: var(--rv-detail-premium-ink);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Soften secondary listed-by strip vs aside lister when both visible */
body.listing-detail-page:not(.commercial-detail-page) .detail-agent-listed-by-section,
body.listing-detail-page.commercial-detail-page .detail-agent-listed-by-section {
  opacity: 0.96;
}

/* --- Recent section rhythm alignment (UX B logic untouched) --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-recommended-section,
body.listing-detail-page.commercial-detail-page .detail-recommended-section {
  padding-top: 36px;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-recommended-heading h2,
body.listing-detail-page.commercial-detail-page .detail-recommended-heading h2 {
  color: var(--rv-detail-premium-ink);
  letter-spacing: -0.02em;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-recommended-view-all,
body.listing-detail-page:not(.commercial-detail-page) .detail-recommended-clear-recent,
body.listing-detail-page.commercial-detail-page .detail-recommended-view-all,
body.listing-detail-page.commercial-detail-page .detail-recommended-clear-recent {
  border-radius: 8px;
}

/* --- UX C presentation tokens only (behavior frozen) --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-cta,
body.listing-detail-page.commercial-detail-page .detail-mobile-cta {
  border-top-left-radius: var(--rv-detail-premium-radius);
  border-top-right-radius: var(--rv-detail-premium-radius);
  border-top-color: var(--rv-detail-premium-border);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  background: #fff;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-cta-rent strong,
body.listing-detail-page.commercial-detail-page .detail-mobile-cta-rent strong {
  color: var(--rv-detail-premium-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-cta-rent span,
body.listing-detail-page.commercial-detail-page .detail-mobile-cta-rent span {
  color: #7a8792;
  font-weight: 550;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-quick-actions-sheet,
body.listing-detail-page.commercial-detail-page .detail-quick-actions-sheet {
  border-radius: 14px 14px 0 0;
  border-color: var(--rv-detail-premium-border);
  box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.1);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-quick-actions-sheet__head h2,
body.listing-detail-page.commercial-detail-page .detail-quick-actions-sheet__head h2 {
  color: var(--rv-detail-premium-ink);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-quick-action,
body.listing-detail-page.commercial-detail-page .detail-quick-action {
  border-radius: 10px;
}

/* --- Desktop balance --- */
@media (min-width: 1080px) {
body.listing-detail-page:not(.commercial-detail-page) .detail-post-hero,
body.listing-detail-page.commercial-detail-page .detail-post-hero {
    grid-template-columns: minmax(0, 1fr) minmax(292px, 328px);
    gap: clamp(18px, 2.4vw, 28px);
    align-items: start;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside,
body.listing-detail-page.commercial-detail-page .detail-portal-aside {
    top: calc(var(--header-height) + var(--detail-scroll-bar-offset, 0px) + 16px);
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-description-body,
body.listing-detail-page.commercial-detail-page .detail-description-body {
    max-width: 58ch;
  }
}

/* --- Mobile rhythm / overflow safety --- */
@media (max-width: 959px) {
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-body,
body.listing-detail-page.commercial-detail-page .detail-portal-body {
    gap: 14px;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-title-block,
body.listing-detail-page.commercial-detail-page .detail-title-block {
    gap: 8px;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-title-block > h1,
body.listing-detail-page.commercial-detail-page .detail-title-block > h1 {
    font-size: clamp(1.28rem, 5.4vw, 1.55rem);
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent strong,
body.listing-detail-page.commercial-detail-page .detail-hero-rent strong {
    font-size: clamp(1.4rem, 6vw, 1.7rem);
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats,
body.listing-detail-page.commercial-detail-page .detail-quick-stats {
    gap: 6px;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats li,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats li,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
    flex: 1 1 calc(50% - 6px);
    min-width: min(100%, 140px);
    max-width: 100%;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-list,
body.listing-detail-page.commercial-detail-page .detail-amenity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside.detail-summary-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-description-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-features-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-location-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-evidence-card,
body.listing-detail-page.commercial-detail-page .detail-portal-aside.detail-summary-card,
body.listing-detail-page.commercial-detail-page .detail-description-card,
body.listing-detail-page.commercial-detail-page .detail-rental-facts-card,
body.listing-detail-page.commercial-detail-page .detail-features-card,
body.listing-detail-page.commercial-detail-page .detail-location-card,
body.listing-detail-page.commercial-detail-page .detail-evidence-card {
    padding: 14px;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip-inner,
body.listing-detail-page.commercial-detail-page .detail-trust-strip-inner {
    padding: 8px 10px;
  }
}

@media (max-width: 390px) {
body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats li,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats li,
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
    flex: 1 1 100%;
    min-width: 0;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-item__label,
body.listing-detail-page.commercial-detail-page .detail-amenity-item__label {
    font-size: 0.78rem;
  }

body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill,
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .status-badge,
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill-compact,
body.listing-detail-page.commercial-detail-page .detail-title-meta .pill,
body.listing-detail-page.commercial-detail-page .detail-title-meta .status-badge,
body.listing-detail-page.commercial-detail-page .detail-title-meta .pill-compact {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
}

@media (max-width: 360px) {
body.listing-detail-page:not(.commercial-detail-page) .detail-amenity-list,
body.listing-detail-page.commercial-detail-page .detail-amenity-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Focus + reduced motion preserved / clarified */
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-enquire-cta:focus-visible,
body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-cta .button:focus-visible,
body.listing-detail-page:not(.commercial-detail-page) .detail-quick-action:focus-visible,
body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-arrow:focus-visible,
body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta:focus-visible,
body.listing-detail-page.commercial-detail-page .detail-mobile-cta .button:focus-visible,
body.listing-detail-page.commercial-detail-page .detail-quick-action:focus-visible,
body.listing-detail-page.commercial-detail-page .detail-gallery-arrow:focus-visible {
  outline: 2px solid rgba(10, 122, 88, 0.55);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb img,
body.listing-detail-page:not(.commercial-detail-page) .detail-similar-card,
body.listing-detail-page.commercial-detail-page .detail-gallery-thumb img,
body.listing-detail-page.commercial-detail-page .detail-similar-card {
    transition: none;
  }
}

/* ==========================================================================
   Residential Property Detail Premium R1 — 20261022DetailPremiumR1
   Photo-First Decision Surface (presentation only).
   Scoped to residential detail. Commercial Detail untouched.
   Does NOT reorder DOM (gallery remains after title in source/focus order).
   Mobile: compress pre-gallery chrome + taller gallery stage (~48–56vh).
   Desktop: mosaic polish, rent hierarchy, enquiry surface, restrained motion.
   ========================================================================== */

body.listing-detail-page:not(.commercial-detail-page) {
  --rv-detail-r1-ink: #141c2b;
  --rv-detail-r1-muted: #4e5d56;
  --rv-detail-r1-soft: #f4f1eb;
  --rv-detail-r1-border: #e6dfd4;
  --rv-detail-r1-radius: 14px;
  --rv-detail-r1-shadow: 0 1px 2px rgba(20, 28, 43, 0.05);
}

/* --- Identity: rent first among equals, calmer title --- */
body.listing-detail-page:not(.commercial-detail-page) .detail-title-block > h1 {
  color: var(--rv-detail-r1-ink);
  font-size: clamp(1.28rem, 3.2vw, 1.72rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.028em;
  line-height: 1.16;
  text-wrap: balance;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent strong {
  color: var(--rv-detail-r1-ink);
  font-size: clamp(1.65rem, 4.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.02;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent > span {
  color: var(--rv-detail-r1-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-area-line {
  color: var(--rv-detail-r1-muted);
  font-weight: 600;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-hero-available {
  color: var(--rv-detail-r1-muted);
}

/* Trust: clearer strip; quieter duplicate chips in title meta */
body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip {
  background: #fff;
  border-color: var(--rv-detail-r1-border);
  border-radius: var(--rv-detail-r1-radius);
  box-shadow: var(--rv-detail-r1-shadow);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill,
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .status-badge,
body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill-compact {
  opacity: 0.92;
}

/* Decision support surfaces */
body.listing-detail-page:not(.commercial-detail-page) .detail-cash-move,
body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts-card,
body.listing-detail-page:not(.commercial-detail-page) [data-rental-needs-detail] .content-card {
  border-radius: var(--rv-detail-r1-radius);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts dd.detail-rental-facts__muted {
  color: #9aa5b0;
  font-weight: 450;
  font-style: normal;
  opacity: 0.92;
}

body.listing-detail-page:not(.commercial-detail-page) .detail-rental-facts dt:has(+ dd.detail-rental-facts__muted) {
  color: #9aa5b0;
  font-weight: 550;
}

/* Enquiry panel — visual prominence without changing meaning */
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside.detail-summary-card,
body.listing-detail-page:not(.commercial-detail-page) .detail-rent-card-aside {
  border-color: var(--rv-detail-r1-border);
  border-radius: var(--rv-detail-r1-radius);
  box-shadow: var(--rv-detail-r1-shadow);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-enquire-cta {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(8, 138, 92, 0.18);
}

body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .button-secondary.button-full {
  border-radius: 12px;
  border-color: rgba(20, 28, 43, 0.12);
  background: #fff;
}

/* --- Desktop gallery mosaic polish (composition / 1160px width preserved) --- */
@media (min-width: 960px) {
  body.listing-detail-page:not(.commercial-detail-page) .detail-media-card {
    border-radius: var(--rv-detail-r1-radius);
    border-color: var(--rv-detail-r1-border);
    box-shadow: var(--rv-detail-r1-shadow);
    overflow: hidden;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
    gap: 6px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mosaic-stack {
    gap: 6px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mosaic-cell {
    background: #e6dfd4;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mosaic-cell img {
    will-change: auto;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumbs {
    gap: 8px;
    padding: 10px 4px 2px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid transparent;
    outline-offset: 1px;
    transition: outline-color 0.2s var(--ease, ease);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb.is-active {
    outline-color: rgba(10, 157, 106, 0.55);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb img {
    transition: opacity 0.2s var(--ease, ease);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.listing-detail-page:not(.commercial-detail-page) .detail-mosaic-cell img {
    transition: transform 0.45s var(--ease, ease);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mosaic-cell:hover img {
    transform: scale(1.03);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb:hover img {
    opacity: 0.92;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .detail-enquire-cta:hover {
    filter: brightness(1.03);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside .button-secondary.button-full:hover {
    border-color: rgba(10, 157, 106, 0.35);
  }
}

/* --- Mobile: compress pre-gallery chrome; enlarge photo stage --- */
@media (max-width: 959px) {
  body.listing-detail-page:not(.commercial-detail-page) .detail-portal-section.compact-section {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-portal-head {
    margin-bottom: 0;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-top-bar {
    gap: 6px;
    margin-bottom: 6px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-section-nav {
    margin-bottom: 6px;
    gap: 6px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-section-nav a {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-portal-body {
    gap: 10px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-title-block {
    gap: 6px;
    margin-bottom: 2px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-title-block > h1 {
    font-size: clamp(1.08rem, 4.4vw, 1.28rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-nearby-line {
    display: none; /* nearby remains in Location section; keep identity compact above photos */
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta {
    gap: 4px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill,
  body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .status-badge,
  body.listing-detail-page:not(.commercial-detail-page) .detail-title-meta .pill-compact {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 0.66rem;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent {
    margin-top: 0;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-hero-rent strong {
    font-size: clamp(1.48rem, 6.2vw, 1.78rem);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts__pin {
    width: 28px;
    height: 28px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-area-line {
    font-size: 0.88rem;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-nearby-line {
    font-size: 0.74rem;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-hero-available {
    font-size: 0.74rem;
    padding: 2px 0;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-deposit {
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    max-height: 4.2em;
    overflow: hidden;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-deposit .detail-rental-terms-heading {
    font-size: 0.72rem;
    margin: 0 0 2px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-visited-note {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  /* Dense fact chips — override full-width stack that delayed the gallery */
  body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats,
  body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats {
    gap: 5px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats li,
  body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats li {
    flex: 1 1 calc(50% - 5px);
    min-width: min(100%, 132px);
    max-width: calc(50% - 5px);
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.74rem;
    border-radius: 8px;
    background: var(--rv-detail-r1-soft);
    border-color: var(--rv-detail-r1-border);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats .icon,
  body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats .icon {
    width: 13px;
    height: 13px;
  }

  /* Photo stage: ~48–56vh, stable frame before load */
  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-stage {
    margin-top: 2px;
    margin-bottom: 8px;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-media-card {
    border-radius: 0;
    background: #e6dfd4;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-main.is-scroll-gallery {
    height: clamp(260px, 54vh, 380px);
    min-height: 260px;
    max-height: 56vh;
    background: #e6dfd4;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-main.is-scroll-gallery .detail-gallery-track img,
  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-main.is-scroll-gallery > .detail-gallery-hero-img {
    object-fit: cover;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-trust-strip {
    margin-bottom: 8px;
    border-radius: 0;
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-cta .button.button-primary,
  body.listing-detail-page:not(.commercial-detail-page) .detail-mobile-cta [data-detail-enquire] {
    min-height: 46px;
    font-weight: 750;
  }
}

@media (max-width: 390px) {
  /* Keep 2-up chips on small phones (do not force 100% width stacks) */
  body.listing-detail-page:not(.commercial-detail-page) .detail-location-facts .detail-quick-stats li,
  body.listing-detail-page:not(.commercial-detail-page) .detail-quick-stats li {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    max-width: calc(50% - 5px);
  }

  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-main.is-scroll-gallery {
    height: clamp(250px, 52vh, 360px);
    max-height: 54vh;
  }
}

@media (max-width: 360px) {
  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-main.is-scroll-gallery {
    height: clamp(230px, 48vh, 330px);
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.listing-detail-page:not(.commercial-detail-page) .detail-mosaic-cell img,
  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb img,
  body.listing-detail-page:not(.commercial-detail-page) .detail-gallery-thumb {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Commercial Property Detail Premium R1 — 20261022CommercialDetailPremiumR1
   Photo-led commercial decision surface (presentation only).
   Scoped to body.commercial-detail-page. Residential Detail R1 untouched.
   Does NOT reorder DOM (gallery remains after title in source/focus order).
   Mobile: compress pre-gallery chrome + dense commercial fact chips + taller stage.
   Desktop: mosaic polish, rent/sqft hierarchy, enquiry surface, restrained motion.
   No bedrooms / Cash to Move In / residential lifestyle chrome.
   ========================================================================== */

body.listing-detail-page.commercial-detail-page {
  --rv-com-detail-r1-ink: #141c2b;
  --rv-com-detail-r1-muted: #5b6778;
  --rv-com-detail-r1-soft: #f5f7fa;
  --rv-com-detail-r1-border: #e4e8ee;
  --rv-com-detail-r1-radius: 14px;
  --rv-com-detail-r1-shadow: 0 1px 2px rgba(20, 28, 43, 0.05);
}

/* --- Identity: rent first; commercial title calmer --- */
body.listing-detail-page.commercial-detail-page .detail-title-block > h1 {
  color: var(--rv-com-detail-r1-ink);
  font-size: clamp(1.28rem, 3.2vw, 1.72rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.028em;
  line-height: 1.16;
  text-wrap: balance;
}

body.listing-detail-page.commercial-detail-page .detail-hero-rent strong {
  color: var(--rv-com-detail-r1-ink);
  font-size: clamp(1.65rem, 4.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.02;
}

body.listing-detail-page.commercial-detail-page .detail-hero-rent > span {
  color: var(--rv-com-detail-r1-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

body.listing-detail-page.commercial-detail-page .detail-area-line {
  color: var(--rv-com-detail-r1-muted);
  font-weight: 600;
}

body.listing-detail-page.commercial-detail-page .detail-hero-available {
  color: var(--rv-com-detail-r1-muted);
}

/* Trust: Listing Checked strip stays; quieter title-meta chips */
body.listing-detail-page.commercial-detail-page .detail-trust-strip {
  background: #fff;
  border-color: var(--rv-com-detail-r1-border);
  border-radius: var(--rv-com-detail-r1-radius);
  box-shadow: var(--rv-com-detail-r1-shadow);
}

body.listing-detail-page.commercial-detail-page .detail-title-meta .pill,
body.listing-detail-page.commercial-detail-page .detail-title-meta .status-badge,
body.listing-detail-page.commercial-detail-page .detail-title-meta .pill-compact {
  opacity: 0.92;
}

/* Commercial fact chips — primary (size + rent/sqft) vs secondary (type/fit/floors/parking) */
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats > li:nth-child(1),
body.listing-detail-page.commercial-detail-page .detail-quick-stats > li:nth-child(1),
body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats__item--rate,
body.listing-detail-page.commercial-detail-page .detail-quick-stats__item--rate {
  background: #fff;
  border-color: rgba(20, 28, 43, 0.14);
  color: var(--rv-com-detail-r1-ink);
  font-weight: 700;
}

body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats > li:not(:nth-child(1)):not(.detail-quick-stats__item--rate),
body.listing-detail-page.commercial-detail-page .detail-quick-stats > li:not(:nth-child(1)):not(.detail-quick-stats__item--rate) {
  background: var(--rv-com-detail-r1-soft);
  border-color: var(--rv-com-detail-r1-border);
  color: #3d4b57;
  font-weight: 600;
}

/* Enquiry panel — visual prominence without moving forms / focus order */
body.listing-detail-page.commercial-detail-page .detail-portal-aside.detail-summary-card,
body.listing-detail-page.commercial-detail-page .detail-rent-card-aside {
  border-color: var(--rv-com-detail-r1-border);
  border-radius: var(--rv-com-detail-r1-radius);
  box-shadow: var(--rv-com-detail-r1-shadow);
}

body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(8, 138, 92, 0.18);
}

body.listing-detail-page.commercial-detail-page .detail-portal-aside .button-secondary.button-full {
  border-radius: 12px;
  border-color: rgba(20, 28, 43, 0.12);
  background: #fff;
}

body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-rent-amount {
  color: var(--rv-com-detail-r1-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.listing-detail-page.commercial-detail-page .detail-portal-aside [data-listing-aside-rent-per-sqft-wrap] dd,
body.listing-detail-page.commercial-detail-page .detail-portal-aside [data-listing-aside-rent-per-sqft] {
  color: var(--rv-com-detail-r1-ink);
  font-weight: 700;
}

/* Commercial longform surfaces */
body.listing-detail-page.commercial-detail-page .detail-rental-facts-card,
body.listing-detail-page.commercial-detail-page .detail-description-card,
body.listing-detail-page.commercial-detail-page .detail-features-card,
body.listing-detail-page.commercial-detail-page .detail-location-card,
body.listing-detail-page.commercial-detail-page .detail-evidence-card {
  border-radius: var(--rv-com-detail-r1-radius);
}

/* --- Desktop gallery mosaic polish --- */
@media (min-width: 960px) {
  body.listing-detail-page.commercial-detail-page .detail-media-card {
    border-radius: var(--rv-com-detail-r1-radius);
    border-color: var(--rv-com-detail-r1-border);
    box-shadow: var(--rv-com-detail-r1-shadow);
    overflow: hidden;
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-section .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
    gap: 6px;
  }

  body.listing-detail-page.commercial-detail-page .detail-mosaic-stack {
    gap: 6px;
  }

  body.listing-detail-page.commercial-detail-page .detail-mosaic-cell {
    background: #e8ecf1;
    border-radius: 4px;
    overflow: hidden;
  }

  body.listing-detail-page.commercial-detail-page .detail-mosaic-cell img {
    will-change: auto;
    object-fit: cover;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-thumbs {
    gap: 8px;
    padding: 10px 4px 2px;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid transparent;
    outline-offset: 1px;
    transition: outline-color 0.2s var(--ease, ease);
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb.is-active {
    outline-color: rgba(10, 157, 106, 0.55);
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb img {
    transition: opacity 0.2s var(--ease, ease);
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-count {
    border-radius: 999px;
    background: rgba(7, 10, 20, 0.58);
    border-color: rgba(255, 255, 255, 0.14);
    font-weight: 650;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-arrow:focus-visible,
  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb:focus-visible,
  body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta:focus-visible,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta .button:focus-visible {
    outline: 2px solid var(--primary, #0a9d6a);
    outline-offset: 2px;
  }
}

@media (min-width: 1280px) {
  body.listing-detail-page.commercial-detail-page .detail-portal-section.compact-section {
    padding-top: 20px;
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-body {
    gap: 18px;
  }

  body.listing-detail-page.commercial-detail-page .detail-post-hero {
    gap: clamp(18px, 2.4vw, 28px);
  }

  body.listing-detail-page.commercial-detail-page .detail-hero-rent strong {
    font-size: clamp(1.75rem, 2.1vw, 2.1rem);
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats {
    gap: 8px;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 10px;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.listing-detail-page.commercial-detail-page .detail-mosaic-cell img {
    transition: transform 0.45s var(--ease, ease);
  }

  body.listing-detail-page.commercial-detail-page .detail-mosaic-cell:hover img {
    transform: scale(1.03);
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb:hover img {
    opacity: 0.92;
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-aside.detail-summary-card {
    transition: box-shadow 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease);
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-aside.detail-summary-card:hover {
    border-color: rgba(10, 157, 106, 0.28);
    box-shadow: 0 8px 22px rgba(20, 28, 43, 0.07);
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta:hover {
    filter: brightness(1.03);
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-aside .button-secondary.button-full:hover {
    border-color: rgba(10, 157, 106, 0.35);
  }

  body.listing-detail-page.commercial-detail-page .detail-mobile-cta .button.button-primary:hover,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta [data-detail-enquire]:hover {
    filter: brightness(1.03);
  }
}

/* --- Mobile: compress pre-gallery chrome; densify commercial facts; enlarge photo stage --- */
@media (max-width: 959px) {
  body.listing-detail-page.commercial-detail-page .detail-portal-section.compact-section {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-head {
    margin-bottom: 0;
  }

  body.listing-detail-page.commercial-detail-page .detail-top-bar {
    gap: 6px;
    margin-bottom: 6px;
  }

  body.listing-detail-page.commercial-detail-page .detail-section-nav {
    margin-bottom: 6px;
    gap: 6px;
  }

  body.listing-detail-page.commercial-detail-page .detail-section-nav a {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  body.listing-detail-page.commercial-detail-page .detail-portal-body {
    gap: 10px;
  }

  body.listing-detail-page.commercial-detail-page .detail-title-block {
    gap: 6px;
    margin-bottom: 2px;
  }

  body.listing-detail-page.commercial-detail-page .detail-title-block > h1 {
    font-size: clamp(1.08rem, 4.4vw, 1.28rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.listing-detail-page.commercial-detail-page .detail-nearby-line {
    display: none;
  }

  body.listing-detail-page.commercial-detail-page .detail-title-meta {
    gap: 4px;
  }

  body.listing-detail-page.commercial-detail-page .detail-title-meta .pill,
  body.listing-detail-page.commercial-detail-page .detail-title-meta .status-badge,
  body.listing-detail-page.commercial-detail-page .detail-title-meta .pill-compact {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 0.66rem;
  }

  body.listing-detail-page.commercial-detail-page .detail-hero-rent {
    margin-top: 0;
  }

  body.listing-detail-page.commercial-detail-page .detail-hero-rent strong {
    font-size: clamp(1.48rem, 6.2vw, 1.78rem);
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts__pin {
    width: 28px;
    height: 28px;
  }

  body.listing-detail-page.commercial-detail-page .detail-area-line {
    font-size: 0.88rem;
  }

  body.listing-detail-page.commercial-detail-page .detail-hero-available {
    font-size: 0.74rem;
    padding: 2px 0;
  }

  body.listing-detail-page.commercial-detail-page .detail-visited-note {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  /*
   * Dense commercial fact grid — size + rent/sqft on row 1 (visual only;
   * DOM / reading / keyboard order unchanged). Secondary facts fill below.
   * Overrides the ≤390px full-width stack that delayed the gallery.
   */
  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats > li:nth-child(1),
  body.listing-detail-page.commercial-detail-page .detail-quick-stats > li:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats__item--rate,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats__item--rate {
    grid-column: 2;
    grid-row: 1;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
    flex: unset;
    min-width: 0;
    max-width: none;
    width: auto;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.74rem;
    border-radius: 8px;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats .icon,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats .icon {
    width: 13px;
    height: 13px;
  }

  /* Photo stage: ~48–56vh, stable frame; preserve object-fit cover (no distortion) */
  body.listing-detail-page.commercial-detail-page .detail-gallery-stage {
    margin-top: 2px;
    margin-bottom: 8px;
  }

  body.listing-detail-page.commercial-detail-page .detail-media-card {
    border-radius: 0;
    background: #e8ecf1;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(260px, 54vh, 380px);
    min-height: 260px;
    max-height: 56vh;
    background: #e8ecf1;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-main.is-scroll-gallery .detail-gallery-track img,
  body.listing-detail-page.commercial-detail-page .detail-gallery-main.is-scroll-gallery > .detail-gallery-hero-img {
    object-fit: cover;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-count {
    border-radius: 999px;
    background: rgba(7, 10, 20, 0.58);
    font-weight: 650;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-arrow:focus-visible,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta .button:focus-visible,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta [data-detail-enquire]:focus-visible {
    outline: 2px solid var(--primary, #0a9d6a);
    outline-offset: 2px;
  }

  body.listing-detail-page.commercial-detail-page .detail-trust-strip {
    margin-bottom: 8px;
    border-radius: 0;
  }

  body.listing-detail-page.commercial-detail-page .detail-mobile-cta .button.button-primary,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta [data-detail-enquire] {
    min-height: 46px;
    font-weight: 750;
    transition: filter 0.2s var(--ease, ease);
  }
}

@media (max-width: 390px) {
  /* Keep dense 2-up (do not force 100% width stacks) */
  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
    flex: unset;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  body.listing-detail-page.commercial-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(250px, 52vh, 360px);
    max-height: 54vh;
  }
}

@media (max-width: 360px) {
  body.listing-detail-page.commercial-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(230px, 48vh, 330px);
    max-height: 52vh;
  }
}

@media (max-width: 320px) {
  body.listing-detail-page.commercial-detail-page .detail-title-block > h1 {
    font-size: 1.02rem;
  }

  body.listing-detail-page.commercial-detail-page .detail-hero-rent strong {
    font-size: 1.36rem;
  }

  body.listing-detail-page.commercial-detail-page .detail-location-facts .detail-quick-stats li,
  body.listing-detail-page.commercial-detail-page .detail-quick-stats li {
    padding: 4px 6px;
    font-size: 0.7rem;
    min-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.listing-detail-page.commercial-detail-page .detail-mosaic-cell img,
  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb img,
  body.listing-detail-page.commercial-detail-page .detail-gallery-thumb,
  body.listing-detail-page.commercial-detail-page .detail-portal-aside.detail-summary-card,
  body.listing-detail-page.commercial-detail-page .detail-portal-aside .detail-enquire-cta,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta .button.button-primary,
  body.listing-detail-page.commercial-detail-page .detail-mobile-cta [data-detail-enquire] {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ==========================================================================
   Public Desktop Header Premium V1 — 20261007DesktopHeaderPremiumV1
   Logo Proportion Micro-Fix V1 — 20261007DesktopHeaderLogoProportionV1
   Final Composition Micro-Fix V1 — 20261007DesktopHeaderFinalCompositionV1
   Renter hierarchy — 20261021HomeHeaderV1
   Desktop (≥1280px) only. Logo artwork, height, and URLs stay.
   Mobile/tablet (≤1279) header, burger, drawer, and bottom bar stay.
   ========================================================================== */

@media (min-width: 1280px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ef;
    box-shadow: none;
  }

  .bayut-serp-page.home-page .site-header {
    border-bottom-color: #e6e9ef;
  }

  .site-header.is-scrolled,
  .bayut-serp-page.home-page .site-header.is-scrolled {
    background: #ffffff;
    border-bottom-color: #d5dbe3;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Align masthead with the shared public page container rhythm */
  .site-header > .nav.container {
    width: min(var(--container), calc(100% - 32px));
    max-width: var(--container);
  }

  /*
   * Composition: brand | primary nav | (flex free space) | utilities/actions
   * Override base justify-content: space-between so free space is NOT the
   * brand→Home void.
   */
  .site-header .nav {
    min-height: var(--header-height);
    justify-content: flex-start;
    gap: 18px;
  }

  /*
   * Compact SVG viewBox 498×104 has ~22% horizontal + vertical padding around
   * the pin/wordmark. Crop via overflow so ~190px CSS window ≈ true ink presence
   * (not an inflated box that still looks small).
   * Logo V2 wordmark shells use .logo--wordmark-v2 and skip this crop.
   * PropGlen homepage shells use .logo--propglen and keep the approved PNG.
   */
  .site-header .logo:not(.logo--wordmark-v2):not(.logo--propglen) {
    flex: 0 0 auto;
    width: 190px;
    height: 38px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    line-height: 0;
  }

  .site-header .logo:not(.logo--wordmark-v2):not(.logo--propglen) img {
    width: 243px;
    max-width: none;
    height: auto;
    margin-left: -13px;
    content: url("../assets/logos/rentverified-logo-compact.svg");
  }

  .site-header .nav-menu {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    position: relative;
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.925rem;
    font-weight: 550;
    letter-spacing: 0.005em;
    color: #2f3946;
    border-radius: 0;
    background: transparent;
  }

  .site-header .nav-menu > a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login) {
    color: #0b1220;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
  }

  .site-header .nav-menu > a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 22px;
    height: 1.5px;
    transform: translateX(-50%);
    background: var(--primary);
    pointer-events: none;
    /* underline pseudo — not a layout hack */
  }

  /* Logo is the Home control. The desktop Home item stays in the burger below 1280. */
  .site-header .nav-menu > a.nav-desktop-only[href="/"] {
    display: none;
  }

  .site-header .nav-menu > a[href="/listings/"]:not(.nav-cta):not(.nav-agent-login),
  .site-header .nav-menu > a[href="/commercial/"]:not(.nav-cta):not(.nav-agent-login),
  .site-header .nav-menu > a[href="/areas/"]:not(.nav-cta):not(.nav-agent-login) {
    color: #172033;
    font-weight: 650;
    letter-spacing: -0.011em;
  }

  .site-header .nav-menu > a[href="/agents/"]:not(.nav-cta):not(.nav-agent-login) {
    color: #5b6778;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .site-header .nav-menu a:focus-visible,
  .site-header .nav-menu a.nav-agent-login:focus-visible {
    outline: 2px solid rgba(10, 157, 106, 0.55);
    outline-offset: 2px;
  }

  /*
   * Language — one compact grouped control. margin-left:auto parks utilities
   * on the right so leftover space is absorbed AFTER primary nav.
   */
  .site-header .rv-lang--desktop,
  .nav-menu .rv-lang--desktop {
    position: relative;
    margin-left: auto;
    margin-right: 4px;
    padding: 3px;
    gap: 1px;
    border-radius: 8px;
    background: #f1f3f6;
  }

  .site-header .rv-lang--desktop::before,
  .nav-menu .rv-lang--desktop::before {
    display: none;
  }

  .site-header .rv-lang--desktop .rv-lang__option,
  .nav-menu .rv-lang--desktop .rv-lang__option {
    min-height: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #5b6778;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .site-header .rv-lang--desktop .rv-lang__option:hover,
  .nav-menu .rv-lang--desktop .rv-lang__option:hover {
    color: #0b1220;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.72);
  }

  .site-header .rv-lang--desktop .rv-lang__option:focus-visible,
  .nav-menu .rv-lang--desktop .rv-lang__option:focus-visible {
    outline: 2px solid rgba(10, 157, 106, 0.5);
    outline-offset: 1px;
    color: #0b1220;
  }

  .site-header .rv-lang--desktop .rv-lang__option.is-active,
  .nav-menu .rv-lang--desktop .rv-lang__option.is-active,
  html[lang="en"] .site-header .rv-lang--desktop .rv-lang__option[data-rv-lang-option="en"],
  html[lang="si"] .site-header .rv-lang--desktop .rv-lang__option[data-rv-lang-option="si"],
  html[lang="ta"] .site-header .rv-lang--desktop .rv-lang__option[data-rv-lang-option="ta"],
  html:not([lang="si"]):not([lang="ta"]) .site-header .rv-lang--desktop .rv-lang__option[data-rv-lang-option="en"] {
    background: #ffffff;
    border-color: transparent;
    color: #0a6f4c;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  }

  /* Agent Portal — secondary text */
  .site-header .nav-menu a.nav-agent-login {
    flex: 0 0 auto;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-left: 2px;
    padding: 6px 10px;
    line-height: 1.2;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5b6778;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  /* Register stays reachable, as quiet text rather than the only solid button. */
  .site-header .nav-menu a.nav-cta,
  .site-header .nav-menu a.nav-cta.button,
  .site-header .nav-cta.button {
    flex: 0 0 auto;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 34px;
    height: auto;
    margin-left: 2px;
    padding: 6px 10px;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #5b6778;
    box-shadow: none;
    transform: none;
  }

  .site-header .nav-menu a.nav-cta .icon {
    display: none;
  }

  /* SI/TA desktop — retain locale density; adopt light premium colors/CTA */
  html[lang="si"] .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login),
  html[lang="ta"] .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    color: #2f3946;
  }

  html[lang="si"] .site-header .nav-menu > a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="ta"] .site-header .nav-menu > a[aria-current="page"]:not(.nav-cta):not(.nav-agent-login) {
    color: #0b1220;
  }

  html[lang="si"] .site-header .nav-menu a.nav-agent-login,
  html[lang="ta"] .site-header .nav-menu a.nav-agent-login {
    color: #5b6778;
    background: transparent;
    border: 0;
  }

  html[lang="si"] .site-header .nav-menu > a[href="/listings/"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="si"] .site-header .nav-menu > a[href="/commercial/"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="si"] .site-header .nav-menu > a[href="/areas/"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="ta"] .site-header .nav-menu > a[href="/listings/"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="ta"] .site-header .nav-menu > a[href="/commercial/"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="ta"] .site-header .nav-menu > a[href="/areas/"]:not(.nav-cta):not(.nav-agent-login) {
    color: #172033;
    font-weight: 650;
  }

  html[lang="si"] .site-header .nav-menu > a[href="/agents/"]:not(.nav-cta):not(.nav-agent-login),
  html[lang="ta"] .site-header .nav-menu > a[href="/agents/"]:not(.nav-cta):not(.nav-agent-login) {
    color: #5b6778;
    font-weight: 500;
  }

  html[lang="si"] .site-header .nav-menu a.nav-cta,
  html[lang="ta"] .site-header .nav-menu a.nav-cta {
    border: 0;
    background: transparent;
    color: #5b6778;
    box-shadow: none;
  }
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login):hover {
    color: #0b1220;
    background: transparent;
  }

  .site-header .nav-menu a.nav-agent-login:hover {
    color: #0b1220;
    border-color: transparent;
    background: transparent;
  }

  .site-header .nav-menu a.nav-cta:hover,
  .site-header .nav-menu a.nav-cta.button:hover,
  .site-header .nav-cta.button:hover {
    color: #172033;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }
}

@media (min-width: 1280px) and (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header.is-scrolled {
    transition: none;
  }
}

@media (min-width: 1440px) {
  .site-header > .nav.container {
    width: min(var(--container), calc(100% - 48px));
    max-width: var(--container);
  }

  /* Keep brand→nav tight; free space stays after primary nav via margin-left:auto */
  .site-header .nav {
    gap: 20px;
  }

  .site-header .logo:not(.logo--wordmark-v2):not(.logo--propglen) {
    width: 195px;
  }

  .site-header .logo:not(.logo--wordmark-v2):not(.logo--propglen) img {
    width: 250px;
    margin-left: -14px;
  }

  .site-header .nav-menu > a:not(.nav-cta):not(.nav-agent-login) {
    padding: 6px 11px;
  }
}

/* ============================================================
   Home Premium V1 — 20261007HomePremiumV1
   Scoped to .home-page only. Do not alter Header/Footer/A2/Detail.
   ============================================================ */

/* Enquiry icon tiles (replaces WhatsApp-branded tiles on factual form/email copy) */
.home-page .enquiry-tile,
.home-page .enquiry-icon {
  background: var(--icon-grad-primary);
  box-shadow: 0 8px 18px rgba(10, 157, 106, 0.18);
}

.home-page .enquiry-icon .icon {
  width: 21px;
  height: 21px;
}

/* --- Hero hierarchy --- */
.home-page .home-hero::before {
  background:
    radial-gradient(70% 60% at 8% 6%, rgba(10, 157, 106, 0.08) 0%, transparent 58%),
    radial-gradient(60% 55% at 96% 18%, rgba(15, 191, 154, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7, 10, 20, 0.2) 0%, rgba(7, 10, 20, 0.1) 50%, rgba(238, 241, 248, 0.16) 82%, var(--bg) 100%);
}

.home-page .home-hero .hero-aurora {
  opacity: 0.38;
  filter: blur(52px);
}

.home-page .home-hero .hero-pill {
  padding: 7px 12px 7px 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.01em;
}

.home-page .home-hero .hero-pill-dot {
  width: 7px;
  height: 7px;
  background: #7dd3b0;
  box-shadow: 0 0 0 3px rgba(125, 211, 176, 0.22);
  animation: none;
}

.home-page .home-hero .hero-copy h1 {
  margin-bottom: 12px;
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.8vw, 2.55rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.home-page .home-hero .hero-heading-accent {
  color: #e8f7f0;
  font-weight: inherit;
}

.home-page .home-hero .hero-text {
  max-width: 42ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: var(--weight-body);
  line-height: 1.5;
  text-shadow: none;
}

.home-page .home-hero .hero-stats {
  gap: 10px;
  margin-top: 22px;
  max-width: 560px;
}

.home-page .home-hero .hero-stat {
  flex: 1 1 0;
  min-width: 118px;
  grid-template-columns: 26px 1fr;
  column-gap: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.home-page .home-hero .hero-stat-icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  color: #0b513f;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: none;
}

.home-page .home-hero .hero-stat strong {
  font-size: 0.92rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.01em;
}

.home-page .home-hero .hero-stat span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  line-height: 1.3;
}

/* --- Search card (A2-aligned surface) --- */
.home-page .home-hero .search-card {
  width: min(100%, 440px);
  padding: 18px 16px 16px;
  color: var(--heading);
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .home-hero .search-card__eyebrow {
  margin: 0 0 2px;
  color: #5b6778;
  font-size: 0.7rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-page .home-hero .search-card h2 {
  margin-bottom: 4px;
  color: #0b1220;
  font-size: 1.08rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.015em;
}

.home-page .home-hero .search-card__hint {
  margin: 0 0 12px;
  color: #5b6778;
  font-size: 0.8rem;
  line-height: 1.4;
}

.home-page .home-hero .app-search-field.has-icon .app-search-icon {
  color: #5b6778;
}

.home-page .home-hero .app-search-field input,
.home-page .home-hero .home-filter-select .custom-select-trigger {
  min-height: 46px;
  color: #0b1220;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  box-shadow: none;
}

.home-page .home-hero .app-search-field input:focus,
.home-page .home-hero .home-filter-select .custom-select-trigger:focus {
  border-color: #0a9d6a;
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.12);
}

.home-page .home-hero .home-select-grid {
  gap: 8px;
  margin: 10px 0 12px;
}

.home-page .home-hero .home-filter-trigger__icon {
  color: #5b6778;
}

.home-page .home-hero .search-card .button.button-primary {
  min-height: 48px;
  margin-top: 2px;
  border-radius: 10px;
  font-weight: var(--weight-title);
  box-shadow: none;
}

.home-page .home-hero .launch-mini-card {
  margin-top: 12px;
  padding: 10px 12px;
  color: #355f54;
  background: #f4f7f6;
  border: 1px solid #e4ebe8;
  border-radius: 10px;
}

.home-page .home-hero .launch-mini-card strong {
  color: #0b513f;
  font-size: 0.78rem;
}

.home-page .home-hero .launch-mini-card span {
  color: #4a5d57;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* --- Live strip --- */
.home-page .home-live-strip {
  border-block: 1px solid #e8edf2;
  background: #fafbfc;
}

.home-page .home-live-strip__link {
  color: #0b1220;
  border-color: #dedede;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: none;
}

/* --- Section panels --- */
.home-page .home-section {
  padding-block: 44px;
}

.home-page .home-section + .home-section {
  margin-top: 0;
}

.home-page .post-hero-panel,
.home-page .home-listing-panel,
.home-page .how-panel {
  padding: clamp(18px, 2.8vw, 26px);
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .home-section .eyebrow {
  min-height: 0;
  padding: 0;
  margin-bottom: 8px;
  color: #5b6778;
  font-size: 0.75rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.home-page .home-section .eyebrow::before {
  display: none;
}

.home-page .home-section .section-heading h2 {
  margin-bottom: 8px;
  color: #0b1220;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  letter-spacing: -0.02em;
}

.home-page .home-section-note {
  color: #5b6778;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Area cards --- */
.home-page .home-area-card {
  border: 1px solid #dedede;
  border-radius: 12px;
  box-shadow: none;
}

.home-page .home-area-card:hover,
.home-page .home-area-card:focus-visible {
  border-color: #c9d3de;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.05);
}

/* --- Featured property cards (visual A2 alignment) --- */
.home-page .home-section-listings .home-property-card {
  border: 1px solid #dedede;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-section-listings .home-property-card:hover {
    transform: none;
    border-color: #d3dde8;
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.08);
  }

  .home-page .home-section-listings .home-property-card:hover .home-property-media img {
    transform: none;
  }
}

.home-page .home-section-listings .home-property-body h3 {
  color: #0b1220;
  font-size: 1rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.015em;
}

.home-page .home-section-listings .home-property-body strong {
  color: #0b1220;
  font-size: 1.05rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
}

.home-page .home-section-listings .home-card-link {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #0a9d6a;
  box-shadow: none;
}

.home-page .home-listing-actions .button-primary {
  box-shadow: none;
  border-radius: 10px;
}

.home-page .home-listing-actions .button-secondary {
  border-radius: 10px;
  border-color: #dedede;
  background: #ffffff;
  color: #0b1220;
  box-shadow: none;
}

/* --- Trust / Why (calm dark band, less noise) --- */
.home-page .home-section-trust {
  padding-block: 56px;
  background: #0f1724;
}

.home-page .home-section-trust::before {
  background:
    radial-gradient(48% 80% at 0% 0%, rgba(10, 157, 106, 0.18) 0%, transparent 62%),
    radial-gradient(42% 70% at 100% 100%, rgba(15, 191, 154, 0.1) 0%, transparent 64%);
}

.home-page .home-section-trust::after {
  opacity: 0.18;
}

.home-page .home-section-trust .why-section-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .home-section-trust .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.home-page .home-section-trust h2 {
  color: #ffffff;
}

.home-page .home-section-trust .home-section-note,
.home-page .home-section-trust .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.home-page .home-section-trust .app-card-grid {
  gap: 12px;
}

.home-page .home-section-trust .why-card {
  min-height: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-section-trust .why-card:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
  }
}

.home-page .home-section-trust .why-icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.home-page .home-section-trust .why-svg-icon {
  width: 20px;
  height: 20px;
}

.home-page .home-section-trust .why-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.home-page .home-section-trust .why-card p {
  font-size: 0.86rem;
  line-height: 1.45;
}

/* --- How it works --- */
.home-page .home-section-process .how-card-grid {
  gap: 12px;
}

.home-page .home-section-process .how-card {
  padding: 18px 16px;
  border: 1px solid #dedede;
  border-radius: 12px;
  box-shadow: none;
  background: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-section-process .how-card:hover {
    transform: none;
    border-color: #d3dde8;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
  }
}

.home-page .home-section-process .how-icon,
.home-page .home-section-process .enquiry-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  box-shadow: none;
}

.home-page .home-section-process .how-step {
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
  background: #f4f7f6;
  border-color: #e4ebe8;
  color: #0b513f;
}

.home-page .home-section-process .how-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: #355f54;
  background: #f4f7f6;
  border: 1px solid #e4ebe8;
  border-radius: 10px;
  font-weight: var(--weight-body);
}

/* --- CTA hierarchy --- */
.home-page .home-section-cta .audience-cta-grid {
  gap: 16px;
}

.home-page .home-section-cta .audience-card {
  min-height: 0;
  padding: 22px 20px;
  border: 1px solid #dedede;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
  background: #ffffff;
}

.home-page .home-section-cta .audience-card::after {
  display: none;
}

.home-page .home-section-cta .audience-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: none;
}

.home-page .home-section-cta .audience-card .eyebrow {
  color: #5b6778;
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 4px;
}

.home-page .home-section-cta .audience-card .eyebrow::before {
  display: none;
}

.home-page .home-section-cta .audience-card h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}

.home-page .home-section-cta .audience-card > p:not(.eyebrow) {
  margin-bottom: 14px;
  color: #5b6778;
  font-size: 0.9rem;
}

.home-page .home-section-cta .renter-card .button-primary {
  border-radius: 10px;
  box-shadow: none;
}

.home-page .home-section-cta .renter-card .button-secondary,
.home-page .home-section-cta .agent-card .button-secondary {
  border-radius: 10px;
  border-color: #dedede;
  background: #ffffff;
  color: #0b1220;
  box-shadow: none;
}

.home-page .home-section-cta .agent-card .button {
  /* Secondary surface for List your property vs Browse primary elsewhere */
  font-weight: var(--weight-label);
}

/* --- Mobile density --- */
@media (max-width: 760px) {
  .home-page .home-hero {
    padding: calc(var(--header-height) + 14px) 0 18px;
  }

  .home-page .home-hero .hero-copy h1 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 7.6vw, 2.15rem);
    line-height: 1.1;
  }

  .home-page .home-hero .hero-text {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .home-page .home-hero .hero-stats {
    gap: 6px;
    margin-top: 12px;
  }

  .home-page .home-hero .hero-stat {
    flex: 1 1 calc(50% - 3px);
    padding: 8px 9px;
    border-radius: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .home-hero .hero-stat:last-child {
    flex: 1 1 100%;
  }

  .home-page .home-hero .hero-stat-icon {
    width: 22px;
    height: 22px;
    padding: 4px;
  }

  .home-page .home-hero .hero-stat strong {
    font-size: 0.84rem;
  }

  .home-page .home-hero .hero-stat span {
    font-size: 0.68rem;
  }

  .home-page .home-hero .search-card {
    padding: 14px 12px 12px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
  }

  .home-page .home-hero .search-card h2 {
    margin-bottom: 2px;
    font-size: 1rem;
  }

  .home-page .home-hero .search-card__hint {
    margin-bottom: 10px;
    font-size: 0.76rem;
  }

  .home-page .home-hero .home-select-grid {
    margin: 8px 0 10px;
  }

  .home-page .home-section {
    padding-block: 22px;
  }

  .home-page .home-section-areas {
    padding-top: 8px;
    padding-bottom: 18px;
  }

  .home-page .post-hero-panel,
  .home-page .home-listing-panel,
  .home-page .how-panel {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .home-page .home-section-trust {
    padding-block: 32px;
  }

  .home-page .home-section-trust .app-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-page .home-section-trust .why-card {
    padding: 12px;
    gap: 6px;
  }

  .home-page .home-section-trust .why-icon-tile {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .home-page .home-section-trust .why-svg-icon {
    width: 17px;
    height: 17px;
  }

  .home-page .home-section-trust .why-card h3 {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .home-page .home-section-trust .why-card p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .home-page .home-section-process .how-card {
    padding: 14px 12px;
  }

  .home-page .home-section-cta .audience-card {
    padding: 16px 14px;
  }

  .home-page .home-section-cta .audience-card .button,
  .home-page .home-section-cta .audience-card .button-group .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .home-page .home-hero .hero-stat span {
    font-size: 0.66rem;
  }

  .home-page .home-section-trust .why-card p {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero .hero-aurora,
  .home-page .home-hero .hero-pill-dot {
    animation: none !important;
  }
}

/* ============================================================
   Home Premium Visual Energy V1 — 20261007HomePremiumVisualEnergyV1
   Restores controlled brand energy on Home Premium structure.
   Scoped to .home-page only. Header/Footer/A2/Detail untouched.
   ============================================================ */

/* Hero overlay — richer image depth; keep left text contrast */
.home-page .home-hero {
  background:
    linear-gradient(
      180deg,
      rgba(7, 10, 20, 0.78) 0%,
      rgba(7, 10, 20, 0.42) 18%,
      rgba(7, 10, 20, 0.46) 56%,
      rgba(7, 10, 20, 0.84) 100%
    ),
    url("../assets/images/optimized/home-hero2.webp") center / cover no-repeat,
    var(--ink-900);
}

.home-page .home-hero::before {
  background:
    radial-gradient(70% 60% at 8% 6%, rgba(10, 157, 106, 0.14) 0%, transparent 58%),
    radial-gradient(60% 55% at 96% 18%, rgba(15, 191, 154, 0.1) 0%, transparent 60%),
    radial-gradient(50% 50% at 78% 92%, rgba(52, 224, 176, 0.06) 0%, transparent 62%),
    linear-gradient(180deg, rgba(7, 10, 20, 0.18) 0%, rgba(7, 10, 20, 0.08) 50%, rgba(238, 241, 248, 0.14) 82%, var(--bg) 100%);
}

.home-page .home-hero .hero-aurora {
  opacity: 0.52;
  filter: blur(48px);
}

/* Eyebrow — clearer emerald status accent (no glow/animation) */
.home-page .home-hero .hero-pill-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.28);
  animation: none;
}

/* H1 — restore emerald emphasis on "actually trust" only */
.home-page .home-hero .hero-heading-accent {
  color: #19c98c;
  font-weight: inherit;
}

/* Value-card icon tiles — branded emerald identity; surfaces stay calm */
.home-page .home-hero .hero-stat-icon {
  width: 26px;
  height: 26px;
  padding: 5px;
  color: #062f1f;
  background: linear-gradient(135deg, #34e0b0, #0fbf9a);
  border-radius: 8px;
  box-shadow: none;
}

/* Featured cards — restrained desktop hover only */
.home-page .home-section-listings .home-property-card {
  transition:
    transform 0.2s var(--ease, ease),
    box-shadow 0.2s var(--ease, ease),
    border-color 0.2s var(--ease, ease);
}

.home-page .home-section-listings .home-property-media {
  overflow: hidden;
}

.home-page .home-section-listings .home-property-media img {
  transition: transform 0.2s var(--ease, ease);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-section-listings .home-property-card:hover {
    transform: translateY(-3px);
    border-color: rgba(10, 157, 106, 0.32);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1);
  }

  .home-page .home-section-listings .home-property-card:hover .home-property-media img {
    transform: scale(1.02);
  }

  .home-page .home-section-listings .home-property-card:hover .home-property-body strong {
    color: #061018;
  }

  .home-page .home-section-listings .home-property-card:hover .home-card-link {
    background: #088a5c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero .hero-aurora,
  .home-page .home-hero .hero-pill-dot {
    animation: none !important;
  }

  .home-page .home-section-listings .home-property-card,
  .home-page .home-section-listings .home-property-card:hover {
    transform: none !important;
    transition: border-color 0.01ms linear, box-shadow 0.01ms linear;
  }

  .home-page .home-section-listings .home-property-media img,
  .home-page .home-section-listings .home-property-card:hover .home-property-media img {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Home Ultra-Premium Closeout Micro-Fix V1
   Token: 20261008HomeUltraPremiumCloseoutMicroFixV1
   Scoped to .home-page only. Header/Footer/hero search/JS frozen.
   ============================================================ */

/* --- P0: Hero → body seam (remove grey band under CTA rail) ---
   Cause: .home-page .home-live-strip painted a full-bleed #fafbfc band
   + border-block under the floating rail, colliding with the hero bottom
   fade into --bg. Keep the rail; drop the stray section strip. */
.home-page .home-live-strip {
  border-block: 0;
  background: transparent;
  padding-bottom: 10px;
}

.home-page .home-live-strip__inner {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 157, 106, 0.18);
  box-shadow:
    0 16px 34px rgba(7, 10, 20, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.72);
}

.home-page .home-hero::before {
  background:
    radial-gradient(70% 60% at 8% 6%, rgba(10, 157, 106, 0.14) 0%, transparent 58%),
    radial-gradient(60% 55% at 96% 18%, rgba(15, 191, 154, 0.1) 0%, transparent 60%),
    radial-gradient(50% 50% at 78% 92%, rgba(52, 224, 176, 0.05) 0%, transparent 62%),
    linear-gradient(
      180deg,
      rgba(7, 10, 20, 0.18) 0%,
      rgba(7, 10, 20, 0.08) 48%,
      rgba(238, 241, 248, 0.08) 78%,
      rgba(238, 241, 248, 0.55) 90%,
      var(--bg) 100%
    );
}

.home-page .home-section-areas {
  padding-top: 28px;
}

/* --- P0: Dark trust heading contrast (specificity fix) ---
   .home-page .home-section .section-heading h2 (#0b1220) was winning over
   .home-page .home-section-trust h2 (#fff). Raise specificity + tier copy. */
.home-page .home-section-trust .section-heading h2,
.home-page .home-section-trust h2 {
  color: #f5f7fb;
}

.home-page .home-section-trust .why-section-panel .eyebrow,
.home-page .home-section-trust .eyebrow {
  color: rgba(210, 245, 228, 0.9);
}

.home-page .home-section-trust .home-section-note,
.home-page .home-section-trust .section-heading p,
.home-page .home-section-trust .compact-heading p:last-child {
  color: rgba(226, 234, 248, 0.8);
}

.home-page .home-section-trust .why-card h3 {
  color: #f3f6ff;
}

.home-page .home-section-trust .why-card p {
  color: rgba(214, 222, 240, 0.78);
}

/* --- P0/P1: Featured rent already present (.rent-badge); strengthen anchor --- */
@media (min-width: 901px) {
  .home-page .home-section-listings .home-property-media .property-image-meta,
  .home-page .home-section-listings .home-property-media .property-image-meta--overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
  }

  .home-page .home-section-listings .home-property-media .media-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    width: auto;
    max-width: calc(100% - 140px);
    justify-content: flex-start;
    gap: 6px;
  }

  .home-page .home-section-listings .home-property-media .rent-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: auto;
    top: auto;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    width: auto;
    min-height: 0;
    padding: 7px 12px 8px;
    color: #062018;
    font-size: 1.02rem;
    font-weight: var(--weight-title);
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(10, 157, 106, 0.28);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(7, 10, 20, 0.18);
  }

  .home-page .home-section-listings .home-property-media .rent-badge::before {
    content: "Rent";
    display: block;
    margin-bottom: 1px;
    color: #0a7d56;
    font-size: 0.66rem;
    font-weight: var(--weight-label);
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
  }
}

.home-page .home-section-listings .home-property-avail {
  color: #0a8a5c;
  font-weight: var(--weight-label);
}

/* --- P1: Popular Areas micro-polish --- */
.home-page .home-area-card {
  background: #ffffff;
  border: 1px solid #e4eaef;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.025);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.home-page .home-area-card__name {
  color: #0b1220;
  font-size: 0.98rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.015em;
}

.home-page .home-area-card__count,
.home-page .home-area-card .chip-count {
  color: #6b7382;
  font-size: 0.78rem;
  font-weight: 500;
}

.home-page .home-area-card__chevron {
  color: #a0a8b5;
  font-size: 1.2rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.home-page .home-area-card--action {
  background: #f8fafb;
  border-style: dashed;
  border-color: #d6dde6;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-area-card:hover,
  .home-page .home-area-card:focus-visible {
    border-color: rgba(10, 157, 106, 0.38);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
    transform: translateY(-1px);
  }

  .home-page .home-area-card:hover .home-area-card__chevron,
  .home-page .home-area-card:focus-visible .home-area-card__chevron {
    color: var(--primary);
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-area-card,
  .home-page .home-area-card__chevron {
    transition: none !important;
  }

  .home-page .home-area-card:hover,
  .home-page .home-area-card:focus-visible {
    transform: none !important;
  }

  .home-page .home-area-card:hover .home-area-card__chevron,
  .home-page .home-area-card:focus-visible .home-area-card__chevron {
    transform: none !important;
  }
}

/* --- P1: How it works — soften outer panel (keep steps + safety note) --- */
.home-page .home-section-process {
  background: transparent;
  border-block: 0;
}

.home-page .home-section-process .how-panel {
  padding: clamp(8px, 1.6vw, 14px) 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .home-section-process .how-card {
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid #e4eaef;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.home-page .home-section-process .how-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: #2f5c4f;
  background: #f3f8f6;
  border: 1px solid #dde8e3;
  border-radius: 12px;
}

/* --- P1: Audience CTA cards — tighter density + clearer hierarchy --- */
.home-page .home-section-cta .audience-cta-grid {
  gap: 14px;
}

.home-page .home-section-cta .audience-card {
  min-height: 0;
  gap: 8px 12px;
  padding: 18px 18px 16px;
  border: 1px solid #e4eaef;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
  background: #ffffff;
}

.home-page .home-section-cta .audience-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.home-page .home-section-cta .audience-card .eyebrow {
  margin-bottom: 0;
  color: #0a7d56;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.home-page .home-section-cta .audience-card h2 {
  margin-bottom: 2px;
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-page .home-section-cta .audience-card > p:not(.eyebrow) {
  margin-bottom: 10px;
  color: #5b6778;
  font-size: 0.88rem;
  line-height: 1.45;
}

.home-page .home-section-cta .audience-card .button,
.home-page .home-section-cta .audience-card .button-group {
  margin-top: 0;
}

@media (max-width: 760px) {
  .home-page .home-section-areas {
    padding-top: 10px;
  }

  .home-page .home-section-process .how-panel {
    padding-top: 0;
  }

  .home-page .home-section-cta .audience-card {
    padding: 14px 14px 12px;
  }
}

/* ===== Commercial SERP / Cards Premium V1 — Batch A (2026-10-08) ===== */
/* STRUCTURAL PARITY (2026-11-12): Commercial Discovery SERP body now also has
   `listings-page`, so Residential Dense Trust presentation applies.
   Legacy commercial-only presentation overrides below are scoped with
   `:not(.listings-page)` and are inert on the shared Discovery SERP.
   Commercial-data extras live in css/commercial-discovery-premium.css. */

body.commercial-page:not(.listings-page) .bayut-card__title,
body.commercial-page:not(.listings-page) .bayut-card__title a {
  text-transform: none;
  letter-spacing: normal;
}

body.commercial-page:not(.listings-page) .bayut-card__price strong {
  color: #1a2330;
  font-weight: 750;
}

body.commercial-page:not(.listings-page) .bayut-card__price span {
  color: #6a7582;
  font-weight: 500;
  font-size: 0.86em;
}

body.commercial-page:not(.listings-page) .bayut-card__trust-row .bayut-card__avail:empty {
  display: none;
}

body.commercial-page:not(.listings-page) .bayut-card__specs {
  gap: 6px 10px;
}

body.commercial-page:not(.listings-page) .bayut-card__body {
  gap: 0;
}

body.commercial-page:not(.listings-page) .bayut-card__location {
  margin: 0 0 6px;
}

body.commercial-page:not(.listings-page) .bayut-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #33404a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] .bayut-card__title {
  -webkit-line-clamp: 3;
}

body.commercial-page:not(.listings-page) .bayut-empty {
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  background: #fff;
  padding: 28px 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.commercial-page:not(.listings-page) .bayut-empty h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2330;
}

body.commercial-page:not(.listings-page) .bayut-empty p {
  margin: 0 0 16px;
  color: #5b6778;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.commercial-page:not(.listings-page) .bayut-serp__count {
  color: #5b6778;
  font-size: 0.9rem;
}

/* Commercial Listings — Premium R1 (20261022CommercialPremiumR1).
   CSS-only; scoped to body.commercial-page:not(.listings-page). Photography-led cards + chrome.
   Does not change catalogues, filters engine, SSR markup, JS, or Detail. */
body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card,
body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] .bayut-card {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration-ui) var(--ease),
    box-shadow var(--duration-ui) var(--ease);
}

/* True Parity V1: remove fixed 256px commercial grid media lock.
   Shared Residential grid media rules (min-height 190 + natural photo frame) apply. */
body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
  min-height: 190px;
  height: auto;
  max-height: none;
}

body.commercial-page:not(.listings-page) .bayut-card__media .property-media img {
  transition: transform 0.55s var(--ease);
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card:hover,
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] .bayut-card:hover {
    border-color: rgba(10, 157, 106, 0.42);
    box-shadow:
      0 0 0 1px rgba(10, 157, 106, 0.22),
      var(--shadow);
  }

  body.commercial-page:not(.listings-page) .bayut-card:hover .bayut-card__media .property-media img {
    transform: scale(1.04);
  }
}

body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card__body,
body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] .bayut-card__body {
  gap: 4px;
  padding: 15px 16px 13px;
}

body.commercial-page:not(.listings-page) .bayut-card__price-row {
  margin-bottom: 2px;
}

/* List price density matches Residential Dense Trust (1.05rem); grid keeps premium 1.3rem. */
body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price {
  color: var(--heading);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__price {
  color: var(--heading);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price strong {
  font-size: 1em;
  font-weight: 780;
  letter-spacing: -0.01em;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__price strong {
  font-size: 1em;
  letter-spacing: -0.025em;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__price span,
body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

body.commercial-page:not(.listings-page) .bayut-card__trust-row {
  margin: 0 0 4px;
  gap: 6px 8px;
}

body.commercial-page:not(.listings-page) .bayut-card__trust-row .bayut-card__avail {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-strong);
}

body.commercial-page:not(.listings-page) .bayut-card__trust-row .rv-check-badge {
  transform: none;
  opacity: 0.96;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-card__title {
  margin: 0 0 2px;
  color: var(--heading);
  font-size: 0.94rem;
  font-weight: var(--weight-title);
  letter-spacing: -0.015em;
  line-height: 1.28;
}

/* Commercial fact line — sqft / type / fit-out only (no residential fields). */
body.commercial-page:not(.listings-page) .bayut-card__specs {
  margin: 0 0 4px;
  gap: 6px 10px;
  color: var(--heading);
  font-size: 0.8rem;
  font-weight: 650;
}

body.commercial-page:not(.listings-page) .bayut-card__spec-type span,
body.commercial-page:not(.listings-page) .bayut-card__spec-fit span,
body.commercial-page:not(.listings-page) .bayut-card__spec-size span {
  font-weight: 550;
  color: #5a697b;
}

body.commercial-page:not(.listings-page) .bayut-card__location {
  margin: 0 0 4px;
  color: #667585;
  font-size: 0.8rem;
}

body.commercial-page:not(.listings-page) .bayut-card__meta {
  color: #8a95a3;
  font-weight: 500;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent,
body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__agent {
  opacity: 0.88;
  background: var(--surface-warm);
  border-color: rgba(227, 232, 241, 0.9);
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
  padding: 10px 14px 12px;
  background: #fafbfd;
}

body.commercial-page:not(.listings-page).bayut-serp-page .bayut-card__agent-brand strong,
body.commercial-page:not(.listings-page).bayut-serp-page .bayut-card__agent-brand .lister-brand-name-link {
  color: #6a7884;
  font-weight: 600;
  font-size: 0.76rem;
}

body.commercial-page:not(.listings-page) .bayut-card__agent-actions .bayut-btn {
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    filter var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-card__agent-actions .bayut-btn:hover {
  filter: brightness(0.98);
}

body.commercial-page:not(.listings-page) .bayut-card__agent-actions .bayut-btn:active {
  filter: brightness(0.96);
}

body.commercial-page:not(.listings-page) .bayut-card__agent-actions .bayut-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Filters + results chrome */
body.commercial-page:not(.listings-page) .bayut-filter-panel {
  border-color: var(--border);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-field input[type="number"],
body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-row input[type="number"],
body.commercial-page:not(.listings-page) .bayut-filter-panel .custom-select-trigger,
body.commercial-page:not(.listings-page) .bayut-filter-panel select:not(.native-filter-select) {
  border-radius: 10px;
  border-color: var(--border-strong);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-filter-panel .custom-select-trigger:hover,
body.commercial-page:not(.listings-page) .bayut-filter-panel select:not(.native-filter-select):hover,
body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-field input[type="number"]:hover,
body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-row input[type="number"]:hover {
  border-color: rgba(10, 157, 106, 0.35);
}

body.commercial-page:not(.listings-page) .bayut-filter-panel .custom-select-trigger:focus-visible,
body.commercial-page:not(.listings-page) .bayut-filter-panel select:not(.native-filter-select):focus-visible,
body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-field input[type="number"]:focus-visible,
body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-row input[type="number"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: rgba(10, 157, 106, 0.45);
}

body.commercial-page:not(.listings-page) .bayut-serp__toolbar {
  border-color: var(--border);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
  padding: 10px 12px;
}

body.commercial-page:not(.listings-page) .bayut-serp__toolbar.is-stuck {
  box-shadow: var(--shadow-sm);
}

body.commercial-page:not(.listings-page) .bayut-serp__count {
  color: #4a5568;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.commercial-page:not(.listings-page) .bayut-serp__title {
  letter-spacing: -0.02em;
}

body.commercial-page:not(.listings-page) .bayut-serp__subtitle {
  color: #6a7582;
}

body.commercial-page:not(.listings-page) .rv-ai-search {
  border-radius: var(--radius-xs);
}

body.commercial-page:not(.listings-page) .bayut-view-toggle {
  border-color: var(--border-strong);
  border-radius: 10px;
}

body.commercial-page:not(.listings-page) .bayut-view-toggle__btn {
  transition:
    background var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-view-toggle__btn:hover {
  color: var(--primary);
  background: var(--accent-soft);
}

body.commercial-page:not(.listings-page) .bayut-view-toggle__btn.is-active {
  color: var(--primary-hover);
  background: var(--primary-soft);
}

body.commercial-page:not(.listings-page) .bayut-view-toggle__btn:active {
  filter: brightness(0.97);
}

body.commercial-page:not(.listings-page) .bayut-view-toggle__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  z-index: 1;
}

body.commercial-page:not(.listings-page) .bayut-quick-chip,
body.commercial-page:not(.listings-page) .bayut-filter-pill,
body.commercial-page:not(.listings-page) .bayut-tag {
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-quick-chip:hover,
body.commercial-page:not(.listings-page) .bayut-filter-pill:hover {
  border-color: rgba(10, 157, 106, 0.35);
  color: var(--primary);
}

body.commercial-page:not(.listings-page) .bayut-quick-chip.is-active,
body.commercial-page:not(.listings-page) .bayut-filter-pill.is-active {
  box-shadow: 0 4px 12px rgba(10, 157, 106, 0.18);
}

body.commercial-page:not(.listings-page) .bayut-quick-chip:active,
body.commercial-page:not(.listings-page) .bayut-filter-pill:active,
body.commercial-page:not(.listings-page) .bayut-tag:active {
  filter: brightness(0.97);
}

body.commercial-page:not(.listings-page) .bayut-serp__toolbar .bayut-sort .custom-select-trigger,
body.commercial-page:not(.listings-page) .bayut-serp__toolbar .bayut-sort select:not(.native-filter-select) {
  border-radius: 10px;
  border-color: var(--border-strong);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-serp__toolbar .bayut-sort .custom-select-trigger:hover,
body.commercial-page:not(.listings-page) .bayut-serp__toolbar .bayut-sort select:not(.native-filter-select):hover {
  border-color: rgba(10, 157, 106, 0.35);
}

body.commercial-page:not(.listings-page) .bayut-page-btn {
  border-radius: 10px;
  border-color: var(--border-strong);
  transition:
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    filter var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-page-btn:hover:not(:disabled):not(.is-active) {
  border-color: rgba(10, 157, 106, 0.4);
  color: var(--primary);
  background: #fff;
}

body.commercial-page:not(.listings-page) .bayut-page-btn:active:not(:disabled) {
  filter: brightness(0.97);
}

body.commercial-page:not(.listings-page) .bayut-page-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.commercial-page:not(.listings-page) .bayut-empty {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

body.commercial-page:not(.listings-page) .bayut-card__fav {
  transition:
    transform var(--duration-fast) var(--ease),
    filter 0.2s var(--ease),
    opacity 0.2s var(--ease),
    color var(--duration-fast) var(--ease);
}

body.commercial-page:not(.listings-page) .bayut-card__fav:hover {
  transform: scale(1.06);
  opacity: 1;
}

body.commercial-page:not(.listings-page) .bayut-card__fav:active {
  transform: scale(0.94);
}

body.commercial-page:not(.listings-page) .bayut-card__fav.is-saved {
  animation: none;
  transition:
    transform var(--duration-fast) var(--ease),
    filter 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

/* Mobile: quieter first viewport — keep filter dock + bottom nav clearance. */
@media (max-width: 760px) {
  body.commercial-page:not(.listings-page) main.bayut-serp {
    padding-top: 4px;
    padding-bottom: 12px;
  }

  body.commercial-page:not(.listings-page) .rv-ai-search {
    margin-bottom: 8px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__intro {
    margin-bottom: 6px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__title {
    margin-bottom: 2px;
    font-size: clamp(1.18rem, 5vw, 1.4rem);
  }

  body.commercial-page:not(.listings-page) .bayut-serp__subtitle {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  body.commercial-page:not(.listings-page) .portal-breadcrumb {
    margin-bottom: 6px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__toolbar {
    margin-bottom: 6px;
    padding: 8px 10px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__quick-chips {
    margin-bottom: 8px;
    gap: 6px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__results {
    gap: 12px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"],
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] {
    gap: 14px;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card__body,
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] .bayut-card__body {
    padding: 12px 12px 10px;
  }

  body.commercial-page:not(.listings-page) .bayut-pagination {
    margin-top: 18px;
    gap: 6px;
  }

  body.commercial-page:not(.listings-page) .bayut-empty {
    margin-top: 8px;
    padding: 14px 12px 12px;
  }
}

@media (max-width: 640px) {
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
    min-height: 232px;
    height: 232px;
    max-height: 232px;
  }
}

@media (max-width: 390px) {
  body.commercial-page:not(.listings-page) .bayut-serp__toolbar {
    min-height: 0;
  }

  body.commercial-page:not(.listings-page) .bayut-serp__count {
    font-size: 0.78rem;
  }

  body.commercial-page:not(.listings-page) .bayut-page-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="grid"] .bayut-card,
  body.commercial-page:not(.listings-page) .bayut-serp__results[data-view-mode="list"] .bayut-card,
  body.commercial-page:not(.listings-page) .bayut-card__media .property-media img,
  body.commercial-page:not(.listings-page) .bayut-card__fav,
  body.commercial-page:not(.listings-page) .bayut-card__agent-actions .bayut-btn,
  body.commercial-page:not(.listings-page) .bayut-view-toggle__btn,
  body.commercial-page:not(.listings-page) .bayut-quick-chip,
  body.commercial-page:not(.listings-page) .bayut-filter-pill,
  body.commercial-page:not(.listings-page) .bayut-tag,
  body.commercial-page:not(.listings-page) .bayut-page-btn,
  body.commercial-page:not(.listings-page) .bayut-filter-panel .custom-select-trigger,
  body.commercial-page:not(.listings-page) .bayut-filter-panel select:not(.native-filter-select),
  body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-field input[type="number"],
  body.commercial-page:not(.listings-page) .bayut-filter-panel .bayut-filter-row input[type="number"] {
    transition: none !important;
  }

  body.commercial-page:not(.listings-page) .bayut-card:hover .bayut-card__media .property-media img,
  body.commercial-page:not(.listings-page) .bayut-card__fav:hover,
  body.commercial-page:not(.listings-page) .bayut-card__fav:active {
    transform: none !important;
  }
}

/* Public Saved compare — horizontal scroll, sticky labels. Not App root CSS. */
.bayut-saved-compare {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0a7a52;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.bayut-saved-compare:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

.rv-public-compare {
  margin: 0 0 18px;
}

.rv-public-compare__intro h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.rv-public-compare__intro p,
.rv-public-compare__status {
  margin: 0 0 12px;
  color: #5b6778;
  font-size: 0.9rem;
}

.rv-public-compare__picks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rv-public-compare__pick {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  font: inherit;
  cursor: pointer;
  /* Motion M1 Batch 1 — P1.2: selected-state color/border/shadow only; no scale/layout. */
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
}

.rv-public-compare__item.is-selected .rv-public-compare__pick {
  box-shadow: 0 0 0 2px #0a7a52;
}

.rv-public-compare__mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #c5ced6;
  border-radius: 999px;
  flex: 0 0 auto;
  transition:
    border-color var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.rv-public-compare__item.is-selected .rv-public-compare__mark {
  border-color: #0a7a52;
  background: #0a7a52;
  box-shadow: inset 0 0 0 3px #fff;
}

.rv-public-compare__pick-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rv-public-compare__pick-title,
.rv-public-compare__title {
  font-weight: 700;
  line-height: 1.3;
}

.rv-public-compare__pick-meta,
.rv-public-compare__area {
  color: #5b6778;
  font-size: 0.78rem;
}

.rv-public-compare__footer,
.rv-public-compare__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 8px;
}

.rv-public-compare__text {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  color: #5b6778;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.rv-public-compare__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
}

.rv-public-compare__actions .rv-public-compare__open,
.rv-public-compare__actions .rv-public-compare__text {
  margin: 0;
  padding: 2px 0;
}

.rv-public-compare__open {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 650;
}

.rv-public-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rv-public-compare__grid {
  --rv-compare-label: 108px;
  --rv-compare-col: minmax(148px, 1fr);
  min-width: calc(var(--rv-compare-label) + (var(--rv-compare-n, 2) * 148px));
}

.rv-public-compare__heads,
.rv-public-compare__row {
  display: grid;
  grid-template-columns: var(--rv-compare-label) repeat(var(--rv-compare-n, 2), var(--rv-compare-col));
  align-items: start;
}

.rv-public-compare__label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  padding: 10px 8px 10px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6778;
}

.rv-public-compare__label--spacer {
  background:
    radial-gradient(circle at 10% -8%, rgba(10, 157, 106, 0.06), transparent 38rem),
    radial-gradient(circle at 94% 2%, rgba(15, 191, 154, 0.05), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, #f6faf8 52%, #eef4f1 100%);
  background-attachment: fixed;
  box-shadow: none;
}

.rv-public-compare__col {
  display: grid;
  grid-template-rows:
    auto
    2.5rem
    auto
    2.75rem
    2.8rem
    auto
    auto;
  align-content: start;
  padding: 0 8px 12px;
  min-width: 0;
}

.rv-public-compare__cover {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #eef2f5;
}

.rv-public-compare__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rv-public-compare__actions {
  display: contents;
}

.rv-public-compare__open {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.rv-public-compare__actions .rv-public-compare__text {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.rv-public-compare__row {
  border-top: 1px solid #e4e8ee;
}

.rv-public-compare__cell {
  padding: 10px 8px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rv-public-compare button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 720px) {
  .rv-public-compare__grid {
    --rv-compare-label: 140px;
    --rv-compare-col: minmax(180px, 1fr);
    min-width: 0;
  }

  .rv-public-compare__scroll {
    overflow-x: visible;
  }
}

/* Saved/Compare mobile P1 — fixed chrome clearance (interaction only; no redesign).
   A: Compare primary CTA was under .bayut-mobile-bar at ~390px.
   B: Card Enquire/Details were under filter bar + app nav at ~320px.
   Active compare: hide SERP filter bar; keep app nav; pad/scroll-margin for actions. */
@media (max-width: 760px) {
  body.listings-page {
    scroll-padding-bottom: var(--mobile-listings-bottom-stack);
  }

  body.listings-page .bayut-serp__results {
    padding-bottom: calc(var(--mobile-filter-bar-height) + 20px);
  }

  body.listings-page .bayut-card__agent-actions,
  body.listings-page .bayut-card__fav,
  body.listings-page .bayut-saved-compare {
    scroll-margin-bottom: calc(var(--mobile-listings-bottom-stack) + 12px);
  }

  body.listings-page.is-public-compare-active,
  body.listings-page:has([data-public-compare-mode]) {
    scroll-padding-bottom: calc(var(--mobile-nav-clearance) + 24px);
  }

  body.listings-page.is-public-compare-active .bayut-mobile-bar,
  body.listings-page:has([data-public-compare-mode]) .bayut-mobile-bar {
    display: none !important;
  }

  body.listings-page.is-public-compare-active .site-footer,
  body.listings-page:has([data-public-compare-mode]) .site-footer {
    padding-bottom: calc(var(--mobile-nav-clearance) + 28px);
  }

  body.listings-page.is-public-compare-active .rv-public-compare,
  body.listings-page:has([data-public-compare-mode]) .rv-public-compare {
    padding-bottom: calc(var(--mobile-nav-clearance) + 32px);
  }

  /* Choose-mode primary CTA: fixed above app nav (sticky fails when panel is short). */
  body.listings-page.is-public-compare-active .rv-public-compare__footer,
  body.listings-page:has([data-public-compare-mode="choose"]) .rv-public-compare__footer {
    position: fixed;
    left: var(--mobile-floating-gutter, 10px);
    right: var(--mobile-floating-gutter, 10px);
    bottom: calc(var(--mobile-nav-clearance) + 8px);
    z-index: 2950; /* below .mobile-app-nav (3000); filter bar hidden while compare active */
    margin: 0;
    padding: 12px 12px 10px;
    row-gap: 4px;
    border: 1px solid rgba(16, 24, 40, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 8px 22px rgba(16, 24, 40, 0.1),
      0 1px 4px rgba(16, 24, 40, 0.04);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
  }

  body.listings-page.is-public-compare-active [data-public-compare-mode="choose"] .rv-public-compare__picks,
  body.listings-page:has([data-public-compare-mode="choose"]) .rv-public-compare__picks {
    padding-bottom: calc(var(--mobile-nav-clearance) + 108px);
  }

  body.listings-page.is-public-compare-active .rv-public-compare__toolbar,
  body.listings-page.is-public-compare-active .rv-public-compare__actions,
  body.listings-page.is-public-compare-active .rv-public-compare__heads,
  body.listings-page:has([data-public-compare-mode]) .rv-public-compare__toolbar,
  body.listings-page:has([data-public-compare-mode]) .rv-public-compare__actions,
  body.listings-page:has([data-public-compare-mode]) .rv-public-compare__heads {
    scroll-margin-bottom: calc(var(--mobile-nav-clearance) + 20px);
  }
}

/* Saved Rentals + Compare Premium R1 — presentation only.
   Storage, compare maths, and the horizontal comparison table stay as they are. */
body.listings-page.is-saved-destination .bayut-serp__layout {
  grid-template-columns: minmax(0, 1fr);
}

body.listings-page.is-saved-destination .bayut-serp__main {
  min-width: 0;
}

body.listings-page.is-saved-destination .bayut-serp__sidebar,
body.listings-page.is-saved-destination .rv-needs-bar,
body.listings-page.is-saved-destination .bayut-serp__quick-chips,
body.listings-page.is-saved-destination .bayut-serp__active-filters,
body.listings-page.is-saved-destination .bayut-serp__toolbar .bayut-sort,
body.listings-page.is-public-compare-active .bayut-serp__toolbar,
body.listings-page.is-public-compare-active .bayut-serp__quick-chips,
body.listings-page.is-public-compare-active .bayut-serp__active-filters,
body.listings-page.is-public-compare-active .rv-needs-bar {
  display: none;
}

/* Saved destination: floating Filters + sort bar is SERP-only.
   Same hide pattern as compare/map. Keep .mobile-app-nav. */
body.listings-page.is-saved-destination .bayut-mobile-bar {
  display: none !important;
}

@media (max-width: 760px) {
  body.listings-page.is-saved-destination {
    scroll-padding-bottom: calc(var(--mobile-nav-clearance) + 24px);
  }

  body.listings-page.is-saved-destination .bayut-serp__results {
    padding-bottom: calc(var(--mobile-nav-clearance) + 20px);
  }

  body.listings-page.is-saved-destination .site-footer {
    padding-bottom: calc(var(--mobile-nav-clearance) + 28px);
  }

  body.listings-page.is-saved-destination .bayut-card__agent-actions,
  body.listings-page.is-saved-destination .bayut-card__fav,
  body.listings-page.is-saved-destination .bayut-saved-compare {
    scroll-margin-bottom: calc(var(--mobile-nav-clearance) + 12px);
  }
}

body.listings-page.is-saved-destination .bayut-saved-destination {
  padding: 10px 12px;
  background: #fff;
  border-color: #e4e8ee;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.listings-page.is-saved-destination .bayut-card__fav.is-saved {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--rv-save-heart, #d12b4a);
  filter: none;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.18);
}

body.listings-page.is-saved-destination .bayut-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

body.listings-page.is-saved-destination .bayut-empty--saved {
  max-width: 28rem;
  margin: 8px auto 28px;
  padding: 32px 22px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.05);
}

body.listings-page.is-saved-destination .bayut-empty--saved h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.listings-page.is-saved-destination .bayut-empty--saved p {
  margin: 0 auto 16px;
  max-width: 36ch;
  color: #5b6b78;
  line-height: 1.45;
}

body.listings-page.is-saved-destination .bayut-empty--saved .bayut-btn,
body.listings-page.is-saved-destination .bayut-saved-compare {
  min-height: 44px;
}

@media (max-width: 640px) {
  body.listings-page.is-saved-destination .bayut-saved-compare {
    width: 100%;
  }
}

body.listings-page .rv-public-compare {
  min-width: 0;
  max-width: 100%;
}

body.listings-page .rv-public-compare__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.listings-page .rv-public-compare__toolbar {
  justify-content: flex-end;
  gap: 8px 12px;
  margin: 0 0 12px;
}

body.listings-page .rv-public-compare__toolbar-actions,
body.listings-page .rv-public-compare__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
}

body.listings-page .rv-public-compare__label--spacer {
  background: transparent;
  box-shadow: none;
}

body.listings-page .rv-public-compare__change.bayut-btn,
body.listings-page .rv-public-compare__footer .bayut-btn,
body.listings-page .rv-public-compare__toolbar .rv-public-compare__text,
body.listings-page .rv-public-compare__footer .rv-public-compare__text,
body.listings-page .rv-public-compare__actions .rv-public-compare__text,
body.listings-page .rv-public-compare__open.bayut-btn {
  min-height: 44px;
}

body.listings-page .rv-public-compare__change.bayut-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
}

body.listings-page .rv-public-compare__toolbar .rv-public-compare__text,
body.listings-page .rv-public-compare__footer .rv-public-compare__text,
body.listings-page .rv-public-compare__actions .rv-public-compare__text {
  padding: 8px 6px;
  text-decoration: none;
}

body.listings-page .rv-public-compare__toolbar .rv-public-compare__text:hover,
body.listings-page .rv-public-compare__actions .rv-public-compare__text:hover,
body.listings-page .rv-public-compare__footer .rv-public-compare__text:hover {
  color: #102018;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.listings-page .rv-public-compare__pick {
  align-items: center;
  min-height: 44px;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.listings-page .rv-public-compare__pick:focus-visible,
body.listings-page .rv-public-compare__open:focus-visible,
body.listings-page .rv-public-compare__change:focus-visible,
body.listings-page .rv-public-compare__scroll:focus-visible,
body.listings-page .rv-public-compare__text:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

body.listings-page .rv-public-compare__pick:active {
  background: #e7f5ef;
}

body.listings-page .rv-public-compare__item.is-selected .rv-public-compare__pick {
  background: #f3faf7;
  border-color: #0a7a52;
  box-shadow: 0 0 0 2px #0a7a52;
}

body.listings-page .rv-public-compare__item.is-selected .rv-public-compare__mark {
  position: relative;
  border-color: #0a7a52;
  background: #0a7a52;
  box-shadow: none;
}

body.listings-page .rv-public-compare__item.is-selected .rv-public-compare__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.listings-page .rv-public-compare__pick-title,
body.listings-page .rv-public-compare__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 8px 0 0;
  min-height: calc(1.35em * 2);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

body.listings-page .rv-public-compare__trust {
  min-height: 2.75rem;
  margin-top: 6px;
  align-content: start;
  overflow: hidden;
}

body.listings-page .rv-public-compare__identity {
  overflow: hidden;
}

body.listings-page .rv-public-compare__col {
  display: grid;
  grid-template-rows:
    auto
    2.5rem
    auto
    2.75rem
    2.8rem
    auto
    auto;
  align-content: start;
}

body.listings-page .rv-public-compare__actions {
  display: contents;
}

body.listings-page .rv-public-compare__open {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

body.listings-page .rv-public-compare__actions .rv-public-compare__text {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

body.listings-page .rv-public-compare__identity {
  margin: 8px 0 0;
  min-height: 2.4rem;
  color: #3d4b57;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

body.listings-page .rv-public-compare__price,
body.listings-page .rv-public-compare__pick-rent {
  margin: 4px 0 0;
  color: #102018;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.listings-page .rv-public-compare__price.is-missing,
body.listings-page .rv-public-compare__cell.is-missing {
  color: #8a97a3;
  font-weight: 600;
}

body.listings-page .rv-public-compare__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
}

body.listings-page .rv-public-compare__avail {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--success-soft, #e8f6ef);
  color: var(--success-strong, #087a52);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

body.listings-page .rv-public-compare__badge .rv-check-badge,
body.listings-page .rv-public-compare__badge .rv-visit-badge {
  transform: none;
}

body.listings-page .rv-public-compare__actions {
  align-items: stretch;
  gap: 4px;
  margin-top: 8px;
}

body.listings-page .rv-public-compare__open.bayut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: normal;
}

body.listings-page .rv-public-compare__actions .rv-public-compare__text {
  text-align: center;
}

body.listings-page .rv-public-compare__scroll-wrap {
  position: relative;
  min-width: 0;
}

body.listings-page .rv-public-compare__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-padding-inline: 4px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

body.listings-page .rv-public-compare__scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 10px;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 78%);
}

body.listings-page .rv-public-compare__grid {
  --rv-compare-label: 96px;
  --rv-compare-col: minmax(152px, 1fr);
}

body.listings-page .rv-public-compare__label {
  display: flex;
  align-items: center;
  padding: 12px 10px 12px 0;
  background: #fff;
  box-shadow: 8px 0 10px -8px rgba(16, 24, 40, 0.28);
}

body.listings-page .rv-public-compare__label--spacer {
  background: #fff;
}

body.listings-page .rv-public-compare__cover {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

body.listings-page .rv-public-compare__cell {
  padding: 12px 10px;
}

body.listings-page .rv-public-compare__row[data-public-compare-field="rent"],
body.listings-page .rv-public-compare__row[data-public-compare-field="cash"] {
  background: #f7fbf9;
}

body.listings-page .rv-public-compare__row[data-public-compare-field="rent"] .rv-public-compare__label,
body.listings-page .rv-public-compare__row[data-public-compare-field="cash"] .rv-public-compare__label {
  background: #f7fbf9;
}

body.listings-page .rv-public-compare__row[data-public-compare-field="rent"] .rv-public-compare__cell,
body.listings-page .rv-public-compare__row[data-public-compare-field="cash"] .rv-public-compare__cell {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

body.listings-page .rv-public-compare__row[data-public-compare-field="rent"] .rv-public-compare__cell.is-missing,
body.listings-page .rv-public-compare__row[data-public-compare-field="cash"] .rv-public-compare__cell.is-missing {
  font-weight: 600;
}

@media (min-width: 720px) {
  body.listings-page .rv-public-compare__grid {
    --rv-compare-label: 148px;
    --rv-compare-col: minmax(200px, 1fr);
    min-width: 0;
  }

  body.listings-page .rv-public-compare__scroll {
    overflow-x: visible;
    overflow-y: visible;
  }

  body.listings-page .rv-public-compare__scroll-wrap::after {
    display: none;
  }
}

@media (min-width: 1100px) {
  body.listings-page .rv-public-compare__grid {
    --rv-compare-col: minmax(240px, 1fr);
  }
}

@media (max-width: 760px) {
  body.listings-page.is-public-compare-active .rv-public-compare,
  body.listings-page:has([data-public-compare-mode]) .rv-public-compare {
    padding-bottom: calc(var(--mobile-nav-clearance) + 96px);
  }

  body.listings-page .rv-public-compare__open,
  body.listings-page .rv-public-compare__actions,
  body.listings-page .rv-public-compare__heads,
  body.listings-page .rv-public-compare__toolbar {
    scroll-margin-bottom: calc(var(--mobile-nav-clearance) + 28px);
  }

  body.listings-page .rv-public-compare__grid {
    --rv-compare-label: 84px;
    --rv-compare-col: minmax(140px, 1fr);
  }

  body.listings-page .rv-public-compare__cover {
    aspect-ratio: auto;
    height: 56px;
  }

  body.listings-page .rv-public-compare__identity,
  body.listings-page .rv-public-compare__title,
  body.listings-page .rv-public-compare__trust,
  body.listings-page .rv-public-compare__actions {
    margin-top: 4px;
  }

  body.listings-page .rv-public-compare__toolbar {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.listings-page .rv-public-compare__pick,
  body.listings-page .rv-public-compare__open,
  body.listings-page .rv-public-compare__change,
  body.listings-page.is-saved-destination .bayut-card__fav {
    transition: none !important;
  }
}

.rv-needs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 12px;
  /* S2-L: keep first-paint / empty host from collapsing into a thin strip. */
  min-height: 64px;
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid rgba(15, 20, 38, 0.08);
  border-radius: 14px;
}

/* D6: residential RentFit is not a commercial product — hide before JS paint. */
body[data-for-rent-channel="commercial"] .rv-needs-bar[data-rental-needs-bar] {
  display: none !important;
}

.rv-needs-bar__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.rv-needs-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rv-needs-bar__title {
  margin: 0;
  min-width: 0;
  color: var(--heading, #142033);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rv-needs-bar__invite,
.rv-needs-bar__meta {
  margin: 2px 0 0;
  min-width: 0;
  color: #6a7884;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rv-needs-card {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  min-width: 0;
  max-width: 100%;
  color: #5a697b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.rv-needs-card::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.rv-needs-card[data-rv-needs-result="fit"] {
  color: #087a52;
}

.rv-needs-card[data-rv-needs-result="miss"] {
  color: #8a6238;
}

.rv-needs-card[data-rv-needs-result="unknown"],
.rv-needs-card[data-rv-needs-result="add_main"] {
  color: #6a7884;
  font-weight: 650;
}

.rv-needs-dialog {
  width: min(34rem, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(90vh, 42rem);
  margin: auto;
  padding: 0;
  color: var(--heading, #142033);
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(10, 16, 32, 0.16);
  box-sizing: border-box;
}

.rv-needs-dialog::backdrop {
  background: rgba(15, 20, 38, 0.45);
}

.rv-needs-dialog__panel {
  display: grid;
  gap: 14px;
  box-sizing: border-box;
  max-height: min(90vh, 42rem);
  padding: 18px 18px 16px;
  overflow: auto;
  background: #fff;
}

.rv-needs-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rv-needs-dialog__titles {
  min-width: 0;
}

.rv-needs-dialog__head h2,
.rv-needs-detail__title {
  margin: 0;
  min-width: 0;
  color: var(--heading, #142033);
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rv-needs-dialog__support,
.rv-needs-detail__invite {
  margin: 4px 0 0;
  max-width: 36rem;
  color: #6a7884;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rv-needs-dialog__close {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3d4d63;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.rv-needs-dialog__close:hover {
  background: rgba(15, 20, 38, 0.04);
}

.rv-needs-dialog__close:focus-visible,
.rv-needs-link:focus-visible,
.rv-needs-text:focus-visible,
.rv-needs-select__trigger:focus-visible,
.rv-needs-select__option:focus-visible,
.rv-needs-check input:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.7);
  outline-offset: 2px;
}

.rv-needs-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.rv-needs-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rv-needs-field label {
  color: #3d4d63;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.rv-needs-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rv-needs-select {
  position: relative;
  min-width: 0;
}

.rv-needs-select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 36px 0 12px;
  color: var(--heading, #142033);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: left;
  background: #fff;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  box-sizing: border-box;
  cursor: pointer;
  touch-action: manipulation;
}

.rv-needs-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-needs-select.is-empty .rv-needs-select__value {
  color: #6a7884;
  font-weight: 500;
}

.rv-needs-select__trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6a7884;
  border-bottom: 2px solid #6a7884;
  transform: translateY(-70%) rotate(45deg);
}

.rv-needs-select.is-open .rv-needs-select__trigger {
  border-color: #0a9d6a;
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.16);
}

.rv-needs-select.is-open .rv-needs-select__trigger::after {
  transform: translateY(-20%) rotate(-135deg);
}

.rv-needs-select__menu {
  position: fixed;
  z-index: 30;
  display: grid;
  align-content: start;
  gap: 2px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(10, 16, 32, 0.12);
  -webkit-overflow-scrolling: touch;
}

.rv-needs-select__option {
  min-height: 40px;
  padding: 8px 10px;
  color: var(--heading, #142033);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.rv-needs-select__option:hover,
.rv-needs-select__option.is-active {
  background: rgba(10, 157, 106, 0.08);
}

.rv-needs-select__option[aria-selected="true"] {
  color: #087a52;
  font-weight: 700;
  background: rgba(10, 157, 106, 0.12);
}

/* Multi-area search (Rental Needs; Sale Buying Needs has Sale-scoped overrides). */
.rv-needs-dialog .rv-needs-select__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 2px 6px;
  background: #fff;
}

.rv-needs-dialog .rv-needs-select__search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.rv-needs-dialog .rv-needs-select__search-input:focus {
  border-color: #0a9d6a;
  box-shadow: 0 0 0 3px rgba(10, 157, 106, 0.16);
  outline: none;
}

.rv-needs-dialog .rv-needs-select__empty {
  margin: 6px 8px;
}

.rv-needs-dialog .bayut-btn,
.rv-needs-bar .bayut-btn,
.rv-needs-detail .bayut-btn {
  max-width: 100%;
  min-height: 44px;
}

.rv-needs-dialog .bayut-btn:hover,
.rv-needs-bar .bayut-btn:hover,
.rv-needs-detail .bayut-btn:hover {
  transform: none;
}

.rv-needs-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  font-weight: 650;
  background: #fff;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  cursor: pointer;
}

.rv-needs-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.rv-needs-check:has(input:checked) {
  background: rgba(224, 245, 237, 0.55);
  border-color: rgba(10, 157, 106, 0.45);
}

.rv-needs-dialog__helper {
  min-width: 0;
}

.rv-needs-link,
.rv-needs-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  color: #0a7d55;
  font: inherit;
  font-weight: 650;
  text-align: start;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.rv-needs-link--quiet,
.rv-needs-text {
  color: #8a6238;
  font-weight: 600;
}

.rv-needs-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.rv-needs-dialog__actions .bayut-btn--primary {
  min-width: 7.5rem;
  margin-left: auto;
}

.rv-needs-detail {
  min-width: 0;
  max-width: 100%;
}

.rv-needs-detail__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}

.rv-needs-detail__invite,
.rv-needs-detail__headline {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.rv-needs-detail__headline {
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
}

.rv-needs-detail__headline[data-rv-needs-result="fit"] {
  color: #087a52;
}

.rv-needs-detail__headline[data-rv-needs-result="miss"] {
  color: #3d4d63;
}

.rv-needs-detail__headline[data-rv-needs-result="unknown"],
.rv-needs-detail__headline[data-rv-needs-result="add_main"] {
  color: #5a697b;
  font-weight: 700;
}

.rv-needs-detail__list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rv-needs-detail__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(15, 20, 38, 0.08);
}

.rv-needs-detail__label,
.rv-needs-detail__result {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rv-needs-detail__label {
  flex: 1 1 42%;
  color: #243246;
  font-weight: 700;
}

.rv-needs-detail__result {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 42%;
  font-weight: 650;
  text-align: end;
}

.rv-needs-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.rv-needs-detail__result[data-rv-needs-result="fit"] {
  color: #087a52;
}

.rv-needs-detail__result[data-rv-needs-result="miss"] {
  color: #8a6238;
}

.rv-needs-detail__result[data-rv-needs-result="unknown"],
.rv-needs-detail__result[data-rv-needs-result="not_compared"] {
  color: #6a7884;
  font-weight: 600;
}

@media (max-width: 720px) {
  .rv-needs-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin-top: auto;
    margin-bottom: 8px;
  }

  .rv-needs-dialog__panel {
    max-height: calc(100dvh - 16px);
    padding: 16px 14px 14px;
  }

  .rv-needs-dialog__actions .bayut-btn--primary {
    flex: 1 1 8rem;
  }
}

.rv-enquiries__notes {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  max-width: 42rem;
}

.rv-enquiries__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-enquiries__card {
  display: grid;
  gap: 0.55rem;
}

.rv-enquiries__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.rv-enquiries__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin: 0;
}

.rv-enquiries__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rv-enquiries__empty {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.rv-enquiries__clear {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.rv-enquiries__confirm {
  display: grid;
  gap: 0.55rem;
}

.rv-enquiries__confirm[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .rv-enquiries__actions .button {
    flex: 1 1 100%;
  }

  .rv-enquiries__title {
    font-size: 1rem;
  }
}

/* ============================================================
   Home property-led hero — 20261021HomePropertyHeroV1
   Homepage only. Search controls are unchanged.
   ============================================================ */

.home-page .home-hero {
  position: relative;
  z-index: 2;
  margin-top: 0;
  min-height: 0;
  align-items: stretch;
  padding: 36px 0 48px;
  overflow: visible;
  color: #172033;
  background:
    radial-gradient(720px 320px at 100% 0%, rgba(10, 157, 106, 0.07), transparent 70%),
    #f4f1eb;
}

.home-page .home-hero:has(.custom-select.is-open) {
  z-index: 20;
}

.home-page .home-hero::before,
.home-page .home-hero::after {
  content: none;
  display: none;
}

.home-page .home-hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  /* Visual spans intro+search only so photo bottom meets search panel (HomeSigMotionV1). */
  grid-template-areas:
    "intro visual"
    "search visual"
    "trust .";
  grid-template-rows: auto auto auto;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.home-page .home-hero__intro {
  grid-area: intro;
  max-width: 38rem;
  color: #172033;
  text-align: left;
  text-shadow: none;
  align-self: start;
}

/* Homepage Signature Motion V1 — headline chrome + CSS grid stack (zero-CLS) */
.home-page .home-hero-headline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  max-width: 100%;
}

.home-page .home-hero-headline__stack {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.home-page .home-hero__intro h1.home-hero-headline__slide,
.home-page .home-hero .hero-copy h1.home-hero-headline__slide,
.home-page .home-hero-headline__slide {
  grid-area: 1 / 1;
  max-width: 11em;
  margin: 0;
  color: #141c2b;
  font-size: clamp(2.35rem, 3.5vw, 3.55rem);
  font-weight: var(--weight-title);
  letter-spacing: -0.038em;
  line-height: 1.02;
  text-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 220ms;
}

.home-page .home-hero__intro h1.home-hero-headline__slide.is-active,
.home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active,
.home-page .home-hero-headline__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  color: #141c2b;
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}
.home-page .home-hero__intro h1.home-hero-headline__slide.is-active .hero-heading-accent,
.home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active .hero-heading-accent {
  color: #067a52;
}

/* M4 Homepage Emerald H1 Accent V1 — AA on light hero #f4f1eb; used by signature slides too */
.home-page .home-hero__intro h1 .hero-heading-accent,
.home-page .home-hero-headline__slide .hero-heading-accent {
  color: #067a52;
  font-weight: inherit;
}

/*
 * Keep the semantic H1 in the accessibility tree while other slides show.
 * Chromium omits opacity:0 nodes from the a11y tree; transparent text does not.
 * Decorative slides paint above in the grid stack and are aria-hidden.
 * Placed after M4 accent so inactive H1 text stays fully transparent.
 */
.home-page .home-hero__intro h1.home-hero-headline__slide:not(.is-active),
.home-page .home-hero .hero-copy h1.home-hero-headline__slide:not(.is-active) {
  opacity: 1 !important;
  visibility: visible !important;
  color: transparent !important;
  transition: none;
}
.home-page .home-hero__intro h1.home-hero-headline__slide:not(.is-active) .hero-heading-accent,
.home-page .home-hero .hero-copy h1.home-hero-headline__slide:not(.is-active) .hero-heading-accent {
  color: transparent !important;
}

.home-page .home-hero-sig-toggle {
  flex: 0 0 auto;
  margin-top: 0.35em;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(6, 122, 82, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #067a52;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 28, 43, 0.06);
}

.home-page .home-hero-sig-toggle:hover {
  color: #088a5c;
}

.home-page .home-hero-sig-toggle:focus-visible {
  outline: 3px solid #0a9d6a;
  outline-offset: 2px;
}

.home-page .home-hero-sig-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.home-page .home-hero-sig-toggle[aria-pressed="true"] .home-hero-sig-toggle__pause {
  display: none;
}

.home-page .home-hero-sig-toggle[aria-pressed="false"] .home-hero-sig-toggle__play {
  display: none;
}

.home-page .home-hero-sig-toggle[hidden] {
  display: none !important;
}

.home-page .home-hero .hero-text {
  max-width: 38em;
  margin: 0;
  color: #3d4c5c;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: var(--weight-body);
  line-height: 1.5;
  text-shadow: none;
}

.home-page .home-hero__trust {
  grid-area: trust;
  align-self: end;
  max-width: 38rem;
  margin: 4px 0 0;
  color: #4e5d56;
  font-size: 0.88rem;
  line-height: 1.45;
}

.home-page .home-hero__visual {
  grid-area: visual;
  /* HomeSigMotionV1: stretch with intro+search rows (not driven by portrait asset). */
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
}

.home-page .home-hero__visual:not(:has(.home-hero__photo)) {
  display: none;
}

.home-page .home-hero__frame:not(:has(.home-hero__photo)) {
  grid-template-columns: minmax(0, 40rem);
  grid-template-areas:
    "intro"
    "search"
    "trust";
}

/* Desktop hero photo — stretch to visual cell (intro→search). Portrait assets use cover crop. */
.home-page .home-hero__photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 28px;
  background: #e6dfd4;
  box-shadow: 0 22px 48px rgba(20, 28, 43, 0.12);
}

.home-page .home-hero__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.home-page .home-hero__photo-place {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 12px;
  border-radius: 999px;
  color: #172033;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.home-page .home-hero__photo:focus-visible {
  outline: 3px solid #0a9d6a;
  outline-offset: 4px;
}

.home-page .home-hero .search-card {
  grid-area: search;
  align-self: start;
  z-index: 4;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.home-page .home-hero .search-card[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.home-page .home-hero .home-hero__discover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 6px 8px;
  color: #0b513f;
  font-size: 0.95rem;
  font-weight: var(--weight-label);
  line-height: 1.3;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page .home-hero .home-hero__discover:hover {
  color: #088a5c;
}

.home-page .home-hero .home-hero__discover:focus-visible {
  outline: 3px solid #0a9d6a;
  outline-offset: 2px;
  border-radius: 8px;
}

html[lang="si"] .home-page .home-hero__intro h1,
html[lang="ta"] .home-page .home-hero__intro h1,
html[lang="si"] .home-page .home-hero .hero-copy h1,
html[lang="ta"] .home-page .home-hero .hero-copy h1,
html[lang="si"] .home-page .home-hero-headline__slide,
html[lang="ta"] .home-page .home-hero-headline__slide {
  max-width: 14em;
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.28;
}

html[lang="si"] .home-page .home-hero .hero-text,
html[lang="ta"] .home-page .home-hero .hero-text,
html[lang="si"] .home-page .home-hero__trust,
html[lang="ta"] .home-page .home-hero__trust {
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 959px) {
  .home-page .home-hero {
    padding: 14px 0 18px;
  }

  .home-page .home-hero__frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .home-page .home-hero__intro {
    order: 1;
  }

  .home-page .home-hero__visual {
    order: 2;
    height: auto;
    min-height: 0;
    align-self: auto;
  }

  .home-page .home-hero .search-card {
    order: 3;
  }

  .home-page .home-hero__trust {
    order: 4;
    align-self: stretch;
    margin-top: 2px;
  }

  .home-page .home-hero-headline {
    margin-bottom: 8px;
  }

  .home-page .home-hero__intro h1,
  .home-page .home-hero .hero-copy h1,
  .home-page .home-hero-headline__slide {
    max-width: 100%;
    font-size: clamp(1.7rem, 7.4vw, 2.2rem);
    line-height: 1.08;
  }

  html[lang="si"] .home-page .home-hero__intro h1,
  html[lang="ta"] .home-page .home-hero__intro h1,
  html[lang="si"] .home-page .home-hero .hero-copy h1,
  html[lang="ta"] .home-page .home-hero .hero-copy h1,
  html[lang="si"] .home-page .home-hero-headline__slide,
  html[lang="ta"] .home-page .home-hero-headline__slide {
    max-width: none;
    font-size: clamp(1.5rem, 6.6vw, 1.95rem);
    line-height: 1.32;
  }

  .home-page .home-hero .hero-text {
    font-size: 0.95rem;
  }

  .home-page .home-hero__trust {
    margin-top: 10px;
    font-size: 0.84rem;
  }

  .home-page .home-hero .search-card {
    align-self: stretch;
    padding: 14px 12px 10px;
  }

  .home-page .home-hero__photo {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 150px;
    aspect-ratio: 2.15 / 1;
    border-radius: 18px;
  }

  .home-page .home-hero__photo img {
    position: absolute;
    inset: 0;
  }
}

@media (max-width: 360px) {
  .home-page .home-hero__photo {
    max-height: 100px;
    aspect-ratio: 2.4 / 1;
  }

  .home-page .home-hero__intro h1,
  .home-page .home-hero-headline__slide,
  .home-page .home-hero .hero-text,
  .home-page .home-hero__trust,
  .home-page .home-hero .home-hero__discover,
  .home-page .home-hero .search-card,
  .home-page .home-hero .search-card h2,
  .home-page .home-hero .search-card__hint {
    overflow-wrap: anywhere;
  }

  .home-page .home-hero__frame,
  .home-page .home-hero__intro,
  .home-page .home-hero__visual,
  .home-page .home-hero .search-card {
    min-width: 0;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero,
  .home-page .home-hero * {
    animation: none;
    scroll-behavior: auto;
  }
}

/* Home discovery below the hero — 20261021HomeDiscoveryV1 */
.home-page .home-featured-card {
  position: relative;
  min-width: 0;
}

.home-page .home-featured-card > .home-property-card {
  position: relative;
  z-index: 1;
  height: 100%;
}

.home-page .home-featured-save {
  z-index: 4;
}

.home-page .home-featured-save:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.home-page .home-story--save,
.home-page .home-story--decide,
.home-page .home-email-close {
  background: #f7f4ef;
}

.home-page .home-story--find,
.home-page .home-trust-close {
  background: #ffffff;
}

.home-page .home-story__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.8fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
}

.home-page .home-story__copy h2,
.home-page .home-discover__title,
.home-page .home-trust-close h2,
.home-page .home-email-close h2 {
  margin: 0 0 12px;
  max-width: 18ch;
  color: #172033;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.home-page .home-discover__title,
.home-page .home-trust-close h2,
.home-page .home-email-close h2 {
  max-width: 22ch;
}

.home-page .home-story__copy p,
.home-page .home-find-card p,
.home-page .home-decide-card p,
.home-page .home-email-close p {
  margin: 0 0 16px;
  max-width: 40rem;
  color: #3d4654;
  font-size: 1rem;
  line-height: 1.5;
}

.home-page .home-save-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.home-page .home-save-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: #e7e2da;
}

.home-page .home-save-shot:first-child {
  margin-top: 28px;
}

.home-page .home-save-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .home-save-shot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(23, 32, 51, 0.72);
  border-radius: 999px;
}

.home-page .home-save-shot:focus-visible {
  outline: 2px solid #0a9d6a;
  outline-offset: 3px;
}

.home-page .home-find-grid,
.home-page .home-decide-grid {
  display: grid;
  gap: 14px;
}

.home-page .home-find-grid,
.home-page .home-decide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-page .home-find-card,
.home-page .home-decide-card {
  min-width: 0;
  margin: 0;
  padding: 18px 18px 14px;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
}

.home-page .home-find-card h3,
.home-page .home-decide-card h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 1.12rem;
  line-height: 1.25;
}

.home-page .home-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #0b513f;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-page .home-text-link:focus-visible,
.home-page .home-email-close .button:focus-visible,
.home-page .home-story--save .button:focus-visible {
  outline: 2px solid #0a9d6a;
  outline-offset: 3px;
}

.home-page .home-trust-close__list {
  display: grid;
  gap: 12px;
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-trust-close__list li {
  margin: 0;
  padding-left: 14px;
  color: #243044;
  line-height: 1.45;
  border-left: 3px solid #0a9d6a;
}

.home-page .home-email-close {
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(10, 157, 106, 0.08), transparent 70%),
    #f4f1eb;
}

.home-page .home-email-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.home-page .home-email-close .button,
.home-page .home-story--save .button {
  white-space: normal;
  text-align: center;
}

@media (max-width: 900px) {
  .home-page .home-section-listings .home-featured-card {
    display: flex;
    flex: 0 0 calc(100% - 28px);
    align-self: stretch;
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .home-page .home-section-listings .home-featured-card > .home-property-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}

@media (max-width: 720px) {
  .home-page .home-story__frame,
  .home-page .home-find-grid,
  .home-page .home-decide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-save-shot:first-child {
    margin-top: 0;
  }

  .home-page .home-save-shot {
    aspect-ratio: 1 / 1;
  }

  .home-page .home-story__copy h2,
  .home-page .home-discover__title,
  .home-page .home-trust-close h2,
  .home-page .home-email-close h2 {
    max-width: none;
  }

  .home-page .home-email-close .button,
  .home-page .home-story--save .button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-story,
  .home-page .home-story *,
  .home-page .home-featured-card,
  .home-page .home-featured-card * {
    animation: none;
    transition: none;
  }
}

/* Homepage inventory strip — 20261021HomeInventoryV2 */
.home-page .home-inventory {
  padding: 4px 0 18px;
  background: transparent;
}

.home-page .home-inventory:not(:has(.home-inventory__count)) {
  display: none;
}

.home-page .home-inventory__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 720px;
}

.home-page .home-inventory__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 220px;
  min-height: 72px;
  margin: 0;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 16px;
}

.home-page .home-inventory__item--total {
  background: #f7f4ef;
}

.home-page .home-inventory__count {
  color: #172033;
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.home-page .home-inventory__label {
  margin-top: 6px;
  color: #0b513f;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-page a.home-inventory__item:hover {
  border-color: rgba(10, 157, 106, 0.45);
}

.home-page a.home-inventory__item:focus-visible {
  outline: 2px solid #0a9d6a;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .home-page .home-inventory {
    padding-bottom: 12px;
  }

  .home-page .home-inventory__row {
    gap: 8px;
    max-width: none;
  }

  .home-page .home-inventory__item {
    min-height: 64px;
    padding: 10px 8px;
  }

  .home-page .home-inventory__count {
    font-size: 1.28rem;
  }

  .home-page .home-inventory__label {
    font-size: 0.75rem;
  }
}

/* Homepage feature storytelling — 20261021HomeStoryV1 */
.home-page .home-decide-card--cash {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 240px);
  gap: 18px;
  align-items: center;
  padding: 8px 0 4px;
  background: transparent;
  border: 0;
}

.home-page .home-decide-card--cash .home-decide-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.home-page .home-decide-card--cash .home-text-link--secondary {
  margin-top: 2px;
  min-height: 36px;
  color: #35506a;
  font-size: 0.94rem;
  font-weight: 600;
}

.home-page .home-cash-visual:empty {
  display: none;
}

.home-page .home-cash-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
}

.home-page .home-cash-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .home-cash-shot span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #172033;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-page .home-cash-shot:focus-visible {
  outline: 2px solid #0a9d6a;
  outline-offset: 3px;
}

.home-page .home-decide-card--recent {
  background: #0b513f;
  border: 0;
}

.home-page .home-decide-card--recent h3,
.home-page .home-decide-card--recent p {
  color: #f4faf7;
}

.home-page .home-decide-card--recent .home-text-link {
  color: #ffffff;
}

.home-page .home-price-example {
  margin: 0 0 10px;
  color: #0b513f;
  font-weight: 750;
}

.home-page .home-find-card--ai {
  border-color: rgba(11, 81, 63, 0.4);
}

@media (max-width: 720px) {
  .home-page .home-decide-card--cash {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-cash-shot {
    max-width: 280px;
  }
}

/* Homepage motion — 20261021HomeMotionV1
   Opacity stays 1. Transforms do not change layout size.
   HomeSigMotionV1: settle the headline chrome (not each slide). */
@media (prefers-reduced-motion: no-preference) {
  .home-page .home-hero-headline,
  .home-page .home-hero .hero-text {
    animation: home-hero-settle 0.65s var(--ease-out) both;
  }

  .home-page .home-text-link {
    transition: color 0.18s var(--ease-out);
  }

  .home-page .home-save-shot img,
  .home-page .home-cash-shot img {
    transition: transform 0.45s var(--ease-out);
  }

  .home-page .home-rise {
    animation: home-section-rise 0.5s var(--ease-out) both;
  }

  .home-page .home-featured-save.home-save-ack {
    animation: home-save-ack 0.28s var(--ease-out);
  }
}

@keyframes home-hero-settle {
  from { transform: translate3d(0, 8px, 0); }
  to { transform: none; }
}

@keyframes home-section-rise {
  from { transform: translate3d(0, 12px, 0); }
  to { transform: none; }
}

@keyframes home-save-ack {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.home-page .home-section-listings .home-property-card:focus-visible {
  outline: 2px solid #0a9d6a;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .home-page .home-section-listings .home-property-card {
    transition: border-color 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  }

  .home-page .home-section-listings .home-property-card:hover {
    transform: none;
    border-color: rgba(11, 81, 63, 0.28);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  }

  .home-page .home-section-listings .home-property-media img {
    transition: transform 0.5s var(--ease-out);
  }

  .home-page .home-section-listings .home-property-card:hover .home-property-media img {
    transform: scale(1.035);
  }

  .home-page .home-save-shot:hover img,
  .home-page .home-cash-shot:hover img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-headline,
  .home-page .home-hero-headline__slide,
  .home-page .home-hero .hero-text,
  .home-page .home-rise,
  .home-page .home-featured-save,
  .home-page .home-section-listings .home-property-card,
  .home-page .home-section-listings .home-property-media img,
  .home-page .home-save-shot img,
  .home-page .home-cash-shot img {
    animation: none;
    transition: none;
    transform: none;
  }

  .home-page .home-hero-headline__slide {
    opacity: 0;
    visibility: hidden;
  }

  .home-page .home-hero__intro h1.home-hero-headline__slide.is-active,
  .home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active,
  .home-page .home-hero-headline__slide.is-active {
    opacity: 1;
    visibility: visible;
    color: #141c2b;
  }

  .home-page .home-hero__intro h1.home-hero-headline__slide.is-active .hero-heading-accent,
  .home-page .home-hero .hero-copy h1.home-hero-headline__slide.is-active .hero-heading-accent {
    color: #067a52;
  }
}

/* ==========================================================================
   Areas Directory + Area Detail — Premium R1 (2026-10-23)
   Property-led discovery. Area Detail hierarchy preserved below.
   Directory Card Consistency R2 — 20261023AreasDirectoryCardConsistencyR2
   Compact Card Information Closeout R2B — 20261023AreasDirectoryCardConsistencyR2B:
   equal-height grid; intro-only directory body (no Best-for / rental-type blocks).
   ========================================================================== */

/*
 * Responsive equal-height directory grid:
 * 1 col mobile → 2 col tablet (≥760) → 3 col desktop (≥1100).
 * Cards stretch to row height; actions pin to the bottom via margin-top: auto.
 */
.areas-index-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.areas-index-grid > .areas-index-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.areas-index-card {
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border-color: #e6ecf2;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03), 0 6px 18px rgba(16, 24, 40, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.areas-index-card:hover {
  border-color: rgba(10, 157, 106, 0.28);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.areas-index-card__head {
  gap: 10px;
  margin-bottom: 0;
  flex: 0 0 auto;
}

.areas-index-card__title {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.areas-index-card__badge {
  padding: 3px 9px;
  font-size: 0.72rem;
}

.areas-index-card__intro {
  flex: 0 1 auto;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
  color: #526274;
  font-size: 0.86rem;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  max-height: calc(1.45em * 3);
}

/* Directory safety: Best for / rental types belong on Area Detail only. */
.areas-index-grid .areas-index-card__suits,
.areas-index-grid .areas-index-card__types {
  display: none !important;
}

.areas-index-card__label {
  display: inline;
  margin-right: 0.35em;
  color: #314154;
  font-weight: 700;
}

.areas-index-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
  flex: 0 0 auto;
}

.areas-index-card__actions .bayut-btn--primary {
  flex: 0 1 auto;
  min-width: 7.25rem;
  font-weight: 700;
}

.areas-index-card__guide-link {
  display: none !important;
}

/* Sparse / missing-guide: same compact shell as guided cards. */
.areas-index-card--guide-pending {
  gap: 8px;
  padding: 14px;
}

.areas-index-card--guide-pending .areas-index-card__intro--pending {
  margin: 0;
  -webkit-line-clamp: 3;
  max-height: calc(1.45em * 3);
  min-height: calc(1.45em * 2);
  color: #5a697b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.areas-index-card--guide-pending .areas-index-card__actions {
  margin-top: auto;
}

.areas-index-section__title {
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.areas-index-intro .bayut-serp__title {
  letter-spacing: -0.015em;
}

@media (hover: hover) and (pointer: fine) {
  .areas-index-card:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .areas-index-card,
  .areas-index-card:hover {
    transition: none;
    transform: none;
  }
}

/* —— Area Detail: property-first hierarchy —— */
[data-area-page] .bayut-area-serp__intro {
  margin-bottom: 14px;
}

[data-area-page] .bayut-area-serp__intro .bayut-serp__title {
  letter-spacing: -0.02em;
}

[data-area-page] .bayut-area-serp__intro .bayut-serp__subtitle {
  max-width: 54ch;
  color: #5a697b;
}

[data-area-page] .area-rental-snapshot {
  margin-top: 4px;
  margin-bottom: 18px;
}

[data-area-page] .bayut-area-filters {
  margin-bottom: 12px;
}

[data-area-page] .bayut-serp__results {
  margin-top: 8px;
}

[data-area-page] .bayut-area-nearby {
  margin-top: 28px;
  padding-top: 8px;
}

/* Guide retained, demoted below listings — secondary surface */
[data-area-page] .area-guide-panel--secondary,
[data-area-page] .area-guide-panel.area-guide-panel--secondary {
  margin-top: 8px;
  margin-bottom: var(--portal-page-bottom, 2rem);
  border-top: 1px solid #e8edf2;
  background: #fafbfc;
}

[data-area-page] .area-guide-panel--secondary .area-guide-panel__summary {
  padding-block: 14px;
  color: #3a4a5c;
  font-size: 0.95rem;
}

[data-area-page] .area-guide-panel--secondary .area-guide-panel__body {
  padding-bottom: 20px;
}

[data-area-page] .area-guide-panel--secondary .content-card {
  border-color: #e6ecf2;
  box-shadow: none;
  background: #fff;
}

@media (max-width: 759px) {
  .areas-index-card {
    padding: 12px 14px;
  }

  .areas-index-card__title {
    font-size: 0.98rem;
  }

  .areas-index-card__actions .bayut-btn {
    min-height: 36px;
  }
}

@media (min-width: 760px) {
  .areas-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1100px) {
  .areas-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}


/* ==========================================================================
   Public Map Premium R1 — 20261023PublicMapPremiumR1
   Presentation only. Leaflet engine / pin geography / filter contracts untouched.
   Frozen releases (Areas Premium R1, Mobile Navigation P1) preserved.
   ========================================================================== */

.bayut-map-shell {
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  background: #f3f5f7;
}

.bayut-map-sidebar {
  border-right-color: #e3e8ee;
}

.bayut-map-sidebar__summary {
  color: #425466;
  font-size: 0.84rem;
}

.bayut-map-filters-panel {
  border-color: #e3e8ee;
  border-radius: 10px;
  background: #f8fafb;
}

.bayut-map-filters-panel .bayut-map-filters {
  gap: 8px;
  padding: 10px 12px 8px;
}

.bayut-map-filters .bayut-filter-label {
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.bayut-map-filters .filter-select select,
.bayut-map-page .listing-custom-select .custom-select-trigger {
  min-height: 34px;
  font-size: 0.8rem;
}

.bayut-map-more-filters {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid #eef2f6;
}

.bayut-map-more-filters__summary {
  min-height: 30px;
  font-size: 0.78rem;
}

.bayut-map-more-filters__body {
  gap: 8px;
  margin-top: 8px;
}

.bayut-map-more-filters__refine.bayut-filter-field--pills .bayut-filter-pills {
  gap: 5px;
}

.bayut-map-more-filters__refine .bayut-filter-pill {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.74rem;
}

.bayut-map-sidebar__chips {
  gap: 6px;
  padding: 8px 12px 10px;
}

.bayut-map-sidebar__chips .bayut-quick-chip {
  min-height: 34px;
  font-size: 0.78rem;
}

.bayut-map-results__head {
  padding: 10px 14px 8px;
}

.bayut-map-results__count {
  color: #1f2a37;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bayut-map-results__list-link {
  min-height: 32px;
  color: #087a52;
  font-size: 0.76rem;
}

.bayut-map-card-list {
  gap: 12px;
  padding: 8px 12px 14px;
}

.bayut-map-card {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-color: #e3e8ee;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.bayut-map-card.is-active {
  border-color: rgba(8, 122, 82, 0.55);
  box-shadow: 0 0 0 1px rgba(8, 122, 82, 0.18), 0 6px 16px rgba(16, 24, 40, 0.06);
  background: #f7fcf9;
}

.bayut-map-card__media {
  width: 120px;
  height: 96px;
  border-radius: 8px;
}

.bayut-map-card__topline {
  margin-bottom: 4px;
}

.bayut-map-card__price {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #15202b;
}

.bayut-map-card__price span {
  margin-left: 4px;
  color: #667788;
  font-size: 0.74rem;
  font-weight: 600;
}

.bayut-map-card__title {
  margin: 0 0 5px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: none;
}

.bayut-map-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #15202b;
}

.bayut-map-card__title a:hover,
.bayut-map-card__title a:focus-visible {
  color: #087a52;
}

.bayut-map-card__meta {
  margin: 0 0 10px;
  color: #5b6b7c;
  font-size: 0.74rem;
  line-height: 1.4;
}

.bayut-map-card__focus {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.76rem;
  border-radius: 8px;
}

.bayut-map-card:hover,
.bayut-map-card:focus-within {
  border-color: rgba(8, 122, 82, 0.34);
}

.bayut-map-card:focus-within {
  outline: 2px solid rgba(8, 122, 82, 0.28);
  outline-offset: 1px;
}

/* Price markers — restrained selected/hover labels; spot-pin system preserved */
.bayut-map-pin--spot,
.bayut-map-pin--dot {
  width: 11px;
  min-width: 11px;
  height: 11px;
  min-height: 11px;
  border-width: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.bayut-map-pin--spot.is-hover,
.bayut-map-pin--dot.is-hover {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  background: #0cbf7f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.bayut-map-pin--selected .bayut-map-pin__spot {
  width: 13px;
  min-width: 13px;
  height: 13px;
}

.bayut-map-pin--selected .bayut-map-pin__price {
  min-height: 24px;
  padding: 3px 9px;
  color: #10233a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: #fff;
  border: 1.5px solid rgba(8, 122, 82, 0.55);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.18);
}

.bayut-map-pin--selected.is-hover .bayut-map-pin__price,
.bayut-map-pin--selected.is-active .bayut-map-pin__price {
  color: #fff;
  background: #066843;
  border-color: #fff;
}

.bayut-map-disclaimer {
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-width: min(560px, calc(100% - 20px));
  margin-inline: auto;
  padding: 7px 10px;
  color: #425466;
  font-size: 0.7rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08);
}

.bayut-map-leaflet .leaflet-control-zoom {
  margin-top: 12px;
  margin-left: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.14);
}

.bayut-map-leaflet .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 16px;
  color: #1f2a37;
}

.bayut-map-leaflet .leaflet-control-zoom a:focus-visible {
  outline: 2px solid #087a52;
  outline-offset: -2px;
}

/* Property map popups */
.bayut-map-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.bayut-map-leaflet-popup .leaflet-popup-content {
  width: 260px !important;
}

.bayut-map-popup__media {
  height: 132px;
  background: #e8eef3;
}

.bayut-map-popup__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f4ef, #d7ebe3);
}

.bayut-map-popup__body {
  padding: 12px 12px 14px;
}

.bayut-map-popup__topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 6px;
}

.bayut-map-popup__price {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #15202b;
  line-height: 1.2;
}

.bayut-map-popup__price span {
  margin-left: 4px;
  color: #667788;
  font-size: 0.74rem;
  font-weight: 600;
}

.bayut-map-popup__title {
  margin: 0 0 6px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: none;
}

.bayut-map-popup__title a,
.bayut-map-leaflet-popup .bayut-map-popup__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #15202b !important;
  text-decoration: none;
}

.bayut-map-leaflet-popup a.bayut-map-popup__media {
  color: inherit !important;
  text-decoration: none;
}

.bayut-map-popup__title a:hover,
.bayut-map-popup__title a:focus-visible,
.bayut-map-leaflet-popup .bayut-map-popup__title a:hover,
.bayut-map-leaflet-popup .bayut-map-popup__title a:focus-visible {
  color: #087a52 !important;
}

.bayut-map-popup__meta {
  margin: 0 0 6px;
  color: #5b6b7c;
  font-size: 0.74rem;
  line-height: 1.35;
}

.bayut-map-popup__approx {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
}

.bayut-map-popup__cta,
.bayut-map-popup__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: #087a52;
  border-radius: 8px;
}

.bayut-map-popup__cta:hover,
.bayut-map-popup__cta:focus-visible,
.bayut-map-popup__link:hover,
.bayut-map-popup__link:focus-visible {
  background: #066843;
  color: #fff;
  outline: none;
}

.bayut-map-popup__cta:focus-visible,
.bayut-map-popup__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(8, 122, 82, 0.28);
}

@media (min-width: 961px) {
  .bayut-map-sidebar__head {
    padding: 8px 14px 6px;
  }

  .bayut-map-sidebar__title {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  }

  .bayut-map-filters-panel {
    margin: 6px 12px 8px;
  }

  .bayut-map-active-filters {
    margin: 0 12px 8px;
  }
}

@media (max-width: 960px) {
  .bayut-map-mobile-chrome {
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .bayut-map-mobile-toggle {
    gap: 6px;
    padding: 10px 12px 6px;
  }

  .bayut-map-mobile-toggle__btn {
    min-height: 42px;
    border-radius: 10px;
    font-size: 0.84rem;
  }

  .bayut-map-mobile-toggle__btn.is-active {
    color: #fff;
    background: #087a52;
    border-color: #087a52;
  }

  .bayut-map-mobile-note {
    padding: 0 12px 8px;
    font-size: 0.72rem;
  }

  .bayut-map-back-btn--overlay {
    top: 12px;
    right: 12px;
    min-height: 40px;
    min-width: 72px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.14);
  }

  /* Keep Back above map chrome but below open Leaflet popup stacking. */
  .bayut-map-shell.is-map-view .bayut-map-back-btn--overlay {
    z-index: 450;
  }

  .bayut-map-shell.is-map-view .leaflet-popup-pane {
    z-index: 700;
  }

  /* Map body hides .mobile-app-nav (see .bayut-map-body .mobile-app-nav).
     Keep map panel filling the remaining viewport under header + List/Map chrome. */
  .bayut-map-shell.is-map-view .bayut-map-panel {
    height: calc(100dvh - var(--header-height) - 88px);
    height: calc(100vh - var(--header-height) - 88px);
  }

  .bayut-map-shell.is-map-view .bayut-map-leaflet {
    min-height: 360px;
  }

  .bayut-map-shell.is-map-view .bayut-map-leaflet .leaflet-control-zoom {
    margin-top: 58px;
    margin-left: 12px;
  }

  .bayut-map-shell.is-map-view .bayut-map-disclaimer {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    font-size: 0.66rem;
    padding: 6px 9px;
  }

  /* superseded by 20261023MapPopupCloseout — kept as no-op comment marker */
  .bayut-map-leaflet-popup .leaflet-popup-content {
    width: min(260px, calc(100vw - 32px)) !important;
  }

  .bayut-map-popup__media {
    height: 120px;
  }

  .bayut-map-popup__cta,
  .bayut-map-popup__link,
  .bayut-map-card__focus,
  .bayut-map-mobile-toggle__btn,
  .bayut-map-back-btn {
    min-height: 44px;
  }

  .bayut-map-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .bayut-map-card__media {
    width: 104px;
    height: 88px;
  }
}

@media (max-width: 560px) {
  .bayut-map-filters-panel .bayut-map-filters {
    padding: 10px;
  }

  .bayut-map-card-list {
    padding: 8px 10px 12px;
  }
}

@media (max-width: 390px) {
  .bayut-map-shell.is-map-view .bayut-map-leaflet .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bayut-map-card,
  .bayut-map-pin,
  .bayut-map-pin--spot,
  .bayut-map-pin--dot,
  .bayut-map-pin--selected,
  .bayut-map-popup__cta,
  .bayut-map-mobile-toggle__btn {
    transition: none !important;
    animation: none !important;
  }

  .bayut-map-pin.is-active,
  .bayut-map-pin--spot.is-active,
  .bayut-map-pin--spot.is-hover,
  .bayut-map-pin--dot.is-active,
  .bayut-map-pin--dot.is-hover {
    transform: none !important;
  }
}


/* ==========================================================================
   Public Map Premium R1 — Mobile Popup Visual Closeout — 20261023MapPopupCloseout
   Root cause: mobile CSS forced ~280px popup width while Leaflet left-anchored
   the popup mid-viewport (~195px left on 390px), clipping content past the
   right edge. Leaflet default link colour also overrode CTA to blue on green.
   Engine / geography / area-map.js untouched.
   ========================================================================== */

/* Desktop + shared: keep content width aligned with Leaflet maxWidth (260). */
.bayut-map-leaflet-popup .leaflet-popup-content {
  width: 260px !important;
  max-width: 260px;
  box-sizing: border-box;
}

.bayut-map-leaflet-popup .leaflet-popup-content-wrapper {
  max-width: 260px;
  box-sizing: border-box;
}

/* CTA contrast — defeat Leaflet `.leaflet-container a` blue link colour */
.bayut-map-leaflet-popup a.bayut-map-popup__cta,
.bayut-map-leaflet-popup a.bayut-map-popup__link,
.leaflet-container .bayut-map-popup a.bayut-map-popup__cta,
.leaflet-container .bayut-map-popup a.bayut-map-popup__link {
  color: #ffffff !important;
  background-color: #066843 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.bayut-map-leaflet-popup a.bayut-map-popup__cta:hover,
.bayut-map-leaflet-popup a.bayut-map-popup__cta:focus-visible,
.bayut-map-leaflet-popup a.bayut-map-popup__link:hover,
.bayut-map-leaflet-popup a.bayut-map-popup__link:focus-visible,
.leaflet-container .bayut-map-popup a.bayut-map-popup__cta:hover,
.leaflet-container .bayut-map-popup a.bayut-map-popup__cta:focus-visible,
.leaflet-container .bayut-map-popup a.bayut-map-popup__link:hover,
.leaflet-container .bayut-map-popup a.bayut-map-popup__link:focus-visible {
  color: #ffffff !important;
  background-color: #055536 !important;
}

.bayut-map-leaflet-popup a.bayut-map-popup__cta:visited,
.bayut-map-leaflet-popup a.bayut-map-popup__link:visited,
.leaflet-container .bayut-map-popup a.bayut-map-popup__cta:visited,
.leaflet-container .bayut-map-popup a.bayut-map-popup__link:visited {
  color: #ffffff !important;
}

/* Uppercase catalogue titles: readability only — no source/title rewrite */
.bayut-map-popup__title,
.bayut-map-card__title {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.bayut-map-popup__title a,
.bayut-map-card__title a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile map: dock popup on .bayut-map-panel (reparented out of transformed
   Leaflet popup-pane by map-page.js / listings-page.js). Tip hidden. */
@media (max-width: 960px) {
  .bayut-map-panel > .leaflet-popup.bayut-map-leaflet-popup,
  .bayut-serp__map-panel > .leaflet-popup.bayut-map-leaflet-popup,
  .leaflet-popup.bayut-map-leaflet-popup.bayut-map-popup-dock {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    bottom: max(72px, calc(56px + env(safe-area-inset-bottom, 0px))) !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    pointer-events: auto;
    z-index: 1200;
  }

  .bayut-map-panel > .bayut-map-leaflet-popup .leaflet-popup-content-wrapper,
  .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-content-wrapper,
  .leaflet-popup.bayut-map-popup-dock .leaflet-popup-content-wrapper {
    width: 100%;
    max-width: none;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.2);
  }

  .bayut-map-panel > .bayut-map-leaflet-popup .leaflet-popup-content,
  .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-content,
  .leaflet-popup.bayut-map-popup-dock .leaflet-popup-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    box-sizing: border-box;
  }

  .bayut-map-panel > .bayut-map-leaflet-popup .leaflet-popup-tip-container,
  .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-tip-container,
  .leaflet-popup.bayut-map-popup-dock .leaflet-popup-tip-container {
    display: none;
  }

  .bayut-map-panel > .bayut-map-leaflet-popup .leaflet-popup-close-button,
  .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-close-button,
  .leaflet-popup.bayut-map-popup-dock .leaflet-popup-close-button {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    color: #1f2a37 !important;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
    z-index: 3;
  }

  .bayut-map-popup {
    max-width: 100%;
  }

  .bayut-map-popup__media {
    height: min(128px, 28vw);
  }

  .bayut-map-popup__body {
    padding: 12px 14px 14px;
  }

  .bayut-map-popup__title {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .bayut-map-popup__cta,
  .bayut-map-popup__link {
    display: flex;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 360px) {
  .bayut-map-panel > .leaflet-popup.bayut-map-leaflet-popup,
  .bayut-serp__map-panel > .leaflet-popup.bayut-map-leaflet-popup,
  .leaflet-popup.bayut-map-popup-dock {
    left: 8px !important;
    right: 8px !important;
    bottom: max(68px, calc(52px + env(safe-area-inset-bottom, 0px))) !important;
  }

  .bayut-map-popup__media {
    height: 108px;
  }

  .bayut-map-popup__price {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bayut-map-leaflet-popup .leaflet-popup-content-wrapper,
  .bayut-map-popup__cta {
    transition: none !important;
  }
}


/* ==========================================================================
   Residential Listings Mobile Map Popup Containment P1 — 20261023ListingsMapPopupContainmentP1
   Root cause: MapPopupCloseout docks popups with bottom:~72px inside .bayut-serp__map-panel.
   On /listings/ mobile Map, AI search + My Rental Needs + List/Map chrome leave a short
   panel (~247–379px at 320–394). Popup (~365–380px) + 72px bottom offset extends above
   the panel; overflow:hidden clips photo/badge (and rent at 320). Dedicated /map/ is taller
   and keeps the approved dock — this block is listings-scoped only.
   ========================================================================== */

@media (max-width: 960px) {
  /* Panel already clears .mobile-app-nav via main height — do not reserve 72px again. */
  body.listings-page.is-mobile-map-view .bayut-serp__map-panel > .leaflet-popup.bayut-map-leaflet-popup,
  body.listings-page.is-mobile-map-view .leaflet-popup.bayut-map-leaflet-popup.bayut-map-popup-dock {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    top: auto !important;
    max-height: calc(100% - 16px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 1300;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-content-wrapper,
  body.listings-page.is-mobile-map-view .leaflet-popup.bayut-map-popup-dock .leaflet-popup-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    width: 100%;
    overflow: hidden;
  }

  body.listings-page.is-mobile-map-view .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-content,
  body.listings-page.is-mobile-map-view .leaflet-popup.bayut-map-popup-dock .leaflet-popup-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    width: 100% !important;
    margin: 0;
    overflow: hidden;
  }

  /* Keep close above clipped/scrolled media */
  body.listings-page.is-mobile-map-view .bayut-serp__map-panel > .bayut-map-leaflet-popup .leaflet-popup-close-button,
  body.listings-page.is-mobile-map-view .leaflet-popup.bayut-map-popup-dock .leaflet-popup-close-button {
    top: 6px !important;
    right: 6px !important;
    z-index: 5;
  }

  /* Sheet: photo + scrollable facts + pinned CTA (CTA moved by listings-page.js). */
  body.listings-page.is-mobile-map-view .bayut-map-popup,
  body.listings-page.is-mobile-map-view .bayut-map-popup--listings-sheet {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    flex: 1 1 auto;
    overflow: hidden;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__media {
    height: 88px;
    flex: 0 0 auto;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 12px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__price {
    font-size: 0.95rem;
    flex: 0 0 auto;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__topline,
  body.listings-page.is-mobile-map-view .bayut-map-popup__meta,
  body.listings-page.is-mobile-map-view .bayut-map-popup__approx {
    flex: 0 0 auto;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__title {
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 0 0 auto;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup > .bayut-map-popup__cta,
  body.listings-page.is-mobile-map-view .bayut-map-popup > .bayut-map-popup__link,
  body.listings-page.is-mobile-map-view .bayut-map-popup__cta[data-rv-listings-pinned="1"],
  body.listings-page.is-mobile-map-view .bayut-map-popup__link[data-rv-listings-pinned="1"] {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    min-height: 44px;
    margin: 4px 12px 10px;
    width: calc(100% - 24px);
    box-sizing: border-box;
  }

  /* Map panel already shows the approximate-location disclaimer. */
  body.listings-page.is-mobile-map-view .bayut-map-popup__approx {
    display: none;
  }

  /* Map Back stays above map tiles but below the docked popup */
  body.listings-page.is-mobile-map-view .bayut-serp__map-back {
    z-index: 650;
  }
}

@media (max-width: 360px) {
  body.listings-page.is-mobile-map-view .bayut-serp__map-panel > .leaflet-popup.bayut-map-leaflet-popup,
  body.listings-page.is-mobile-map-view .leaflet-popup.bayut-map-leaflet-popup.bayut-map-popup-dock {
    left: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
    max-height: calc(100% - 12px) !important;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__media {
    height: 56px;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__body {
    padding: 8px 10px 10px;
    gap: 4px;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__title {
    -webkit-line-clamp: 1;
    max-height: 1.35em;
  }

  body.listings-page.is-mobile-map-view .bayut-map-popup__meta {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.listings-page.is-mobile-map-view .leaflet-popup.bayut-map-popup-dock .leaflet-popup-content {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Public Journey Premium G1 — 20261024PublicJourneyG1V1
   Contact form step, Thank-you, My Enquiries presentation only.
   Does not alter form-handler, CRM, consent payload, or local
   enquiry storage schema.
   ============================================================ */

/* --- Contact form step --- */
.bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey {
  gap: 1.05rem;
}

.bayut-serp-page.contact-body .contact-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.bayut-serp-page.contact-body .contact-field__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
  min-width: 0;
}

.bayut-serp-page.contact-body .contact-field__mark {
  flex: 0 1 auto;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.bayut-serp-page.contact-body .contact-field__mark--req {
  color: #087a52;
}

.bayut-serp-page.contact-body .contact-field__mark--opt {
  color: #64748b;
  font-weight: 500;
}

.bayut-serp-page.contact-body .contact-field--consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
}

.bayut-serp-page.contact-body .contact-field__consent-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5rem;
  row-gap: 0.2rem;
  min-width: 0;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey .form-progress {
  margin: 0.55rem 0 0.1rem;
  padding-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  border-bottom: 1px solid #e3e8f1;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey .form-progress:first-of-type {
  margin-top: 0;
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey .contact-form__submit {
  justify-self: stretch;
  width: 100%;
  max-width: 20rem;
  min-height: 52px;
  margin-top: 0.35rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(10, 157, 106, 0.22);
}

.bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey .contact-form__submit:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.bayut-serp-page.contact-body #contact-form > .container > .content-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

@media (max-width: 760px) {
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey select,
  .bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey textarea {
    font-size: 16px;
  }

  .bayut-serp-page.contact-body #contact-form > .container > .contact-form.contact-form--journey .contact-form__submit {
    max-width: none;
  }
}

/* --- Thank-you --- */
.bayut-serp-page.thank-you-page .thank-you-confirm {
  display: grid;
  gap: 0.85rem;
  max-width: 40rem;
  margin-inline: auto;
}

.bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(10, 157, 106, 0.12);
  color: #087a52;
}

.bayut-serp-page.thank-you-page .thank-you-confirm h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: #0f172a;
}

.bayut-serp-page.thank-you-page .thank-you-confirm .thank-you-intro {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #334155;
}

.bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-review-note,
.bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-safety-note {
  margin: 0;
  color: #5a697b;
}

.bayut-serp-page.thank-you-page .thank-you-confirm .thank-listing-context {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.45rem;
}

.bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-actions {
  margin-top: 0.25rem;
  gap: 0.65rem;
}

.bayut-serp-page.thank-you-page .thank-you-next-heading {
  margin-bottom: 1rem;
}

.bayut-serp-page.thank-you-page .thank-you-steps .next-step-card {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.bayut-serp-page.thank-you-page .thank-you-steps .next-step-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.bayut-serp-page.thank-you-page .thank-you-steps .next-step-card p {
  margin: 0;
  color: #5a697b;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .bayut-serp-page.thank-you-page .thank-you-confirm {
    gap: 0.75rem;
  }

  .bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-actions {
    display: grid;
  }

  .bayut-serp-page.thank-you-page .thank-you-confirm .confirmation-actions .button {
    width: 100%;
  }
}

/* --- My Enquiries --- */
.rv-enquiries-body .rv-enquiries__intro {
  margin-bottom: 1rem;
}

.rv-enquiries-body .rv-enquiries__local-note {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(10, 16, 32, 0.06);
  background: #f8fafc;
  max-width: 42rem;
}

.rv-enquiries-body .rv-enquiries__local-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #087a52;
}

.rv-enquiries-body .rv-enquiries__notes {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: #5a697b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rv-enquiries-body .rv-enquiries__panel {
  min-width: 0;
}

.rv-enquiries-body .rv-enquiries__list {
  gap: 0.9rem;
}

.rv-enquiries-body .rv-enquiries__card {
  gap: 0.7rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(10, 16, 32, 0.06);
  background: #fff;
}

.rv-enquiries-body .rv-enquiries__card-head {
  display: grid;
  gap: 0.35rem;
}

.rv-enquiries-body .rv-enquiries__title {
  font-size: 1.08rem;
  line-height: 1.35;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.rv-enquiries-body .rv-enquiries__sent {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #087a52;
}

.rv-enquiries-body .rv-enquiries__type {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0ba360;
}

.rv-enquiries-body .rv-enquiries__card--sale .rv-enquiries__type,
.rv-enquiries-body .rv-enquiries__card--sale .rv-enquiries__sent {
  color: #062b5b;
}

.rv-enquiries-body .rv-enquiries__card--commercial .rv-enquiries__type {
  color: #0a7a52;
}

/* Sale thank-you channel: navy primary CTA when Sale listing context hydrates */
body.thank-you-page.thank-you-channel-sale .confirmation-panel .confirmation-actions .button-primary {
  background: #062b5b;
  border-color: #062b5b;
  color: #fff;
}
body.thank-you-page.thank-you-channel-sale .confirmation-panel .confirmation-actions .button-primary:hover,
body.thank-you-page.thank-you-channel-sale .confirmation-panel .confirmation-actions .button-primary:focus-visible {
  background: #0a3a73;
  border-color: #0a3a73;
}

.rv-enquiries-body .rv-enquiries__meta {
  gap: 0.35rem 0.75rem;
}

.rv-enquiries-body .rv-enquiries__meta-item {
  display: inline-flex;
  align-items: center;
}

.rv-enquiries-body .rv-enquiries__meta-item--muted {
  color: #94a3b8;
}

.rv-enquiries-body .rv-enquiries__empty {
  gap: 0.7rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(10, 16, 32, 0.06);
  background: #fff;
  max-width: 32rem;
}

.rv-enquiries-body .rv-enquiries__empty-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #087a52;
}

.rv-enquiries-body .rv-enquiries__empty-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.rv-enquiries-body .rv-enquiries__empty-lead {
  margin: 0;
  max-width: 28rem;
}

.rv-enquiries-body .rv-enquiries__clear {
  margin-top: 1.15rem;
}

.rv-enquiries-body .rv-enquiries__confirm {
  padding: 0.9rem 1rem;
  border: 1px solid #e3e8f1;
  border-radius: 10px;
  background: #f8fafc;
}

@media (max-width: 640px) {
  .rv-enquiries-body .rv-enquiries__local-note,
  .rv-enquiries-body .rv-enquiries__card,
  .rv-enquiries-body .rv-enquiries__empty {
    padding: 1rem;
  }

  .rv-enquiries-body .rv-enquiries__title {
    font-size: 1rem;
  }
}

/* ============================================================
   Agent Entry + Support Chrome G2/G4 — 20261024AgentEntrySupportG2G4V1
   Presentation only: submit-listing retirement cards, data/account
   deletion chrome. No CRM, registration POST, or legal wording.
   ============================================================ */

/* --- G2 Submit Listing retirement --- */
.bayut-serp-page.submit-listing-body .submit-listing-page > .container {
  width: min(100% - 32px, 920px);
  max-width: 920px;
}

.bayut-serp-page.submit-listing-body .submit-listing-intro {
  margin-bottom: 1.35rem;
  max-width: 40rem;
}

.bayut-serp-page.submit-listing-body .submit-listing-intro .bayut-serp__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #161b26;
}

.bayut-serp-page.submit-listing-body .submit-listing-intro .bayut-serp__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #5c6575;
}

.bayut-serp-page.submit-listing-body .agent-portal-access {
  margin: 0;
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(10, 16, 32, 0.05);
}

.bayut-serp-page.submit-listing-body .agent-portal-access .section-heading.compact-heading {
  margin: 0 0 1.1rem;
  max-width: 38rem;
}

.bayut-serp-page.submit-listing-body .agent-portal-access .section-heading .eyebrow {
  margin: 0 0 0.35rem;
  color: #087a52;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bayut-serp-page.submit-listing-body .agent-portal-access .section-heading h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
  color: #161b26;
}

.bayut-serp-page.submit-listing-body .agent-portal-access .section-heading p {
  margin: 0;
  color: #5c6575;
  line-height: 1.5;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__grid {
  gap: 1rem;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f172a;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card p {
  margin: 0;
  color: #5a697b;
  line-height: 1.5;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card .button-group {
  margin-top: 0.35rem;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card .button {
  min-height: 48px;
  font-weight: 700;
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card .button-primary {
  box-shadow: 0 8px 18px rgba(10, 157, 106, 0.2);
}

.bayut-serp-page.submit-listing-body .agent-portal-access__card .button:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

.bayut-serp-page.submit-listing-body .agent-portal-access > .small-note {
  margin: 1.05rem 0 0;
  color: #6a7384;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .bayut-serp-page.submit-listing-body .agent-portal-access__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 428px) {
  .bayut-serp-page.submit-listing-body .submit-listing-page > .container {
    width: min(100% - 24px, 920px);
  }

  .bayut-serp-page.submit-listing-body .agent-portal-access {
    padding: 1rem 0.95rem 1.1rem;
  }

  .bayut-serp-page.submit-listing-body .agent-portal-access__card {
    padding: 1rem;
  }

  .bayut-serp-page.submit-listing-body .agent-portal-access__card .button-group .button {
    width: 100%;
    min-height: 48px;
  }
}

/* --- G4 Account Deletion form chrome (legal-pages.css handles document) --- */
body.account-deletion-page.legal-body .legal-page > .container {
  width: min(100% - 32px, 640px);
  max-width: 640px;
}

body.account-deletion-page.legal-body .legal-intro {
  margin-bottom: 1.15rem;
}

body.account-deletion-page.legal-body .legal-page .legal-document {
  display: grid;
  gap: 0.85rem;
}

body.account-deletion-page.legal-body .legal-page .legal-document > * + * {
  margin-top: 0;
}

body.account-deletion-page.legal-body .legal-page .legal-document > p {
  margin: 0;
  color: #2a3140;
  line-height: 1.65;
}

body.account-deletion-page .account-deletion-warning {
  padding: 0.85rem 0.95rem;
  border: 1px solid #f5d9a8;
  border-radius: 10px;
  background: #fff8eb;
  color: #8a4b08;
  font-weight: 650;
}

body.account-deletion-page .account-deletion-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #eceff4;
}

body.account-deletion-page .account-deletion-form label {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  font-weight: 700;
  color: #161b26;
}

body.account-deletion-page .account-deletion-form label > span {
  font-size: 0.88rem;
}

body.account-deletion-page .account-deletion-form input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d5dbe8;
  border-radius: 11px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #161b26;
  background: #fff;
  box-sizing: border-box;
}

body.account-deletion-page .account-deletion-form input[type="email"]:focus {
  outline: none;
  border-color: #0a9d6a;
  box-shadow: 0 0 0 4px rgba(10, 157, 106, 0.18);
}

body.account-deletion-page .account-deletion-form input[type="email"]:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

body.account-deletion-page .account-deletion-form .button-primary {
  justify-self: start;
  width: 100%;
  max-width: 22rem;
  min-height: 52px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(10, 157, 106, 0.2);
}

body.account-deletion-page .account-deletion-form .button-primary:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.55);
  outline-offset: 2px;
}

body.account-deletion-page.legal-body .legal-page .legal-document .form-submit-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #9f1d20;
  font-weight: 650;
  line-height: 1.45;
}

body.account-deletion-page.legal-body .legal-page .legal-document .account-deletion-status {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid #abefc6;
  border-radius: 10px;
  background: #e3f7ef;
  color: #0a6f4c;
  font-weight: 650;
  line-height: 1.5;
}

@media (max-width: 560px) {
  body.account-deletion-page.legal-body .legal-page > .container {
    width: min(100% - 24px, 640px);
  }

  body.account-deletion-page .account-deletion-form input[type="email"] {
    font-size: 16px;
  }

  body.account-deletion-page .account-deletion-form .button-primary {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bayut-serp-page.submit-listing-body .agent-portal-access__card .button,
  body.account-deletion-page .account-deletion-form input,
  body.account-deletion-page .account-deletion-form .button-primary {
    transition: none;
  }
}

/* ==========================================================================
   Final Technical P2 Closeout V1 — 20261024FinalTechnicalP2CloseoutV1
   Mobile nav active-label contrast + Listing Checked touch target only.
   ========================================================================== */

/* ==========================================================================
   Final Logo Integration V1 — 20261024LogoWordmarkV2SiteWide
   Approved PNG wordmarks in public chrome. Light ≥1280 / Dark ≤1279 + footer.
   Dual-mark CSS media swap (no content:url). SVG originals retained for rollback.
   ========================================================================== */

.logo.logo--wordmark-v2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
  overflow: visible;
}

.logo.logo--wordmark-v2 .logo-mark {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.logo.logo--wordmark-v2 .logo-mark--light {
  display: none;
}

.logo.logo--wordmark-v2 .logo-mark--dark {
  display: block;
}

@media (min-width: 1280px) {
  .site-header .logo.logo--wordmark-v2 {
    width: auto;
    height: auto;
    max-height: 40px;
    overflow: visible;
  }

  .site-header .logo.logo--wordmark-v2 img,
  .site-header .logo.logo--wordmark-v2 .logo-mark {
    content: normal !important;
    margin-left: 0 !important;
    max-width: none;
    width: auto;
    height: 36px;
  }

  .logo.logo--wordmark-v2 .logo-mark--light {
    display: block;
    height: 36px;
    width: auto;
  }

  .logo.logo--wordmark-v2 .logo-mark--dark {
    display: none;
  }
}

@media (min-width: 1440px) {
  .site-header .logo.logo--wordmark-v2 .logo-mark--light {
    height: 38px;
  }
}

@media (max-width: 1279px) {
  .site-header .logo.logo--wordmark-v2 {
    width: auto;
    max-width: min(220px, 58vw);
    height: auto;
    overflow: visible;
  }

  .site-header .logo.logo--wordmark-v2 .logo-mark--dark {
    display: block;
    height: 28px;
    width: auto;
    max-width: 100%;
  }

  .site-header .logo.logo--wordmark-v2 .logo-mark--light {
    display: none;
  }
}

@media (max-width: 389px) {
  .site-header .logo.logo--wordmark-v2 {
    max-width: min(168px, 52vw);
  }

  .site-header .logo.logo--wordmark-v2 .logo-mark--dark {
    height: 24px;
  }
}

.footer-brand .footer-brand-logo {
  display: block;
  width: clamp(200px, 22vw, 248px);
  height: auto;
  margin-bottom: 10px;
}

.footer-brand .footer-brand-tagline {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

@media (max-width: 1279px) {
  .footer-brand .footer-brand-logo {
    width: min(220px, 100%);
    margin-bottom: 8px;
  }

  .footer-brand .footer-brand-tagline {
    font-size: 0.86rem;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   Motion M1 Batch 1 — 20261024MotionM1Batch1
   P1.1 Saved tabs · P1.2 Compare pick/mark · P1.3 Gallery arrows · P1.4 Button hover guard.
   Transitions only; no layout/scale. Reduced-motion makes new transitions instant.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .bayut-saved-tabs__tab,
  .rv-public-compare__pick,
  .rv-public-compare__mark,
  .detail-gallery-arrow {
    transition: none;
  }
}

/* ==========================================================================
   Rental Negotiability Display & Detail Clarity V1
   Badges + residential detail de-duplication. Sale pages unchanged.
   ========================================================================== */

/* Sale-aligned card price term (rental pages do not load sale-public.css). */
.bayut-card__negotiable {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--muted, #4a5563);
  font-size: 0.78em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.detail-similar-card__rent .bayut-card__negotiable {
  margin-left: 0.3rem;
  font-size: 0.72em;
}

.rv-negotiable-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(6, 43, 91, 0.04);
}

.rv-negotiable-badge--yes {
  color: #065f46;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(11, 163, 96, 0.42);
}

.rv-negotiable-badge--fixed {
  color: #475569;
  background: #eef2f7;
  border: 1px solid rgba(71, 85, 105, 0.22);
}

.detail-rent-amount,
.detail-hero-rent strong,
[data-listing-rent-mobile] {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
}

.detail-rent-amount__value {
  font: inherit;
  color: inherit;
}

.detail-term-row__value .rv-negotiable-badge,
.detail-aside-deposit-line .rv-negotiable-badge,
.detail-mobile-deposit-line .rv-negotiable-badge {
  margin-left: 0.35rem;
  vertical-align: 0.05em;
}

.detail-hero-rent .rv-negotiable-badge--yes,
.detail-rent-amount .rv-negotiable-badge--yes,
[data-listing-rent-mobile] .rv-negotiable-badge--yes {
  font-size: 0.82rem;
  padding: 0.26rem 0.78rem;
}

/* Keep one availability statement near the heading; aside repeats less. */
body.listing-detail-page:not(.commercial-detail-page) .detail-aside-facts > div:has(> [data-listing-aside-available]) {
  display: none;
}

/* Trust strip already shows confirmation date — hide the repeated property-info row. */
body.has-detail-trust-strip.listing-detail-page:not(.commercial-detail-page) .detail-evidence-card [data-listing-info-checked-wrap] {
  display: none;
}

/* ==========================================================================
   Dense Trust List Phase 1 — residential discovery only (desktop scan speed)
   Approved: default List, location hierarchy, compressed above-fold chrome.
   Does not change homepage, Sale, Commercial portals, or mobile defaults.
   ========================================================================== */

@media (min-width: 961px) {
  body.listings-page.bayut-serp-page .bayut-breadcrumb {
    margin-bottom: 4px;
  }

  body.listings-page.bayut-serp-page .bayut-serp__intro {
    margin-bottom: 6px;
  }

  /* Discovery D1 H1 consistency: match Commercial/Sale heading tokens (wrap OK; no content-fit shrink). */
  body.listings-page.bayut-serp-page .bayut-serp__title {
    margin-bottom: 2px;
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  body.listings-page.bayut-serp-page .bayut-serp__subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Keep My Rental Needs discoverable; shrink first-paint footprint. */
  body.listings-page.bayut-serp-page .rv-needs-bar {
    margin: 0 0 8px;
    padding: 6px 10px;
    min-height: 0;
    gap: 6px 12px;
    border-radius: 8px;
  }

  body.listings-page.bayut-serp-page .rv-needs-bar__title {
    font-size: 0.84rem;
    font-weight: 700;
  }

  body.listings-page.bayut-serp-page .rv-needs-bar__invite {
    display: none;
  }

  body.listings-page.bayut-serp-page .rv-needs-bar .bayut-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  body.listings-page.bayut-serp-page .bayut-serp__toolbar {
    margin-bottom: 8px;
    min-height: 48px;
    padding: 7px 10px;
  }

  body.listings-page.bayut-serp-page .bayut-serp__quick-chips {
    margin-bottom: 8px;
  }
}

/* Card scan hierarchy: price → locality → trust → specs → title */
body.listings-page.bayut-serp-page .bayut-card__location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 6px;
  color: #243040;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
}

body.listings-page.bayut-serp-page .bayut-card__location-pin,
body.listings-page.bayut-serp-page .bayut-card__location .icon.bayut-card__location-pin {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #0ba360;
  /* Beat global .icon { stroke-width: 0 } so Lucide map-pin stays visible. */
  stroke: currentColor;
  stroke-width: 1.75 !important;
  fill: none !important;
  opacity: 1;
}

body.listings-page.bayut-serp-page .bayut-card__location-text {
  min-width: 0;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__location {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c2734;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title a {
  color: #526070;
  font-weight: 600;
  font-size: 0.86rem;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title a:hover {
  color: var(--heading, #142033);
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__location {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c2734;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__title,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__title a {
  color: #526070;
  font-weight: 600;
}

/* ============================================================
   Dense Trust Filters & Card Polish V2 (listings SERP only)
   ============================================================ */
body.listings-page.bayut-serp-page .bayut-filter-panel__head {
  margin-bottom: 10px;
  gap: 8px;
}

body.listings-page.bayut-serp-page .bayut-filter-clear {
  font-size: 0.78rem;
  font-weight: 650;
  color: #0a7a52;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.listings-page.bayut-serp-page .bayut-filter-panel > .bayut-filter-field,
body.listings-page.bayut-serp-page .bayut-filter-panel > .bayut-filter-fieldset,
body.listings-page.bayut-serp-page .bayut-filter-panel > .bayut-filter-check {
  margin-bottom: 14px;
}

body.listings-page.bayut-serp-page .bayut-filter-label {
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #243040;
}

body.listings-page.bayut-serp-page .bayut-filter-label--inline {
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #5a697b;
}

body.listings-page.bayut-serp-page .bayut-filter-pills--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

body.listings-page.bayut-serp-page .bayut-filter-pills--compact .bayut-filter-pill {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 3px 7px;
  font-size: 0.72rem;
  border-radius: 8px;
}

body.listings-page.bayut-serp-page .bayut-filter-field--price,
body.area-page-body.bayut-serp-page .bayut-filter-field--price {
  padding-top: 2px;
}

body.listings-page.bayut-serp-page .bayut-price-range,
body.area-page-body.bayut-serp-page .bayut-price-range {
  display: grid;
  gap: 8px;
}

body.listings-page.bayut-serp-page .bayut-price-range__hist,
body.area-page-body.bayut-serp-page .bayut-price-range__hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  padding: 0 2px;
}

/* Keep histogram slot in layout even before bars paint (avoids 36px jump when [hidden] lifts). */
body.listings-page.bayut-serp-page .bayut-price-range__hist[hidden],
body.area-page-body.bayut-serp-page .bayut-price-range__hist[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

body.listings-page.bayut-serp-page .bayut-price-range__bar,
body.area-page-body.bayut-serp-page .bayut-price-range__bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: rgba(11, 163, 96, 0.28);
}

body.listings-page.bayut-serp-page .bayut-price-range__slider,
body.area-page-body.bayut-serp-page .bayut-price-range__slider {
  position: relative;
  height: 28px;
  margin: 2px 0 0;
}

body.listings-page.bayut-serp-page .bayut-price-range__track,
body.area-page-body.bayut-serp-page .bayut-price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 999px;
  background: #d7dee8;
}

body.listings-page.bayut-serp-page .bayut-price-range__fill,
body.area-page-body.bayut-serp-page .bayut-price-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: #0ba360;
}

body.listings-page.bayut-serp-page .bayut-price-range__input,
body.area-page-body.bayut-serp-page .bayut-price-range__input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  appearance: none;
  background: transparent;
  pointer-events: none;
  height: 28px;
}

body.listings-page.bayut-serp-page .bayut-price-range__input::-webkit-slider-runnable-track,
body.area-page-body.bayut-serp-page .bayut-price-range__input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

body.listings-page.bayut-serp-page .bayut-price-range__input::-moz-range-track,
body.area-page-body.bayut-serp-page .bayut-price-range__input::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}

body.listings-page.bayut-serp-page .bayut-price-range__input::-webkit-slider-thumb,
body.area-page-body.bayut-serp-page .bayut-price-range__input::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #0ba360;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 51, 0.18);
  pointer-events: auto;
  cursor: grab;
}

body.listings-page.bayut-serp-page .bayut-price-range__input::-moz-range-thumb,
body.area-page-body.bayut-serp-page .bayut-price-range__input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #0ba360;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 51, 0.18);
  pointer-events: auto;
  cursor: grab;
}

body.listings-page.bayut-serp-page .bayut-price-range__input:focus-visible::-webkit-slider-thumb,
body.area-page-body.bayut-serp-page .bayut-price-range__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid rgba(11, 163, 96, 0.45);
  outline-offset: 2px;
}

body.listings-page.bayut-serp-page .bayut-price-range__input:focus-visible::-moz-range-thumb,
body.area-page-body.bayut-serp-page .bayut-price-range__input:focus-visible::-moz-range-thumb {
  outline: 2px solid rgba(11, 163, 96, 0.45);
  outline-offset: 2px;
}

body.listings-page.bayut-serp-page .bayut-price-range__input--max,
body.area-page-body.bayut-serp-page .bayut-price-range__input--max {
  z-index: 2;
}

body.listings-page.bayut-serp-page .bayut-price-range__values,
body.area-page-body.bayut-serp-page .bayut-price-range__values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #142033;
}

body.listings-page.bayut-serp-page .bayut-price-range__values-sep,
body.area-page-body.bayut-serp-page .bayut-price-range__values-sep {
  color: #8a97a8;
  font-weight: 500;
}

body.listings-page.bayut-serp-page .bayut-price-range__edit,
body.area-page-body.bayut-serp-page .bayut-price-range__edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.listings-page.bayut-serp-page .bayut-price-range__field,
body.area-page-body.bayut-serp-page .bayut-price-range__field {
  display: grid;
  gap: 4px;
  margin: 0;
}

body.listings-page.bayut-serp-page .bayut-price-range__field input,
body.area-page-body.bayut-serp-page .bayut-price-range__field input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fff;
  color: #142033;
  font: inherit;
  font-size: 0.82rem;
  box-sizing: border-box;
}

body.listings-page.bayut-serp-page .bayut-price-range__field input:focus,
body.area-page-body.bayut-serp-page .bayut-price-range__field input:focus {
  outline: 2px solid rgba(11, 163, 96, 0.35);
  outline-offset: 1px;
  border-color: #0ba360;
}

body.listings-page.bayut-serp-page .bayut-price-range__note,
body.area-page-body.bayut-serp-page .bayut-price-range__note {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #6b7788;
}

body.listings-page.bayut-serp-page .bayut-filter-select-hidden,
body.area-page-body.bayut-serp-page .bayut-filter-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Card polish — density-safe */
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__price strong {
  font-weight: 780;
  letter-spacing: -0.01em;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.6em;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #5a697b;
  text-transform: none;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__specs {
  margin: 4px 0 6px;
  gap: 6px 10px;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__trust-row {
  margin: 0 0 4px;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-logo,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-logo--company {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-logo--company {
  padding: 4px;
  background: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-logo--company img {
  object-fit: contain;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card__agent-brand strong,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-name {
  font-size: 0.8rem;
  line-height: 1.25;
}

@media (max-width: 1280px) {
  body.listings-page.bayut-serp-page .bayut-filter-pills--compact .bayut-filter-pill {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
}

/* ============================================================
   Dense Trust Polish V3 (listings SERP only)
   ============================================================ */
body.listings-page.bayut-serp-page .rv-needs-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-color: #0ba360;
  color: #087b4d;
  font-weight: 700;
  background: #f3fbf7;
}

body.listings-page.bayut-serp-page .rv-needs-bar__cta .icon {
  width: 14px;
  height: 14px;
  color: #0ba360;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  border-color: #0ba360;
  color: #087b4d;
  font-weight: 700;
  background: #fff;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip .icon {
  width: 14px;
  height: 14px;
  color: #0ba360;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip:hover,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip:focus-visible {
  background: #e8f7f0;
  border-color: #08885b;
  color: #066a49;
  box-shadow: 0 0 0 3px rgba(11, 163, 96, 0.18);
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active {
  background: #0ba360;
  border-color: #08885b;
  color: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active .icon {
  color: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active:hover,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active:focus-visible {
  background: #08885b;
  color: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 5px;
  border-radius: 999px;
  background: #062b5b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active .bayut-saved-chip__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort.filter-select {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 16rem;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort__label {
  display: inline-block !important;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a697b;
  white-space: nowrap;
}

body.listings-page.bayut-serp-page .bayut-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.listings-page.bayut-serp-page .bayut-view-toggle__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Real agency logos: no forced white tile; fallbacks keep subtle container */
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-logo--company,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .lister-brand-logo--company {
  padding: 0;
  background: transparent;
  border-color: transparent;
  border-radius: 6px;
  overflow: hidden;
}

body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .lister-brand-logo--company img,
body.listings-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .lister-brand-logo--company img {
  object-fit: contain;
  background: transparent;
}

body.listings-page.bayut-serp-page .bayut-serp__results .lister-brand-logo--initials {
  background: #0ba360;
  border: 1px solid #0ba360;
  border-radius: 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* V3.3 — custom-select chevron matches native SSR SVG (no border-square → path flash). */
body.listings-page.bayut-serp-page .listing-custom-select .custom-select-trigger::after {
  width: 12px;
  height: 12px;
  right: 12px;
  border: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25 L6 8 L9.75 4.25' stroke='%236d7483' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  transform: translateY(-50%);
  transition: transform var(--duration-ui, 160ms) var(--ease-out, ease);
}
body.listings-page.bayut-serp-page .listing-custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Lucide ruler — match bed/bath glyph size + muted colour; beat global stroke-width:0 */
body.listings-page.bayut-serp-page .bayut-card__spec-size .bayut-card__spec-ruler,
body.listings-page.bayut-serp-page .bayut-card__spec-size .icon.bayut-card__spec-ruler {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--icon-glyph-muted, #6f7d8c);
  stroke: currentColor;
  stroke-width: 1.75 !important;
  fill: none !important;
}

body.listings-page.bayut-serp-page .bayut-serp__results .lister-brand-logo--individual,
body.listings-page.bayut-serp-page .bayut-serp__results .lister-brand-logo--platform {
  background: #e7f4ee;
  border: 1px solid #cfe6da;
  border-radius: 8px;
  color: #062b5b;
}

/* Desktop: prefer top quick chips for Available now / Recently confirmed (synced state kept). */
@media (min-width: 961px) {
  body.listings-page.bayut-serp-page .bayut-serp__sidebar [data-serp-dup-quick] {
    display: none !important;
  }
}

.rv-needs-link--from-filters {
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(10, 157, 106, 0.28);
  border-radius: 10px;
  background: #f4fbf8;
}

.rv-needs-link--from-filters .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #0a9d6a;
}

.rv-needs-link--from-filters:hover,
.rv-needs-link--from-filters:focus-visible {
  border-color: rgba(10, 157, 106, 0.5);
  background: #e8f7f0;
  color: #066a49;
}

.rv-needs-from-filters-status {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #234;
  background: #eef6ff;
  border: 1px solid #d5e4f5;
}

.rv-needs-from-filters-status[data-tone="ok"] {
  color: #066a49;
  background: #e8f7f0;
  border-color: #bfe6d3;
}

.rv-needs-from-filters-status[data-tone="warn"] {
  color: #7a4e12;
  background: #fff7eb;
  border-color: #f0dfbf;
}

/* ============================================================
   Unified Toolbar Chips V1 (listings SERP only)
   Match approved compact Bedrooms/Bathrooms/Furnished pills.
   Does not alter filter semantics or V3.3 first-paint locks.
   ============================================================ */
body.listings-page.bayut-serp-page .bayut-serp__quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  margin: 0 0 8px;
}

body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-height: 28px;
  height: auto;
  max-height: none;
  padding: 3px 7px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #f5f7f9;
  color: #062b5b;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  filter: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip:hover,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip:hover {
  border-color: #c5ced8;
  background: #eef2f5;
  color: #062b5b;
  box-shadow: none;
  filter: none;
}

body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip:focus-visible,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip:focus-visible {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 2px;
  box-shadow: none;
}

body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip.is-active,
body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip[aria-pressed="true"],
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[aria-pressed="true"] {
  background: #0a9d6a;
  border-color: #08885b;
  color: #fff;
  box-shadow: 0 1px 2px rgba(8, 100, 68, 0.18);
  filter: none;
}

body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip.is-active:hover,
body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip.is-active:focus-visible,
body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip[aria-pressed="true"]:hover,
body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip[aria-pressed="true"]:focus-visible,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active:hover,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active:focus-visible,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[aria-pressed="true"]:hover,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[aria-pressed="true"]:focus-visible {
  background: #08885b;
  border-color: #066a49;
  color: #fff;
  box-shadow: 0 1px 2px rgba(8, 100, 68, 0.22);
  filter: none;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip .icon,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip .rv-save-heart {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: inherit;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active .icon,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[aria-pressed="true"] .icon {
  color: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  border-radius: 999px;
  background: #062b5b;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip.is-active .bayut-saved-chip__count,
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[aria-pressed="true"] .bayut-saved-chip__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[disabled],
body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip[aria-disabled="true"],
body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip[disabled],
body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1280px) {
  body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip,
  body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
}

/* Desktop discovery widths: keep chips on one compact row when space allows. */
@media (min-width: 1024px) {
  body.listings-page.bayut-serp-page .bayut-serp__quick-chips {
    flex-wrap: nowrap;
  }
}

@media (max-width: 900px) {
  body.listings-page.bayut-serp-page .bayut-serp__quick-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.listings-page.bayut-serp-page .bayut-serp__quick-chips .bayut-quick-chip {
    width: 100%;
    justify-content: center;
  }

  body.listings-page.bayut-serp-page .bayut-serp__toolbar-actions .bayut-saved-chip {
    min-height: 28px;
    height: auto;
    max-width: none;
    padding: 4px 8px;
    font-size: 0.72rem;
  }
}

/* —— HOTFIX 2026-11-13: Enquire vertical / optical centring (Phase 4) ——
   Sibling stack rules (.detail-portal-aside > * + *) inject padding-top (and a
   top border) into the main Enquire CTA, producing asymmetric T/B padding.
   Restore .button-symmetric vertical padding on the CTA only; keep margin-top
   for section gap. Icon-only nudge counters #icon-chat ink bias — do not
   translate the button. Sticky/mobile already use equal padding. */
body.listing-detail-page .detail-portal-aside > .detail-enquire-cta,
body.listing-detail-page:not(.commercial-detail-page) .detail-portal-aside > .detail-enquire-cta,
body.listing-detail-page.commercial-detail-page .detail-portal-aside > .detail-enquire-cta {
  padding-top: 11px;
  padding-bottom: 11px;
  border-top: 0;
}

body.listing-detail-page .detail-enquire-cta > .icon,
body.listing-detail-page .detail-scroll-bar-enquire > .icon,
body.listing-detail-page .detail-mobile-cta-enquire > .icon {
  /* #icon-chat ink sits ~2.8px above SVG geo centre; 2px brings inkDy inside ±1.5 with margin */
  transform: translateY(2px);
}

/* ==========================================================================
   Discovery D1 H1 typography consistency hotfix (2026-11-13)
   Residential Discovery H1 matches Commercial/Sale D1 heading tokens.
   Scope: residential listings Discovery only. Cards/filters/Homepage/Detail untouched.
   Longer titles wrap; font-size does not content-fit shrink.
   ========================================================================== */
body.listings-page.bayut-serp-page:not(.commercial-page):not(.sale-page) h1.bayut-serp__title,
body.listings-page.bayut-serp-page:not(.commercial-page):not(.sale-page) .bayut-serp__title {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 900px) {
  body.listings-page.bayut-serp-page:not(.commercial-page):not(.sale-page) h1.bayut-serp__title,
  body.listings-page.bayut-serp-page:not(.commercial-page):not(.sale-page) .bayut-serp__title {
    font-size: 1.28rem;
  }
}

@media (max-width: 390px) {
  body.listings-page.bayut-serp-page:not(.commercial-page):not(.sale-page) h1.bayut-serp__title,
  body.listings-page.bayut-serp-page:not(.commercial-page):not(.sale-page) .bayut-serp__title {
    font-size: 1.18rem;
  }
}

/* D5 Saved / Smart Compare — unavailable + compare note (2026-11-14) */
body.listings-page .bayut-card--unavailable,
body.sale-page .bayut-card--unavailable {
  display: flex;
  align-items: stretch;
  min-height: 148px;
  border: 1px dashed #d0d7de;
  background: #f8fafb;
  box-shadow: none;
}

body.listings-page .bayut-card__body--unavailable,
body.sale-page .bayut-card__body--unavailable {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 22px 20px;
}

body.listings-page .bayut-card__unavailable-kicker,
body.sale-page .bayut-card__unavailable-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a97a3;
}

body.listings-page .bayut-card__unavailable-copy,
body.sale-page .bayut-card__unavailable-copy {
  margin: 0;
  max-width: 42ch;
  color: #5b6b78;
  font-size: 0.92rem;
  line-height: 1.45;
}

body.listings-page .bayut-card--unavailable .bayut-btn,
body.sale-page .bayut-card--unavailable .bayut-btn {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 40px;
}

body.listings-page .bayut-saved-compare-note {
  margin: 0 0 12px;
  max-width: 52ch;
  color: #5b6b78;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.listings-page .bayut-saved-compare-note[hidden] {
  display: none !important;
}

body.sale-page .bayut-card--unavailable.bayut-card--sale {
  border-color: rgba(6, 43, 91, 0.22);
  background: #f5f8fc;
}

/* D5 Saved card visual closeout — media controls only (compare subgrid untouched).
   Keep 44×44 heart; inset carousel arrows fully inside overflow:hidden photo. */
body.listings-page.is-saved-destination .bayut-card__media--gallery {
  /* Ensure absolute controls are clipped only by intentional media box, not nested tracks. */
  isolation: isolate;
}

body.listings-page.is-saved-destination .bayut-card__fav {
  z-index: 5;
  top: 8px;
  right: 8px;
}

body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav {
  z-index: 4;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 0.92;
}

body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav--prev {
  left: 12px;
}

body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav--next {
  right: 12px;
}

body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav::before {
  width: 8px;
  height: 8px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav--prev::before {
  margin: -4px 0 0 -2px;
}

body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav--next::before {
  margin: -4px 0 0 -6px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body.listings-page.is-saved-destination .bayut-card__media--gallery:not(:hover):not(:focus-within) .property-media-nav {
    opacity: 0.78;
  }

  body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav:hover,
  body.listings-page.is-saved-destination .bayut-card__media--gallery .property-media-nav:focus-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.58);
  }
}

/* PF-01 private/shared amenity badges */

.detail-amenity-item__access {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: 0.05em;
}
.detail-amenity-item__access--private {
  background: #eef3f9;
  color: #062b5b;
}
.detail-amenity-item__access--shared {
  background: #e8f7ef;
  color: #0a7a4a;
}

/* ND-03 Public New Developments — premium UI corrective */
body.nd-page {
  --nd-navy: #062B5B;
  --nd-navy-soft: #0b3a73;
  --nd-ink: #132238;
  --nd-muted: #4a6280;
  --nd-card: #ffffff;
  --nd-line: rgba(6, 43, 91, 0.12);
  --nd-soft: #e8eef6;
  background: #f5f7fb;
  color: var(--nd-ink);
}
body.nd-page .nd-button-primary {
  background: var(--nd-navy);
  border-color: var(--nd-navy);
  color: #fff;
}
body.nd-page .nd-button-primary:hover,
body.nd-page .nd-button-primary:focus-visible {
  background: var(--nd-navy-soft);
  border-color: var(--nd-navy-soft);
  color: #fff;
}
body.nd-page .nd-button-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.nd-preview-banner {
  margin: 0;
  padding: 0.45rem 0.85rem;
  background: #062B5B;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}
.nd-hero {
  padding: 1.15rem 0 0.85rem;
  background: linear-gradient(180deg, #e4ebf5 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--nd-line);
}
.nd-hero__inner { max-width: 72rem; }
.nd-hero__eyebrow,
.nd-card__eyebrow {
  margin: 0;
  color: var(--nd-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nd-hero h1 {
  margin: 0.25rem 0 0.35rem;
  color: var(--nd-navy);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}
.nd-hero__lead {
  margin: 0;
  max-width: 36rem;
  color: var(--nd-muted);
  font-size: 0.98rem;
}
.nd-truth-strip {
  margin: 0.7rem 0 0;
  max-width: 42rem;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--nd-navy);
  background: rgba(255, 255, 255, 0.78);
  color: var(--nd-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.nd-discovery { padding-top: 1rem; padding-bottom: 2rem; }
.nd-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--nd-line);
  border-radius: 12px;
  background: var(--nd-card);
}
.nd-filters__fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  flex: 1 1 36rem;
  min-width: 0;
}
.nd-filters label {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--nd-muted);
}
.nd-filters label span { font-weight: 600; }
.nd-filters select,
.nd-filters input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--nd-line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  background: #fff;
}
.nd-filters__submit {
  flex: 0 0 auto;
  white-space: nowrap;
}
.nd-discovery__toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 0.65rem;
}
.nd-count {
  margin: 0;
  color: var(--nd-muted);
  font-size: 0.9rem;
}
.nd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.nd-grid--single {
  grid-template-columns: minmax(0, 34rem);
  justify-content: start;
}
.nd-grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nd-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}
.nd-card,
.nd-unit {
  background: var(--nd-card);
  border: 1px solid var(--nd-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(6, 43, 91, 0.05);
}
.nd-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--nd-soft);
  color: inherit;
  text-decoration: none;
}
.nd-card__media img,
.nd-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nd-media-fallback {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  padding: 1rem;
  background:
    linear-gradient(145deg, #0b3a73 0%, #062B5B 48%, #1a466e 100%);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}
.nd-media-fallback__mark { opacity: 0.9; }
.nd-media-fallback__label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0.88;
}
.nd-media-fallback--card { min-height: 0; }
.nd-media-fallback--hero { min-height: 14rem; border-radius: 12px; }
.nd-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--nd-navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nd-detail__heading .nd-badge {
  position: static;
  display: inline-block;
  margin-bottom: 0.45rem;
}
.nd-card__body,
.nd-unit { padding: 0.85rem 0.95rem 1rem; }
.nd-card__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.nd-card__kinds {
  color: var(--nd-muted);
  font-size: 0.78rem;
}
.nd-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--nd-navy);
}
.nd-card__title a {
  color: inherit;
  text-decoration: none;
}
.nd-card__facts {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 0.55rem;
}
.nd-card__facts > div {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.35rem;
  font-size: 0.88rem;
}
.nd-card__facts dt {
  margin: 0;
  color: var(--nd-muted);
  font-weight: 500;
}
.nd-card__facts dd { margin: 0; color: var(--nd-ink); }
.nd-card__price,
.nd-unit__price {
  margin: 0;
  color: var(--nd-navy);
  font-size: 1.02rem;
}
.nd-card__synth,
.nd-enquiry__hold {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: #fff4df;
  color: #7a4b00;
  font-size: 0.8rem;
}
.nd-empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px dashed var(--nd-line);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}
.nd-detail__layout { padding-top: 0.85rem; padding-bottom: 2rem; max-width: 72rem; }
.nd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.65rem;
  color: var(--nd-muted);
  font-size: 0.85rem;
}
.nd-detail__header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.9fr);
  gap: 1rem 1.25rem;
  margin: 0 0 1rem;
  align-items: start;
}
.nd-detail__heading h1 {
  margin: 0 0 0.4rem;
  color: var(--nd-navy);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.nd-detail__developer {
  margin: 0;
  color: var(--nd-muted);
  font-size: 0.95rem;
}
.nd-detail__sep { margin: 0 0.35rem; opacity: 0.55; }
.nd-detail__stats {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--nd-line);
  border-radius: 12px;
  background: #fff;
}
.nd-detail__stats > div { display: grid; gap: 0.15rem; }
.nd-detail__stats dt {
  margin: 0;
  color: var(--nd-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nd-detail__stats dd {
  margin: 0;
  color: var(--nd-navy);
  font-size: 1.05rem;
  font-weight: 700;
}
.nd-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--nd-navy);
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: 0.1em;
}
.nd-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}
.nd-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--nd-soft);
  aspect-ratio: 21 / 9;
  min-height: 12rem;
}
.nd-gallery__item--fallback { aspect-ratio: auto; }
.nd-section { margin: 1.15rem 0; }
.nd-section h2 {
  margin: 0 0 0.55rem;
  color: var(--nd-navy);
  font-size: 1.15rem;
}
.nd-muted,
.nd-location__area { color: var(--nd-muted); }
.nd-amenity-list,
.nd-agency-list,
.nd-updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.nd-amenity-list { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.nd-amenity,
.nd-agency {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--nd-line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
}
.nd-agency__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #d7e4f4, #b9cce3);
  flex: 0 0 auto;
}
.nd-updates li {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--nd-line);
  border-radius: 10px;
  background: #fff;
}
.nd-updates time {
  color: var(--nd-navy);
  font-size: 0.82rem;
  font-weight: 700;
}
.nd-unit__specs {
  margin: 0.2rem 0 0.45rem;
  color: var(--nd-muted);
  font-size: 0.9rem;
}
.nd-enquiry {
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--nd-line);
  background: #fff;
}
.nd-enquiry__preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: end;
}
.nd-enquiry h2 { margin: 0 0 0.4rem; }
.nd-enquiry__safety {
  margin: 0 0 0.55rem;
  color: var(--nd-muted);
  font-size: 0.88rem;
}
.nd-enquiry__recipients-label {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nd-navy);
}
.nd-enquiry__recipients {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--nd-ink);
  font-size: 0.9rem;
}
.nd-enquiry__cta { justify-self: end; }
.nd-enquiry__ack {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(11, 163, 96, 0.28);
  background: #f2faf6;
  color: var(--nd-ink);
}
.nd-enquiry__ack p { margin: 0 0 0.35rem; }
.nd-enquiry__ack p:last-child { margin-bottom: 0; }
.nd-enquiry__form { margin-top: 0.55rem; }
.nd-enquiry__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}
.nd-enquiry__form label {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--nd-muted);
  font-weight: 600;
}
.nd-enquiry__form label span { color: var(--nd-navy); }
.nd-enquiry__form input,
.nd-enquiry__form select,
.nd-enquiry__form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--nd-line);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--nd-ink);
  background: #fff;
}
.nd-enquiry__message { grid-column: 1 / -1; }
.nd-enquiry__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 0.65rem;
  font-weight: 500 !important;
  color: var(--nd-ink) !important;
}
.nd-enquiry__consent input {
  width: auto;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.nd-enquiry__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nd-enquiry__hold {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: #fff8e8;
  color: #6a4b00;
  font-size: 0.86rem;
}
.nd-crosslink {
  margin: 1.25rem 0 0.5rem;
  color: var(--nd-muted);
  font-size: 0.92rem;
}
.nd-crosslink--gated { font-style: italic; }

@media (max-width: 1100px) {
  .nd-filters__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nd-grid--single { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .nd-detail__header { grid-template-columns: 1fr; }
  .nd-enquiry__preview { grid-template-columns: 1fr; }
  .nd-enquiry__cta { justify-self: stretch; }
  .nd-enquiry__cta .button { width: 100%; }
  .nd-enquiry__grid { grid-template-columns: 1fr; }
  .nd-enquiry__form .button { width: 100%; }
  .nd-gallery__item { aspect-ratio: 16 / 10; min-height: 10rem; }
}
@media (max-width: 640px) {
  .nd-hero { padding: 0.9rem 0 0.7rem; }
  .nd-filters { flex-direction: column; align-items: stretch; }
  .nd-filters__fields { grid-template-columns: 1fr 1fr; flex-basis: auto; }
  .nd-filters__submit { width: 100%; }
  .nd-grid,
  .nd-grid--duo { grid-template-columns: 1fr; }
  .nd-card__facts > div { grid-template-columns: 5.2rem minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .nd-filters__fields { grid-template-columns: 1fr; }
}

