/**
 * ============================================================================
 * LISTING DOMINANCE SYSTEM (LDS) v3.1 — v3 grid + page-scoped frame harmonization
 * ============================================================================
 * Goals: editorial restraint (v2) + 12-col grid (v3) + one outer width + gutter system.
 * Scope: html.property-listing-page.property-detail-page
 * HTML hooks: .lds-page (wrapper), .lds-layout (+ __main / __sidebar)
 * ============================================================================
 */

html.property-listing-page.property-detail-page {
  /* —— rhythm (8px base, generous vertical scale) —— */
  --lds-space-1: 4px;
  --lds-space-2: 8px;
  --lds-space-3: 12px;
  --lds-space-4: 16px;
  --lds-space-5: 20px;
  --lds-space-6: 24px;
  --lds-space-7: 28px;
  --lds-space-8: 32px;
  --lds-space-10: 40px;
  --lds-space-12: 48px;
  --lds-space-16: 64px;
  --lds-section-gap: var(--lds-space-12);
  --lds-band-gap: var(--lds-space-12);

  /* —— radii —— */
  --lds-radius-sm: 10px;
  --lds-radius-md: 14px;
  --lds-radius-lg: 18px;
  --lds-radius-xl: 22px;
  --lds-radius-pill: 999px;

  /* —— ink & surfaces (softer, editorial) —— */
  --lds-ink: #0f172a;
  --lds-ink-soft: #334155;
  --lds-ink-muted: #64748b;
  --lds-ink-faint: #94a3b8;
  --lds-surface: #ffffff;
  --lds-surface-veil: rgba(255, 255, 255, 0.72);
  --lds-surface-2: #f8fafc;
  --lds-surface-3: #f1f5f9;
  --lds-border-hair: rgba(15, 23, 42, 0.06);
  --lds-border-soft: rgba(15, 23, 42, 0.08);
  --lds-border: #e8edf4;
  --lds-accent: #0a6fd6;
  --lds-accent-hover: #0558b3;
  --lds-accent-ghost: rgba(10, 111, 214, 0.08);
  --lds-wa: #22c55e;
  --lds-wa-hover: #16a34a;
  --lds-wa-soft: rgba(34, 197, 94, 0.12);
  --lds-teal: #0d9488;
  --lds-indigo: #6366f1;
  --lds-slate: #64748b;

  /* —— shadow (restraint: one layer, low alpha) —— */
  --lds-shadow-ambient: 0 22px 60px -28px rgba(15, 23, 42, 0.14);
  --lds-shadow-card: 0 12px 40px -24px rgba(15, 23, 42, 0.1);
  --lds-shadow-float: 0 8px 24px -16px rgba(15, 23, 42, 0.08);

  /* —— type —— */
  --lds-font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lds-text-xs: 0.8125rem;
  --lds-text-sm: 0.9375rem;
  --lds-text-md: 1.03125rem;
  --lds-text-lg: 1.125rem;
  --lds-text-xl: clamp(1.85rem, 1.45rem + 1.1vw, 2.35rem);
  --lds-text-h2: clamp(1.2rem, 1.05rem + 0.45vw, 1.42rem);
  --lds-leading-tight: 1.18;
  --lds-leading-snug: 1.35;
  --lds-leading-body: 1.68;
  --lds-prose: 40.5rem;
  /* Interior “full bleed within frame” bands — nudge with frame so gallery/CTA feel aligned */
  --lds-column: 1200px;

  /* —— v3 grid (12 columns, composed main + sidebar) —— */
  --lds-grid-columns: 12;
  --lds-grid-gutter: clamp(20px, 2.6vw, 36px);
  --lds-grid-main: 8;
  --lds-grid-side: 4;

  /* —— v3.1 frame: one outer cap for hero + gallery + body + sidebar (wider than legacy 1170) —— */
  --lds-frame-max: 1320px;
  --lds-page-gutter: var(--lds-grid-gutter);
}

/* -------------------------------------------------------------------------- */
/* v3 / v3.1 — Composed grid + page frame (main .lds-layout + .lds-page container) */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .main .content.full .container.lds-page.property-detail-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: min(100%, var(--lds-frame-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--lds-page-gutter) !important;
  padding-right: var(--lds-page-gutter) !important;
  padding-top: var(--lds-space-6) !important;
  box-sizing: border-box !important;
}

