.inventory-hero{

    position: relative;

    background-image:
        linear-gradient(
            rgba(0,0,0,.55),
            rgba(0,0,0,.55)
        ),
        url("../images/hero/inventory-banner.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height:600px;

    display:flex;
    align-items:center;

    color:#fff;

}

.inventory-content{

    max-width:650px;

    padding:0 40px;

    margin-left:180px;

}

/*====================================================
    VEHICLE GRID
====================================================*/

.vehicle-grid{

    max-width:1400px;

    margin:25px auto;

    padding:0 40px;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:35px;

}

.vehicle-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 50px rgba(0,0,0,.18);

}

.vehicle-image{

    position:relative;

    height:260px;

    overflow:hidden;

    background:#f5f5f5;

}

.vehicle-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}

.vehicle-card:hover .vehicle-image img{

    transform:scale(1.08);

}

/*====================================================
    VEHICLE DETAILS
====================================================*/

.vehicle-details{

    padding:25px;

    display:flex;

    flex-direction:column;

    gap:15px;

}

.vehicle-brand{

    font-size:14px;

    font-weight:600;

    color:var(--secondary);

    text-transform:uppercase;

    letter-spacing:1px;

}

.vehicle-title{

    font-size:28px;

    font-weight:700;

    color:var(--dark);

    line-height:1.2;

}

.vehicle-price{

    font-size:32px;

    font-weight:700;

    color:var(--primary);

}

.vehicle-spec{
    padding:10px 14px;
    font-size:14px;
}

.vehicle-spec{

    display:flex;

    align-items:center;

    gap:10px;

    color:#666;

    font-size:15px;

}

.vehicle-spec i{

    color:var(--secondary);

    width:20px;

}

.vehicle-description{

    display:-webkit-box;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

/*====================================================
    STATUS BADGE
====================================================*/

.vehicle-status{

    position:absolute;

    top:18px;

    left:18px;

    background:#10B981;

    color:#fff;

    padding:8px 18px;

    border-radius:50px;

    font-size:13px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.5px;

    z-index:5;

}

.vehicle-price{

    font-size:34px;

    font-weight:700;

    color:#B80000;

    margin:5px 0;

}

.vehicle-divider{

    height:1px;

    background:#ECECEC;

    margin:15px 0;

}

.vehicle-actions{

    display:flex;

    gap:12px;

    margin-top:auto;

}

.vehicle-details-btn{

    flex:1;

    background:#B80000;

    color:#fff;

    padding:14px;

    border:none;

    border-radius:10px;

    text-align:center;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}

.vehicle-details-btn:hover{

    background:#8B0000;

    transform:translateY(-2px);

}

.vehicle-compare-btn{

    width:52px;

    border:none;

    border-radius:10px;

    background:#F4F4F4;

    cursor:pointer;

    transition:.3s;

    font-size:18px;

}

.vehicle-compare-btn:hover{

    background:#D4AF37;

    color:#fff;

}

/* ==========================================
   INVENTORY PAGE - HEADER LOGO
   ========================================== */

.navbar .logo img {
    width: 290px;
    height: auto;
    display: block;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo a {
    display: flex;
    align-items: center;
}

/* ==========================================
   INVENTORY HEADER - DESKTOP
   ========================================== */

header {
    background: var(--primary-dark);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 110px;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    flex-shrink: 0;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 35px;
}

.navbar .nav-links li {
    list-style: none;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.navbar .nav-links a.active {
    color: var(--secondary);
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
}

.navbar .inventory-btn {
    background: var(--primary);
    color: #fff;
    padding: 16px 28px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.navbar .menu-toggle {
    display: none;
}

/* =========================================================
   INVENTORY HERO - PREMIUM REFINEMENT
   ========================================================= */

.inventory-hero {
    min-height: 520px;
    height: 58vh;
    max-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.inventory-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 25, 0.78) 0%,
            rgba(4, 12, 25, 0.55) 42%,
            rgba(4, 12, 25, 0.25) 100%
        );
    z-index: 1;
}

.inventory-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 60px 0;
}

.inventory-hero-content .eyebrow {
    display: inline-block;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.inventory-hero-content h1 {
    max-width: 850px;
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.inventory-hero-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.7;
}

/* =========================================================
   HASKE BRIGHT MOTORS
   INVENTORY HERO - PREMIUM DESIGN
   ========================================================= */

.inventory-hero {
    min-height: 520px;
    height: 58vh;
    max-height: 680px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;
}

/* Premium dark overlay */
.inventory-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 12, 25, 0.78) 0%,
            rgba(4, 12, 25, 0.55) 45%,
            rgba(4, 12, 25, 0.25) 100%
        );

    z-index: 1;
}

