/* Sales V1 P2A — discovery styles + sale-detail adaptations of Premium V2.
   Detail page reuses residential listing-detail classes from style.css.
   This file only adds sale-safe overrides (no independent detail design system). */

.sale-page,
.sale-detail-page {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Approved Sale identity — never inherit Rental emerald for Sale discovery controls. */
  --rv-sale-accent: #062B5B;
  --rv-sale-accent-soft: #EAF3FA;
  --rv-sale-accent-border: rgba(6, 43, 91, 0.18);
  --rv-sale-accent-strong: #062B5B;
}

/* D2-R3: redundant For Rent / For Sale channel pills removed from Sale discovery.
   Global header already provides both journeys. Keep legacy selectors inert. */
.sale-page .rv-channel-nav,
.sale-detail-page .rv-channel-nav,
.rv-channel-nav:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Premium Discovery — Sale type segmentor (navy active; mirrors For Rent channel geometry). */
.pg-sale-type-channel {
  --pg-sale-navy: #062b5b;
  --pg-sale-navy-deep: #041e42;
  --pg-sale-border: #d5dde8;
  --pg-sale-muted: #5a6b7d;
  --pg-sale-surface: #f4f7fb;
  margin: 0 0 16px;
  padding: 0;
}

.pg-sale-type-channel__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  min-height: 42px;
  padding: 3px;
  gap: 0;
  border: 1px solid var(--pg-sale-border);
  border-radius: 10px;
  background: var(--pg-sale-surface);
  box-sizing: border-box;
}

.pg-sale-type-channel__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  height: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pg-sale-navy) !important;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.15;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.pg-sale-type-channel__tab:hover {
  color: var(--pg-sale-navy-deep) !important;
  background: rgba(6, 43, 91, 0.08);
}

.pg-sale-type-channel__tab:focus {
  outline: none;
}

.pg-sale-type-channel__tab:focus-visible {
  outline: 2px solid var(--pg-sale-navy);
  outline-offset: 2px;
  z-index: 1;
}

.pg-sale-type-channel__tab.is-active {
  background: var(--pg-sale-navy);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(6, 43, 91, 0.16);
}

.pg-sale-type-channel__tab.is-active:hover {
  background: var(--pg-sale-navy-deep);
  color: #fff !important;
}

.pg-sale-type-channel__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-sale-type-channel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(6, 43, 91, 0.08);
  color: var(--pg-sale-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.78em;
  line-height: 1.2;
}

.pg-sale-type-channel__tab.is-active .pg-sale-type-channel__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 640px) {
  .pg-sale-type-channel__list {
    max-width: none;
  }

  .pg-sale-type-channel__tab {
    padding: 7px 6px;
    font-size: 0.8rem;
    gap: 4px;
  }
}

/* Discovery — Premium V2 bayut rhythm (2-col desktop), sale-safe facts */
.sale-page.bayut-serp-page {
  overflow-x: clip;
}

/* B1 Saved chip — Premium V2 compact outline, sale accent when active */
.sale-page.bayut-serp-page .bayut-saved-chip[data-sale-saved-chip] {
  min-height: 40px;
  align-self: center;
}

.sale-page.bayut-serp-page .bayut-saved-chip[data-sale-saved-chip].is-active,
.sale-page.bayut-serp-page .bayut-saved-chip[data-sale-saved-chip][aria-pressed="true"] {
  border-color: var(--rv-sale-accent, #1e3a5f);
  color: var(--rv-sale-accent, #1e3a5f);
  background: var(--rv-sale-accent-soft, #eef3f8);
}

/* Saved Sales destination R3 — Rental-style full-width Saved page (Saved mode only). */
body.sale-page.is-sale-saved-destination .bayut-serp__layout,
.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__layout {
  grid-template-columns: minmax(0, 1fr);
}

body.sale-page.is-sale-saved-destination .bayut-serp__main,
.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__main {
  min-width: 0;
  max-width: 100%;
}

body.sale-page.is-sale-saved-destination .bayut-serp__sidebar,
body.sale-page.is-sale-saved-destination .rv-needs-bar,
body.sale-page.is-sale-saved-destination .bayut-view-toggle,
body.sale-page.is-sale-saved-destination .bayut-saved-chip[data-sale-saved-chip],
.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__sidebar,
.sale-page.bayut-serp-page.is-sale-saved-mode .rv-needs-bar,
.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-view-toggle,
.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-saved-chip[data-sale-saved-chip] {
  display: none !important;
}

/* Discovery subtitle off in Saved cards mode; Compare reuses it for selected count. */
body.sale-page.is-sale-saved-destination:not(.is-sale-compare-active) .bayut-serp__subtitle,
.sale-page.bayut-serp-page.is-sale-saved-mode:not(.is-sale-compare-active) .bayut-serp__subtitle {
  display: none !important;
}

/* Discovery Recently Viewed rail only — never detail/other recent sections. */
.sale-page.bayut-serp-page.is-sale-saved-mode .sale-recent-serp[data-sale-recent-serp] {
  display: none !important;
}

body.sale-page.is-sale-saved-destination .bayut-mobile-bar {
  display: none !important;
}

.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-saved-compare[data-sale-compare-open] {
  align-self: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 750;
}

.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__toolbar[data-sale-toolbar] {
  align-items: center;
}

.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__results[data-view-mode="grid"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__results[data-view-mode="grid"] > .bayut-card {
  max-width: 100%;
}

@media (max-width: 767px) {
  .sale-page.bayut-serp-page.is-sale-saved-mode .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: 1fr;
  }

  body.sale-page.is-sale-saved-destination:not(.is-sale-compare-active) {
    scroll-padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 24px);
  }

  body.sale-page.is-sale-saved-destination:not(.is-sale-compare-active) .bayut-serp__results {
    padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 20px);
  }

  body.sale-page.is-sale-saved-destination:not(.is-sale-compare-active) .site-footer {
    padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 28px);
  }
}

/* Save/Share sit in .detail-top-bar (Rental Premium V2 parity). */
.sale-detail-page .detail-top-bar .detail-action-bar[data-sale-action-bar] {
  margin: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

.sale-detail-page .detail-aside-secondary-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.sale-detail-page .detail-aside-secondary-ctas .button {
  flex: 1 1 auto;
  min-width: 7.5rem;
  justify-content: center;
}

.sale-page.bayut-serp-page .bayut-serp__wrap,
.sale-page.bayut-serp-page .bayut-serp__layout,
.sale-page.bayut-serp-page .bayut-serp__main,
.sale-page.bayut-serp-page .bayut-serp__results {
  min-width: 0;
  max-width: 100%;
}

/*
 * Discovery toolbar parity R1.
 * Base .bayut-serp__toolbar is sticky (z-index 24) and can overlay card media while
 * scrolling on Sale SERP. Match Commercial’s static placement: normal flow above cards,
 * keep Rental white chrome / typography.
 */
.sale-page.bayut-serp-page .bayut-serp__toolbar[data-sale-toolbar] {
  position: static;
  top: auto;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border, #e8edf2);
  border-radius: var(--radius-xs, 8px);
  box-shadow: var(--shadow-xs, none);
}

.sale-page.bayut-serp-page .bayut-serp__toolbar-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
}

.sale-page.bayut-serp-page .bayut-serp__toolbar-primary-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.sale-page.bayut-serp-page .bayut-toolbar-filters {
  display: none;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 40px;
  border-color: var(--rv-sale-accent-border, rgba(6, 43, 91, 0.18));
  color: var(--rv-sale-accent, #062B5B);
  font-weight: 700;
}

.sale-page.bayut-serp-page .bayut-toolbar-filters .icon {
  width: 1rem;
  height: 1rem;
}

.sale-page.bayut-serp-page .bayut-serp__toolbar[data-sale-toolbar].is-stuck {
  border-color: var(--border, #e8edf2);
  box-shadow: var(--shadow-xs, none);
}

.sale-page.bayut-serp-page .bayut-serp__count[data-sale-count] {
  color: #4a5568;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-width: 0;
  max-width: min(100%, 28rem);
}

/* D2-R4: match Rental SERP filter panel geometry; Sale keeps navy accents only. */
.sale-page.bayut-serp-page .bayut-filter-panel {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
  padding: 12px;
}

.sale-page.bayut-serp-page .bayut-filter-panel__head {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
}

.sale-page.bayut-serp-page .bayut-filter-field {
  margin-bottom: 9px;
  padding-top: 6px;
  gap: 4px;
}

/* D2-R2: bedroom pills — same geometry as Rental, Sale navy selection. */
.sale-page.bayut-serp-page .bayut-filter-field--pills .bayut-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sale-page.bayut-serp-page .bayut-filter-pill {
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(6, 43, 91, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #35557a;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sale-page.bayut-serp-page .bayut-filter-pill:hover {
  border-color: rgba(6, 43, 91, 0.35);
  color: #062B5B;
}

.sale-page.bayut-serp-page .bayut-filter-pill.is-active {
  background: #EAF3FA;
  border-color: #062B5B;
  color: #062B5B;
  box-shadow: 0 4px 12px rgba(6, 43, 91, 0.14);
}

.sale-page.bayut-serp-page .bayut-filter-pill:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

.sale-page.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;
}

.sale-page.bayut-serp-page .bayut-filter-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: var(--weight-label, 650);
  color: #3d4a57;
}

/* Search input parity with Residential sidebar (colour / border / pad / focus). */
.sale-page.bayut-serp-page .bayut-filter-field--search .bayut-filter-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  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);
}

.sale-page.bayut-serp-page .bayut-filter-field--search .bayut-filter-input-wrap:focus-within {
  border-color: #2f6fad;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.18);
}

.sale-page.bayut-serp-page .bayut-filter-field--search .bayut-filter-input-wrap .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--icon-glyph-primary, #5a697b);
}

.sale-page.bayut-serp-page .bayut-filter-field--search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  color: var(--text, #152028);
}

.sale-page.bayut-serp-page .bayut-filter-field--search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.sale-page.bayut-serp-page .bayut-filter-field.filter-select select,
.sale-page.bayut-serp-page .bayut-filter-row--pair select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
}