html.property-listing-page.property-detail-page .body > .container:not(.lds-page) {
  max-width: min(100%, var(--lds-frame-max)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--lds-page-gutter) !important;
  padding-right: var(--lds-page-gutter) !important;
  box-sizing: border-box !important;
}

html.property-listing-page.property-detail-page .body > .container:not(.lds-page) > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
}

/* Legacy description wrapper: remove 760px “floating column” on detail only */
html.property-listing-page.property-detail-page .property-description-modern {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html.property-listing-page.property-detail-page .property-detail-wrapper .property-detail-layout.lds-layout {
  display: grid !important;
  grid-template-columns: repeat(var(--lds-grid-columns), minmax(0, 1fr));
  column-gap: var(--lds-grid-gutter);
  row-gap: 0;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin-top: var(--lds-section-gap) !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: visible !important;
}

html.property-listing-page.property-detail-page .property-detail-layout.lds-layout .lds-layout__main.left-column {
  grid-column: 1 / span var(--lds-grid-main);
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
}

html.property-listing-page.property-detail-page .property-detail-layout.lds-layout .lds-layout__sidebar.right-column {
  grid-column: calc(var(--lds-grid-main) + 1) / -1;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
}

@media (max-width: 991px) {
  html.property-listing-page.property-detail-page .property-detail-layout.lds-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--lds-space-8);
    column-gap: 0;
  }

  html.property-listing-page.property-detail-page .property-detail-layout.lds-layout .lds-layout__main.left-column,
  html.property-listing-page.property-detail-page .property-detail-layout.lds-layout .lds-layout__sidebar.right-column {
    grid-column: 1 / -1;
  }

  html.property-listing-page.property-detail-page .contact-sidebar.right-sidebar.lds-layout__sidebar {
    position: relative !important;
    top: auto !important;
    align-self: stretch;
  }
}

html.property-listing-page.property-detail-page .property-detail-layout .left-column .single-property > *:first-child {
  margin-top: 0;
}

/* Related listings: 3 cards, one row (equal thirds) */
html.property-listing-page.property-detail-page .property-grid-related .related-properties-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lds-grid-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 559px) {
  html.property-listing-page.property-detail-page .property-grid-related .related-properties-list {
    grid-template-columns: 1fr;
  }
}

html.property-listing-page.property-detail-page .property-grid-related .related-property-card {
  min-width: 0;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .lds-listing-hero,
html.property-listing-page.property-detail-page .property-headline-block.lds-listing-hero {
  margin: 0 0 var(--lds-space-10);
  padding: 0 0 var(--lds-space-2);
  max-width: 100%;
}

html.property-listing-page.property-detail-page .lds-listing-hero__title.property-detail-title,
html.property-listing-page.property-detail-page .property-headline-block .property-detail-title.lds-listing-hero__title {
  margin: 0 0 var(--lds-space-5);
  padding: 0 0 var(--lds-space-5);
  font-family: var(--lds-font);
  font-size: var(--lds-text-xl);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: var(--lds-leading-tight);
  color: var(--lds-ink);
  border-bottom: 1px solid var(--lds-border-hair);
  max-width: 100%;
}

/* Hook under H1 — Apple-style editorial (no card; type-led hierarchy) */
html.property-listing-page.property-detail-page .lds-listing-hero__hook.property-hook-below-h1,
html.property-listing-page.property-detail-page .property-hook-below-h1.lds-listing-hero__hook {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: var(--lds-space-2) 0 var(--lds-space-8);
  padding: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--lds-font);
  font-size: var(--lds-text-lg);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--lds-ink-muted) !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.property-listing-page.property-detail-page .lds-listing-hero__hook p,
html.property-listing-page.property-detail-page .property-hook-below-h1 p {
  margin: 0 0 var(--lds-space-4);
  max-width: 100%;
  font-weight: 400;
  color: var(--lds-ink-muted) !important;
}

html.property-listing-page.property-detail-page .lds-listing-hero__hook p:last-child,
html.property-listing-page.property-detail-page .property-hook-below-h1 p:last-child {
  margin-bottom: 0;
}

html.property-listing-page.property-detail-page .property-hook-below-h1 .lds-hook-plain {
  margin: 0;
  max-width: 100%;
  font-family: var(--lds-font);
  font-size: var(--lds-text-lg);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: var(--lds-ink-muted) !important;
}

