[data-property-gallery] [hidden], [data-property-share] [hidden] { display: none !important; }
.re-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.re-gallery-thumbnails { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem; }
.re-gallery-thumbnails a { flex: 0 0 96px; }
.re-gallery-thumbnails img { width: 96px; height: 80px; object-fit: cover; }
.re-gallery-thumbnails [aria-current="true"] { outline: 2px solid currentColor; outline-offset: 2px; }
[data-gallery-dialog] { width: min(96vw, 1280px); max-height: 96vh; padding: 1rem; }
[data-gallery-dialog]::backdrop { background: rgb(0 0 0 / 85%); }
[data-gallery-large] { width: 100%; height: 70vh; object-fit: contain; touch-action: pan-y; }
@media (min-width: 1024px) { .re-enquiry-card { position: sticky; top: 6rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; } }

[data-gallery-dialog]:not([open]) { display: none; }

/* Module-owned layout: gallery and both columns share the same content edges. */
.re-property-detail { box-sizing: border-box; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1rem; overflow-wrap: anywhere; }
.re-property-detail > *, .re-detail-columns > *, .re-enquiry-card header > div { min-width: 0; }
.re-property-detail .re-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.re-detail-section { margin-block: 1.5rem; }
.re-detail-section > h2 { margin-bottom: 1rem; }
.re-detail-section > p { line-height: 1.75; }
.re-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.re-detail-facts > div { padding-block: 1rem; border-bottom: 1px solid var(--re-border); }
.re-detail-facts dd { margin-top: .35rem; font-weight: 600; }
.re-property-detail .re-detail-amenities.re-card__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.re-detail-amenities .re-chip { white-space: normal; padding: .75rem; }
.re-property-detail .re-enquiry-card.re-card { display: flex; flex-direction: column; gap: .75rem; }
.re-enquiry-card > .re-btn { width: 100%; justify-content: center; white-space: normal; }
.re-enquiry-card .re-avatar { flex-shrink: 0; }
.re-agency-listings { display: block; padding-block: .75rem; text-align: center; }
.re-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; overflow: hidden; border-radius: 1rem; }
.re-gallery-grid > [data-gallery-photo]:first-child { grid-column: 1 / -1; }
.re-gallery-grid > [data-gallery-photo] { min-width: 0; }
.re-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.re-property-detail .re-gallery-all.re-media__count { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; padding: .6rem .9rem; background: var(--re-surface); color: var(--re-text); border-radius: .5rem; font-weight: 600; box-shadow: var(--re-shadow); }
/* Inset the two-colour ring so the clipped gallery cannot hide it. */
.re-gallery-all:focus-visible, .re-gallery-grid a:focus-visible { outline: none; }
.re-gallery-all:focus-visible::after, .re-gallery-grid a:focus-visible::after { content: ""; position: absolute; inset: 4px; z-index: 2; pointer-events: none; border: 3px solid var(--re-focus); box-shadow: 0 0 0 2px #fff, inset 0 0 0 2px #fff; }
@media (min-width: 768px) {
    .re-gallery-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); height: 480px; }
    .re-property-detail .re-gallery-grid > [data-gallery-photo] { aspect-ratio: auto; height: 100%; }
    .re-gallery-grid > [data-gallery-photo]:first-child { grid-column: 1; grid-row: 1 / -1; }
    .re-gallery-grid[data-photo-count="1"] > [data-gallery-photo] { grid-column: 1 / -1; }
    .re-gallery-grid[data-photo-count="2"] > [data-gallery-photo]:nth-child(2) { grid-row: 1 / -1; }
    .re-gallery-grid[data-photo-count="3"] { grid-template-rows: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .re-property-detail .re-detail-columns { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
    .re-property-detail .re-detail-content { grid-column: auto; }
}

.property-listing-view .page-title-wrapper { box-sizing: border-box; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1rem; }