/* Approved Rental-style two-across desktop results — never three-cramped. */
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  grid-template-columns: none;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  flex: 0 0 auto;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media-track,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__media .property-media img {
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card__agent {
  margin-top: auto;
}

.sale-page.bayut-serp-page .bayut-card__avail {
  color: var(--rv-sale-accent, #1e3a5f);
}

/* Strong uppercase visual title — source casing retained in HTML for SEO. */
.sale-page.bayut-serp-page .bayut-card__title,
.sale-page.bayut-serp-page .bayut-card__title a {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.bayut-card__negotiable {
  font-weight: 400;
  color: var(--muted, #4a5563);
  font-size: 0.78em;
  margin-left: 0.35rem;
}

/* List view keeps Premium V2 horizontal anatomy on wide screens. */
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card {
  min-width: 0;
}

/* Mobile discovery chrome: compact bar, no sticky occlusion of footer */
.sale-page.bayut-serp-page .bayut-mobile-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
}

.sale-page.bayut-serp-page .bayut-mobile-bar__btn,
.sale-page.bayut-serp-page .bayut-mobile-filters__foot .bayut-btn,
.sale-page.bayut-serp-page .bayut-filter-clear {
  min-height: 44px;
}

.sale-page.bayut-serp-page .site-footer {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 960px) {
  .sale-page.bayut-serp-page .site-footer {
    padding-bottom: 0;
  }
}

@media (max-width: 900px) {
  .sale-page.bayut-serp-page .bayut-serp__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .sale-page.bayut-serp-page .bayut-toolbar-filters {
    display: inline-flex;
  }

  /*
   * D2-R: Top toolbar Filters is the canonical mobile Filters entry.
   * Hide sticky .bayut-mobile-bar so Filters is not duplicated near the footer.
   */
  .sale-page.bayut-serp-page .bayut-mobile-bar[data-mobile-filter-bar] {
    display: none !important;
  }

  .sale-page.bayut-serp-page .site-footer {
    padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 12px);
  }
}

@media (max-width: 767px) {
  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sale-page.bayut-serp-page .bayut-serp__toolbar[data-sale-toolbar] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
  }

  /* Row 1: count + Filters + Saved (Filters must stay on-canvas). */
  .sale-page.bayut-serp-page .bayut-serp__toolbar-primary {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
  }

  .sale-page.bayut-serp-page .bayut-serp__toolbar-primary-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .sale-page.bayut-serp-page .bayut-serp__count[data-sale-count] {
    flex: 1 1 auto;
    font-size: 0.78rem;
    max-width: none;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sale-page.bayut-serp-page .bayut-toolbar-filters,
  .sale-page.bayut-serp-page .bayut-saved-chip[data-sale-saved-chip] {
    min-height: 38px;
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  /* Row 2: Sort + List/Grid/Map */
  .sale-page.bayut-serp-page .bayut-serp__toolbar-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
  }

  .sale-page.bayut-serp-page .bayut-sort {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sale-page.bayut-serp-page .bayut-sort select {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .sale-page.bayut-serp-page .bayut-view-toggle {
    flex: 0 0 auto;
    justify-content: stretch;
  }

  .sale-page.bayut-serp-page .bayut-view-toggle__btn {
    min-width: 0;
    padding-inline: 0.55rem;
    min-height: 38px;
    font-size: 0.78rem;
  }

  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
}

@media (max-width: 394px) {
  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .sale-page.bayut-serp-page .bayut-serp__title {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }
}

@media (max-width: 375px), (max-width: 390px), (max-width: 320px) {
  .sale-page.bayut-serp-page .bayut-serp__wrap.container {
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 320px) {
  .sale-page.bayut-serp-page .bayut-filter-row--pair {
    flex-direction: column;
  }

  .sale-page.bayut-serp-page .bayut-view-toggle__btn {
    min-width: 0;
    padding-inline: 0.7rem;
  }
}

.sale-disclaimer {
  margin: 0.85rem 0 0.25rem;
  max-width: 46rem;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
}

.sale-page.bayut-serp-page .bayut-popular {
  margin-top: 1rem;
}

.sale-page.bayut-serp-page .bayut-popular__links a:hover {
  color: #062B5B;
}

/* D2-R4: discovery Recently Viewed Sales removed — fail-closed if markup reappears. */
.sale-page.bayut-serp-page .sale-recent-serp[data-sale-recent],
.sale-page.bayut-serp-page [data-sale-recent-serp] {
  display: none !important;
}

.sale-disclaimer-card {
  margin: 0;
  border-color: var(--rv-sale-accent-border, rgba(30, 58, 95, 0.18));
  background: linear-gradient(180deg, #fff 0%, var(--rv-sale-accent-soft, #eef3f8) 140%);
}

.sale-disclaimer-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rv-sale-accent, #1e3a5f);
}

/* Sale detail: Premium V2 portal reuse + sale-safe overrides */
.sale-detail-page .detail-portal-head .rv-channel-nav,
.sale-detail-page .rv-channel-nav {
  display: none !important;
}

.sale-detail-page .detail-hero-rent span,
.sale-detail-page .detail-rent-meta,
.sale-detail-page .detail-mobile-cta-rent > span {
  text-transform: none;
}

.sale-detail-page .sale-detail-note {
  margin-top: 0.85rem;
}

/* Readable title. Catalogue casing stays in the HTML. Discovery cards are unchanged. */
.sale-detail-page .detail-title-block > h1 {
  text-transform: none;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.sale-detail-page .detail-scroll-bar-title {
  text-transform: none;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: nowrap;
}

.sale-detail-page .detail-breadcrumb {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sale-detail-page .detail-aside-facts {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem 0.75rem;
}

.sale-detail-page .detail-aside-facts > div {
  display: grid;
  gap: 0.1rem;
}

.sale-detail-page .detail-aside-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #5b6b78);
}

.sale-detail-page .detail-aside-facts dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text, #152028);
}

.sale-detail-page .detail-portal-aside .detail-agent-card {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rv-detail-premium-border, #e5e8ee);
}

.sale-detail-page .detail-agent-eyebrow {
  color: var(--rv-sale-accent, #1e3a5f);
}

/* STAGING-POLISH-01: agency name stays title-case / restrained (no shared uppercase). */
body.pg-public.sale-detail-page.listing-detail-page .detail-agent-name,
body.pg-public.sale-detail-page.listing-detail-page .detail-agent-name-link,
body.pg-public.sale-detail-page.listing-detail-page [data-listing-agent-name],
body.pg-public.sale-detail-page.listing-detail-page [data-listing-agent-name].is-agency-brand {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
}

.sale-detail-page,
.sale-page {
  overflow-x: clip;
}

.sale-detail-page .detail-portal-section > .container,
.sale-detail-page .detail-gallery-stage,
.sale-detail-page .detail-title-block,
.sale-detail-page .detail-location-facts,
.sale-detail-page .detail-quick-stats,
.sale-detail-page .detail-section-nav {
  max-width: 100%;
  min-width: 0;
}

.sale-detail-page .detail-quick-stats {
  flex-wrap: wrap;
}

.sale-detail-page .detail-mobile-cta--sale {
  display: none;
}

/*
 * Mobile ≤1079: rental display:contents + order still applies to stack children.
 * Location is order 11 (style.css). Fit must sit between Location and Buyer Safety.
 * Without an explicit order, Fit defaults to 0 and paints above the title/gallery.
 */
@media (max-width: 1079px) {
  /* D3-B2: after Location (11); before Fit (13) / Buyer Safety (14). */
  .sale-detail-page.listing-detail-page .sale-loan-calculator {
    order: 12;
  }

  .sale-detail-page.listing-detail-page .sale-buying-needs-slot[data-buying-needs-detail] {
    order: 13;
  }

  .sale-detail-page.listing-detail-page .sale-disclaimer-card {
    order: 14;
  }

  /* Rec Visual Parity R1 — Similar/Recent are full-width siblings below the portal
     stack (not ordered children of sale-detail-stack). Mobile DOM order already
     places them after property content. */

  /* Hero + sticky bar already show asking price; keep aside agent only. */
  .sale-detail-page.listing-detail-page .detail-rent-card-aside {
    display: none;
  }

  .sale-detail-page.listing-detail-page .detail-portal-aside {
    padding: 0.85rem 1rem;
  }

  .sale-detail-page.listing-detail-page .detail-portal-aside--price-only {
    display: none;
  }
}

/*
 * Property facts markup uses div-wrapped pairs (same shape as Premium V2
 * property-info). Base .detail-rental-facts expects flat dt/dd columns, and
 * .detail-rental-facts-card { align-self: start } shrinks the card under the
 * sale desktop flex main — leaving a wide empty gap in the left column.
 */
.sale-detail-page .detail-rental-facts-card.content-card {
  align-self: stretch;
  width: 100%;
  min-width: 0;
}

.sale-detail-page .detail-rental-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 28px);
  row-gap: 10px;
  margin: 0;
}

.sale-detail-page .detail-rental-facts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sale-detail-page .detail-rental-facts dt,
.sale-detail-page .detail-rental-facts dd {
  grid-column: auto;
}

/* D3-B: keep a readable 2-col facts grid through 394px phones; single-col only when cramped. */
.sale-detail-page .detail-rental-facts > .sale-ppsqft-note,
.sale-detail-page .detail-rental-facts > .detail-rental-facts__note {
  grid-column: 1 / -1;
}

.sale-detail-page .detail-rental-facts dt {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #5b6b78;
  overflow-wrap: anywhere;
}

.sale-detail-page .detail-rental-facts dd {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rv-detail-premium-ink, #152028);
  overflow-wrap: anywhere;
}

@media (max-width: 340px) {
  .sale-detail-page .detail-rental-facts {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 8px;
  }
}

/* Desktop Option C: evidence | aside, then left column rest (tight gap). */
@media (min-width: 1080px) {
  .sale-detail-page.listing-detail-page .detail-post-hero.sale-detail-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    grid-template-areas:
      "evidence aside"
      "main aside";
    gap: var(--rv-detail-premium-gap, 16px) clamp(18px, 2.5vw, 28px);
    align-items: start;
  }

  .sale-detail-page.listing-detail-page .sale-detail-stack > .detail-evidence-card {
    grid-area: evidence;
  }

  .sale-detail-page.listing-detail-page .sale-detail-stack > .detail-portal-aside {
    grid-area: aside;
    position: sticky;
    top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 18px);
    align-self: start;
    /* No nested scroll trap — page scroll reaches Enquire / expanded collab. */
    max-height: none;
    overflow: visible;
  }

  /*
   * Expanded buyer-collab form is taller than most viewports. Drop sticky so
   * consent + submit stay in normal document flow (no clipped nested pane).
   */
  .sale-detail-page.listing-detail-page .sale-detail-stack > .detail-portal-aside:has(.detail-agent-collaboration--sale.is-expanded),
  .sale-detail-page.listing-detail-page .sale-detail-stack > .detail-portal-aside.is-sale-collab-expanded {
    position: static;
    top: auto;
  }


  .sale-detail-page.listing-detail-page .sale-detail-stack > .sale-detail-stack__main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: var(--rv-detail-premium-gap, 16px);
    min-width: 0;
  }

  /* Keep facts card matching About / Location / Buyer safety column width. */
  .sale-detail-page.listing-detail-page .sale-detail-stack__main > .detail-rental-facts-card {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 959px) {
  /*
   * Sale body rhythm: Premium residential compresses portal-body to 10px on phones.
   * Keep ~16px between sale body cards without touching frozen residential CSS.
   * Specificity must beat body.listing-detail-page:not(.commercial…) { gap: 10px }.
   */
  body.sale-detail-page.listing-detail-page .detail-portal-body {
    gap: var(--rv-detail-premium-gap, 16px);
  }

  /*
   * Match rental mobile gallery: hide desktop mosaic, show scroll carousel + thumbs.
   * Base style.css keeps mosaic visible while .is-gallery-mosaic remains (SSR class).
   */
  .sale-detail-page .detail-media-card.is-gallery-mosaic .detail-gallery-mosaic {
    display: none !important;
  }

  .sale-detail-page .detail-media-card.is-gallery-mosaic .detail-gallery-main {
    display: block !important;
  }

  .sale-detail-page .detail-media-card.is-gallery-mosaic .detail-gallery-thumbs {
    display: flex !important;
  }

  .sale-detail-page .detail-gallery-main.is-scroll-gallery {
    width: 100%;
    max-width: 100%;
    height: clamp(260px, 54vh, 380px);
    min-height: 230px;
    max-height: 56vh;
  }

  .sale-detail-page .detail-gallery-main.is-scroll-gallery .detail-gallery-track {
    display: flex;
  }

  .sale-detail-page .detail-gallery-main.is-scroll-gallery .detail-gallery-track img {
    object-fit: cover;
    object-position: center center;
  }

  .sale-detail-page .detail-gallery-stage,
  .sale-detail-page .detail-media-card {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  /*
   * D3-B2 sticky CTA — Rental geometry + Sale labels/colours.
   * D3-B3: ~20px bottom breathing room when safe-area is 0 (typical iPhone Safari
   * without viewport-fit=cover). Still adds env(safe-area-inset-bottom) once when present.
   */
  body.sale-detail-page.listing-detail-page.has-detail-mobile-cta .detail-mobile-cta.detail-mobile-cta--sale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 10px;
    padding-inline: max(14px, calc((100vw - var(--container, 1120px)) / 2 + 10px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    box-shadow: 0 -10px 26px rgba(16, 24, 40, 0.11);
    background: rgba(255, 255, 255, 0.98);
  }

  .sale-detail-page.has-detail-mobile-cta .detail-mobile-cta--sale .detail-mobile-cta-rent--sale-only {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .sale-detail-page.has-detail-mobile-cta .detail-mobile-cta--sale .detail-mobile-cta-rent strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--rv-detail-premium-ink, #152028);
  }

  .sale-detail-page.has-detail-mobile-cta .detail-mobile-cta--sale .detail-mobile-cta-rent__label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted, #5b6b78);
    line-height: 1.2;
  }

  .sale-detail-page.has-detail-mobile-cta .detail-mobile-cta--sale .detail-mobile-cta-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }

  .sale-detail-page.has-detail-mobile-cta .detail-mobile-cta--sale .detail-mobile-actions-trigger {
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
  }

  .sale-detail-page.has-detail-mobile-cta .detail-mobile-cta--sale .detail-mobile-cta-enquire {
    min-width: 5.75rem;
    min-height: 46px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .sale-detail-page.has-detail-mobile-cta .mobile-app-nav {
    display: none;
  }

  .sale-detail-page.has-detail-mobile-cta {
    /* 10 top + 46 button + 20 bottom ≈ 76; keep modest buffer for footer scroll. */
    --detail-mobile-cta-clearance: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* Very narrow: price + Actions + Enquire can wrap and grow the sticky bar. */
  @media (max-width: 360px) {
    .sale-detail-page.has-detail-mobile-cta {
      --detail-mobile-cta-clearance: calc(140px + env(safe-area-inset-bottom, 0px));
    }
  }

  .sale-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);
  }

  .sale-detail-page.has-detail-mobile-cta .sale-loan-calculator,
  .sale-detail-page.has-detail-mobile-cta .sale-disclaimer-card,
  .sale-detail-page.has-detail-mobile-cta [data-sale-similar],
  .sale-detail-page.has-detail-mobile-cta [data-sale-recent] {
    scroll-margin-bottom: calc(var(--detail-mobile-cta-clearance, calc(72px + env(safe-area-inset-bottom, 0px))) + 16px);
  }

  .sale-detail-page .detail-section-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sale-detail-page .detail-section-nav::-webkit-scrollbar {
    display: none;
  }

  .sale-detail-page .detail-top-bar {
    gap: 6px;
    margin-bottom: 6px;
  }

  .sale-detail-page .detail-breadcrumb {
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

@media (max-width: 390px) {
  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] {
    grid-template-columns: 1fr;
  }

  .sale-detail-page .detail-quick-stats li {
    min-width: 0;
  }

  .sale-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(250px, 52vh, 360px);
    max-height: 54vh;
  }
}

@media (max-width: 360px) {
  .sale-detail-page .detail-gallery-main.is-scroll-gallery {
    height: clamp(230px, 48vh, 330px);
    max-height: 52vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bayut-card,
  .bayut-view-toggle__btn {
    transition: none !important;
  }
}

/* P2B2 — sale agent collaboration (sale-only Premium V2 polish; rental CSS untouched). */
.sale-detail-page .detail-agent-collaboration--sale {
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
  /* Clear sticky header + section nav when scrolled into view / focused. */
  scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 20px);
}

.sale-detail-page .detail-agent-collaboration--sale[data-server-collaboration-ready] {
  order: 0;
}

.sale-detail-page .detail-agent-collaboration--sale.is-expanded {
  padding-bottom: 0.95rem;
}

.sale-detail-page .detail-agent-collaboration--sale .detail-agent-collaboration__title {
  font-size: 1.02rem;
  line-height: 1.28;
  scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 20px);
}

.sale-detail-page .detail-agent-collaboration--sale .detail-agent-collaboration__help {
  margin-bottom: 0.7rem;
  font-size: 0.84rem;
  line-height: 1.4;
}

.sale-detail-page .detail-agent-collaboration__interest {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.sale-detail-page .detail-agent-collaboration__interest legend {
  margin: 0 0 0.45rem;
  padding: 0;
  font-weight: 650;
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--heading, #14532d);
}

.sale-detail-page .detail-agent-collaboration__interest-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-width: 0;
}

/* Compact full-width selectable rows (Premium V2 lead-intent rhythm, left-aligned). */
.sale-detail-page .detail-agent-collaboration__form.contact-form .detail-agent-collaboration__interest-option,
.sale-detail-page .detail-agent-collaboration__interest-option {
  display: flex !important; /* beat .contact-form label { display:grid } */
  grid-template-columns: none !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border, #d4dbe8);
  border-radius: 10px;
  background: #fff;
  color: var(--heading, #152028);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sale-detail-page .detail-agent-collaboration__interest-option:hover {
  border-color: rgba(10, 157, 106, 0.4);
  background: rgba(233, 248, 241, 0.45);
}

.sale-detail-page .detail-agent-collaboration__interest-option:has(input:checked) {
  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);
}

.sale-detail-page .detail-agent-collaboration__interest-option:has(input:focus-visible) {
  outline: 2px solid rgba(10, 157, 106, 0.45);
  outline-offset: 2px;
}

.sale-detail-page .detail-agent-collaboration__interest-option span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/*
 * Beat .contact-form input { width:100%; min-height:48px } which inflated radios.
 * Keep ~18px control + accessible tap padding from the row itself.
 */
.sale-detail-page .detail-agent-collaboration__form.contact-form .detail-agent-collaboration__interest-option input[type="radio"],
.sale-detail-page .detail-agent-collaboration__interest-option input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 0.15rem 0 0;
  padding: 0;
  flex: 0 0 18px;
  align-self: flex-start;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--primary, #0a9d6a);
  cursor: pointer;
}