html.property-listing-page.property-detail-page .property-hook-below-h1 strong,
html.property-listing-page.property-detail-page .property-hook-below-h1 b {
  font-weight: 500;
  color: var(--lds-ink-soft);
}

/* -------------------------------------------------------------------------- */
/* Post-gallery CTA (primary action after visual proof)                        */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .listing-post-gallery-cta.lds-post-gallery-cta {
  max-width: min(var(--lds-column), 100%);
  margin: 0 0 var(--lds-space-10);
  padding: 0;
}

/* Primary CTA — calm card, no heavy gradient */
html.property-listing-page.property-detail-page .lds-cta.cta-primary,
html.property-listing-page.property-detail-page .cta-primary.lds-cta {
  margin: 0;
  padding: var(--lds-space-7) var(--lds-space-8);
  background: var(--lds-surface);
  border: 1px solid var(--lds-border-hair);
  border-radius: var(--lds-radius-lg);
  box-shadow: var(--lds-shadow-card);
}

html.property-listing-page.property-detail-page .lds-cta .lds-cta__lead,
html.property-listing-page.property-detail-page .lds-cta > p:first-of-type {
  margin: 0 0 var(--lds-space-5);
  font-family: var(--lds-font);
  font-size: var(--lds-text-lg);
  font-weight: 500;
  line-height: var(--lds-leading-snug);
  color: var(--lds-ink-soft);
  max-width: var(--lds-prose);
}

html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lds-space-3);
  align-items: center;
}

html.property-listing-page.property-detail-page .lds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  font-family: var(--lds-font);
  font-size: var(--lds-text-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--lds-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

html.property-listing-page.property-detail-page .lds-btn:focus-visible {
  outline: 2px solid rgba(10, 111, 214, 0.45);
  outline-offset: 3px;
}

html.property-listing-page.property-detail-page .lds-btn--primary,
html.property-listing-page.property-detail-page .lds-cta > a[href="#contact"],
html.property-listing-page.property-detail-page .cta-primary > a[href="#contact"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href="#contact"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href="#contact"] {
  background: var(--lds-accent);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 16px rgba(26, 58, 122, 0.25);
}

html.property-listing-page.property-detail-page .lds-btn--primary:hover,
html.property-listing-page.property-detail-page .lds-cta > a[href="#contact"]:hover,
html.property-listing-page.property-detail-page .cta-primary > a[href="#contact"]:hover,
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href="#contact"]:hover,
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href="#contact"]:hover {
  background: var(--lds-accent-hover);
  box-shadow: 0 8px 22px rgba(26, 58, 122, 0.32);
  transform: translateY(-0.5px);
}

html.property-listing-page.property-detail-page .lds-btn--email,
html.property-listing-page.property-detail-page .lds-cta > a[href^="mailto:"],
html.property-listing-page.property-detail-page .cta-primary > a[href^="mailto:"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="mailto:"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="mailto:"] {
  background: var(--lds-surface-2);
  color: var(--lds-ink-soft);
  border-color: var(--lds-border-soft);
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.12);
}

html.property-listing-page.property-detail-page .lds-btn--email:hover,
html.property-listing-page.property-detail-page .lds-cta > a[href^="mailto:"]:hover,
html.property-listing-page.property-detail-page .cta-primary > a[href^="mailto:"]:hover,
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="mailto:"]:hover,
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="mailto:"]:hover {
  background: var(--lds-surface-3);
  border-color: var(--lds-border);
  transform: translateY(-0.5px);
}

html.property-listing-page.property-detail-page .lds-btn--wa,
html.property-listing-page.property-detail-page .lds-cta > a[href^="https://wa.me"],
html.property-listing-page.property-detail-page .lds-cta > a[href^="http://wa.me"],
html.property-listing-page.property-detail-page .cta-primary > a[href^="https://wa.me"],
html.property-listing-page.property-detail-page .cta-primary > a[href^="http://wa.me"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="https://wa.me"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="http://wa.me"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href*="//wa.me/"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href*="//api.whatsapp.com"],
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="whatsapp:"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="https://wa.me"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="http://wa.me"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href*="//wa.me/"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href*="//api.whatsapp.com"],
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="whatsapp:"] {
  background: var(--lds-wa);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 20px -8px rgba(34, 197, 94, 0.4);
}

