/* Ensure proper container behavior */
.carlistings-container {
    overflow: visible; /* Allow cards to be fully visible */
    width: 100%;
    max-width: 1680px;
    box-sizing: border-box;
}
/* Override any theme container limitations */
.ast-container, 
.ast-container-fluid, 
.ast-primary-content-area, 
.entry-content, 
.site-content, 
.site-main, 
.content-area, 
.page-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.carrosserie-wrapper {
    position: relative;
    max-width: min(100%, 1680px);
    margin: 0 auto clamp(3px, 0.6vw, 8px);
    padding: 0 max(16px, 1.5vw);
    width: 100%;
    box-sizing: border-box;
}

.carrosserie-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    background-color: transparent !important;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    padding: 0;
}

.carrosserie-scroll-btn::before {
    content: '';
    width: clamp(16px, 2vw, 20px);
    height: clamp(16px, 2vw, 20px);
    border-style: solid;
    border-width: clamp(2.5px, 0.3vw, 3px) clamp(2.5px, 0.3vw, 3px) 0 0;
    border-color: #c31d1f;
    display: inline-block;
    transition: transform 0.3s ease;
}

.carrosserie-scroll-btn:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
    background-color: transparent !important;
}

.scroll-left {
    left: 15px;
}

.scroll-right {
    right: 15px;
}

.scroll-left::before {
    transform: rotate(-135deg);
}

.scroll-right::before {
    transform: rotate(45deg);
}

.carrosserie-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(3px, 0.45vw, 8px);
    padding: clamp(6px, 1vw, 10px) clamp(48px, 4vw, 64px);
    margin: 0 auto;
    background: #ffffff;
    border-radius: clamp(8px, 1vw, 12px);
    box-shadow: none;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-padding-left: clamp(48px, 4vw, 64px);
    scroll-padding-right: clamp(48px, 4vw, 64px);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
    max-width: 1680px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-x;
}

.carrosserie-icons:active,
.carrosserie-icons:focus {
    cursor: grabbing !important;
    outline: none;
}

.carrosserie-icons * {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carrosserie-icons img {
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.carrosserie-icons a {
    pointer-events: auto;
    cursor: pointer;
}

.carrosserie-icons a:active {
    cursor: grabbing !important;
}

.carrosserie-icons::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.carrosserie-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: clamp(3px, 0.5vw, 5px);
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: clamp(4px, 0.6vw, 6px);
    min-width: clamp(96px, 7vw, 118px);
    flex: 0 0 auto;
    border: 2px solid transparent;
}

.carrosserie-icon:hover {
    background: rgba(195, 29, 31, 0.05);
    border-color: #c31d1f;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(195, 29, 31, 0.1);
}

.carrosserie-icon img {
    width: clamp(82px, 6vw, 106px);
    height: auto;
    margin-bottom: clamp(3px, 0.4vw, 5px);
    transition: all 0.25s ease;
    opacity: 0.9;
}

.carrosserie-icon:hover img,
.carrosserie-icon.active img {
    opacity: 1;
}

.carrosserie-icon span {
    font-size: clamp(13px, 1.08vw, 15px);
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.carrosserie-icon.active {
    background: rgba(195, 29, 31, 0.05);
    border-color: #c31d1f;
    box-shadow: 0 2px 8px rgba(195, 29, 31, 0.1);
}

.carrosserie-icon.active span {
    color: #c31d1f;
}

.inventory-hero {
    width: 100%;
    padding: clamp(32px, 4vw, 50px) max(18px, 4vw) clamp(14px, 2.4vw, 28px);
    background: linear-gradient(135deg, #062f66 0%, #003B7E 58%, #0b559f 100%);
    color: #fff;
    margin: 0 0 clamp(12px, 2vw, 22px);
}

.inventory-hero-content {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.inventory-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.inventory-hero h1 {
    color: #fff;
    max-width: 880px;
    margin: 0 0 14px;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.08;
}

.inventory-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: clamp(16px, 1.5vw, 19px);
}

.inventory-hero-search {
    display: flex;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
    padding: 6px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0,0,0,.16);
}

.inventory-hero-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 16px;
    background: #fff;
    color: #172033;
}

.inventory-hero-search input:focus {
    outline: 3px solid rgba(255,255,255,.4);
}

.inventory-hero-search button {
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    background: #c31d1f;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.inventory-hero-search button:hover {
    background: #a31819;
    transform: translateY(-1px);
}

.inventory-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px auto 0;
    justify-content: center;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

.inventory-quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.inventory-quick-links a:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.inventory-location-card {
    display: grid;
    gap: 3px;
    max-width: 520px;
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.9);
}

