/* Unit cards on the homepage and the stock catalogue. */
.bf-home-stock .bf-home-stock-grid,
.bf-market .bf-market-listings .bf-grid {
    gap: clamp(14px, 1.7vw, 24px);
}
.bf-site-content .bf-home-stock-grid .bf-showroom-unit,
body .bf-market .bf-market-listings .bf-grid .bf-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #304560;
    border-radius: 14px;
    background: #101e31;
    color: #f5f7fb;
    box-shadow: 0 5px 14px rgb(12 26 44 / .12);
}
.bf-home-stock-grid .bf-showroom-unit .bf-showroom-unit-photo,
.bf-market .bf-market-listings .bf-card .bf-photo {
    display: grid;
    position: relative;
    place-items: center;
    aspect-ratio: 16 / 10;
    min-height: 0;
    height: auto;
    border-radius: 0;
    border-bottom: 1px solid #b39864;
    background: #26374a;
    color: #f5f7fb;
    overflow: hidden;
    text-decoration: none;
}
.bf-home-stock-grid .bf-showroom-unit-photo > img,
.bf-market .bf-market-listings .bf-card .bf-photo > img {
    object-fit: cover;
    object-position: center;
}
.bf-market .bf-card[data-seg="motor"] .bf-photo > img,
.bf-home-stock-grid .bf-showroom-unit[data-vehicle-type="motor"] .bf-showroom-unit-photo > img {
    object-fit: contain;
}
.bf-site-content .bf-home-stock-grid .bf-showroom-unit-body,
.bf-market .bf-market-listings .bf-card .bf-card-body {
    min-height: 0;
    gap: 7px;
    padding: clamp(13px, 1.5vw, 19px);
}
.bf-site-content .bf-home-stock-grid .bf-showroom-unit-body h3,
body .bf-market .bf-market-listings .bf-card .bf-card-body h2 {
    margin: 0;
    color: #f5f7fb;
    font-family: inherit;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 750;
    line-height: 1.24;
}
.bf-home-stock-grid .bf-showroom-unit-body h3 a,
.bf-market .bf-market-listings .bf-card h2 a {
    color: inherit;
    text-decoration: none;
}
.bf-home-stock-grid .bf-showroom-unit-body h3 a:hover,
.bf-market .bf-market-listings .bf-card h2 a:hover {
    color: #ffe1a5;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bf-home-stock-grid .bf-showroom-unit-body [data-price],
.bf-market .bf-market-listings .bf-card .bf-price {
    margin: 0;
    color: #f9d88c;
    font-size: clamp(1.06rem, 1.55vw, 1.3rem);
    font-weight: 750;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.bf-home-stock-grid .bf-showroom-unit-body [data-sale="booked"],
.bf-home-stock-grid .bf-showroom-unit-body [data-sale="lou"] { background: #63512a; color: #fff0b8; }
.bf-home-stock-grid .bf-showroom-unit-body [data-sale="sold"] { background: #663647; color: #ffe0e6; }
.bf-site-content .bf-home-stock-grid .bf-showroom-unit-body [data-details],
body .bf-market .bf-market-listings .bf-card .bf-card-body p,
.bf-home-stock-grid .bf-home-stock-location,
.bf-market .bf-market-listings .bf-card .bf-stock-location {
    margin-block: 0;
    color: #c6d4e5;
    font-size: .82rem;
    line-height: 1.4;
}
.bf-home-stock-grid .bf-home-stock-location,
.bf-market .bf-market-listings .bf-card .bf-stock-location {
    margin-top: auto;
    padding-top: 8px;
    border-color: #354761;
}
.bf-market .bf-market-listings .bf-card .bf-links {
    padding-block: 2px 3px;
    align-items: center;
}
.bf-market .bf-market-listings .bf-card .bf-links a:not(.bf-whatsapp) { color: #f9d88c; }
.bf-market .bf-market-listings .bf-card .bf-badges span:first-child { background: #263d59; color: #edf4ff; }
.bf-market .bf-market-listings .bf-card .bf-stamp {
    z-index: 3;
    inset: 10px 10px auto auto;
    padding: 4px 8px;
    transform: none;
    border: 1px solid #e7a0af;
    border-radius: 5px;
    background: #552337;
    color: #ffe0e7;
    font: 750 .75rem/1.3 system-ui, sans-serif;
    text-shadow: none;
}
.bf-home-stock-grid .bf-showroom-unit a:focus-visible,
.bf-market .bf-market-listings .bf-card a:focus-visible {
    outline: 2px solid #f9d88c;
    outline-offset: 2px;
}
.bf-market .bf-market-listings .bf-card .bf-photo:focus-visible { outline-offset: -3px; }
@media (max-width: 620px) {
    .bf-home-stock .bf-home-stock-grid,
    .bf-market .bf-market-listings .bf-grid { grid-template-columns: minmax(0, 1fr); }
}