html.property-listing-page.property-detail-page .lds-btn--wa:hover,
html.property-listing-page.property-detail-page .lds-cta > a[href^="https://wa.me"]:hover,
html.property-listing-page.property-detail-page .cta-primary > a[href^="https://wa.me"]:hover,
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="https://wa.me"]:hover,
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href^="http://wa.me"]:hover,
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a[href*="//api.whatsapp.com"]:hover,
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="https://wa.me"]:hover,
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href^="http://wa.me"]:hover,
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a[href*="//api.whatsapp.com"]:hover {
  background: var(--lds-wa-hover);
  transform: translateY(-0.5px);
}

html.property-listing-page.property-detail-page .lds-cta > a,
html.property-listing-page.property-detail-page .cta-primary > a,
html.property-listing-page.property-detail-page .lds-cta .lds-cta__actions a,
html.property-listing-page.property-detail-page .cta-primary.lds-cta .lds-cta__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  margin: 0 var(--lds-space-3) 0 0;
  font-weight: 600;
  font-size: var(--lds-text-sm);
  text-decoration: none;
  border-radius: var(--lds-radius-sm);
}

/* Trust — card variant (e.g. custom HTML without pre-gallery modifier) */
html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust:not(.lds-trust--pre-gallery) {
  margin: 0;
  padding: var(--lds-space-7) var(--lds-space-8);
  font-family: var(--lds-font);
  font-size: var(--lds-text-sm);
  line-height: var(--lds-leading-body);
  color: var(--lds-ink-muted);
  background: var(--lds-surface-2);
  border: 1px solid var(--lds-border-hair);
  border-radius: var(--lds-radius-md);
  box-shadow: none;
}

/*
 * Pre-gallery trust — inline editorial strip (no card).
 * Separators + rhythm read as “signals”, not stray body copy.
 */
