/* Visual refinement: stricter corners, a bit more depth, quieter badges.
   Loaded after main.css, so it overrides the compiled values. */

:root {
    --vcu-radius-card: 8px;
    --vcu-radius-small: 4px;
    --vcu-shadow-card: 0 2px 4px rgba(20, 22, 26, 0.05), 0 8px 20px rgba(20, 22, 26, 0.07);
    --vcu-shadow-hover: 0 4px 8px rgba(20, 22, 26, 0.07), 0 14px 32px rgba(20, 22, 26, 0.12);
}

/* ---- Cards ---- */
.featured-car-card,
.why-us-card,
.similar-card,
.referral-banner,
.block-home-hero .home-hero__spotlight,
.block-home-hero .home-hero__search,
.archive-car__empty {
    border-radius: var(--vcu-radius-card);
}

.featured-car-card,
.why-us-card,
.similar-card,
.block-home-hero .home-hero__search {
    box-shadow: var(--vcu-shadow-card);
}

.featured-car-card:hover,
.similar-card:hover {
    box-shadow: var(--vcu-shadow-hover);
}

.featured-car-card--mock:hover {
    box-shadow: var(--vcu-shadow-card);
}

.referral-banner {
    box-shadow: var(--vcu-shadow-card);
}

.referral-banner__amount {
    border-radius: var(--vcu-radius-small);
}

.block-home-hero .home-hero__spotlight {
    box-shadow: 0 4px 8px rgba(20, 22, 26, 0.06), 0 18px 40px rgba(20, 22, 26, 0.14);
}

/* Single car page panels and inventory filter / contact / referral blocks */
.single-car__info-panel,
.single-car__gallery,
.single-car__specs,
.inv-filters,
.contact-page__card,
.referral-page__card {
    border-radius: var(--vcu-radius-card);
}

/* ---- Badges: smaller radius, softer and slightly transparent ---- */
.vcu-status,
.home-hero__spotlight-badge {
    border-radius: var(--vcu-radius-small);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.vcu-status {
    padding: 0.15rem 0.45rem;
    font-size: 0.62rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.vcu-status--available { background-color: rgba(30, 158, 74, 0.86); }
.vcu-status--sold      { background-color: rgba(198, 40, 40, 0.86); }

.home-hero__spotlight-badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.74rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.home-hero__spotlight-badge--hot  { background-color: rgba(217, 48, 37, 0.86); }
.home-hero__spotlight-badge--top  { background-color: rgba(253, 215, 0, 0.9); }
.home-hero__spotlight-badge--new  { background-color: rgba(26, 115, 232, 0.86); }
.home-hero__spotlight-badge--deal { background-color: rgba(30, 158, 74, 0.86); }

/* On a single car page the badge sits on a plain background: no blur needed */
.single-car__info-panel > .vcu-status {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* ---- Vehicle card in grids (inventory / featured): fill the column, same height per row ---- */
.archive-car__grid > [class*="col-"] > .similar-card,
.featured-cars__grid > [class*="col-"] > .similar-card {
    flex: none;
    height: 100%;
}
.similar-card {
    border-radius: var(--vcu-radius-card);
    box-shadow: var(--vcu-shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.similar-card:hover {
    box-shadow: var(--vcu-shadow-hover);
    transform: translateY(-3px);
}
.similar-card--sold .similar-card__img {
    filter: grayscale(0.85);
    opacity: 0.75;
}
.similar-card__btn {
    border-radius: var(--vcu-radius-small);
}

/* "View All Inventory" button under Featured Vehicles */
.featured-cars__more {
    margin-top: 2.25rem;
    text-align: center;
}
.featured-cars__more-btn {
    padding: 0.8rem 2rem;
    font-weight: 700;
}
.featured-cars__more-btn i {
    margin-left: 0.35rem;
}

/* Same yellow edge as the Contact page cards, on the Referral and Reserve forms */
.ref-form-card,
.app-card {
    border-left: 5px solid #fdd700;
}

/* ---- Mobile / tablet ---- */
/* Hero buttons: equal width. Tablet: side by side; phone: stacked, full width. */
@media (max-width: 991.98px) {
    .block-home-hero .home-hero__actions {
        flex-wrap: nowrap;
    }
    .block-home-hero .home-hero__actions .btn {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
        white-space: nowrap;
    }
}
@media (max-width: 575.98px) {
    .block-home-hero .home-hero__actions {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .block-home-hero .home-hero__actions .btn {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Header logo a bit larger on phones and tablets */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 3rem;
    }
}

/* ---- "Label on the car" (Hot / Top Pick / New Arrival / Best Deal) ---- */
.vcu-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--vcu-radius-small);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.vcu-label--hot  { background-color: rgba(217, 48, 37, 0.88); }
.vcu-label--top  { background-color: rgba(253, 215, 0, 0.92); color: #1a1a1a; }
.vcu-label--new  { background-color: rgba(26, 115, 232, 0.88); }
.vcu-label--deal { background-color: rgba(30, 158, 74, 0.88); }

/* Status + label together: stacked on the left of the photo, one under another */
.vcu-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}
.similar-card__img-wrap .vcu-badges {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
}
/* On the car page: side by side above the title */
.single-car__info-panel > .vcu-badges {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.single-car__info-panel > .vcu-badges .vcu-status { margin-bottom: 0; }

/* ---- Lower header, brand text next to the logo ---- */
#masthead .navbar { --bs-navbar-padding-y: 0.2rem; }
#masthead .navbar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1.25rem;
    gap: 0.6rem;
    padding-top: 0;
    padding-bottom: 0;
}
#masthead .navbar-brand img { height: 2.5rem; }
[data-bs-theme="dark"] .navbar-brand__text { color: #fff; }
.navbar-brand__text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    color: #14161A;
}
@media (max-width: 991.98px) {
    #masthead .navbar-brand {
        flex-direction: column;
        align-items: center;
        gap: 0.15rem;
    }
    #masthead .navbar-brand img { height: 2.1rem; }
    .navbar-brand__text { font-size: 0.55rem; letter-spacing: 0.1em; }
}

/* ---- Home hero: title level with the slider, shorter slider ---- */
.block-home-hero { padding: 1.8rem 0 2rem; }
.block-home-hero .home-hero__top { margin-bottom: 1.6rem; }
.block-home-hero .home-hero__spotlight-img { height: 16rem; }
@media (max-width: 991.98px) {
    .block-home-hero { padding: 1.2rem 0 1.4rem; }
    .block-home-hero .home-hero__spotlight-img { height: 11.5rem; }
    .block-home-hero .home-hero__spotlight-col { margin-top: 1.2rem; }
}

/* Specs list on the car page: a long value (Engine) must not squeeze the label into "Engin / e". */
.single-car .single-car__spec { gap: 1rem; }
.single-car .single-car__spec-label { flex: 0 0 auto; white-space: nowrap; }
.single-car .single-car__spec-value { min-width: 0; text-align: right; overflow-wrap: anywhere; }
