/* RealtyPress listing redesign. All rules are limited to an enhanced single listing. */
body.lre-listing-ready {
  --lre-ink: #18232d;
  --lre-muted: #465664;
  --lre-gold: #c2902e;
  --lre-gold-dark: #805d18;
  --lre-line: #dedbd4;
  --lre-paper: #faf9f7;
  background: var(--lre-paper) !important;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
body.lre-listing-ready .bootstrap-realtypress {
  max-width: 1240px !important;
  width: calc(100% - 48px);
  margin: 28px auto 0 !important;
  color: var(--lre-ink);
  font-family: Khula, Arial, sans-serif;
}
body.lre-listing-ready .rps-single-listing > .container,
body.lre-listing-ready .rps-single-listing > .container-fluid { width: 100%; padding: 0; }
body.lre-listing-ready #listing-header { background: transparent; }
body.lre-listing-native #listing-header { min-height: 110px; }
body.lre-listing-ready .lre-overview { margin: 0 0 24px; }
body.lre-listing-ready .lre-overview > div { padding: 0; }
body.lre-listing-ready .lre-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
body.lre-listing-ready .lre-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--lre-muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
body.lre-listing-ready .lre-toolbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
body.lre-listing-ready .lre-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 1px solid #b9b5ad; border-radius: 9px;
  padding: 8px 14px; background: #fff; color: var(--lre-ink);
  font: 600 15px/1.3 Khula, Arial, sans-serif; text-shadow: none; text-decoration: none;
  cursor: pointer; transition: background-color 150ms ease;
}
body.lre-listing-ready .lre-control:hover { background: #f3eee3; color: var(--lre-ink); }
body.lre-listing-ready .lre-control[aria-pressed="true"] { border-color: var(--lre-gold-dark); background: #f4ead3; }
body.lre-listing-ready .lre-control[aria-pressed="true"] .lre-icon { fill: #c2902e; }
body.lre-listing-ready .lre-control:disabled { cursor: default; opacity: .7; }
body.lre-listing-ready .lre-control[hidden] { display: none; }
body.lre-listing-ready .lre-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.lre-listing-ready .lre-badge { display: inline-block; margin-bottom: 12px; padding: 5px 11px 3px; border-radius: 20px; background: #f3ead6; color: var(--lre-gold-dark); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
body.lre-listing-ready .lre-overview h2.lre-single-page-price { margin: 0 0 2px !important; color: var(--lre-ink); font: 800 clamp(38px, 4.4vw, 52px)/1.05 Khula, Arial, sans-serif; text-align: left !important; letter-spacing: -.025em; overflow-wrap: anywhere; }
body.lre-listing-ready .lre-overview h1.lre-single-page-addr { margin: 0 0 22px !important; padding: 0; color: var(--lre-ink); font: 700 clamp(23px, 2.4vw, 30px)/1.3 Khula, Arial, sans-serif; text-align: left !important; overflow-wrap: anywhere; text-wrap: balance; }
body.lre-listing-ready .lre-overview h1.lre-single-page-addr > span { margin: 0 0 3px !important; }
body.lre-listing-ready .lre-overview h1.lre-single-page-addr small { display: block; color: var(--lre-muted); font: 400 16px/1.6 Khula, Arial, sans-serif; margin-top: 4px; }
body.lre-listing-ready .lre-fee { display: flex; flex-wrap: wrap; gap: 4px 7px; margin: 0 0 22px; color: var(--lre-muted); font-size: 15px; line-height: 1.6; }
body.lre-listing-ready .lre-fee b { color: var(--lre-ink); font-weight: 600; }
body.lre-listing-ready .lre-facts { display: grid; grid-template-columns: repeat(var(--lre-fact-count, 4), minmax(0, 1fr)); margin: 0; background: #fff; border: 1px solid var(--lre-line); border-radius: 10px; overflow: hidden; }
body.lre-listing-ready .lre-fact { min-width: 0; padding: 16px 18px 13px; border-right: 1px solid var(--lre-line); }
body.lre-listing-ready .lre-fact:last-child { border-right: 0; }
body.lre-listing-ready .lre-fact dt { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; color: var(--lre-muted); font-size: 14px; font-weight: 400; line-height: 1.3; }
body.lre-listing-ready .lre-fact .lre-icon { color: var(--lre-gold-dark); width: 16px; height: 16px; flex-basis: 16px; }
body.lre-listing-ready .lre-fact dd { margin: 0; font: 700 19px/1.3 Khula, Arial, sans-serif; overflow-wrap: anywhere; }
body.lre-listing-ready .lre-gallery { position: relative; margin: 0 0 32px; border-radius: 12px; overflow: hidden; }
body.lre-listing-ready .lre-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(330px, 37vw, 500px); background: var(--lre-paper); }
body.lre-listing-ready .lre-photo { position: relative; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: #e7e6e2; cursor: pointer; overflow: hidden; text-shadow: none; }
body.lre-listing-native .lre-photo { display: block; }
body.lre-listing-native div.lre-photo { cursor: default; }
body.lre-listing-ready .lre-photo:first-child { grid-row: span 2; }
body.lre-listing-ready .lre-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.lre-listing-ready .lre-photo:hover img { filter: brightness(.96); }
body.lre-listing-ready .lre-gallery[data-count="1"] .lre-gallery-grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
body.lre-listing-ready .lre-gallery[data-count="1"] .lre-photo:first-child { grid-row: auto; }
body.lre-listing-ready .lre-gallery[data-count="2"] .lre-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
body.lre-listing-ready .lre-gallery[data-count="2"] .lre-photo:first-child { grid-row: auto; }
body.lre-listing-ready .lre-gallery[data-count="3"] .lre-gallery-grid { grid-template-columns: 2fr 1fr; }
body.lre-listing-ready .lre-gallery[data-count="4"] .lre-gallery-grid { grid-template-columns: 1fr 1fr; }
body.lre-listing-ready .lre-gallery[data-count="4"] .lre-photo:first-child { grid-row: auto; }
body.lre-listing-ready .lre-photo-count { position: absolute; top: 14px; left: 14px; padding: 6px 11px 4px; border-radius: 20px; background: #18232de8; color: #fff; font: 700 14px/1.3 Khula, Arial, sans-serif; pointer-events: none; }
body.lre-listing-ready .lre-view-photos { position: absolute; bottom: 16px; right: 16px; border-color: #fff; }
body.lre-listing-ready .lre-booking-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lre-line); background: #fff; }
body.lre-listing-ready .lre-booking-inner { display: flex; gap: 10px; max-width: 1240px; margin: 0 auto; }
body.lre-listing-ready .lre-booking-inner .lre-control { flex: 1; min-height: 48px; font-size: 16px; }
body.lre-listing-ready .lre-booking-inner .lre-book { flex: 2; border-color: var(--lre-gold); background: var(--lre-gold); color: #18232d; }
body.lre-listing-ready .lre-booking-inner .lre-book:hover { background: #d3a748; }
body.lre-listing-ready #BookShowing, body.lre-listing-ready #form-enquire { scroll-margin-top: 130px; }
body.lre-listing-ready .wpforms-form .wpforms-sublabel-hide { 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; }
body.lre-listing-ready .lre-status { margin: 0; min-height: 0; color: var(--lre-muted); font: 400 14px/1.4 Khula, Arial, sans-serif; }
body.lre-listing-ready .lre-status:not(:empty) { margin: -12px 0 16px; }
body.lre-listing-ready .lre-control:focus-visible,
body.lre-listing-ready .lre-photo:focus-visible,
body.lre-listing-ready .lre-back:focus-visible { outline: 3px solid #805d18; outline-offset: 3px; }
body.lre-listing-ready .lre-photo:focus-visible { outline-offset: -5px; }
body.lre-listing-ready .lre-dialog { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 0; border-radius: 12px; color: var(--lre-ink); background: #fff; font: 400 16px/1.5 Khula, Arial, sans-serif; }
body.lre-listing-ready .lre-dialog::backdrop { background: #101820db; }
body.lre-listing-ready .lre-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
body.lre-listing-ready .lre-dialog-heading h2 { margin: 0; font: 700 20px/1.3 Khula, Arial, sans-serif; }
body.lre-listing-ready .lre-dialog figure { margin: 0; }
body.lre-listing-ready .lre-dialog-image { display: block; width: 100%; height: min(65dvh, 700px); object-fit: contain; background: #f5f4f1; }
body.lre-listing-ready .lre-dialog-caption { margin-top: 12px; color: var(--lre-muted); font-size: 14px; }
body.lre-listing-ready .lre-dialog-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
body.lre-listing-ready .lre-photo-error { padding: 12px; margin: 12px 0 0; background: #f3ead6; }
body.lre-listing-ready .lre-share-dialog { max-width: 520px; }
body.lre-listing-ready .lre-share-dialog label { display: block; margin: 12px 0 6px; font-weight: 600; }
body.lre-listing-ready .lre-share-dialog input { width: 100%; padding: 12px; font: 400 15px/1.4 Khula, Arial, sans-serif; }
.lre-gallery-open { overflow: hidden; }
.lre-gallery-open body.lre-listing-ready .lre-booking-bar { visibility: hidden; }
/* Match the existing header breakpoint before its footer CSS is parsed. */
@media (max-width: 1024px) {
  body.lre-listing-native #listing-header { display: none; }
}
@media (max-width: 767px) {
  body.lre-listing-ready .bootstrap-realtypress { width: calc(100% - 32px); margin-top: 18px !important; }
  body.lre-listing-ready .lre-toolbar { gap: 8px; margin-bottom: 20px; }
  body.lre-listing-ready .lre-toolbar-actions { gap: 6px; }
  body.lre-listing-ready .lre-toolbar-actions .lre-control { padding: 8px 10px; font-size: 14px; gap: 6px; }
  body.lre-listing-ready .lre-back { font-size: 13px; max-width: 135px; }
  body.lre-listing-ready .lre-overview h1.lre-single-page-addr { margin-bottom: 16px !important; }
  body.lre-listing-ready .lre-overview h1.lre-single-page-addr small { font-size: 14px; }
  body.lre-listing-ready .lre-fee { margin-bottom: 18px; font-size: 14px; }
  body.lre-listing-ready .lre-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.lre-listing-ready .lre-fact { padding: 13px 14px 11px; border-right: 0; border-bottom: 1px solid var(--lre-line); }
  body.lre-listing-ready .lre-fact:nth-child(odd) { border-right: 1px solid var(--lre-line); }
  body.lre-listing-ready .lre-fact:last-child { border-bottom: 0; }
  body.lre-listing-ready .lre-fact:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  body.lre-listing-ready .lre-fact dd { font-size: 17px; }
  body.lre-listing-ready .lre-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 110px; height: 348px; }
  body.lre-listing-ready .lre-photo:first-child { grid-column: span 2; grid-row: auto; }
  body.lre-listing-ready .lre-photo:nth-child(n+4) { display: none; }
  body.lre-listing-ready .lre-gallery[data-count="1"] .lre-gallery-grid { height: 280px; grid-template-rows: 1fr; }
  body.lre-listing-ready .lre-gallery[data-count="1"] .lre-photo:first-child { grid-column: auto; }
  body.lre-listing-ready .lre-gallery[data-count="2"] .lre-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: 280px; }
  body.lre-listing-ready .lre-gallery[data-count="2"] .lre-photo:first-child { grid-column: auto; }
  body.lre-listing-ready .lre-gallery[data-count="3"] .lre-gallery-grid,
  body.lre-listing-ready .lre-gallery[data-count="4"] .lre-gallery-grid { grid-template-columns: 1fr 1fr; }
  body.lre-listing-ready .lre-view-photos { bottom: 12px; right: 12px; padding: 8px 10px; font-size: 14px; }
  body.lre-listing-ready .lre-booking-bar { padding-left: 10px; padding-right: 10px; }
  body.lre-listing-ready.lre-form-editing .lre-booking-bar { display: none; }
  body.lre-listing-ready .lre-dialog { padding: 14px; width: calc(100vw - 20px); }
  body.lre-listing-ready .lre-dialog-image { height: 55dvh; }
}
@media (prefers-reduced-motion: reduce) {
  body.lre-listing-ready .lre-control { transition: none; }
}
