/* Keep the theme’s thumbnail grid, full-screen gallery and list scroll indicator
   while exposing the native dialog and disclosure controls. */
.PropertyGallery-open { position: absolute; inset: 0; width: 100%; height: 100%; }
.PropertyGallery-modal:not([open]) { display: none; }
dialog.PropertyGallery-modal { max-width: none; max-height: none; margin: 0; border: 0; color: inherit; }
.PropertyFinder-toggleRow { display: none; }
@media (max-width: 768px) {
    .PropertyFinder-toggleRow { display: list-item; position: sticky; top: 0; z-index: 1; }
    .PropertyFinder-list:not(.is-expanded) > li:not(.PropertyFinder-toggleRow) { visibility: hidden; }
}
/* The legacy theme gives every button a bordered CTA treatment. Retain the
   original link and list-row styles when a native button takes over. */
button.Accordion-title { appearance: none; display: flex; width: 100%; padding-inline: 0; border-width: 0 0 1px; text-align: left; white-space: normal; overflow: visible; }
button.Accordion-title:hover { background-color: transparent; }
button.PropertyGallery-open { padding: 0; border: 0; font: inherit; color: inherit; }
button.PropertyGallery-open > img:first-child:last-child { margin: 0; }
.PropertyGallery-modal button.close { padding: 0; }
.PropertyFinder button.PropertyFinder-showList { width: 100%; padding-block: 0; border-width: 0 0 1px; white-space: normal; }
.RentCalc-submit button { padding: 0; border-width: 0; background: transparent; }
.RentCalc-submit button.RentCalc-done { border-bottom-width: 1px; padding-bottom: 1px; }
.RentCalc-submit button > img:first-child:last-child { margin: 0; }
.RentCalc-pay button { padding: 0; border: 0; color: inherit; font: inherit; letter-spacing: inherit; background: transparent; }

.RentCalc-pay button > .RentCalc-value { vertical-align: baseline; }
