/**
 * APD 647 — listing-detail final-content contract.
 *
 * APD649 exposes one separately marked action inside "Qué tenés que saber".
 * These selectors remain an immediate, no-layout-flash guard for only the
 * historical APD530/APD646 nodes while cleanup removes their empty shells.
 */
html body.single-listing.apd647-listing-release.apd648-report-lock .apd646-report-row,
html body.single-listing.apd647-listing-release.apd648-report-lock .apd177-mobile-report-link,
html body.single-listing.apd647-listing-release.apd648-report-lock .apd52-report-link,
body.single-listing [data-apd530-ghost-hidden="1"],
body.single-listing [data-apd646-report-duplicate="1"],
body.single-listing [data-apd647-report-removed="1"],
body.single-listing [data-apd647-report-shell="1"] {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Removing the former fourth row must not leave its grid track or spacing. */
body.single-listing .apd52-rules-section .apd52-rules-grid > article:last-of-type {
  margin-bottom: 0 !important;
}

/* APD owns one listing-specific footer.  Its legal line is always the final
 * visible item and keeps the requested order: copyright, Términos, Privacidad.
 */
body.single-listing > .apd5-footer,
body.single-listing .apd5-footer[data-apd-editor-key="global-footer"] {
  display: none !important;
}

body.single-listing .apd518-detail-footer {
  display: grid !important;
}

body.single-listing .apd518-detail-footer > .apd518-footer-legal {
  order: 2147483647 !important;
  margin: 0 !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
}