.sale-detail-page .detail-agent-collaboration__form.contact-form .detail-agent-collaboration__interest-option input[type="radio"]:focus,
.sale-detail-page .detail-agent-collaboration__interest-option input[type="radio"]:focus {
  box-shadow: none;
  outline: none;
}

.sale-detail-page .detail-agent-collaboration__form.contact-form .detail-agent-collaboration__note-label {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
  min-width: 0;
}

.sale-detail-page .detail-agent-collaboration--sale .detail-agent-collaboration__note-caption {
  white-space: normal;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--heading, #152028);
}

.sale-detail-page .detail-agent-collaboration__form.contact-form textarea[data-collab-message],
.sale-detail-page .detail-agent-collaboration--sale textarea[data-collab-message] {
  width: 100%;
  min-height: 4.25rem;
  margin: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 10px;
  resize: vertical;
  scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 20px);
}

/* Override global .option pill (!important) — full-width consent row, not a chip. */
.sale-detail-page .detail-agent-collaboration__consent.option,
.sale-detail-page .detail-agent-collaboration__consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start !important;
  justify-content: flex-start;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.7rem;
  padding: 10px 12px;
  border: 1px solid var(--border, #d4dbe8);
  border-radius: 10px;
  background: #fff;
  color: var(--text, #1a2332) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  line-height: 1.4;
  text-align: left;
  scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 20px);
}

.sale-detail-page .detail-agent-collaboration__form.contact-form .detail-agent-collaboration__consent input[type="checkbox"],
.sale-detail-page .detail-agent-collaboration__consent input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 0.12rem 0 0;
  padding: 0;
  flex: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--primary, #0a9d6a);
  cursor: pointer;
}

.sale-detail-page .detail-agent-collaboration__consent .consent-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.sale-detail-page .detail-agent-collaboration--sale [data-collab-submit],
.sale-detail-page .detail-agent-collaboration--sale [data-collab-cancel] {
  scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 16px);
  scroll-margin-bottom: calc(var(--detail-mobile-cta-clearance, 72px) + 12px);
}

@media (max-width: 1079px) {
  /*
   * Keep agent-collab reachable when the price-only aside would otherwise hide.
   * Sticky buyer Enquire bar remains untouched; collab stays in content flow.
   */
  .sale-detail-page.listing-detail-page .detail-portal-aside--price-only:has([data-server-collaboration-ready]) {
    display: block;
  }

  .sale-detail-page.listing-detail-page .detail-agent-collaboration--sale {
    scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 16px);
    scroll-margin-bottom: calc(var(--detail-mobile-cta-clearance, calc(72px + env(safe-area-inset-bottom, 0px))) + 16px);
  }

  .sale-detail-page.listing-detail-page #rv-sale-collab {
    scroll-margin-top: calc(var(--header-height, 64px) + var(--detail-scroll-bar-offset, 0px) + 16px);
  }

  .sale-detail-page.listing-detail-page .detail-agent-collaboration--sale.is-expanded {
    margin-bottom: 0.45rem;
  }

  .sale-detail-page .detail-agent-collaboration__interest-option {
    padding: 11px 12px;
    min-height: 44px;
  }
}

@media (max-width: 389.98px) {
  .sale-detail-page .detail-agent-collaboration--sale {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .sale-detail-page .detail-agent-collaboration__interest-option,
  .sale-detail-page .detail-agent-collaboration__consent {
    padding: 10px 10px;
    gap: 8px;
  }

  .sale-detail-page .detail-agent-collaboration__interest-option {
    font-size: 0.84rem;
  }
}

/* Sales facts V1 — secondary asking-price-per-sqft context */
.sale-detail-page .sale-ppsqft-note dd,
.sale-detail-page .sale-ppsqft-aside-note dd {
  margin: 0.15rem 0 0;
  color: var(--muted, #5b6573);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.sale-detail-page .detail-aside-facts .sale-ppsqft-aside-note {
  grid-column: 1 / -1;
}

/* B2A — Fit My Buying Needs (reuses .rv-needs-* Premium V2 patterns) */
.sale-page.bayut-serp-page .rv-needs-bar[data-buying-needs-bar] {
  margin: 0 0 0.85rem;
}

/* Detail Fit panel: same left column width as About / Location / Buyer Safety. */
.sale-detail-page .sale-buying-needs-slot[data-buying-needs-detail],
.sale-detail-page [data-buying-needs-detail] {
  scroll-margin-top: 5.5rem;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  align-self: stretch;
  box-sizing: border-box;
}

.sale-detail-page .sale-detail-stack__main > .sale-buying-needs-slot[data-buying-needs-detail] {
  width: 100%;
  max-width: 100%;
}

.sale-detail-page .sale-buying-needs-slot > [data-buying-needs-detail-inner],
.sale-detail-page [data-buying-needs-detail-inner] {
  width: 100%;
  min-width: 0;
}

.sale-detail-page .sale-buying-needs-slot .rv-needs-detail.content-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.sale-detail-page .rv-buying-needs-note {
  margin: 0.2rem 0 0;
  grid-column: 1 / -1;
}

.sale-detail-page .rv-buying-needs-row__main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Buying needs dialog presentation lives in sale-discovery-premium.css
   (Residential .rv-needs-* architecture + Sale navy accents).
   Legacy native-select / sticky-footer / area-grid rules removed. */

/* B2B + Rec Visual Parity R1 — Similar Sale + Recently Viewed Sales
 * Detail: full-width Premium V2 recommendation sections (shared style.css grid/card).
 * Discovery SERP recent remains a compact in-flow band (not a detail section). */
.sale-page .sale-recent-serp[data-sale-recent] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 1.25rem 0 0;
  padding: 0;
  box-sizing: border-box;
}

.sale-detail-page .detail-similar-checked-section[data-sale-similar],
.sale-detail-page .detail-recommended-section[data-sale-recent] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Match Rental Premium V2 recommendation rhythm on sale detail. */
.sale-detail-page.listing-detail-page .detail-similar-checked-section[data-sale-similar] {
  padding-top: 36px;
  padding-bottom: 8px;
}

.sale-detail-page.listing-detail-page .detail-recommended-section[data-sale-recent] {
  padding-top: 36px;
}

/* Discovery recent rail only. Sale detail titles stay in stored case. */
.sale-page .sale-recent-serp .detail-similar-card__title {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.sale-detail-page .detail-similar-card__rent--sale small,
.sale-page .detail-similar-card__rent--sale small {
  margin-left: 0.35rem;
  font-weight: 550;
  opacity: 0.75;
}

.sale-detail-page .detail-similar-card__rent--sale small::before,
.sale-page .detail-similar-card__rent--sale small::before {
  content: none;
}

.sale-page .sale-recent-serp .detail-recommended-rail,
.sale-detail-page [data-sale-recent] .detail-recommended-rail,
.sale-detail-page [data-sale-similar] .detail-similar-checked-grid {
  min-width: 0;
  max-width: 100%;
}

/*
 * Few-card widths: keep Premium V2 3-col track sizing so 1–2 cards stay card-sized
 * (do not stretch to full section width). Shared grid already uses repeat(3, 1fr);
 * reinforce max track width so sparse rails do not look inflated on wide screens.
 */
@media (min-width: 1101px) {
  .sale-detail-page [data-sale-similar] .detail-similar-checked-grid,
  .sale-detail-page [data-sale-recent] .detail-recommended-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: start;
  }

  .sale-detail-page [data-sale-similar] .detail-similar-checked-grid > .detail-similar-card,
  .sale-detail-page [data-sale-recent] .detail-recommended-rail > .detail-similar-card {
    max-width: 100%;
  }

  /* Sparse rails: keep a lone card at natural card width (do not stretch the media). */
  .sale-detail-page [data-sale-similar] .detail-similar-checked-grid:has(> .detail-similar-card:only-child),
  .sale-detail-page [data-sale-recent] .detail-recommended-rail:has(> .detail-similar-card:only-child) {
    grid-template-columns: minmax(0, 300px);
  }
}

.sale-page .sale-recent-empty,
.sale-detail-page .sale-recent-empty {
  margin: 0.35rem 0 0;
  color: #5b6b78;
}

/*
 * Discovery Recent polish R1 — Premium V2 heading/Clear styles are scoped to
 * .listing-detail-page; Sale SERP is not a detail page, so mirror them here.
 * Avoid .section.compact-section padding (48px+) that left a large empty band.
 */
.sale-page.bayut-serp-page .sale-recent-serp[data-sale-recent] {
  margin: 1.5rem 0 0.75rem;
  padding: 0;
}

.sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-heading {
  max-width: none;
  width: 100%;
  margin: 0 0 16px;
}

.sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-heading h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  color: inherit;
}

.sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-heading__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  width: 100%;
}

.sale-page.bayut-serp-page .sale-recent-serp .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;
}

.sale-page.bayut-serp-page .sale-recent-serp .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;
  color: #5b6b78;
  font: 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;
}

.sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-clear-recent:hover {
  color: #152028;
  background: rgba(16, 24, 40, 0.04);
  text-decoration: none;
}

.sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-clear-recent:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

.sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-rail {
  margin: 0;
  padding: 0;
}

@media (max-width: 640px) {
  .sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 300px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-rail::-webkit-scrollbar {
    display: none;
  }

  .sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-rail > .detail-similar-card {
    width: min(78vw, 300px);
    min-width: min(78vw, 300px);
    max-width: min(78vw, 300px);
    scroll-snap-align: start;
  }

  .sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-heading__row {
    align-items: flex-start;
  }

  .sale-page.bayut-serp-page .sale-recent-serp .detail-recommended-heading__actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Keep sticky Enquire clear of recommendation rails on narrow viewports. */
@media (max-width: 768px) {
  .sale-detail-page.has-detail-mobile-cta .detail-similar-checked-section[data-sale-similar],
  .sale-detail-page.has-detail-mobile-cta .detail-recommended-section[data-sale-recent] {
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
  }
}

/* Sales Map Sidebar Parity R4 — dedicated split-screen workspace (reuses bayut-map-shell).
   Root cause (R3): filters-panel max-height + overflow:auto scrolled primary fields out of
   view when More filters collapsed, and clipped expanded secondary controls. Match Rental:
   panel sizes to content (overflow visible); sidebar scrolls as one column on desktop. */
body.sale-page.is-sale-map-view .site-footer,
body.sale-page.is-sale-map-view .mobile-app-nav,
body.sale-page.is-sale-map-view .bayut-mobile-bar,
body.sale-page.is-sale-map-view [data-sale-serp-wrap] {
  display: none !important;
}

body.sale-page.is-sale-map-view main.bayut-serp.bayut-map-page,
body.sale-page.is-sale-map-view main[data-sale-page].bayut-map-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  max-width: none;
}

body.sale-page.is-sale-map-view [data-sale-map-workspace] {
  display: grid !important;
  flex: 1 1 auto;
  min-height: 0;
}

body.sale-page.is-sale-map-view .bayut-map-leaflet.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;
  background: rgba(232, 238, 244, 0.88);
}

body.sale-page.is-sale-map-view .bayut-map-popup__price span,
body.sale-page.is-sale-map-view .bayut-map-card__price span {
  margin-left: 0.35rem;
  font-weight: 550;
  opacity: 0.75;
}

body.sale-page.is-sale-map-view .bayut-map-card.is-unmappable {
  opacity: 0.96;
  background: #fbfcfd;
}

body.sale-page.is-sale-map-view .bayut-map-card__topline .bayut-card__badges .rv-check-badge--compact {
  transform: scale(0.92);
  transform-origin: left center;
}

body.sale-page.is-sale-map-view .bayut-map-card__secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

body.sale-page.is-sale-map-view .bayut-map-card__secondary-actions a {
  color: #087a52;
  text-decoration: none;
}

body.sale-page.is-sale-map-view .bayut-map-card__secondary-actions a:hover,
body.sale-page.is-sale-map-view .bayut-map-card__secondary-actions a:focus-visible {
  text-decoration: underline;
}

/* Relocated Sales form sits inside Rental .bayut-map-filters (2-col). Collapse wrapper to
   contents so primary fields + More filters participate in the same grid as /map/. */
body.sale-page.is-sale-map-view .bayut-map-filters-panel {
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  border-bottom: none;
}

body.sale-page.is-sale-map-view .bayut-map-filters-panel .bayut-map-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px 8px;
  border-bottom: none;
  box-sizing: border-box;
}

body.sale-page.is-sale-map-view .bayut-map-filters [data-sale-filter-home],
body.sale-page.is-sale-map-view .bayut-map-filters [data-sale-filters] {
  display: contents;
}

body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-field,
body.sale-page.is-sale-map-view .bayut-map-filters .bayut-map-more-filters {
  margin: 0;
  min-width: 0;
}

body.sale-page.is-sale-map-view .bayut-map-filters [data-sale-filter-primary="price"],
body.sale-page.is-sale-map-view .bayut-map-filters .bayut-map-more-filters {
  grid-column: 1 / -1;
}