/* Hero content */
.inventory-content {
    position: relative;
    z-index: 2;

    width: min(1200px, 90%);

    margin: 0 auto;

    padding: 60px 0;
}

/* Small gold label */
.inventory-content .eyebrow {
    display: inline-block;

    color: var(--secondary);

    font-size: 14px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;

    margin-bottom: 22px;
}

/* Main heading */
.inventory-content h1 {
    max-width: 950px;

    margin: 0 0 24px;

    color: #fff;

    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1.5px;
}

/* Description */
.inventory-content p {
    max-width: 700px;

    margin: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 19px;
    line-height: 1.7;
}

/* =========================================================
   INVENTORY HERO - DESKTOP HEADING
   ========================================================= */

@media (min-width: 769px) {

    .inventory-content h1 {
        max-width: none;
        width: max-content;

        font-size: clamp(48px, 4.5vw, 68px);

        white-space: nowrap;
    }

}

/* =========================================================
   INVENTORY SEARCH — PREMIUM FILTER PANEL
   ========================================================= */

.inventory-filters {
    background: #f7f8fa;
    padding: 70px 20px 90px;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;

    background: #ffffff;

    padding: 45px;

    border-radius: 24px;

    border: 1px solid rgba(10, 30, 60, 0.08);

    box-shadow:
        0 20px 50px rgba(4, 18, 40, 0.08);
}

/* Heading */

.filter-container h2 {
    margin: 0 0 8px;

    font-size: 32px;
    line-height: 1.2;

    font-weight: 800;

    color: var(--primary);
}

.filter-container > p {
    margin: 0;

    color: #667085;

    font-size: 16px;

    line-height: 1.6;
}

/* Filter layout */

.filter-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1fr;

    gap: 22px;

    margin-top: 35px;
}

/* Labels */

.filter-grid label {
    display: block;

    margin-bottom: 9px;

    color: #172033;

    font-size: 14px;

    font-weight: 700;
}

/* Inputs */

.filter-grid input,
.filter-grid select {
    width: 100%;

    height: 54px;

    padding: 0 16px;

    border: 1px solid #d9dee7;

    border-radius: 12px;

    background: #ffffff;

    color: #172033;

    font-size: 15px;

    font-family: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Placeholder */

.filter-grid input::placeholder {
    color: #98a2b3;
}

/* Focus */

.filter-grid input:focus,
.filter-grid select:focus {
    outline: none;

    border-color: var(--secondary);

    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.12);
}

/* Search button area */

.filter-buttons {
    margin-top: 28px;
}

/* Search button */

.filter-buttons button,
#filterForm button {
    width: 100%;

    min-height: 54px;

    border: none;

    border-radius: 14px;

    background: var(--secondary);

    color: #111827;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.filter-buttons button:hover,
#filterForm button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(212, 175, 55, 0.25);
}

/* =========================================================
   HASKE BRIGHT MOTORS - PREMIUM VEHICLE CARDS
   ========================================================= */

.vehicle-grid {
    max-width: 1400px;
    margin: 35px auto 70px;
    padding: 0 40px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;

    align-items: stretch;
}


/* =========================
   VEHICLE CARD
   ========================= */

