/* BPP_HOMEPAGE_FEATURED_PROJECTS_COMPACT_CARDS_V1
   Scope: homepage Featured Projects cards only.
   Goal: remove unnecessary vertical padding/margins without changing images,
   desktop grid width, typography family, colors, or project data.
*/

@media (min-width: 768px) {
    body#page-home .bppp2-grid > .bppp2-card,
    body.rpg-homepage .bppp2-grid > .bppp2-card {
        height: auto !important;
        min-height: 0 !important;
        align-self: start !important;
    }

    body#page-home .bppp2-card .bppp2-card__body,
    body.rpg-homepage .bppp2-card .bppp2-card__body {
        flex: 0 1 auto !important;
        padding: 14px 16px 14px !important;
    }

    body#page-home .bppp2-card .bppp2-card__title,
    body.rpg-homepage .bppp2-card .bppp2-card__title {
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
    }

    body#page-home .bppp2-card .bppp2-card__location,
    body.rpg-homepage .bppp2-card .bppp2-card__location {
        min-height: 20px !important;
        margin: 6px 0 7px !important;
        gap: 7px !important;
    }

    body#page-home .bppp2-card .bppp2-price,
    body.rpg-homepage .bppp2-card .bppp2-price {
        margin: 0 !important;
        padding: 0 0 9px !important;
    }

    body#page-home .bppp2-card .bppp2-card__metrics,
    body.rpg-homepage .bppp2-card .bppp2-card__metrics {
        gap: 8px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    body#page-home .bppp2-card .bppp2-view-project,
    body.rpg-homepage .bppp2-card .bppp2-view-project {
        height: 42px !important;
        min-height: 42px !important;
        margin: 10px 0 0 !important;
        padding: 0 16px !important;
    }
}