.inventory-location-card strong {
    color: #fff;
    font-size: 16px;
}

.inventory-location-card-bottom {
    margin: 18px auto 0;
    background: #fff;
    border: 1px solid #eef0f3;
    color: #334155;
    text-align: center;
}

.inventory-location-card-bottom strong {
    color: #003B7E;
}

.inventory-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.inventory-stats span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    padding: 10px 14px;
}

.inventory-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.inventory-trust-strip span {
    color: #fff;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
}

.inventory-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.inventory-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.inventory-hero-action:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(255,255,255,.18);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.inventory-hero-action-primary {
    background: #c31d1f;
    border-color: #c31d1f;
}

.inventory-hero-action-primary:hover {
    background: #a31819;
    border-color: #a31819;
}

.inventory-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    box-shadow: 0 3px 16px rgba(0,0,0,.04);
    color: #333;
}

.inventory-range {
    color: #777;
    font-size: 14px;
}

.clear-filter-link {
    color: #c31d1f;
    font-weight: 700;
    text-decoration: none;
}

.inventory-mobile-filter-toolbar {
    display: none;
    width: 100%;
    padding: 0 max(15px, 2vw) 14px;
    box-sizing: border-box;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.inventory-filter-toggle,
.inventory-mobile-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}

.inventory-filter-toggle {
    flex: 1;
    max-width: 420px;
    border: 0;
    background: #003B7E;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,59,126,.18);
}

.inventory-mobile-clear-filters {
    padding: 0 14px;
    background: #fff;
    color: #c31d1f;
    border: 1px solid #ead2d3;
}

.page-layout {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 max(15px, 2vw) clamp(25px, 4vw, 40px);
    justify-content: center;
    flex-direction: row-reverse;
    box-sizing: border-box;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

.filters-sidebar {
    flex: 0 0 clamp(250px, 20vw, 320px);
    background: #ffffff;
    padding: clamp(16px, 1.9vw, 24px);
    border-radius: clamp(10px, 1.2vw, 14px);
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    order: 2;
    z-index: 5;
}

@media (min-width: 992px) {
    .filters-sidebar.is-scroll-fixed {
        position: fixed;
        top: 90px;
        z-index: 50;
    }
}

.filters-sidebar h3 {
    margin-top: 0;
    margin-bottom: clamp(13px, 1.5vw, 18px);
    color: #333;
    font-size: clamp(17px, 1.5vw, 19px);
    font-weight: 600;
}

.filters-sidebar .filter-group {
    margin-bottom: clamp(12px, 1.3vw, 16px);
}

.filters-sidebar .filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 500;
}

.filters-sidebar select,
.filters-sidebar input {
    width: 100%;
    height: clamp(36px, 3.7vw, 40px);
    padding: 6px 10px;
    margin-bottom: 0;
    border: 1px solid #e0e0e0;
    border-radius: clamp(6px, 0.8vw, 8px);
    font-size: clamp(14px, 1.2vw, 15px);
    transition: all 0.3s ease;
    background: #f8f8f8;
    -webkit-appearance: menulist;
    appearance: menulist;
}

.filters-sidebar select:hover,
.filters-sidebar input:hover {
    border-color: #c31d1f;
}

.filters-sidebar select:focus,
.filters-sidebar input:focus {
    outline: none;
    border-color: #c31d1f;
    box-shadow: 0 0 0 3px rgba(195, 29, 31, 0.1);
}