.vehicle-card {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 620px;

    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(10, 28, 55, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.vehicle-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vehicle-card:hover {
    transform: translateY(-8px);

    border-color: rgba(212, 175, 55, 0.45);

    box-shadow:
        0 20px 45px rgba(10, 28, 55, 0.14);
}


/* =========================
   VEHICLE IMAGE
   ========================= */

.vehicle-image {
    position: relative;

    height: 270px;
    min-height: 270px;

    overflow: hidden;

    background: #f5f6f8;
}

.vehicle-image img {
    width: 100%;
    height: 100%;

    display: block;

    /*
       Contain keeps the complete vehicle visible.
       This is better for dealership inventory photos.
    */
    object-fit: cover;

    object-position: center;

    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.04);
}


/* =========================
   VEHICLE DETAILS
   ========================= */

.vehicle-details {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px 25px 25px;

    gap: 14px;
}


/* =========================
   BRAND
   ========================= */

.vehicle-brand {
    font-size: 12px;
    font-weight: 700;

    color: var(--secondary);

    text-transform: uppercase;
    letter-spacing: 1.5px;

    min-height: 16px;
}


/* =========================
   VEHICLE TITLE
   ========================= */

.vehicle-title {
    margin: 0;

    font-size: 24px;
    line-height: 1.2;

    font-weight: 750;

    color: #0b2545;
}


/* =========================
   PRICE
   ========================= */

.vehicle-price {
    margin: 2px 0 4px;

    font-size: 27px;
    line-height: 1.2;

    font-weight: 800;

    color: #c62828;
}


/* =========================
   SPECIFICATIONS
   ========================= */

.vehicle-spec {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 9px 12px;

    background: #f7f8fa;

    border: 1px solid #edf0f3;

    border-radius: 30px;

    color: #26364a;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}

.vehicle-spec i {
    color: var(--secondary);

    width: 18px;

    text-align: center;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


/* =========================
   DESCRIPTION
   ========================= */

.vehicle-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 48px;
    margin: 2px 0 4px;
}


/* =========================
   VEHICLE ACTIONS
   ========================= */

.vehicle-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: auto;
    padding-top: 8px;
}

.vehicle-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.vehicle-actions a,
.vehicle-actions button {
    width: 100%;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


/* VIEW DETAILS */

.vehicle-actions .primary-btn {
    background: var(--secondary);
    color: #111;

    border: 1px solid var(--secondary);
}

.vehicle-actions .primary-btn:hover {
    background: #c9a52f;

    transform: translateY(-2px);
}


/* COMPARE */

.vehicle-actions .secondary-btn {
    background: #172337;
    color: #fff;

    border: 1px solid #172337;
}

.vehicle-actions .secondary-btn:hover {
    background: #0b2545;

    transform: translateY(-2px);
}


/* =========================
   STATUS BADGE
   ========================= */

.vehicle-status {
    position: absolute;

    top: 16px;
    left: 16px;

    z-index: 5;

    padding: 9px 16px;

    border-radius: 30px;

    font-size: 12px;
    font-weight: 700;

    color: #fff;

    background: #16a34a;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


/* SOLD */

.vehicle-status.sold {
    background: #dc2626;
}


/* =========================
   AVAILABLE VEHICLES HEADER
   ========================= */

.inventory-summary {
    max-width: 1400px;

    margin: 30px auto 0;

    padding: 0 40px;
}

.inventory-summary h2 {
    margin-bottom: 6px;

    color: #0b2545;

    font-size: 30px;
    font-weight: 750;
}

.inventory-summary p {
    margin: 0;

    color: #667085;

    font-size: 16px;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {

    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .vehicle-grid {
        grid-template-columns: 1fr;

        padding: 0 20px;

        gap: 22px;
    }

    .vehicle-image {
        height: 240px;
        min-height: 240px;
    }

    .vehicle-details {
        padding: 20px;
    }

    .vehicle-title {
        font-size: 22px;
    }

    .vehicle-price {
        font-size: 25px;
    }

    .vehicle-actions {
        grid-template-columns: 1fr;
    }

    .inventory-summary {
        padding: 0 20px;
    }

}

.status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.status-badge.available {
    background: #16a34a;
}

.status-badge.sold {
    background: #dc2626;
}

/* =========================================================
   HASKE BRIGHT MOTORS
   INVENTORY PAGE - MOBILE HEADER FIX
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       COMPACT MOBILE HEADER
       ----------------------------------------------------- */

    header {
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 !important;
        background: #061326 !important;
    }

    .navbar {
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        padding: 4px 16px !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }


    /* -----------------------------------------------------
       LOGO
       ----------------------------------------------------- */

    .navbar .logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .navbar .logo a {
        display: flex !important;
        align-items: center !important;
    }

    .navbar .logo img {
        width: 115px !important;
        height: 54px !important;
        max-width: 115px !important;
        object-fit: contain !important;
        display: block !important;
    }


    /* -----------------------------------------------------
       HIDE DESKTOP NAVIGATION
       ----------------------------------------------------- */

    .navbar .nav-links {
        position: absolute !important;

        top: 64px !important;
        left: 0 !important;

        width: 100% !important;

        background: #061326 !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 0 !important;

        max-height: 0 !important;
        overflow: hidden !important;

        padding: 0 !important;

        transition: max-height .35s ease !important;

        z-index: 2000 !important;
    }


    /* OPEN MOBILE MENU */

    .navbar .nav-links.active {
        max-height: 400px !important;
        padding: 10px 0 16px !important;
    }

    .navbar .nav-links li {
        width: 100% !important;
        text-align: center !important;
    }

    .navbar .nav-links a {
        display: block !important;
        width: 100% !important;

        padding: 14px 20px !important;

        font-size: 15px !important;
        color: #ffffff !important;
    }

    .navbar .nav-links a.active {
        color: #D4AF37 !important;
    }


    /* -----------------------------------------------------
       HIDE CONTACT SALES BUTTON ON MOBILE
       ----------------------------------------------------- */

    .navbar .nav-actions {
        display: none !important;
    }


    /* -----------------------------------------------------
       HAMBURGER MENU
       ----------------------------------------------------- */

    .navbar .menu-toggle {
        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        width: 44px !important;
        height: 44px !important;

        margin-left: auto !important;

        color: #ffffff !important;

        font-size: 30px !important;

        cursor: pointer !important;

        flex-shrink: 0 !important;
    }

    .navbar .menu-toggle i {
        color: #ffffff !important;
    }


    /* -----------------------------------------------------
       INVENTORY HERO
       ----------------------------------------------------- */

    .inventory-hero {
        min-height: 420px !important;
        height: 420px !important;

        margin-top: 0 !important;

        display: flex !important;
        align-items: center !important;
    }

    .inventory-content {
        width: 90% !important;
        margin: 0 auto !important;
        padding: 70px 0 40px !important;

        text-align: left !important;
    }

    .inventory-content h1 {
        font-size: 42px !important;
        line-height: 1.05 !important;

        margin-bottom: 18px !important;
    }

    .inventory-content p {
        font-size: 16px !important;
        line-height: 1.55 !important;

        max-width: 100% !important;
    }

    .inventory-content span {
        font-size: 12px !important;
        letter-spacing: 2px !important;
    }
}

/* =========================================================
   HASKE MOTORS INVENTORY
   FINAL SPACING FIX
   ========================================================= */


/* Remove artificial space around inventory */

.inventory-section {
    margin: 0 !important;
    padding: 0 !important;
}


/* Vehicle grid */

.inventory-section .vehicle-grid {

    margin: 20px auto 0 !important;

    padding-left: 40px;
    padding-right: 40px;

    gap: 28px;
}


/* Never create artificial card height */

.inventory-section .vehicle-card {

    min-height: 0 !important;

    height: auto !important;
}


/* =========================================================
   LOAD MORE
   ========================================================= */

/* The parent should not create a giant blank area */

.load-more-section {

    margin: 20px 0 30px !important;

    padding: 0 !important;

}


/* When JS hides the button, hide the entire section */

.load-more-section:has(#loadMoreBtn[style*="display: none"]) {

    display: none !important;

}


/* =========================================================
   WHY BUY FROM US
   ========================================================= */

.inventory-benefits {

    margin-top: 0 !important;

    padding-top: 55px !important;

    padding-bottom: 65px !important;

}


/* Make the heading sit naturally after inventory */

.inventory-benefits .section-title {

    margin-top: 0 !important;
    margin-bottom: 35px !important;

}


/* =========================================================
   MOBILE INVENTORY SPACING
   ========================================================= */

@media (max-width: 700px) {

    .inventory-section .vehicle-grid {

        margin-top: 18px !important;

        padding-left: 20px;
        padding-right: 20px;

        gap: 22px;
    }


    .load-more-section {

        margin: 15px 0 20px !important;
    }


    .inventory-benefits {

        padding-top: 40px !important;

        padding-bottom: 45px !important;
    }


    .inventory-benefits .section-title {

        margin-bottom: 25px !important;
    }

}