/**
 * APD 46.0.0
 * Coordinate system: one CSS pixel equals one browser CSS pixel.
 */
html,
body.apd-marketplace-ui,
body.apd46-native-scale {
    zoom: 1 !important;
}

html {
    max-width: 100% !important;
    overflow-x: clip !important;
}

body.apd-marketplace-ui,
body.apd46-native-scale {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    transform-origin: 0 0 !important;
    overflow-x: clip !important;
}

/* Homey used to move the complete document 240 px when comparison opened.
   APD keeps the drawer as a fixed overlay, so page measurements never change. */
body.compare-property-active-push-toleft,
.compare-property-active.compare-property-active-push-toleft,
body.apd-marketplace-ui.compare-property-active-push-toleft,
body.apd-marketplace-ui .compare-property-active-push-toleft {
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

#compare-property-panel.compare-property-panel,
#compare-exp-property-panel.compare-exp-property-panel {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    z-index: 2147482000 !important;
    box-sizing: border-box !important;
    contain: layout paint !important;
    will-change: right !important;
}

.admin-bar #compare-property-panel.compare-property-panel,
.admin-bar #compare-exp-property-panel.compare-exp-property-panel {
    top: 32px !important;
    height: calc(100dvh - 32px) !important;
}

@media (max-width: 782px) {
    .admin-bar #compare-property-panel.compare-property-panel,
    .admin-bar #compare-exp-property-panel.compare-exp-property-panel {
        top: 46px !important;
        height: calc(100dvh - 46px) !important;
    }
}

/* Stable centered canvas at every desktop width without global scaling. */
@media (min-width: 1180px) {
    body.apd46-native-scale .apd5-header-row,
    body.apd46-native-scale .apd5-header-search-row,
    body.apd46-native-scale .apd5-main,
    body.apd46-native-scale .apd31-catalog,
    body.apd46-native-scale .apd5-footer-grid {
        box-sizing: border-box !important;
    }
}