body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-label {
  display: block;
  margin: 0 0 4px;
  color: #425466;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body.sale-page.is-sale-map-view .bayut-map-filters .filter-select select,
body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-field--search .bayut-filter-input-wrap,
body.sale-page.is-sale-map-view .bayut-map-filters .listing-custom-select .custom-select-trigger {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  box-sizing: border-box;
}

body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-field--search .bayut-filter-input-wrap {
  min-height: 34px;
  padding: 0.25rem 0.65rem;
}

body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-row--pair {
  display: flex;
  gap: 8px;
}

body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-row--pair > .filter-select--inline {
  flex: 1 1 0;
  min-width: 0;
}

body.sale-page.is-sale-map-view .bayut-map-filters .bayut-filter-panel__head {
  display: none;
}

body.sale-page.is-sale-map-view .bayut-map-filters-panel .bayut-map-sidebar__toolbar--actions {
  padding: 0 12px 10px;
}

/* Grid/List SERP: keep More filters expanded so buyer Search/beds/size stay visible. */
.sale-page.bayut-serp-page:not(.is-sale-map-view) [data-sale-more-filters] > .bayut-map-more-filters__summary {
  display: none;
}

.sale-page.bayut-serp-page:not(.is-sale-map-view) [data-sale-more-filters] {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
}

.sale-page.bayut-serp-page:not(.is-sale-map-view) [data-sale-more-filters] > .bayut-map-more-filters__body {
  display: block;
  margin: 0;
}

.sale-page.bayut-serp-page:not(.is-sale-map-view) [data-sale-more-filters] .bayut-filter-field {
  margin-bottom: 0.85rem;
}

body.sale-page.is-sale-map-view .bayut-map-leaflet .leaflet-control-zoom {
  margin-top: 12px;
  margin-left: 12px;
}

body.sale-page.is-sale-map-view .bayut-serp__map-error[data-sale-map-error] {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 48px;
  z-index: 520;
  margin: 0;
  padding: 8px 10px;
  background: rgba(255, 248, 240, 0.96);
  border: 1px solid #f0d2a8;
  border-radius: 8px;
}

/* Desktop: one sidebar scroller (head → filters → results), matching Rental Premium V2. */
@media (min-width: 961px) {
  body.sale-page.is-sale-map-view .bayut-map-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.sale-page.is-sale-map-view .bayut-map-results {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: auto;
  }

  body.sale-page.is-sale-map-view .bayut-map-results__viewport {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
  }

  body.sale-page.is-sale-map-view .bayut-map-card-list {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 960px) {
  body.sale-page.is-sale-map-view {
    overflow: hidden;
    overflow-x: hidden;
    height: 100svh;
    height: 100dvh;
  }

  body.sale-page.is-sale-map-view main.bayut-serp.bayut-map-page,
  body.sale-page.is-sale-map-view main[data-sale-page].bayut-map-page {
    height: calc(100svh - var(--header-height, 64px));
    height: calc(100dvh - var(--header-height, 64px));
    overflow: hidden;
  }

  body.sale-page.is-sale-map-view [data-sale-map-workspace] {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.sale-page.is-sale-map-view [data-sale-map-workspace].is-map-view .bayut-map-panel {
    min-height: 0;
  }

  body.sale-page.is-sale-map-view [data-sale-map-workspace].is-list-view .bayut-map-sidebar {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.sale-page.is-sale-map-view .bayut-map-filters-panel {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }

  body.sale-page.is-sale-map-view .bayut-map-results {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  body.sale-page.is-sale-map-view .bayut-map-results__viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.sale-page.is-sale-map-view .bayut-map-leaflet .leaflet-control-zoom {
    margin-top: 58px;
    margin-left: 12px;
  }
}

@media (max-width: 375px) {
  body.sale-page.is-sale-map-view .bayut-map-filters-panel .bayut-map-filters {
    grid-template-columns: 1fr;
  }

  body.sale-page.is-sale-map-view .bayut-map-filters [data-sale-filter-primary="area"],
  body.sale-page.is-sale-map-view .bayut-map-filters [data-sale-filter-primary="type"] {
    grid-column: 1 / -1;
  }
}

/* Sales Smart Compare Visual Parity R2 — sale-page presentation only.
   Reuses .rv-public-compare anatomy; mirrors Rental Premium V2 without
   altering body.listings-page / shared Rental compare rules. */
.sale-page.bayut-serp-page .bayut-saved-compare[data-sale-compare-open] {
  align-self: center;
}

/* Dedicated full-width Compare workspace (Compare active only). */
body.sale-page.is-sale-compare-active .bayut-serp__layout,
.sale-page.bayut-serp-page.is-sale-compare-active .bayut-serp__layout {
  grid-template-columns: minmax(0, 1fr);
}

body.sale-page.is-sale-compare-active .bayut-serp__main,
.sale-page.bayut-serp-page.is-sale-compare-active .bayut-serp__main {
  min-width: 0;
  max-width: 100%;
}

body.sale-page.is-sale-compare-active .bayut-serp__sidebar,
body.sale-page.is-sale-compare-active .rv-needs-bar,
body.sale-page.is-sale-compare-active .bayut-serp__toolbar,
body.sale-page.is-sale-compare-active .bayut-serp__quick-chips,
body.sale-page.is-sale-compare-active .bayut-serp__active-filters,
.sale-page.bayut-serp-page.is-sale-compare-active .bayut-serp__sidebar,
.sale-page.bayut-serp-page.is-sale-compare-active .rv-needs-bar,
.sale-page.bayut-serp-page.is-sale-compare-active .bayut-serp__toolbar,
.sale-page.bayut-serp-page.is-sale-compare-active .bayut-serp__quick-chips,
.sale-page.bayut-serp-page.is-sale-compare-active .bayut-serp__active-filters {
  display: none !important;
}

/* Single page H1 + concise selected count (no duplicate panel H2). */
body.sale-page.is-sale-compare-active .bayut-serp__subtitle {
  display: block !important;
  margin: 4px 0 0;
  color: #5b6778;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.35;
}

.sale-page.bayut-serp-page .rv-public-compare[data-sale-compare] {
  margin: 0 0 18px;
  min-width: 0;
  max-width: 100%;
}

.sale-page.bayut-serp-page .rv-public-compare__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sale-page.bayut-serp-page .rv-public-compare__status-count {
  margin: 0;
  color: #5b6778;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
}

.sale-page.bayut-serp-page .rv-public-compare__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.sale-page.bayut-serp-page .rv-public-compare__toolbar-actions,
.sale-page.bayut-serp-page .rv-public-compare__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.sale-page.bayut-serp-page .rv-public-compare__toolbar-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.sale-page.bayut-serp-page [data-sale-compare-mode="table"] .rv-public-compare__toolbar {
  justify-content: flex-end;
}

.sale-page.bayut-serp-page [data-sale-compare-mode="table"] .rv-public-compare__toolbar-actions {
  margin-left: 0;
}

.sale-page.bayut-serp-page .rv-public-compare__change.bayut-btn,
.sale-page.bayut-serp-page .rv-public-compare__footer .bayut-btn,
.sale-page.bayut-serp-page .rv-public-compare__toolbar .rv-public-compare__text,
.sale-page.bayut-serp-page .rv-public-compare__footer .rv-public-compare__text,
.sale-page.bayut-serp-page .rv-public-compare__actions .rv-public-compare__text,
.sale-page.bayut-serp-page .rv-public-compare__open.bayut-btn {
  min-height: 44px;
}

.sale-page.bayut-serp-page .rv-public-compare__change.bayut-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.sale-page.bayut-serp-page .rv-public-compare__toolbar .rv-public-compare__text,
.sale-page.bayut-serp-page .rv-public-compare__footer .rv-public-compare__text,
.sale-page.bayut-serp-page .rv-public-compare__actions .rv-public-compare__text {
  padding: 8px 6px;
  text-decoration: none;
  white-space: nowrap;
}

.sale-page.bayut-serp-page .rv-public-compare__toolbar .rv-public-compare__text:hover,
.sale-page.bayut-serp-page .rv-public-compare__actions .rv-public-compare__text:hover,
.sale-page.bayut-serp-page .rv-public-compare__footer .rv-public-compare__text:hover {
  color: #102018;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sale-page.bayut-serp-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;
}

.sale-page.bayut-serp-page .rv-public-compare__pick:focus-visible,
.sale-page.bayut-serp-page .rv-public-compare__open:focus-visible,
.sale-page.bayut-serp-page .rv-public-compare__change:focus-visible,
.sale-page.bayut-serp-page .rv-public-compare__scroll:focus-visible,
.sale-page.bayut-serp-page .rv-public-compare__text:focus-visible {
  outline: 2px solid #0a7a52;
  outline-offset: 2px;
}

.sale-page.bayut-serp-page .rv-public-compare__pick:active {
  background: #e7f5ef;
}

.sale-page.bayut-serp-page .rv-public-compare__item.is-selected .rv-public-compare__pick {
  background: #f3faf7;
  border-color: #0a7a52;
  box-shadow: 0 0 0 2px #0a7a52;
}

.sale-page.bayut-serp-page .rv-public-compare__item.is-selected .rv-public-compare__mark {
  position: relative;
  border-color: #0a7a52;
  background: #0a7a52;
  box-shadow: none;
}

.sale-page.bayut-serp-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);
}

.sale-page.bayut-serp-page .rv-public-compare__pick-title,
.sale-page.bayut-serp-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;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.sale-page.bayut-serp-page .rv-public-compare__identity {
  margin: 8px 0 0;
  color: #3d4b57;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.sale-page.bayut-serp-page .rv-public-compare__price,
.sale-page.bayut-serp-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;
}

.sale-page.bayut-serp-page .rv-public-compare__area {
  margin: 2px 0 0;
  color: #5b6778;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sale-page.bayut-serp-page .rv-public-compare__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
}

.sale-page.bayut-serp-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;
}

.sale-page.bayut-serp-page .rv-public-compare__badge .rv-check-badge,
.sale-page.bayut-serp-page .rv-public-compare__badge .rv-visit-badge {
  transform: none;
}

.sale-page.bayut-serp-page .rv-public-compare__price.is-missing,
.sale-page.bayut-serp-page .rv-public-compare__cell.is-missing {
  color: #8a97a3;
  font-weight: 600;
}

.sale-page.bayut-serp-page .rv-public-compare__col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0 8px 12px;
  min-width: 0;
}

.sale-page.bayut-serp-page .rv-public-compare__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

.sale-page.bayut-serp-page .rv-public-compare__cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.sale-page.bayut-serp-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;
}

.sale-page.bayut-serp-page .rv-public-compare__actions .bayut-btn--outline {
  background: #fff;
  color: var(--rv-sale-accent, #1e3a5f);
  border: 1px solid var(--rv-sale-accent-border, rgba(30, 58, 95, 0.18));
}

.sale-page.bayut-serp-page .rv-public-compare__actions .rv-public-compare__text {
  text-align: center;
  align-self: center;
  min-height: 36px;
  padding: 4px 6px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #6a7884;
}

.sale-page.bayut-serp-page .rv-public-compare__scroll-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.sale-page.bayut-serp-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;
}

.sale-page.bayut-serp-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%);
}

.sale-page.bayut-serp-page .rv-public-compare__grid {
  --rv-compare-label: 96px;
  --rv-compare-col: minmax(152px, 1fr);
  min-width: calc(var(--rv-compare-label) + (var(--rv-compare-n, 2) * 152px));
}

.sale-page.bayut-serp-page .rv-public-compare__heads,
.sale-page.bayut-serp-page .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;
}

.sale-page.bayut-serp-page .rv-public-compare__label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 12px 10px 12px 0;
  background: #fff;
  box-shadow: 8px 0 10px -8px rgba(16, 24, 40, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6778;
}

.sale-page.bayut-serp-page .rv-public-compare__label--spacer {
  background: #fff;
  box-shadow: none;
}

.sale-page.bayut-serp-page .rv-public-compare__cover {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f5;
}

.sale-page.bayut-serp-page .rv-public-compare__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-page.bayut-serp-page .rv-public-compare__cell {
  padding: 12px 10px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sale-page.bayut-serp-page .rv-public-compare__row {
  border-top: 1px solid #e4e8ee;
}

.sale-page.bayut-serp-page .rv-public-compare__row:nth-child(even) {
  background: #f8fafb;
}

.sale-page.bayut-serp-page .rv-public-compare__row:nth-child(even) .rv-public-compare__label {
  background: #f8fafb;
}

.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="asking"],
.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="pricePerSqft"] {
  background: #f7fbf9;
}

.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="asking"] .rv-public-compare__label,
.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="pricePerSqft"] .rv-public-compare__label {
  background: #f7fbf9;
}

.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="asking"] .rv-public-compare__cell,
.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="pricePerSqft"] .rv-public-compare__cell {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="asking"] .rv-public-compare__cell.is-missing,
.sale-page.bayut-serp-page .rv-public-compare__row[data-sale-compare-field="pricePerSqft"] .rv-public-compare__cell.is-missing {
  font-weight: 600;
}

@media (min-width: 720px) {
  .sale-page.bayut-serp-page .rv-public-compare__grid {
    --rv-compare-label: 148px;
    --rv-compare-col: minmax(200px, 1fr);
    min-width: 0;
  }

  .sale-page.bayut-serp-page .rv-public-compare__scroll {
    overflow-x: visible;
    overflow-y: visible;
  }

  .sale-page.bayut-serp-page .rv-public-compare__scroll-wrap::after {
    display: none;
  }
}

@media (min-width: 1100px) {
  .sale-page.bayut-serp-page .rv-public-compare__grid {
    --rv-compare-col: minmax(240px, 1fr);
  }
}

@media (max-width: 760px) {
  body.sale-page.is-sale-compare-active {
    scroll-padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 24px);
  }

  body.sale-page.is-sale-compare-active .bayut-mobile-bar {
    display: none !important;
  }

  body.sale-page.is-sale-compare-active .site-footer {
    padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 28px);
  }

  body.sale-page.is-sale-compare-active .rv-public-compare[data-sale-compare] {
    padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 96px);
  }

  body.sale-page.is-sale-compare-active .rv-public-compare__footer,
  body.sale-page.is-sale-compare-active [data-sale-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, 72px) + 8px);
    z-index: 2950;
    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.sale-page.is-sale-compare-active [data-sale-compare-mode="choose"] .rv-public-compare__picks {
    padding-bottom: calc(var(--mobile-nav-clearance, 72px) + 108px);
  }

  body.sale-page.is-sale-compare-active .rv-public-compare__toolbar,
  body.sale-page.is-sale-compare-active .rv-public-compare__actions,
  body.sale-page.is-sale-compare-active .rv-public-compare__heads,
  body.sale-page.is-sale-compare-active .bayut-saved-compare[data-sale-compare-open] {
    scroll-margin-bottom: calc(var(--mobile-nav-clearance, 72px) + 28px);
  }

  .sale-page.bayut-serp-page .rv-public-compare__grid {
    --rv-compare-label: 84px;
    --rv-compare-col: minmax(140px, 1fr);
  }

  .sale-page.bayut-serp-page .rv-public-compare__cover {
    aspect-ratio: auto;
    height: 56px;
  }

  .sale-page.bayut-serp-page .rv-public-compare__identity,
  .sale-page.bayut-serp-page .rv-public-compare__title,
  .sale-page.bayut-serp-page .rv-public-compare__actions {
    margin-top: 4px;
  }

  .sale-page.bayut-serp-page .rv-public-compare__toolbar {
    margin-bottom: 8px;
  }

  .sale-page.bayut-serp-page .rv-public-compare__toolbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .sale-page.bayut-serp-page .rv-public-compare__cta-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sale-page.bayut-serp-page .rv-public-compare__open.bayut-btn {
    padding: 8px 6px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sale-page.bayut-serp-page .rv-public-compare__pick,
  .sale-page.bayut-serp-page .rv-public-compare__open,
  .sale-page.bayut-serp-page .rv-public-compare__change {
    transition: none !important;
  }
}

/* S2-D — Sale Listing Checked badge (navy Buy channel; rental geometry preserved). */
.sale-page .rv-check-badge--sale,
.sale-detail-page .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);
}