.year-range {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.year-range select {
    width: 48%;
}

.filters-sidebar .reset-button {
    width: 100%;
    padding: 10px 12px;
    background: #c31d1f;
    color: white;
    border: none;
    border-radius: clamp(6px, 0.8vw, 8px);
    cursor: pointer;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(195, 29, 31, 0.2);
}

.filters-sidebar .reset-button:hover {
    background: #a31819;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(195, 29, 31, 0.3);
}

.sort-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(10px, 1.5vw, 15px);
    margin-bottom: clamp(20px, 3vw, 30px);
    padding: 0;
    width: 100%;
    flex-wrap: wrap;
}

.sort-container select {
    padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.6vw, 16px);
    border: 1px solid #e0e0e0;
    border-radius: clamp(6px, 0.8vw, 8px);
    font-size: clamp(14px, 1.2vw, 15px);
    width: clamp(150px, 15vw, 180px);
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sort-container input {
    padding: clamp(10px, 1.2vw, 12px) clamp(12px, 1.6vw, 16px);
    border: 1px solid #e0e0e0;
    border-radius: clamp(6px, 0.8vw, 8px);
    font-size: clamp(14px, 1.2vw, 15px);
    width: clamp(200px, 20vw, 250px);
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sort-container select:hover,
.sort-container input:hover {
    border-color: #c31d1f;
}

.sort-container select:focus,
.sort-container input:focus {
    outline: none;
    border-color: #c31d1f;
    box-shadow: 0 0 0 3px rgba(195, 29, 31, 0.1);
}

/* Grid-based card layout with auto-fit for smooth resizing */
.carlistings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-fit columns with minimum width */
    gap: 20px; /* Gap between cards */
    width: 100%;
    margin: 0 auto;
    padding: 0 0 20px 0; /* Added bottom padding for spacing */
    box-sizing: border-box;
    max-width: 100%; /* Use full width available */
}

/* Ensure maximum of 3 columns on larger screens */
@media (min-width: 1200px) {
    .carlistings-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.carlistings-card {
    border: 2px solid transparent;
    border-radius: clamp(12px, 1.6vw, 16px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    width: 100%; /* Take full width of grid cell */
}

/* Make sure card links take up the full card space */
.carlistings-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.carlistings-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.carlistings-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(12px, 1.6vw, 16px) clamp(12px, 1.6vw, 16px) 0 0;
}

.carlistings-card picture {
    display: block;
    width: 100%;
}

.vehicle-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef1f5, #dde3eb);
    color: #667;
    font-weight: 700;
}

.carlistings-card .content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 1180px;
    box-sizing: border-box;
}

.carlistings-card .content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.vehicle-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.year-badge {
    flex: 0 0 auto;
    background: #eef5ff;
    color: #003B7E;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.carlistings-card .content .vehicle-type {
    color: #333 !important;
    font-size: 16px;
    font-weight: 600;
}

.vehicle-spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.vehicle-spec-list li {
    background: #f6f7f9;
    border: 1px solid #eceff3;
    border-radius: 999px;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 8px;
}

.carlistings-card .content p {
    font-size: 14px;
    margin: 8px 0;
    color: #666;
    line-height: 1.5;
}

.carlistings-card .content .price {
    font-size: 20px;
    font-weight: 700;
    color: #c31d1f;
    margin-top: 15px;
}

.carlistings-card .content .price.price-sale-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.carlistings-card .content .price .price-old {
    font-size: 16px;
    font-weight: 800;
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-color: #E4002B;
    text-decoration-thickness: 2px;
}

.carlistings-card .content .price .price-current {
    font-size: 20px;
    font-weight: 800;
    color: #E4002B;
}

