/**
 * One visual rhythm for the public property page.
 *
 * The theme nests every content panel inside .single-content. Making that
 * real wrapper a column with a gap avoids accumulated margins, inline-block
 * line boxes and transparent Shorts padding changing the visible distance.
 */
@media (min-width: 768px) {
    html body.single-estate_property {
        --twa-property-desktop-section-gap: 28px;
    }

    html body.single-estate_property .wpestate_column_content > .single-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--twa-property-desktop-section-gap) !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content > #single-overview-section,
    html body.single-estate_property .wpestate_column_content > .single-content > #wpestate_property_description_section,
    html body.single-estate_property .wpestate_column_content > .single-content > #accordion_features_details,
    html body.single-estate_property .wpestate_column_content > .single-content > #accordion_property_floor_plans,
    html body.single-estate_property .wpestate_column_content > .single-content > #accordion_property_details_map {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        margin: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content > #twa-smart-property-root {
        width: 100% !important;
        margin: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content > .twa-property-shorts.twa-shorts-after-about {
        width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    html body.single-estate_property .twa-property-shorts.twa-shorts-after-about .twa-property-shorts-track {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    html body.single-estate_property {
        --twa-property-mobile-section-gap: 24px;
    }

    html body.single-estate_property .wpestate_column_content {
        margin-bottom: var(--twa-property-mobile-section-gap) !important;
        padding-bottom: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: var(--twa-property-mobile-section-gap) !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content > #single-overview-section,
    html body.single-estate_property .wpestate_column_content > .single-content > #wpestate_property_description_section,
    html body.single-estate_property .wpestate_column_content > .single-content > #accordion_features_details,
    html body.single-estate_property .wpestate_column_content > .single-content > #accordion_property_floor_plans,
    html body.single-estate_property .wpestate_column_content > .single-content > #accordion_property_details_map {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        margin: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content > #twa-smart-property-root {
        width: 100% !important;
        margin: 0 !important;
    }

    html body.single-estate_property .wpestate_column_content > .single-content > .twa-property-shorts.twa-shorts-after-about {
        width: 100% !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    html body.single-estate_property .twa-property-shorts.twa-shorts-after-about .twa-property-shorts-track {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    html body.single-estate_property #primary,
    html body.single-estate_property #primary_sidebar_wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    html body.single-estate_property #primary .twa-property-schedule-card {
        margin-top: 0 !important;
        margin-bottom: var(--twa-property-mobile-section-gap) !important;
    }
}