.sale-page .rv-check-badge--sale .rv-check-badge__icon,
.sale-detail-page .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);
}

.sale-page .rv-check-badge--sale .rv-check-badge__sub,
.sale-detail-page .rv-check-badge--sale .rv-check-badge__sub {
  color: #35557a;
}

.sale-detail-page .detail-similar-card__badge--sale {
  background: #062b5b;
  color: #fff;
}

/* Staging demo similar cards — explicit sample label (never Listing Checked navy). */
.sale-detail-page .detail-similar-card__badge--sample {
  background: #4a5568;
  color: #fff;
}

/* ========== D2 — For Sale Discovery Premium V1 ========== */

/* Navy primary actions — override Rental emerald .bayut-btn--call / --primary on Sale pages. */
.sale-page .bayut-btn--sale-primary,
.sale-detail-page .bayut-btn--sale-primary,
.sale-page .bayut-btn--primary,
.sale-detail-page .bayut-btn--primary,
.sale-page .bayut-empty .bayut-btn--primary,
.rv-buying-needs-dialog .bayut-btn--primary {
  color: #fff;
  background: #062B5B;
  border-color: #062B5B;
  box-shadow: 0 10px 24px rgba(6, 43, 91, 0.22);
}

.sale-page .bayut-btn--sale-primary:hover,
.sale-detail-page .bayut-btn--sale-primary:hover,
.sale-page .bayut-btn--primary:hover,
.sale-detail-page .bayut-btn--primary:hover,
.rv-buying-needs-dialog .bayut-btn--primary:hover {
  background: #0a3a72;
  border-color: #0a3a72;
  box-shadow: 0 14px 28px rgba(6, 43, 91, 0.28);
}

.sale-page .bayut-btn--sale-primary:focus-visible,
.sale-page .bayut-btn--primary:focus-visible,
.sale-page .bayut-view-toggle__btn:focus-visible,
.sale-page .bayut-filter-field select:focus-visible,
.sale-page .bayut-filter-field input:focus-visible,
.sale-page .bayut-sort select:focus-visible,
.sale-page .bayut-toolbar-filters:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

