:root{--charcoal:#1a1a1a;--orange:#f05a28;--offwhite:#f4f4f2;--steel:#6b6b6b;--ink:#161616}
body{font-family:Arial,Helvetica,sans-serif;background:#fff;color:var(--ink)}
.bg-charcoal{background:var(--charcoal)!important}.text-orange{color:var(--orange)!important}.btn-orange{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:700}.btn-orange:hover{background:#d84b1d;border-color:#d84b1d;color:#fff}
.brand-lockup{font-weight:900;letter-spacing:-.06em;color:#fff;text-decoration:none}.brand-lockup span{color:var(--orange)}

.search-panel{margin-top:-24px;position:relative;z-index:2}.search-card{background:#fff;border-radius:14px;box-shadow:0 12px 35px rgba(0,0,0,.15);padding:24px}
.section-kicker{color:var(--orange);font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.8rem}.section-title{font-weight:900;letter-spacing:-.03em}
.vehicle-card{border:0;box-shadow:0 7px 22px rgba(0,0,0,.08);height:100%;overflow:hidden}.vehicle-card img{aspect-ratio:4/3;object-fit:cover;background:#eee}.price{font-size:1.55rem;font-weight:900;color:var(--orange)}
.feature-strip{background:var(--charcoal);color:#fff}.feature-strip .feature{padding:28px}.feature-strip h3{font-size:1.15rem;font-weight:800}.feature-strip p{color:#bbb;margin:0}
.newsletter{background:#f2f2ef;border-left:6px solid var(--orange)}.site-footer{background:#111;color:#fff}.site-footer a{color:#ccc;text-decoration:none}.site-footer a:hover{color:#fff}

.site-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 240px;
    object-fit: contain;
}

.navbar-brand {
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (max-width: 767.98px) {
    .site-logo {
        height: 55px;
        max-width: 190px;
    }
}
@media (max-width: 478px) {
    .search-card {
        margin-top: 0;
    }
}

/* ========================================
   HOMEPAGE HERO CAROUSEL
   ======================================== */

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* Dark gradient behind headline */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(8,8,8,.92) 0%,
            rgba(8,8,8,.78) 31%,
            rgba(8,8,8,.48) 52%,
            rgba(8,8,8,.12) 76%,
            rgba(8,8,8,.04) 100%
        );
}


/* Fixed content over rotating images */

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-content a {
    pointer-events: auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .95;
    text-shadow: 0 2px 15px rgba(0,0,0,.25);
}

.hero-content .eyebrow {
    color: var(--orange);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero-content .lead {
    max-width: 680px;
    color: rgba(255,255,255,.92);
}


/* Carousel arrows */

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 4;
    width: 6%;
    opacity: .55;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}


/* Smooth fade */

.hero-carousel .carousel-fade .carousel-item {
    transition: opacity .9s ease-in-out;
}

@media (max-width: 767.98px) {

    .hero-carousel {
        height: 500px;
    }

    .hero-slide {
        object-position: 65% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8,8,8,.90) 0%,
                rgba(8,8,8,.72) 55%,
                rgba(8,8,8,.30) 100%
            );
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .lead {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
}
@media (max-width: 478px) {

    .hero-carousel {
        height: 475px;
    }

    .hero-slide {
        object-position: 67% center;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content .eyebrow {
        font-size: .72rem;
        letter-spacing: .10em;
    }

    .hero-content .lead {
        font-size: .95rem;
        line-height: 1.5;
    }

    .hero-content .btn-lg {
        font-size: .95rem;
        padding: .7rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .search-panel {
        margin-top: -16px;
    }
	.search-panel {
    margin-top: 32px;
}
}


@media (min-width: 1166px) and (max-width: 1199.98px) {
    .hero-content .btn-lg {
        padding: .65rem .9rem;
        font-size: .95rem;
    }
}
/* Vehicle card status treatment */
.vehicle-card {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}

.vehicle-card--featured {
    border: 1px solid rgba(240, 90, 40, .48);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .10),
        0 0 0 1px rgba(240, 90, 40, .10),
        0 0 18px rgba(240, 90, 40, .20);
}

.vehicle-card--featured:hover,
.vehicle-card--pending:hover {
    transform: translateY(-3px);
}

.vehicle-card--featured:hover {
    box-shadow:
        0 14px 30px rgba(0, 0, 0, .14),
        0 0 0 1px rgba(240, 90, 40, .18),
        0 0 24px rgba(240, 90, 40, .28);
}

.vehicle-card--pending {
    border: 1px solid rgba(202, 138, 4, .55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10), 0 0 16px rgba(202, 138, 4, .14);
}

.vehicle-card--sold {
    border: 1px solid rgba(108, 117, 125, .45);
    box-shadow: 0 7px 18px rgba(0,0,0,.07);
    opacity: .88;
}

.vehicle-card--sold > img,
.vehicle-detail--sold #mainVehiclePhoto,
.vehicle-detail--sold .row img {
    filter: grayscale(1) saturate(0) contrast(.95);
}

.vehicle-ribbon {
    position: absolute;
    top: 18px;
    left: -44px;
    z-index: 5;
    transform: rotate(-45deg);
    min-width: 150px;
    text-align: center;
    color: #fff;
    padding: 8px 38px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
    pointer-events: none;
}

.vehicle-ribbon--featured {
    background: linear-gradient(135deg, #ff7a3d, #f05a28);
}

.vehicle-ribbon--pending {
    background: linear-gradient(135deg, #e6ad13, #b77900);
     width: 205px;
    min-width: 205px;
    left: -62px;
    padding-left: 10px;
    padding-right: 20px;
    font-size: 10px;
    letter-spacing: .04em;
    white-space: nowrap;
    box-sizing: border-box;
}

.vehicle-ribbon--sold {
    background: linear-gradient(135deg, #5f6368, #2f3133);
}

.vehicle-detail-photo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.vehicle-ribbon--detail {
    top: 24px;
    left: -42px;
    min-width: 170px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 12px;
}

.vehicle-card--featured > img {
    filter: saturate(1.03) contrast(1.02);
}

/* Search panel positioning: slight overlap on full desktop, normal spacing below 1200px */
.search-panel {
    margin-top: -24px;
}

@media (max-width: 1399.98px) {
    .search-panel {
        margin-top: 12px;
    }
}