.carlistings-card .content .price .price-current span {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.carlistings-card .content .price span {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.carlistings-card .content .lease-line {
    font-size: 18px;
    color: #003B7E !important;
    font-weight: 700;
}

.vehicle-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #003B7E;
    color: #fff;
    font-weight: 800;
    transition: background .2s ease;
}

.carlistings-card:hover .vehicle-card-cta {
    background: #003B7E;
}

/* Keep inventory vehicle images visually stable on hover: no color/zoom/lift effects. */
.carlistings-card:hover,
.carlistings-card:hover img,
.carlistings-card:hover picture,
.carlistings-card a:hover img {
    transform: none !important;
    filter: none !important;
}

.inventory-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0 6px;
}

.inventory-pagination a {
    min-width: 42px;
    text-align: center;
    padding: 10px 13px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e4e8ee;
    color: #003B7E;
    text-decoration: none;
    font-weight: 800;
}

.inventory-pagination a.active,
.inventory-pagination a:hover {
    background: #c31d1f;
    border-color: #c31d1f;
    color: #fff;
}

/* Special rule for single card to prevent it from getting too wide */
.carlistings-container:has(.carlistings-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .filters-sidebar {
        flex: 0 0 clamp(220px, 20vw, 280px);
    }
    
    .carlistings-container {
        grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns */
        gap: 15px;
    }
    
    .page-layout {
        gap: clamp(15px, 2vw, 25px);
    }
}

/* Specific fix for 1024x800 resolution and similar sizes */
@media (max-width: 1024px) {
    .carlistings-container {
        grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns */
        gap: 15px;
    }
}

/* Fix for intermediate sizes to prevent partial cards */
@media (min-width: 601px) and (max-width: 900px) {
    .carlistings-container {
        grid-template-columns: repeat(2, 1fr); /* Force exactly 2 columns */
    }
}

@media (max-width: 991px) {
    .inventory-mobile-filter-toolbar {
        display: none; /* Hide toggle button — filters always visible on mobile */
    }

    .page-layout {
        flex-direction: column;
        padding: 0 max(15px, 2vw) clamp(20px, 3vw, 30px);
    }

    .filters-sidebar {
        display: block; /* Always show filters on mobile */
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
        margin: 0 0 10px 0;
        padding: 10px;
        max-height: none;
        overflow: visible;
        order: -1; /* Appear above car listings on mobile */
    }

    .filters-sidebar h3 {
        margin-bottom: 8px;
        font-size: 16px;
    }

    .filters-sidebar form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        align-items: end;
    }

    .filters-sidebar .filter-group {
        margin-bottom: 0;
        min-width: 0;
    }

    .filters-sidebar .filter-group label {
        margin-bottom: 2px;
        font-size: 12px;
        line-height: 1.15;
    }

    .filters-sidebar select,
    .filters-sidebar input {
        height: 30px;
        min-height: 30px;
        padding: 3px 7px;
        font-size: 12px;
        border-radius: 6px;
    }

    .year-range {
        gap: 5px;
    }

    .filters-sidebar .reset-button {
        height: 30px;
        padding: 3px 8px;
        margin-top: 0;
        font-size: 12px;
        border-radius: 6px;
    }
}

@media (max-width: 768px) {
    .inventory-summary-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sort-container {
        justify-content: center;
    }
    
    .carlistings-container {
        gap: 10px; /* Further reduce gap for smaller screens */
    }
}

/* Fix for very narrow screens */
@media (max-width: 650px) {
    .carlistings-container {
        grid-template-columns: 1fr; /* Single column for narrow screens */
    }
}

@media (max-width: 600px) {
    .inventory-hero-search {
        flex-direction: column;
        padding: 7px;
    }

    .inventory-hero-search button {
        min-height: 48px;
    }

    .sort-container {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .sort-container input,
    .sort-container select {
        width: 100%;
    }
    
    .carlistings-container {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .filters-sidebar {
        padding: 8px;
    }

    .filters-sidebar form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .filters-sidebar h3 {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .filters-sidebar .filter-group label {
        font-size: 11px;
    }

    .filters-sidebar select,
    .filters-sidebar input,
    .filters-sidebar .reset-button {
        height: 28px;
        min-height: 28px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .carrosserie-wrapper {
        margin-bottom: 15px;
    }

    .carlistings-card .content {
        padding: 15px;
    }
}