/* Selected / active Sale discovery chrome */
.sale-page .bayut-view-toggle__btn.is-active,
.sale-page .bayut-view-toggle__btn[aria-pressed="true"] {
  background: var(--rv-sale-accent-soft, #EAF3FA);
  border-color: var(--rv-sale-accent, #062B5B);
  color: var(--rv-sale-accent, #062B5B);
  box-shadow: inset 0 0 0 1px rgba(6, 43, 91, 0.08);
}

.sale-page .bayut-filter-check:has(input:checked),
.sale-page .bayut-filter-check input:checked + span {
  color: var(--rv-sale-accent, #062B5B);
}

.sale-page .bayut-filter-check input[type="checkbox"] {
  accent-color: #062B5B;
}

.sale-page .bayut-filter-field select:focus,
.sale-page .bayut-filter-field input:focus,
.sale-page .bayut-sort select:focus {
  border-color: #062B5B;
  box-shadow: 0 0 0 3px rgba(6, 43, 91, 0.12);
}

/* Card vertical rhythm — match Rental grid body geometry; Sale price uses navy identity. */
.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__body {
  gap: 0;
  padding: 15px 16px 13px;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__price-row {
  margin: 0;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__price {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #062B5B;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__price strong {
  font-weight: 700;
}

/* Sort menu selected/hover accents stay Sale navy (not Rental emerald). */
.sale-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort .custom-select-menu button:hover {
  background: #EAF3FA;
  color: #062B5B;
}

.sale-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort .custom-select-menu button.is-selected {
  background: #EAF3FA;
  color: #062B5B;
  font-weight: 700;
}

.sale-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort .custom-select-trigger:focus-visible,
.sale-page.bayut-serp-page .bayut-serp__toolbar .bayut-sort .custom-select-menu button:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__negotiable {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a5568;
  vertical-align: middle;
}

/*
 * D2-R4C: property-fact wrapping — Rental rhythm with sale-specific land/size facts.
 * Avoid fixed blank rows; allow multi-line wrap with a small row gap only.
 */
.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  row-gap: 6px;
  column-gap: 0;
  color: #2a2a2a;
  font-size: 0.78rem;
  font-weight: 600;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__specs li {
  padding-inline: 10px;
  border-right: 1px solid #d8d8d8;
  max-width: 100%;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__specs li:first-child {
  padding-left: 0;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__specs li:last-child {
  border-right: none;
  padding-right: 0;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__specs .bayut-card__spec-size span,
.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__specs .bayut-card__spec-land span {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Dense Trust: location sits directly under asking price. */
.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__location {
  margin: 4px 0 6px;
  color: #5f5f5f;
  font-size: 0.8rem;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__trust-row {
  margin: 0 0 6px;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__title {
  margin: 0 0 2px;
  font-size: 0.9rem;
  line-height: 1.28;
}

/*
 * Sale card agent panel:
 * - Grid: brand + dual CTAs in a compact footer row (card footers).
 * - List: Residential three-column rail — column stack, full-width stacked CTAs.
 * - Actions-only: full-width navy details CTA (no empty left rail).
 */
.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent {
  /* List mode must stretch full card height (Dense Trust). margin-top:auto is grid-only. */
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid #ececec;
  background: #fff;
  min-height: 0;
  min-width: 0;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent {
  margin-top: auto;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only {
  justify-content: stretch;
  align-items: stretch;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions,
.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
  width: 100%;
  max-width: none;
  margin-left: 0;
  flex: 1 1 auto;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
  max-width: none;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions .bayut-btn {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 4px;
  white-space: normal;
  text-align: center;
  transform: none;
  box-shadow: none;
  box-sizing: border-box;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions--single .bayut-btn {
  min-height: 40px;
  padding: 10px 14px;
  white-space: normal;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions .bayut-btn:hover {
  transform: none;
}

/* Always stack Enquire + Details — never side-by-side crush in the action rail. */
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent-actions:not(.bayut-card__agent-actions--single) {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent {
    flex-direction: column;
    align-items: stretch;
  }

  .sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions,
  .sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions--single,
  .sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions,
  .sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
    width: 100%;
    max-width: none;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions .bayut-btn {
    white-space: normal;
    width: 100%;
  }
}

/* List view: Residential column rail — brand above, Enquire + Details stacked full-width. */
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent {
  margin-top: 0;
  align-self: stretch;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 12px 10px;
  background: var(--surface-warm, #f5f7fc);
  border-top: 0;
  border-left: 1px solid #ececec;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-brand {
  gap: 6px;
  max-width: 100%;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-brand strong,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .lister-brand-name-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
}

.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions--single,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions--single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  grid-auto-columns: unset;
  gap: 8px;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
}

/* Override Residential ≤560px list row + column-flow CTAs without touching style.css. */
@media (max-width: 560px) {
  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start;
    gap: 10px;
  }

  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions,
  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions--single {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  .sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn {
    width: 100%;
    white-space: normal;
  }
}

/*
 * D2-R3: Sale outline CTAs — navy (never inherit Rental emerald --primary).
 * Shared style.css grid/list outline rules use var(--primary) / #088d62.
 */
.sale-page.bayut-serp-page .bayut-serp__results .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline {
  color: #062B5B;
  background: #fff;
  border-color: #062B5B;
  box-shadow: none;
}

.sale-page.bayut-serp-page .bayut-serp__results .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:hover,
.sale-page.bayut-serp-page .bayut-serp__results .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:focus-visible,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:hover,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:focus-visible,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:hover,
.sale-page.bayut-serp-page .bayut-serp__results[data-view-mode="list"] .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:focus-visible {
  color: #062B5B;
  border-color: #062B5B;
  background: #EAF3FA;
  box-shadow: none;
}

.sale-page.bayut-serp-page .bayut-card--sale .bayut-card__agent-actions .bayut-btn--sale-primary {
  box-shadow: none;
}

/* Compare Sale primary CTA */
.sale-page .rv-public-compare__cta-row .bayut-btn--sale-primary {
  color: #fff;
  background: #062B5B;
  border-color: #062B5B;
}

/* Buying-needs bar: keep compact on mobile */
@media (max-width: 767px) {
  .sale-page.bayut-serp-page .rv-needs-bar[data-buying-needs-bar] {
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
  }

  .sale-page.bayut-serp-page .rv-needs-bar__invite,
  .sale-page.bayut-serp-page .rv-needs-bar__meta {
    font-size: 0.8rem;
    line-height: 1.35;
  }
}

/* ========== D2-R4 Addendum A — Sale interactive colour contract ==========
 * Sale discovery must never inherit Rental emerald/mint hover, selected, or focus.
 * Scope: .sale-page (+ Sale mobile drawer / buying-needs dialog). Rental untouched.
 */
.sale-page.bayut-serp-page,
.sale-page .bayut-mobile-filters,
.sale-page.is-sale-map-view,
.rv-buying-needs-dialog {
  --primary: #062B5B;
  --primary-strong: #062B5B;
  --accent-soft: #EAF3FA;
  --rv-sale-accent: #062B5B;
  --rv-sale-accent-soft: #EAF3FA;
}

/* Custom-select menus (Area / Type / Min / Max / Floor area / Sort) */
.sale-page .custom-select-menu button:hover,
.sale-page .listing-custom-select .custom-select-menu button:hover,
.sale-page .bayut-sort .custom-select-menu button:hover,
.sale-page .bayut-mobile-filters .custom-select-menu button:hover,
.sale-page.is-sale-map-view .bayut-map-filters .custom-select-menu button:hover {
  background: #EAF3FA;
  color: #062B5B;
}

.sale-page .custom-select-menu button.is-selected,
.sale-page .listing-custom-select .custom-select-menu button.is-selected,
.sale-page .bayut-sort .custom-select-menu button.is-selected,
.sale-page .bayut-mobile-filters .custom-select-menu button.is-selected,
.sale-page.is-sale-map-view .bayut-map-filters .custom-select-menu button.is-selected {
  background: #EAF3FA;
  color: #062B5B;
  font-weight: 700;
}

.sale-page .custom-select-menu button:focus-visible,
.sale-page .listing-custom-select .custom-select-menu button:focus-visible,
.sale-page .bayut-sort .custom-select-menu button:focus-visible,
.sale-page .custom-select-trigger:focus-visible,
.sale-page .listing-custom-select .custom-select-trigger:focus-visible,
.sale-page .bayut-sort .custom-select-trigger:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

/* Open / filtered trigger — pale blue surface, navy border (not mint) */
.sale-page .custom-select.is-filtered .custom-select-trigger,
.sale-page .listing-custom-select.is-filtered .custom-select-trigger,
.sale-page .listing-custom-select.is-active-value .custom-select-trigger,
.sale-page .bayut-sort .listing-custom-select.is-filtered .custom-select-trigger,
.sale-page .bayut-sort .listing-custom-select.is-active-value .custom-select-trigger {
  border-color: rgba(6, 43, 91, 0.45);
  background: rgba(234, 243, 250, 0.72);
  color: #062B5B;
}

.sale-page .listing-custom-select.is-filtered .custom-select-trigger::before,
.sale-page .listing-custom-select.is-active-value .custom-select-trigger::before,
.sale-page .bayut-sort .listing-custom-select.is-filtered .custom-select-trigger::before,
.sale-page .bayut-sort .listing-custom-select.is-active-value .custom-select-trigger::before {
  background: #062B5B;
  box-shadow: 0 0 0 4px rgba(6, 43, 91, 0.12);
}

.sale-page .filter-select select.is-filtered:not(.native-filter-select),
.sale-page .bayut-sort select.is-filtered:not(.native-filter-select) {
  background-image:
    radial-gradient(circle at 13px 50%, #062B5B 3.5px, rgba(6, 43, 91, 0.12) 4px, rgba(6, 43, 91, 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='%23062B5B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sale-page .filter-select select:focus,
.sale-page .listing-custom-select .custom-select-trigger:focus,
.sale-page .bayut-filter-field select:focus,
.sale-page .bayut-filter-field input:focus,
.sale-page .bayut-sort select:focus {
  border-color: #062B5B;
  box-shadow: 0 0 0 4px rgba(6, 43, 91, 0.12);
}

/* Chevron / icon accents */
.sale-page .custom-select-trigger::after,
.sale-page .listing-custom-select .custom-select-trigger::after {
  border-color: #062B5B;
}

.sale-page .bayut-toolbar-filters .icon {
  color: #062B5B;
}

/* Toolbar / saved / view / mobile filter actions */
.sale-page .bayut-toolbar-filters:hover,
.sale-page .bayut-saved-chip[data-sale-saved-chip]:hover,
.sale-page .bayut-view-toggle__btn:hover,
.sale-page .bayut-filter-clear:hover,
.sale-page .bayut-mobile-bar__btn:hover,
.sale-page .bayut-mobile-filters__foot .bayut-btn--outline:hover,
.sale-page .bayut-empty .bayut-btn--outline:hover {
  background: #EAF3FA;
  border-color: rgba(6, 43, 91, 0.35);
  color: #062B5B;
}

.sale-page .bayut-btn--outline:focus-visible,
.sale-page .bayut-saved-chip[data-sale-saved-chip]:focus-visible,
.sale-page .bayut-filter-clear:focus-visible,
.sale-page .bayut-mobile-filters__close:focus-visible,
.sale-page .bayut-mobile-bar__btn:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

.sale-page .bayut-mobile-filters__foot .bayut-btn--primary,
.sale-page .bayut-empty .bayut-btn--primary,
.sale-page .bayut-mobile-bar__btn {
  /* Keep Apply / primary mobile actions navy, not emerald */
  --primary: #062B5B;
}

.sale-page .bayut-filter-check input[type="checkbox"],
.sale-page .bayut-filter-check input[type="radio"],
.rv-buying-needs-dialog input[type="checkbox"],
.rv-buying-needs-dialog input[type="radio"] {
  accent-color: #062B5B;
}

.sale-page .bayut-popular__links a:hover,
.sale-page .bayut-popular__links a:focus-visible {
  color: #062B5B;
}

.sale-page .bayut-card--sale .bayut-card__fav:hover,
.sale-page .bayut-card--sale .bayut-card__fav:focus-visible {
  color: #062B5B;
}

/* Kill residual hardcoded Rental mint on Sale discovery interactive rows */
.sale-page .custom-select-menu button.is-selected,
.sale-page .listing-custom-select .custom-select-menu button.is-selected {
  background: #EAF3FA !important;
  color: #062B5B !important;
}

.sale-page .custom-select-menu button:hover,
.sale-page .listing-custom-select .custom-select-menu button:hover {
  background: #EAF3FA !important;
}

/* ==========================================================================
   D3-B / D3-B1 — Sale Detail Premium (loan calculator, navy interactions)
   Scoped to .sale-detail-page — do not alter Rental or shared header/footer.
   Specificity must beat body.pg-public.sale-page .button-primary emerald rules
   from propglen-sale-demo.css / propglen-public-brand.css.
   ========================================================================== */

body.pg-public.sale-detail-page .detail-breadcrumb a,
body.pg-public.sale-detail-page .portal-breadcrumb a {
  color: #062B5B;
}

body.pg-public.sale-detail-page .detail-breadcrumb a:hover,
body.pg-public.sale-detail-page .detail-breadcrumb a:focus-visible,
body.pg-public.sale-detail-page .portal-breadcrumb a:hover,
body.pg-public.sale-detail-page .portal-breadcrumb a:focus-visible {
  color: #08356f;
  outline-color: #062B5B;
}

body.pg-public.sale-detail-page .detail-section-nav a.is-active,
body.pg-public.sale-detail-page .detail-section-nav a[aria-current="true"] {
  color: #062B5B;
  background: #EAF3FA;
  border-color: rgba(6, 43, 91, 0.18);
}

body.pg-public.sale-detail-page .detail-section-nav a:hover,
body.pg-public.sale-detail-page .detail-section-nav a:focus-visible {
  color: #062B5B;
  background: #EAF3FA;
}

body.pg-public.sale-detail-page .detail-scroll-bar .button-primary,
body.pg-public.sale-detail-page .detail-mobile-cta--sale .button-primary,
body.pg-public.sale-detail-page .detail-mobile-cta--sale .detail-mobile-cta-enquire,
body.pg-public.sale-detail-page .detail-portal-aside .button-primary {
  --primary: #062B5B;
  background: #062B5B;
  border-color: #062B5B;
  color: #fff;
}

body.pg-public.sale-detail-page .detail-scroll-bar .button-primary:hover,
body.pg-public.sale-detail-page .detail-mobile-cta--sale .button-primary:hover,
body.pg-public.sale-detail-page .detail-mobile-cta--sale .detail-mobile-cta-enquire:hover,
body.pg-public.sale-detail-page .detail-portal-aside .button-primary:hover {
  background: #08356f;
  border-color: #08356f;
  color: #fff;
}

body.pg-public.sale-detail-page .detail-scroll-bar .button-primary:focus-visible,
body.pg-public.sale-detail-page .detail-mobile-cta--sale .button-primary:focus-visible,
body.pg-public.sale-detail-page .detail-mobile-cta--sale .detail-mobile-cta-enquire:focus-visible,
body.pg-public.sale-detail-page .detail-portal-aside .button-primary:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #EAF3FA;
}

body.pg-public.sale-detail-page .detail-mobile-cta--sale .button-primary .icon,
body.pg-public.sale-detail-page .detail-scroll-bar .button-primary .icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: #fff;
}

.sale-detail-page .sale-aside-loan-link {
  margin: 0.65rem 0 0;
}

.sale-detail-page .sale-aside-loan-link .button {
  --primary: #062B5B;
  color: #062B5B;
  border-color: rgba(6, 43, 91, 0.28);
}

.sale-detail-page .sale-aside-loan-link .button:hover,
.sale-detail-page .sale-aside-loan-link .button:focus-visible {
  background: #EAF3FA;
  border-color: #062B5B;
  color: #062B5B;
}

.sale-detail-page .sale-loan-calculator {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.sale-detail-page .sale-loan-calculator__badge.eyebrow,
.sale-detail-page .sale-loan-calculator__head .eyebrow {
  color: #062B5B;
  background: #EAF3FA;
  border-color: rgba(6, 43, 91, 0.16);
}

.sale-detail-page .sale-loan-calculator__head h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  letter-spacing: -0.02em;
}

.sale-detail-page .sale-loan-calculator__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
}

.sale-detail-page .sale-loan-calculator__grid label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #5b6b78;
}

.sale-detail-page .sale-loan-calculator__grid input {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(6, 43, 91, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #152028;
  font: inherit;
  font-weight: 650;
}

.sale-detail-page .sale-loan-calculator__grid input:focus,
.sale-detail-page .sale-loan-calculator__grid input:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 1px;
  border-color: #062B5B;
  box-shadow: 0 0 0 3px #EAF3FA;
}

.sale-detail-page .sale-loan-calculator__results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.9rem;
  margin: 0.25rem 0 0;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--rv-sale-accent-soft, #EAF3FA);
  border: 1px solid var(--rv-sale-accent-border, rgba(6, 43, 91, 0.18));
}

.sale-detail-page .sale-loan-calculator__results > div {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.sale-detail-page .sale-loan-calculator__results dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: #5b6b78;
}

.sale-detail-page .sale-loan-calculator__results dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rv-sale-accent, #062B5B);
  overflow-wrap: anywhere;
}

.sale-detail-page .sale-loan-calculator__disclaimer {
  margin: 0;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(6, 43, 91, 0.1);
}

.sale-detail-page .sale-loan-calculator__status:not([hidden]) {
  display: block;
  margin: 0;
  color: #8a4b12;
}

.sale-detail-page .sale-evidence-card--preview .small-note {
  margin: 0.35rem 0 0;
}

@media (max-width: 640px) {
  .sale-detail-page .sale-loan-calculator {
    gap: 0.65rem;
  }

  .sale-detail-page .sale-loan-calculator__head h2 {
    margin: 0.1rem 0 0.25rem;
  }

  .sale-detail-page .sale-loan-calculator__grid,
  .sale-detail-page .sale-loan-calculator__results {
    grid-template-columns: minmax(0, 1fr);
  }

  .sale-detail-page .sale-loan-calculator__grid {
    gap: 0.55rem;
  }

  .sale-detail-page .sale-loan-calculator__grid label {
    gap: 0.2rem;
  }

  .sale-detail-page .sale-loan-calculator__grid input {
    min-height: 44px;
    padding: 0.48rem 0.65rem;
  }

  .sale-detail-page .sale-loan-calculator__status:not([hidden]) {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .sale-detail-page .sale-loan-calculator__results {
    gap: 0.5rem;
    margin: 0.1rem 0 0;
    padding: 0.7rem 0.75rem;
  }

  .sale-detail-page .sale-loan-calculator__disclaimer {
    padding-top: 0.1rem;
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Hide desktop aside loan jump on narrow viewports where the full calculator
   follows Property facts in the main column (and price-only aside is hidden). */
@media (max-width: 1079px) {
  .sale-detail-page.listing-detail-page .sale-aside-loan-link {
    display: none;
  }
}

/* Mobile similar/recent rails — swipe affordance without page overflow */
@media (max-width: 959px) {
  .sale-detail-page [data-sale-similar] .detail-similar-checked-grid,
  .sale-detail-page [data-sale-recent] .detail-recommended-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-inline: 0;
    max-width: 100%;
  }

  .sale-detail-page [data-sale-similar] .detail-similar-checked-grid > .detail-similar-card,
  .sale-detail-page [data-sale-recent] .detail-recommended-rail > .detail-similar-card {
    flex: 0 0 min(78vw, 280px);
    max-width: min(78vw, 280px);
    scroll-snap-align: start;
  }

  .sale-detail-page [data-sale-similar]::after,
  .sale-detail-page [data-sale-recent]::after {
    content: "Swipe for more";
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: #7a8792;
  }
}

.sale-detail-page .pg-sale-demo-enquiry-notice h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
}

/* Sale enquiry panel polish — one sidebar surface, compact price, paired actions.
   Sale detail only. Logo asset is left unchanged (white field is in the image). */
body.pg-public.sale-detail-page .detail-portal-aside.detail-summary-card {
  gap: 12px;
  padding: 16px 16px 14px;
}

body.pg-public.sale-detail-page .detail-portal-aside.detail-summary-card > * + * {
  margin-top: 0;
  padding-top: 0;
}

body.pg-public.sale-detail-page .detail-portal-aside .detail-enquire-cta {
  margin: 0;
  box-shadow: 0 8px 18px rgba(6, 43, 91, 0.16);
}

/* HOTFIX 2026-11-13: Sale aside Enquire — sibling zero-top left .button
   pad-bottom 11 only (content optically high). Restore symmetric T/B. */
body.pg-public.sale-detail-page .detail-portal-aside.detail-summary-card > .detail-enquire-cta {
  padding-top: 11px;
  padding-bottom: 11px;
  border-top: 0;
}

body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-secondary-ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-secondary-ctas > .button,
body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-secondary-ctas > a.button {
  width: 100%;
  min-width: 0;
  margin: 0;
  white-space: normal;
}

body.pg-public.sale-detail-page .detail-portal-aside .detail-enquiry-safety-note--desktop {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.74rem;
  line-height: 1.4;
}

body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-lister-panel {
  margin: 0;
  padding-top: 12px;
}

body.pg-public.sale-detail-page .detail-portal-aside .detail-rent-card-aside {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 0;
    align-items: start;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-rent-amount {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: #062b5b;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-rent-meta {
    grid-column: 1;
    grid-row: 2;
    margin: 3px 0 0;
    color: #5c6b78;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 8px 12px;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(6, 43, 91, 0.1);
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    min-width: 0;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts > div:has(> dt[data-i18n="content.sale.factPriceTerms"]) {
    position: absolute;
    top: 2px;
    right: 0;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts > div:has(> dt[data-i18n="content.sale.factPriceTerms"]) dt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts > div:has(> dt[data-i18n="content.sale.factPriceTerms"]) dd {
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf3fa;
    color: #062b5b;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts > div:not(:has(> dt[data-i18n="content.sale.factPriceTerms"])) dt {
    margin: 0;
    color: #5c6b78;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-facts > div:not(:has(> dt[data-i18n="content.sale.factPriceTerms"])) dd {
    margin: 0;
    color: #152028;
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
  }

  body.pg-public.sale-detail-page .detail-portal-aside .sale-ppsqft-aside-note {
    grid-column: 1 / -1;
    position: static;
  }

@media (max-width: 340px) {
  body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-secondary-ctas {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Sale Detail Premium V1.2 — canvas and readable rhythm.
   Sale detail only. Footer ivory, discovery cards, and the compact sidebar
   price grid stay as they are.
   ========================================================================== */

html body.pg-public.sale-detail-page {
  --pg-sale-detail-canvas: #f3f5f8;
  --pg-sale-detail-recs: #e7edf4;
  --pg-sale-detail-border: #d7dee8;
  --pg-sale-detail-heading: #1a2332;
  background: var(--pg-sale-detail-canvas);
}

html body.pg-public.sale-detail-page main,
html body.pg-public.sale-detail-page .detail-portal-section,
html body.pg-public.sale-detail-page .detail-enquiry-section {
  background: transparent;
}

html body.pg-public.sale-detail-page .detail-title-block > h1 {
  margin: 0;
  max-width: 42rem;
  color: var(--pg-sale-detail-heading);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.021em;
  line-height: 1.22;
}

html body.pg-public.sale-detail-page .detail-scroll-bar-line {
  min-width: 0;
}

html body.pg-public.sale-detail-page .detail-scroll-bar-line__rent,
html body.pg-public.sale-detail-page .detail-scroll-bar-line__avail,
html body.pg-public.sale-detail-page .detail-scroll-bar-line__type {
  flex: 0 0 auto;
}

html body.pg-public.sale-detail-page .detail-section-nav {
  flex-wrap: wrap;
  overflow: visible;
  row-gap: 8px;
  background: var(--pg-sale-detail-canvas);
}

html body.pg-public.sale-detail-page .detail-longform {
  gap: 16px;
}

html body.pg-public.sale-detail-page .detail-longform > .content-card,
html body.pg-public.sale-detail-page .detail-media-card,
html body.pg-public.sale-detail-page .sale-loan-calculator.content-card,
html body.pg-public.sale-detail-page .sale-disclaimer-card {
  background: #ffffff;
  border: 1px solid var(--pg-sale-detail-border);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(10, 16, 32, 0.04);
}

html body.pg-public.sale-detail-page .detail-longform > .content-card,
html body.pg-public.sale-detail-page .sale-loan-calculator.content-card,
html body.pg-public.sale-detail-page .sale-disclaimer-card {
  padding: 18px 18px 16px;
}

html body.pg-public.sale-detail-page .detail-longform > .content-card > h2,
html body.pg-public.sale-detail-page .sale-loan-calculator h2,
html body.pg-public.sale-detail-page .sale-disclaimer-card__title {
  margin: 0 0 10px;
  color: var(--pg-sale-detail-heading);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
}

html body.pg-public.sale-detail-page .detail-portal-aside .detail-enquire-cta,
html body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-secondary-ctas > .button,
html body.pg-public.sale-detail-page .detail-portal-aside .detail-aside-secondary-ctas > a.button {
  min-height: 46px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

html body.pg-public.sale-detail-page .detail-similar-checked-section[data-sale-similar],
html body.pg-public.sale-detail-page .detail-recommended-section[data-sale-recent]:not([hidden]) {
  background: var(--pg-sale-detail-recs);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 28px;
  padding-bottom: 36px;
}

html body.pg-public.sale-detail-page .detail-similar-checked-section .section-heading h2,
html body.pg-public.sale-detail-page .detail-recommended-section .section-heading h2 {
  margin: 0;
  color: var(--pg-sale-detail-heading);
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
}

html body.pg-public.sale-detail-page .detail-similar-card {
  background: #ffffff;
}

html body.pg-public.sale-detail-page .detail-similar-card__title {
  text-transform: none;
}

html body.pg-public.sale-detail-page .detail-portal-section .rv-needs-detail--sale.content-card {
  padding: 16px 18px;
  border: 1px solid rgba(6, 43, 91, 0.18);
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 48%);
  box-shadow: 0 8px 20px rgba(10, 16, 32, 0.04);
  /* Shared .content-card uses display:grid + gap; Fit layout owns its own spacing. */
  gap: 0;
  height: auto;
  min-height: 0;
  overflow-x: clip;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__layout {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  /* Row wrap is OK; column+wrap parks the CTA in a second column outside the card. */
  box-sizing: border-box;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 12rem;
  max-width: 100%;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #062b5b;
  background: rgba(6, 43, 91, 0.08);
  border: 1px solid rgba(6, 43, 91, 0.16);
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  color: #1a2332;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__invite {
  margin: 4px 0 0;
  max-width: 36rem;
  color: #5b6470;
  font-size: 0.9rem;
  line-height: 1.45;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__action {
  flex: 0 1 auto;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__cta {
  min-height: 44px;
  max-width: 100%;
  padding-inline: 16px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #062b5b;
  border-color: #062b5b;
  color: #fff;
  box-sizing: border-box;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__cta:hover {
  background: #08356f;
  border-color: #08356f;
  color: #fff;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__headline {
  margin-top: 12px;
}

html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__list {
  margin-top: 10px;
}

@media (max-width: 959px) {
  html body.pg-public.sale-detail-page .detail-title-block > h1 {
    display: block;
    font-size: 1.38rem;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  html body.pg-public.sale-detail-page .detail-longform > .content-card,
  html body.pg-public.sale-detail-page .sale-loan-calculator.content-card,
  html body.pg-public.sale-detail-page .sale-disclaimer-card {
    padding: 16px 14px 14px;
  }
}

@media (max-width: 959px) {
  /*
   * Sale sticky CTA sits at bottom:0 and replaces glass nav.
   * UX01 still injects dual-chrome body/footer padding (!important) + forces
   * .mobile-app-nav visible — that creates ~150px+ empty footer scroll.
   */
  html body.pg-public.sale-detail-page.listing-detail-page.has-detail-mobile-cta {
    padding-bottom: 0 !important;
  }

  html body.pg-public.sale-detail-page.listing-detail-page.has-detail-mobile-cta .mobile-app-nav {
    display: none !important;
  }

  html body.pg-public.sale-detail-page.listing-detail-page.has-detail-mobile-cta .site-footer,
  html body.pg-public.sale-detail-page.has-detail-mobile-cta .site-footer.pg-footer {
    /* Match Sale sticky height (~97px measured) + breathing room; keep safe-area. */
    padding-bottom: calc(
      var(--detail-mobile-cta-clearance, calc(80px + env(safe-area-inset-bottom, 0px))) + 24px
    );
  }
}

/* Stack Buying Fit CTA under copy before the side-by-side row can clip. */
@media (max-width: 900px) {
  html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__layout {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__copy {
    flex: 0 1 auto;
    max-width: 100%;
  }

  html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__action {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  html body.pg-public.sale-detail-page .rv-needs-detail--sale .rv-needs-detail__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Sale Detail Final Consistency V1 (2026-11-13)
   Scoped Sale-only overrides that beat shared listing-detail emerald trust /
   price / Show-more rules. Residential geometry, Sale navy accents.
   Does not alter Residential, Commercial, Homepage, Discovery, or footer.
   ========================================================================== */
html body.pg-public.sale-detail-page.listing-detail-page {
  --pg-sale-soft-blue: #eef2f7;
  --pg-sale-soft-border: #d7e0ea;
  --pg-sale-navy: #062b5b;
  --pg-sale-navy-hover: #08356f;
  --pg-sale-heading: #1a2332;
  --pg-sale-muted: #556070;
}

/* Compact soft-blue Listing Checked ribbon — same geometry as Rent; Sale colour. */
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 0;
  background: var(--pg-sale-soft-blue);
  border: 1px solid var(--pg-sale-soft-border);
  border-radius: 10px;
  box-shadow: none;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 6px 10px;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-meta {
  margin: 0 0 0 auto;
  color: var(--pg-sale-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
}

/* Mobile: stack Listing Checked + date (beats space-between / margin-left:auto). */
@media (max-width: 900px) {
  html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-meta {
    margin: 0;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    text-align: left;
  }
}

/* Beat shared emerald trust-strip badge rules (style.css listing-detail selectors). */
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip .rv-check-badge,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-badges .rv-check-badge,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip .rv-check-badge.rv-check-badge--sale,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-badges .rv-check-badge.rv-check-badge--sale {
  gap: 7px;
  padding: 4px 9px 4px 5px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8eef6 0%, #f5f8fc 55%, #ffffff 100%);
  border: 1px solid rgba(6, 43, 91, 0.28);
  color: #062b5b;
  box-shadow: none;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip .rv-check-badge__icon,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-badges .rv-check-badge__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(145deg, #0a3a72 0%, #062b5b 100%);
  box-shadow: none;
  color: #fff;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip .rv-check-badge__icon .icon,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-badges .rv-check-badge__icon .icon {
  width: 12px;
  height: 12px;
  color: #fff;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip .rv-check-badge__text strong,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-badges .rv-check-badge__text strong {
  font-size: 0.74rem;
  font-weight: 700;
  color: #062b5b;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-strip .rv-check-badge__sub,
html body.pg-public.sale-detail-page.listing-detail-page .detail-trust-badges .rv-check-badge__sub {
  font-size: 0.66rem;
  color: #35557a;
}

/* Share / Save chrome — navy labels; Save heart fill stays rose. */
html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action[data-share-trigger],
html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action[data-sale-share-trigger] {
  color: var(--pg-sale-navy);
  border-color: var(--pg-sale-soft-border);
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action[data-share-trigger] .icon,
html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action[data-sale-share-trigger] .icon {
  color: var(--pg-sale-navy);
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action .rv-save-heart,
html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action.is-saved .rv-save-heart,
html body.pg-public.sale-detail-page.listing-detail-page .detail-icon-action[aria-pressed="true"] .rv-save-heart {
  color: var(--rv-save-heart, #e11d48);
}

/* About Show more/less — navy (beats shared emerald .detail-description-toggle). */
html body.pg-public.sale-detail-page.listing-detail-page .detail-description-toggle,
html body.pg-public.sale-detail-page.listing-detail-page button.detail-description-toggle {
  color: var(--pg-sale-navy);
  font-weight: 650;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-description-toggle:hover,
html body.pg-public.sale-detail-page.listing-detail-page .detail-description-toggle:focus-visible {
  color: var(--pg-sale-navy-hover);
}

/* —— Hero: H1 → locality → asking price → facts; restrained navy price —— */
html body.pg-public.sale-detail-page.listing-detail-page .detail-title-block {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  order: 3;
  gap: 6px 14px;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(6, 43, 91, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(6, 43, 91, 0.05) 0%, rgba(6, 43, 91, 0.02) 100%);
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-hero-rent {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

/* Price emphasis only — never bare [data-sale-asking-price]: that attribute
   lives on <main> for buying-needs JS and was bolding the entire Sale page. */
html body.pg-public.sale-detail-page.listing-detail-page .detail-hero-rent strong,
html body.pg-public.sale-detail-page.listing-detail-page .detail-rent-amount,
html body.pg-public.sale-detail-page.listing-detail-page .detail-rent-amount strong,
html body.pg-public.sale-detail-page.listing-detail-page [data-sale-mobile-price] {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--pg-sale-heading);
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-hero-rent > span:not(.sale-hero-negotiable) {
  color: var(--pg-sale-muted);
  font-size: 0.92rem;
  font-weight: 550;
}

html body.pg-public.sale-detail-page.listing-detail-page .sale-hero-negotiable {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(6, 43, 91, 0.18);
  background: #eaf3fa;
  color: var(--pg-sale-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Never paint a green Available-now treatment for Sale hero terms. */
html body.pg-public.sale-detail-page.listing-detail-page .detail-hero-facts > .detail-hero-available {
  display: none !important;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-location-facts {
  margin-top: 4px;
  gap: 12px;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-quick-stats {
  gap: 8px;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-location-facts .detail-quick-stats > li,
html body.pg-public.sale-detail-page.listing-detail-page .detail-quick-stats > li {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--pg-sale-soft-border);
  border-radius: 8px;
  background: var(--pg-sale-soft-blue);
  color: var(--pg-sale-heading);
  font-size: 0.8rem;
  font-weight: 650;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-rent-amount {
  color: var(--pg-sale-heading);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 780;
  letter-spacing: -0.02em;
}

/* —— Enquire uniformity: chat icon + centred flex + 48px main CTA —— */
html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-aside .detail-enquire-cta,
html body.pg-public.sale-detail-page.listing-detail-page .detail-scroll-bar .detail-scroll-bar-enquire.button,
html body.pg-public.sale-detail-page.listing-detail-page .detail-mobile-cta--sale .detail-mobile-cta-enquire.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pg-sale-navy);
  border-color: var(--pg-sale-navy);
  color: #fff;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-aside .detail-enquire-cta {
  margin-top: 4px;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(6, 43, 91, 0.22);
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-scroll-bar {
  padding-top: 8px;
  padding-bottom: 8px;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-scroll-bar-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-aside .detail-aside-secondary-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-aside .detail-aside-secondary-ctas .button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

@media (max-width: 639px) {
  html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-aside .detail-aside-secondary-ctas {
    grid-template-columns: 1fr;
  }
}

/* Buying Needs — white card geometry matching Residential Needs; Sale navy CTA. */
html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-section .rv-needs-detail--sale.content-card,
html body.pg-public.sale-detail-page.listing-detail-page .rv-needs-detail--sale.content-card {
  padding: 16px 18px;
  border: 1px solid rgba(6, 43, 91, 0.22);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(10, 16, 32, 0.04);
  gap: 0;
  height: auto;
  min-height: 0;
  overflow-x: clip;
}

html body.pg-public.sale-detail-page.listing-detail-page .rv-needs-detail--sale .rv-needs-detail__cta {
  min-height: 44px;
  background: var(--pg-sale-navy);
  border-color: var(--pg-sale-navy);
  color: #fff;
  font-weight: 700;
}

/* Safety card — white geometry; no legal/title implication. */
html body.pg-public.sale-detail-page.listing-detail-page .sale-disclaimer-card {
  border-left: 3px solid var(--pg-sale-navy);
}

@media (min-width: 1280px) {
  html body.pg-public.sale-detail-page.listing-detail-page .detail-hero-rent strong {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  }
}

/* Agency logo unboxed hotfix V1 — Sale enquiry sidebar (preserved).
 * V2 extends the same unboxed treatment to all Property Detail pages via
 * css/style.css listing-detail company-logo rules. Keep this Sale override
 * so the approved Sale presentation remains authoritative here.
 */
html body.pg-public.sale-detail-page.listing-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;
}

html body.pg-public.sale-detail-page.listing-detail-page .detail-portal-aside .detail-agent-avatar.is-company-logo img {
  object-fit: contain;
  background: transparent;
}

/* ========== D2 V2 — Sale cards on public Agent Profiles ==========
 * Navy + soft-blue only. No rental-emerald inheritance on Sale cards.
 */
body.agent-profile-body .agent-profile-inventory--sale {
  --rv-sale-accent: #062B5B;
  --rv-sale-accent-soft: #EAF3FA;
  --pg-sale-navy: #062B5B;
}

body.agent-profile-body .bayut-card--sale {
  background: #fff;
  border-color: rgba(6, 43, 91, 0.14);
  box-shadow: 0 10px 28px rgba(6, 43, 91, 0.08);
}

body.agent-profile-body .bayut-card--sale .bayut-card__price-row {
  display: grid;
  gap: 0.35rem;
  align-items: start;
}

body.agent-profile-body .bayut-card--sale .bayut-card__sale-flag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #EAF3FA;
  color: #062B5B;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.agent-profile-body .bayut-card--sale .bayut-card__price,
body.agent-profile-body .bayut-card--sale .bayut-card__price strong {
  color: #062B5B;
}

/* Display-only uppercase — catalogue / Detail H1 unchanged. */
body.agent-profile-body .bayut-card--sale .bayut-card__title,
body.agent-profile-body .bayut-card--sale .bayut-card__title a {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #062B5B;
}

body.agent-profile-body .bayut-card--sale .bayut-card__title a:hover,
body.agent-profile-body .bayut-card--sale .bayut-card__title a:focus-visible {
  color: #0a3a72;
}

/* Neutralise rental-green trust / location accents on Sale cards only. */
body.agent-profile-body .bayut-card--sale .bayut-card__avail,
body.agent-profile-body .bayut-card--sale .bayut-card__trust-row .bayut-card__avail {
  color: #062B5B;
  background: #EAF3FA;
  border-color: rgba(6, 43, 91, 0.16);
}

body.agent-profile-body .bayut-card--sale .bayut-card__location .icon,
body.agent-profile-body .bayut-card--sale .bayut-card__location-pin,
body.agent-profile-body .bayut-card--sale .bayut-card__location .icon.bayut-card__location-pin,
body.agent-profile-body .bayut-card--sale .bayut-card__location svg {
  color: #062B5B;
  stroke: #062B5B;
  fill: none;
}

body.agent-profile-body .bayut-card--sale .rv-check-badge--sale,
body.agent-profile-body .bayut-card--sale .rv-check-badge.rv-check-badge--sale {
  background: #062B5B;
  color: #fff;
  border-color: #062B5B;
}

body.agent-profile-body .bayut-card--sale .rv-check-badge--sale .rv-check-badge__icon,
body.agent-profile-body .bayut-card--sale .rv-check-badge--sale .rv-check-badge__icon .icon,
body.agent-profile-body .bayut-card--sale .rv-check-badge--sale svg,
body.agent-profile-body .bayut-card--sale .rv-check-badge--sale use {
  color: #fff;
  fill: currentColor;
  stroke: currentColor;
}

/* Defeat rental emerald on badge label (style.css .rv-check-badge__text strong). */
body.agent-profile-body .bayut-card--sale .rv-check-badge--sale .rv-check-badge__text,
body.agent-profile-body .bayut-card--sale .rv-check-badge--sale .rv-check-badge__text strong,
body.agent-profile-body .bayut-card--sale .rv-check-badge--sale .rv-check-badge__sub {
  color: #fff;
}

body.agent-profile-body .bayut-card--sale .bayut-card__specs .icon,
body.agent-profile-body .bayut-card--sale .bayut-card__specs svg {
  color: #062B5B;
}

/* Dual CTAs — rental proportions, Sale navy identity. */
body.agent-profile-body .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions,
body.agent-profile-body .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions {
  display: grid;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.agent-profile-body .bayut-card--sale .bayut-btn--sale-primary {
  color: #fff;
  background: #062B5B;
  border-color: #062B5B;
  box-shadow: none;
  white-space: nowrap;
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 4px;
}

body.agent-profile-body .bayut-card--sale .bayut-btn--sale-primary:hover {
  background: #0a3a72;
  border-color: #0a3a72;
  color: #fff;
}

body.agent-profile-body .bayut-card--sale .bayut-btn--sale-primary:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

body.agent-profile-body .bayut-card--sale .bayut-btn--sale-outline,
body.agent-profile-body .bayut-card--sale .bayut-btn--outline.bayut-btn--sale-outline,
body.agent-profile-body .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline {
  color: #062B5B;
  background: #fff;
  border: 1px solid #062B5B;
  box-shadow: none;
  white-space: nowrap;
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 4px;
}

body.agent-profile-body .bayut-card--sale .bayut-btn--sale-outline:hover,
body.agent-profile-body .bayut-card--sale .bayut-btn--outline.bayut-btn--sale-outline:hover,
body.agent-profile-body .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:hover {
  background: #EAF3FA;
  color: #062B5B;
  border-color: #062B5B;
}

body.agent-profile-body .bayut-card--sale .bayut-btn--sale-outline:focus-visible,
body.agent-profile-body .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
}

@media (max-width: 380px) {
  body.agent-profile-body .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions,
  body.agent-profile-body .bayut-serp__results[data-view-mode="grid"] .bayut-card--sale .bayut-card__agent--actions-only .bayut-card__agent-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.agent-profile-body .bayut-card--sale .bayut-btn--sale-primary,
  body.agent-profile-body .bayut-card--sale .bayut-btn--sale-outline,
  body.agent-profile-body .bayut-card--sale .bayut-card__agent-actions .bayut-btn--outline {
    font-size: 0.78rem;
    padding: 8px 6px;
  }
}

/* ==========================================================================
   Property Enquiry Modal & Link Closure V2 — Sale enquiry only.
   Narrowly scoped to sale-detail-page enquiry section + dialog.
   Does not recolour Residential/Commercial emerald enquiry forms.
   ========================================================================== */

body.sale-detail-page .detail-enquiry-property-link,
body.sale-detail-page .detail-enquiry-dialog .detail-enquiry-property-link {
  margin: 0.15rem 0 0.55rem;
}

body.sale-detail-page .detail-enquiry-property-link a,
body.sale-detail-page .detail-enquiry-dialog .detail-enquiry-property-link a {
  color: #062B5B;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.sale-detail-page .detail-enquiry-property-link a:hover,
body.sale-detail-page .detail-enquiry-dialog .detail-enquiry-property-link a:hover,
body.sale-detail-page .detail-enquiry-property-link a:focus-visible,
body.sale-detail-page .detail-enquiry-dialog .detail-enquiry-property-link a:focus-visible {
  color: #0a3a72;
}

/* Send enquiry — solid navy */
body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .button-primary,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .button-primary,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] .button-primary,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] .button-primary,
body.sale-detail-page .detail-enquiry-dialog [data-listing-lead-form] .button-primary,
body.sale-detail-page .detail-enquiry-section [data-listing-lead-form] .button-primary {
  --primary: #062B5B;
  background: #062B5B;
  border-color: #062B5B;
  color: #fff;
  box-shadow: none;
}

body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .button-primary:hover,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .button-primary:hover,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] .button-primary:hover,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] .button-primary:hover,
body.sale-detail-page .detail-enquiry-dialog [data-listing-lead-form] .button-primary:hover,
body.sale-detail-page .detail-enquiry-section [data-listing-lead-form] .button-primary:hover {
  background: #0a3a72;
  border-color: #0a3a72;
  color: #fff;
}

body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .button-primary:focus-visible,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form .button-primary:focus-visible,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] .button-primary:focus-visible,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] .button-primary:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #EAF3FA;
}

/* Input focus — navy / soft blue (override listing-detail emerald) */
body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea:focus,
body.sale-detail-page.listing-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form textarea:focus-visible,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea:focus,
body.sale-detail-page.listing-detail-page .detail-enquiry-section .listing-lead-form.contact-form textarea:focus-visible,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] textarea:focus,
body.sale-detail-page .detail-enquiry-dialog [data-sale-lead-form] textarea:focus-visible,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] textarea:focus,
body.sale-detail-page .detail-enquiry-section [data-sale-lead-form] textarea:focus-visible {
  outline: none;
  border-color: #062B5B;
  box-shadow: 0 0 0 4px rgba(6, 43, 91, 0.16);
}

/* Enquiry intent + viewing window — Sale blue selected / focus */
body.sale-detail-page .detail-enquiry-dialog .detail-lead-intent-option input:focus-visible + .detail-lead-intent-option__label,
body.sale-detail-page .detail-enquiry-section .detail-lead-intent-option input:focus-visible + .detail-lead-intent-option__label,
body.sale-detail-page .detail-enquiry-dialog .detail-lead-viewing-window-option input:focus-visible + span,
body.sale-detail-page .detail-enquiry-section .detail-lead-viewing-window-option input:focus-visible + span {
  outline: 2px solid rgba(6, 43, 91, 0.45);
  outline-offset: 2px;
}

body.sale-detail-page .detail-enquiry-dialog .detail-lead-intent-option input:checked + .detail-lead-intent-option__label,
body.sale-detail-page .detail-enquiry-section .detail-lead-intent-option input:checked + .detail-lead-intent-option__label,
body.sale-detail-page .detail-enquiry-dialog .detail-lead-viewing-window-option input:checked + span,
body.sale-detail-page .detail-enquiry-section .detail-lead-viewing-window-option input:checked + span {
  border-color: rgba(6, 43, 91, 0.55);
  background: #EAF3FA;
  box-shadow: inset 0 0 0 1px rgba(6, 43, 91, 0.12);
  color: #062B5B;
}

body.sale-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input[type="checkbox"],
body.sale-detail-page .detail-enquiry-section .listing-lead-form.contact-form input[type="checkbox"],
body.sale-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form input[type="radio"],
body.sale-detail-page .detail-enquiry-section .listing-lead-form.contact-form input[type="radio"] {
  accent-color: #062B5B;
}

body.sale-detail-page .detail-enquiry-dialog .listing-lead-form.contact-form .icon,
body.sale-detail-page .detail-enquiry-section .listing-lead-form.contact-form .icon,
body.sale-detail-page .detail-enquiry-section .detail-enquiry-whatsapp-note .icon {
  color: #062B5B;
}

/* Enquiry popup Close text button — Sale navy focus (Close Hotfix V1) */
body.sale-detail-page.listing-detail-page .detail-enquiry-dialog-close:hover {
  border-color: rgba(6, 43, 91, 0.45);
  background: #EAF3FA;
  color: #062B5B;
}

body.sale-detail-page.listing-detail-page .detail-enquiry-dialog-close:focus-visible {
  outline: 2px solid #062B5B;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #EAF3FA;
}

/* ========== D6 — Buying Fit modal visual correction (detail + discovery) ==========
 * Sale detail does not load sale-discovery-premium.css; land input was unstyled (UA).
 * body.pg-public .bayut-btn--primary (emerald) out-specced earlier navy dialog rules.
 */
.rv-buying-needs-dialog {
  --primary: #062B5B;
  --primary-strong: #062B5B;
  --accent-soft: #EAF3FA;
  --rv-sale-accent: #062B5B;
  --rv-sale-accent-soft: #EAF3FA;
  --pg-sale-navy: #062B5B;
  --pg-sale-navy-deep: #041E42;
  --pg-sale-blue-mid: #2F6FAD;
  --pg-sale-pale: #F4F8FC;
  --pg-sale-light: #EAF3FA;
}

.rv-buying-needs-dialog .rv-needs-dialog__panel,
.rv-buying-needs-dialog .rv-buying-needs-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  max-height: min(90vh, 42rem);
  padding: 18px 18px 16px;
  overflow: hidden;
  background: #fff;
}

.rv-buying-needs-dialog .rv-buying-needs-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 12px;
}

.rv-buying-needs-dialog .rv-needs-dialog__head,
.rv-buying-needs-dialog .rv-needs-dialog__helper,
.rv-buying-needs-dialog .rv-needs-dialog__actions {
  flex: 0 0 auto;
}

.rv-buying-needs-dialog .rv-needs-dialog__titles {
  min-width: 0;
  flex: 1 1 auto;
}

.rv-buying-needs-dialog .rv-needs-dialog__head h2,
.rv-buying-needs-dialog [data-buying-needs-title] {
  margin: 0;
  min-width: 0;
  color: #062B5B;
  font-size: clamp(1.15rem, 2.6vw, 1.28rem);
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rv-buying-needs-dialog .rv-needs-dialog__support,
.rv-buying-needs-dialog [data-buying-needs-support] {
  margin: 6px 0 0;
  max-width: 36rem;
  color: #5a6a7c;
  font-size: 0.86rem;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

body.pg-public .rv-buying-needs-dialog .bayut-btn--primary,
body.pg-public .rv-buying-needs-dialog .rv-needs-dialog__actions .bayut-btn--primary,
.rv-buying-needs-dialog .bayut-btn--primary {
  min-width: 7.5rem;
  min-height: 44px;
  margin-left: auto;
  border-radius: 12px;
  color: #fff !important;
  background: #062B5B !important;
  border-color: #062B5B !important;
  box-shadow: 0 10px 24px rgba(6, 43, 91, 0.22);
}

body.pg-public .rv-buying-needs-dialog .bayut-btn--primary:hover,
body.pg-public .rv-buying-needs-dialog .rv-needs-dialog__actions .bayut-btn--primary:hover,
.rv-buying-needs-dialog .bayut-btn--primary:hover {
  background: #041E42 !important;
  border-color: #041E42 !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(6, 43, 91, 0.28);
}

body.pg-public .rv-buying-needs-dialog .bayut-btn--primary:focus-visible,
.rv-buying-needs-dialog .rv-needs-select__trigger:focus-visible,
.rv-buying-needs-dialog .rv-needs-input:focus-visible,
.rv-buying-needs-dialog .rv-needs-link:focus-visible,
.rv-buying-needs-dialog .rv-needs-dialog__close:focus-visible {
  outline: 2px solid #2F6FAD;
  outline-offset: 2px;
}

.rv-buying-needs-dialog .rv-needs-input {
  display: block;
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  color: var(--heading, #142033);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  background: #fff;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}

.rv-buying-needs-dialog .rv-needs-input::-webkit-outer-spin-button,
.rv-buying-needs-dialog .rv-needs-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rv-buying-needs-dialog .rv-needs-input:focus {
  border-color: #2F6FAD;
  box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.16);
  outline: none;
}

.rv-buying-needs-dialog .rv-buying-land {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(7.5rem, 0.85fr);
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.rv-buying-needs-dialog .rv-buying-land .rv-needs-select {
  min-width: 0;
}

.rv-buying-needs-dialog .rv-buying-land .rv-needs-select__trigger {
  min-height: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4dbe8;
  border-radius: 12px;
  background: #fff;
  color: var(--heading, #142033);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
}

.rv-buying-needs-dialog .rv-buying-land .rv-needs-select.is-open .rv-needs-select__trigger,
.rv-buying-needs-dialog .rv-needs-select.is-open .rv-needs-select__trigger {
  border-color: #2F6FAD;
  box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.16);
}

.rv-buying-needs-dialog .rv-needs-select__option:hover,
.rv-buying-needs-dialog .rv-needs-select__option.is-active {
  background: rgba(47, 111, 173, 0.1);
}

.rv-buying-needs-dialog .rv-needs-select__option[aria-selected="true"] {
  color: #062B5B;
  font-weight: 700;
  background: rgba(47, 111, 173, 0.14);
}

.rv-buying-needs-dialog .rv-buying-land-note {
  margin: 0.35rem 0 0;
  color: #6a7884;
  font-size: 0.8rem;
  line-height: 1.45;
}

.rv-buying-needs-dialog .rv-needs-link--from-filters {
  color: #1A4F8C;
  border: 1px solid rgba(47, 111, 173, 0.28);
  border-radius: 10px;
  background: #F4F8FC;
}

.rv-buying-needs-dialog .rv-needs-link--from-filters:hover,
.rv-buying-needs-dialog .rv-needs-link--from-filters:focus-visible {
  color: #062B5B;
  border-color: rgba(47, 111, 173, 0.5);
  background: #EAF3FA;
}

@media (max-width: 520px) {
  .rv-buying-needs-dialog.rv-needs-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .rv-buying-needs-dialog .rv-needs-dialog__panel,
  .rv-buying-needs-dialog .rv-buying-needs-dialog__panel {
    padding: 14px 12px 12px;
  }
}

@media (max-width: 390px) {
  .rv-buying-needs-dialog .rv-buying-land {
    grid-template-columns: 1fr;
  }

  .rv-buying-needs-dialog .rv-needs-dialog__head {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .rv-buying-needs-dialog .rv-needs-dialog__support,
  .rv-buying-needs-dialog [data-buying-needs-support] {
    font-size: 0.82rem;
  }

  .rv-buying-needs-dialog .rv-needs-dialog__actions .bayut-btn--primary {
    width: 100%;
    margin-left: 0;
  }
}

/* ==========================================================================
   Sale Detail Mobile Visual Closeout V2 (2026-11-20)
   Local-only Sale-scoped residual fixes after V1 Buying Fit / footer PASS.
   A) Map: unified min-height:220 beats mobile wrapper clamp → leaflet overflows
      its .detail-area-map shell (overflow:visible) and crowds guide/maps CTAs.
   C) Buyer safety: .content-card grid gap + title margin + .sale-disclaimer
      margin-top stack to ~36px between heading and copy.
   Does not alter map coordinates, inventory, enquiry, Residential/Commercial,
   Homepage, or Agents Directory.
   ========================================================================== */

/* C — natural safety-note rhythm (heading → copy). */
html body.pg-public.sale-detail-page.listing-detail-page .sale-disclaimer-card.content-card,
html body.pg-public.sale-detail-page .sale-disclaimer-card.content-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  height: auto;
  min-height: 0;
}

html body.pg-public.sale-detail-page.listing-detail-page .sale-disclaimer-card__title,
html body.pg-public.sale-detail-page .sale-disclaimer-card__title {
  margin: 0 0 6px;
}

html body.pg-public.sale-detail-page.listing-detail-page .sale-disclaimer-card .sale-disclaimer,
html body.pg-public.sale-detail-page .sale-disclaimer-card .sale-disclaimer {
  margin: 0;
}

/* A — contain Leaflet inside Location card; keep attribution + CTA separation. */
@media (max-width: 1079px) {
  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-card .detail-area-map,
  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-card .detail-area-map--preview {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  /*
   * Beat detail-premium-unified.css
   * body.listing-detail-page .detail-area-map-leaflet:not([hidden]) { min-height:220px }
   * which out-specifies the shared mobile clamp and overflows the wrapper.
   */
  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-card .detail-area-map-leaflet:not([hidden]),
  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-card .detail-area-map-canvas {
    height: clamp(200px, 52vw, 240px);
    min-height: 0;
    max-height: none;
  }

  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
  }

  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-actions > .button,
  html body.pg-public.sale-detail-page.listing-detail-page .detail-location-actions > a.button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