html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0 26px;
  padding: 14px 0 4px;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: none;
  border-radius: 0;
  font-family: var(--lds-font);
  font-size: clamp(0.9375rem, 0.9rem + 0.14vw, 1rem);
  line-height: 1.5;
  color: #475569;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery ul,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery li {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: inherit;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li::before,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery li::before {
  content: none;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li:not(:last-child)::after,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery li:not(:last-child)::after {
  content: "•";
  margin: 0 10px;
  color: #64748b;
  font-weight: 400;
  pointer-events: none;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li strong,
html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li b,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery li strong,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery li b {
  font-weight: 600;
  color: #334155;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery a,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery a {
  color: inherit;
  text-decoration: none;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery a:hover,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery .separator,
html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery .trust-separator,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery .separator,
.listing-trust-strip.lds-trust.lds-trust--pre-gallery .trust-separator {
  display: none !important;
}

@media (max-width: 991px) {
  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery ul,
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery ul {
    gap: 0 12px;
  }

  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery,
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery {
    margin: 16px 0 26px;
    padding: 12px 0 3px;
  }
}

@media (max-width: 767px) {
  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery ul,
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery ul {
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    gap: 0;
  }

  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery,
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery {
    margin: 14px 0 22px;
    padding: 12px 0 3px;
  }

  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li,
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery li {
    display: block;
    white-space: normal;
    padding: 10px 0 10px 14px;
    border-left: 2px solid rgba(31, 157, 132, 0.45);
  }

  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li:not(:last-child)::after,
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery li:not(:last-child)::after {
    content: none;
  }

  html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust.lds-trust--pre-gallery li:not(:last-child),
  .listing-trust-strip.lds-trust.lds-trust--pre-gallery li:not(:last-child) {
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust:not(.lds-trust--pre-gallery) ul {
  display: block;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust:not(.lds-trust--pre-gallery) li {
  display: flex;
  align-items: flex-start;
  gap: var(--lds-space-4);
  margin: 0 0 var(--lds-space-4);
  padding: 0;
  color: var(--lds-ink-soft);
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust:not(.lds-trust--pre-gallery) li:last-child {
  margin-bottom: 0;
}

html.property-listing-page.property-detail-page .listing-trust-strip.lds-trust:not(.lds-trust--pre-gallery) li::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  border-radius: var(--lds-radius-pill);
  background: var(--lds-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

/* -------------------------------------------------------------------------- */
/* Dominance bands                                                             */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .lds-band.listing-dominance-section,
html.property-listing-page.property-detail-page .listing-dominance-section.lds-band {
  max-width: min(var(--lds-column), 100%);
  margin: var(--lds-band-gap) 0;
  padding: var(--lds-space-8) var(--lds-space-8) var(--lds-space-7);
  font-family: var(--lds-font);
  font-size: var(--lds-text-md);
  line-height: var(--lds-leading-body);
  color: var(--lds-ink-muted);
  background: var(--lds-surface);
  border: 1px solid var(--lds-border-hair);
  border-radius: var(--lds-radius-lg);
  box-shadow: var(--lds-shadow-float);
}

html.property-listing-page.property-detail-page .lds-band h2,
html.property-listing-page.property-detail-page .listing-dominance-section h2 {
  margin: 0 0 var(--lds-space-5);
  font-size: var(--lds-text-h2);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: var(--lds-leading-tight);
  color: var(--lds-ink);
  max-width: var(--lds-prose);
}

html.property-listing-page.property-detail-page .lds-band p,
html.property-listing-page.property-detail-page .listing-dominance-section p {
  margin: 0 0 var(--lds-space-5);
  max-width: var(--lds-prose);
  color: var(--lds-ink-soft);
}

/* Editorial rows — not “boxed” list items */
html.property-listing-page.property-detail-page .lds-band ul,
html.property-listing-page.property-detail-page .listing-dominance-section ul {
  margin: var(--lds-space-2) 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--lds-prose);
}

html.property-listing-page.property-detail-page .lds-band li,
html.property-listing-page.property-detail-page .listing-dominance-section li {
  display: flex;
  align-items: flex-start;
  gap: var(--lds-space-4);
  margin: 0;
  padding: var(--lds-space-4) 0;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--lds-border-hair);
  color: var(--lds-ink-soft);
}

html.property-listing-page.property-detail-page .lds-band li:last-child,
html.property-listing-page.property-detail-page .listing-dominance-section li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

html.property-listing-page.property-detail-page .lds-band li::before,
html.property-listing-page.property-detail-page .listing-dominance-section li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: var(--lds-radius-pill);
  background: var(--lds-accent);
  opacity: 0.85;
}

html.property-listing-page.property-detail-page .lds-band li a,
html.property-listing-page.property-detail-page .listing-dominance-section li a {
  color: var(--lds-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

html.property-listing-page.property-detail-page .lds-band li a:hover,
html.property-listing-page.property-detail-page .listing-dominance-section li a:hover {
  border-bottom-color: rgba(10, 111, 214, 0.28);
}

html.property-listing-page.property-detail-page .lds-band--decision,
html.property-listing-page.property-detail-page .listing-dominance--decision.lds-band {
  box-shadow: var(--lds-shadow-float);
  border-left: 3px solid var(--lds-accent);
  padding-left: calc(var(--lds-space-8) - 2px);
}

html.property-listing-page.property-detail-page .lds-band--explore,
html.property-listing-page.property-detail-page .listing-dominance--explore.lds-band {
  border-left: 3px solid var(--lds-indigo);
  padding-left: calc(var(--lds-space-8) - 2px);
}

html.property-listing-page.property-detail-page .lds-band--conversion,
html.property-listing-page.property-detail-page .listing-dominance--conversion.lds-band {
  border-left: 3px solid var(--lds-teal);
  padding-left: calc(var(--lds-space-8) - 2px);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.55) 0%, var(--lds-surface) 42%);
}

html.property-listing-page.property-detail-page .lds-band--conversion .lds-cta,
html.property-listing-page.property-detail-page .listing-dominance--conversion .cta-primary {
  margin-top: var(--lds-space-5);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html.property-listing-page.property-detail-page .lds-band--conversion .lds-cta .lds-cta__actions {
  padding-top: var(--lds-space-2);
}

html.property-listing-page.property-detail-page .lds-band--keyfacts,
html.property-listing-page.property-detail-page .listing-dominance--keyfacts.lds-band {
  border-left: 3px solid var(--lds-slate);
  padding-left: calc(var(--lds-space-8) - 2px);
  background: linear-gradient(180deg, var(--lds-surface-2) 0%, var(--lds-surface) 50%);
}

html.property-listing-page.property-detail-page .lds-band--keyfacts li strong,
html.property-listing-page.property-detail-page .listing-dominance--keyfacts li strong {
  color: var(--lds-ink);
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Main column: description prose + section titles                              */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .property-description .property-description-content,
html.property-listing-page.property-detail-page .property-description-content {
  max-width: var(--lds-prose);
  color: var(--lds-ink-soft);
  font-size: var(--lds-text-md);
  line-height: var(--lds-leading-body);
}

html.property-listing-page.property-detail-page .property-description .property-description-content h2,
html.property-listing-page.property-detail-page .property-description-content h2 {
  margin: var(--lds-space-12) 0 var(--lds-space-5);
  font-size: var(--lds-text-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--lds-ink);
}

html.property-listing-page.property-detail-page .property-description .property-description-content h2:first-child,
html.property-listing-page.property-detail-page .property-description-content h2:first-child {
  margin-top: var(--lds-space-8);
}

html.property-listing-page.property-detail-page .property-description .property-description-content p,
html.property-listing-page.property-detail-page .property-description-content p {
  margin: 0 0 var(--lds-space-5);
}

html.property-listing-page.property-detail-page .property-description .section-title {
  margin-top: var(--lds-space-10);
  margin-bottom: var(--lds-space-4);
  font-size: var(--lds-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lds-ink-faint);
}

html.property-listing-page.property-detail-page .features-heading,
html.property-listing-page.property-detail-page .property-details-heading,
html.property-listing-page.property-detail-page .property-location-heading {
  margin-top: var(--lds-space-12);
  margin-bottom: var(--lds-space-4);
}

html.property-listing-page.property-detail-page .related-properties-heading {
  margin-top: var(--lds-space-16);
  margin-bottom: var(--lds-space-4);
}

html.property-listing-page.property-detail-page .related-properties-intro {
  margin-bottom: var(--lds-space-6);
  max-width: var(--lds-prose);
  color: var(--lds-ink-muted);
  line-height: var(--lds-leading-body);
}

/* -------------------------------------------------------------------------- */
/* Gallery — calm frame, anchors the column                                   */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .property-slider-modern {
  margin-bottom: var(--lds-space-12);
  padding-top: 0;
}

html.property-listing-page.property-detail-page .property-slider-modern .zillow-gallery.gallery-container,
html.property-listing-page.property-detail-page .property-slider-modern .gallery-container {
  border-radius: var(--lds-radius-xl);
  overflow: hidden;
  border: 1px solid var(--lds-border-hair);
  box-shadow: var(--lds-shadow-ambient);
  background: var(--lds-surface-3);
}

html.property-listing-page.property-detail-page .property-slider-modern .main-swiper {
  border-radius: var(--lds-radius-xl) var(--lds-radius-xl) 0 0;
}

html.property-listing-page.property-detail-page .property-slider-modern .thumb-swiper {
  margin-top: var(--lds-space-3);
  padding: var(--lds-space-3) var(--lds-space-2) var(--lds-space-2);
  border-radius: 0 0 var(--lds-radius-md) var(--lds-radius-md);
  background: var(--lds-surface-2);
}

html.property-listing-page.property-detail-page .property-slider-modern .thumb-swiper .swiper-slide img {
  border-radius: var(--lds-radius-sm);
}

/* -------------------------------------------------------------------------- */
/* Sidebar — calmer stack (overrides akkus !important where needed)           */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .contact-sidebar.right-sidebar.lds-layout__sidebar {
  position: sticky !important;
  top: 110px !important;
  align-self: start;
  box-sizing: border-box;
  max-width: 100%;
}

html.property-listing-page.property-detail-page .contact-sidebar .sidebar-card-modern {
  background: var(--lds-surface) !important;
  border: 1px solid var(--lds-border-hair) !important;
  border-radius: var(--lds-radius-lg) !important;
  padding: var(--lds-space-7) !important;
  margin-bottom: var(--lds-space-7) !important;
  box-shadow: var(--lds-shadow-float) !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Phone / WhatsApp row: allow wrap inside wider sidebar (akkus uses nowrap on listing pages) */
html.property-listing-page.property-detail-page .contact-sidebar #seller .company-phone-line {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: var(--lds-space-3) !important;
  white-space: normal !important;
}

html.property-listing-page.property-detail-page .contact-sidebar #seller .company-phone-line .phone-number {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
}

html.property-listing-page.property-detail-page .contact-sidebar #seller .company-phone-line .whatsapp-icon-link {
  flex-shrink: 1 !important;
}

html.property-listing-page.property-detail-page .contact-sidebar .sidebar-modern-header,
html.property-listing-page.property-detail-page .contact-sidebar h3.sidebar-modern-header {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: var(--lds-ink) !important;
  padding: 0 0 var(--lds-space-4) 0 !important;
  margin: 0 0 var(--lds-space-4) 0 !important;
  border-bottom: 1px solid var(--lds-border-hair) !important;
  background: none !important;
}

html.property-listing-page.property-detail-page .contact-sidebar .fmtext,
html.property-listing-page.property-detail-page .contact-sidebar input.fmtext {
  padding: 12px 14px !important;
  border-radius: var(--lds-radius-sm) !important;
  border: 1px solid var(--lds-border-soft) !important;
  font-size: var(--lds-text-sm) !important;
}

html.property-listing-page.property-detail-page .contact-sidebar .btn-brochure,
html.property-listing-page.property-detail-page .contact-sidebar .btn-appointment,
html.property-listing-page.property-detail-page .contact-sidebar .btn-primary {
  border-radius: var(--lds-radius-sm) !important;
  padding: 12px 18px !important;
  font-weight: 600 !important;
}

html.property-listing-page.property-detail-page #advan_bl {
  border-radius: var(--lds-radius-lg) !important;
  border: 1px solid var(--lds-border-hair) !important;
  box-shadow: var(--lds-shadow-float) !important;
}

html.property-listing-page.property-detail-page #advan_bl h3.sidebar-modern-header {
  background: var(--lds-surface-2) !important;
  border-bottom: 1px solid var(--lds-border-hair) !important;
  font-weight: 600 !important;
}

/* -------------------------------------------------------------------------- */
/* Misc                                                                        */
/* -------------------------------------------------------------------------- */

html.property-listing-page.property-detail-page .property-page-contact-anchor {
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 120px;
}

html.property-listing-page.property-detail-page .property-internal-links {
  margin-top: var(--lds-space-12);
  padding-top: var(--lds-space-8);
  border-top: 1px solid var(--lds-border-hair);
}

html.property-listing-page.property-detail-page .property-internal-links p {
  font-size: var(--lds-text-sm);
  color: var(--lds-ink-muted);
  line-height: var(--lds-leading-body);
}

html.property-listing-page.property-detail-page .property-internal-links a {
  color: var(--lds-accent);
  font-weight: 600;
  text-decoration: none;
}

html.property-listing-page.property-detail-page .property-internal-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  html.property-listing-page.property-detail-page {
    --lds-section-gap: var(--lds-space-8);
    --lds-band-gap: var(--lds-space-8);
  }

  html.property-listing-page.property-detail-page .main .content.full .container.lds-page.property-detail-wrapper,
  html.property-listing-page.property-detail-page .body > .container:not(.lds-page) {
    max-width: 100% !important;
    padding-left: var(--lds-page-gutter) !important;
    padding-right: var(--lds-page-gutter) !important;
  }

  html.property-listing-page.property-detail-page .property-description-modern,
  html.property-listing-page.property-detail-page .property-description-modern .property-description-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html.property-listing-page.property-detail-page .contact-sidebar.right-sidebar {
    position: relative;
    top: auto;
  }

  html.property-listing-page.property-detail-page .lds-listing-hero__title.property-detail-title,
  html.property-listing-page.property-detail-page .property-headline-block .property-detail-title.lds-listing-hero__title {
    font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2rem);
  }

  html.property-listing-page.property-detail-page .property-hook-below-h1.lds-listing-hero__hook,
  html.property-listing-page.property-detail-page .property-hook-below-h1 .lds-hook-plain {
    font-size: var(--lds-text-md);
    line-height: 1.58;
  }

  html.property-listing-page.property-detail-page .lds-cta.cta-primary,
  html.property-listing-page.property-detail-page .cta-primary.lds-cta {
    padding: var(--lds-space-6);
  }

  html.property-listing-page.property-detail-page .lds-band.listing-dominance-section,
  html.property-listing-page.property-detail-page .listing-dominance-section.lds-band {
    padding: var(--lds-space-6) var(--lds-space-5);
    margin: var(--lds-space-10) 0;
  }
}
