* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #1a1a1a;
}

.vehicle-search-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.filter-group select,
.filter-group input {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.search-btn, .reset-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-btn {
    background: #007bff;
    color: #fff;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.reset-btn {
    background: #6c757d;
    color: #fff;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Inventory Grid Styles */
.vehicle-inventory-container {
    display: flex;
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.search-options {
    width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.search-options h3 {
    margin-bottom: 15px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

/* Multi-Select Filter Groups */
.filter-group.multi-select {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.filter-header {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-title {
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.filter-arrow {
    font-size: 16px;
    color: #6c757d;
    transition: transform 0.2s;
}

.filter-group.expanded .filter-arrow {
    transform: rotate(180deg);
}

.filter-options {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option.selected {
    background: #e7f3ff;
    border-left: 3px solid #007bff;
}

.filter-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #6c757d;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.option-name {
    font-size: 14px;
    color: #495057;
}

.filter-option.selected .option-name {
    font-weight: 500;
    color: #007bff;
}

/* Make-specific styling */
.make-option {
    display: flex;
    align-items: center;
    gap: 12px;
}

.make-logo {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #495057;
    overflow: hidden;
}

.make-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.make-info {
    display: flex;
    flex-direction: column;
}

.make-name {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.make-count {
    font-size: 12px;
    color: #6c757d;
}

.option-section {
    padding: 8px 15px;
    background: #f8f9fa;
    font-size: 12px;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

/* Filter Actions */
.filter-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}


.apply-filters-btn,
.reset-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.apply-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.22);
    background: linear-gradient(135deg, #0c223f, #152a45);
    border-color: #fff;
}

.apply-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.2);
    border-color: #fff;
}

.reset-filters-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.22);
    background: linear-gradient(135deg, #0c223f, #152a45);
    border-color: #fff;
}

.reset-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.2);
    border-color: #fff;
}

.filter-actions .apply-filters-btn:focus,
.filter-actions .reset-filters-btn:focus {
    outline: none;
}

.filter-actions .apply-filters-btn:focus-visible,
.filter-actions .reset-filters-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
    border-color: #fff;
}

@media (max-width: 600px) {
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions button {
        width: 100%;
    }
}

/* Range Filter Styling */
.filter-group.range-filter {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.filter-group.range-filter .filter-options {
    padding: 20px 15px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.range-input-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.range-separator {
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}


.range-slider {
    position: relative;
    height: 6px;
    background: #f1f3f5;
    border-radius: 999px;
    margin: 18px 0 10px;
    overflow: visible;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
}

.range-track {
    position: absolute;
    height: 100%;
    border-radius: inherit;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.range-slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.range-slider-input:focus {
    outline: none;
}

.range-slider-input::-webkit-slider-track {
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    height: 6px;
}


.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    pointer-events: auto;
}

.range-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.45);
}

.range-slider-input::-webkit-slider-thumb:active {
    transform: scale(0.98);
}

.range-slider-input::-moz-range-track {
    background: transparent;
    border: none;
    outline: none;
    height: 6px;
}

.range-slider-input::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 3px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: none;
    pointer-events: auto;
}

.range-slider-input::-moz-range-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.range-slider-input::-moz-range-thumb:active {
    transform: scale(0.98);
}

/* Min slider (first one) */
.range-slider-input:first-of-type {
    z-index: 1;
}

/* Max slider (second one) should be on top when its value is less than middle */
.range-slider-input:last-of-type {
    z-index: 2;
}

/* Desktop Only Elements */
.desktop-only {
    display: block;
}

/* Mobile-Specific Styles */
.mobile-only {
    display: none;
}

.inventory-content {
    flex: 1;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sort Dropdown Button */
.sort-dropdown-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sort-btn {
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.sort-btn:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.sort-btn.active,
.sort-dropdown-wrapper.active .sort-btn {
    background: #E3F2FD !important;
    color: #1976D2 !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.sort-btn svg {
    width: 20px;
    height: 20px;
}

.sort-btn svg path {
    stroke: currentColor !important;
}

.sort-dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    top: 50px;
    right: 0;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.sort-dropdown-menu.show {
    display: block;
}

.sort-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: #f8f9fa;
    color: #007bff;
}

.sort-option.sort-reset {
    background: #f8f9fa;
    font-weight: 600;
    color: #6c757d;
}

.sort-option.sort-reset:hover {
    background: #e9ecef;
    color: #495057;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 44px;
    height: 44px;
}

.view-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.view-btn.active {
    background: #E3F2FD;
    color: #1976D2;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.view-btn.active:hover {
    background: #BBDEFB;
    color: #1565C0;
}

.view-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.view-btn:hover svg {
    transform: scale(1.1);
}

.inventory-header h2 {
    font-size: 24px;
    font-weight: 700;
}


/* Vehicle Count Info */
.vehicle-count-info {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 6px;
}

.vehicle-count-info p {
    margin: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 500;
}

/* No Vehicles Found */
.no-vehicles-found {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 40px auto;
    max-width: 600px;
}

.no-vehicles-icon {
    margin-bottom: 24px;
    opacity: 0.6;
}

.no-vehicles-icon svg {
    width: 80px;
    height: 80px;
}

.no-vehicles-found h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.no-vehicles-found p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.reset-filters-btn-large {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.reset-filters-btn-large:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.reset-filters-btn-large:active {
    transform: translateY(0);
}

/* Grid View Styles */
.vehicle-inventory-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.vehicle-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* List View Styles */
.vehicle-inventory-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.vehicle-list-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #000;
    min-height: 200px;
}

.vehicle-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vehicle-list-image {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.vehicle-list-image img.list-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-list-image:hover img.list-main-image {
    transform: scale(1.05);
}

/* List View Image Slider Styles */
.vehicle-list-image .vehicle-image-slider.list-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-image.active {
    opacity: 1;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    visibility: visible;
}

.vehicle-list-item:hover .vehicle-list-image .slider-arrow {
    opacity: 1;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-arrow.prev {
    left: 12px;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-arrow.next {
    right: 12px;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.vehicle-list-item:hover .vehicle-list-image .slider-dots {
    opacity: 1;
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-dot.active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vehicle-list-image .vehicle-image-slider.list-slider .slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.1);
}

.vehicle-list-image .no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}

.vehicle-list-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vehicle-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.vehicle-list-header .vehicle-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.vehicle-list-header .vehicle-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vehicle-list-header .vehicle-title a:hover {
    color: #007bff;
}

.vehicle-list-header .vehicle-price {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

.vehicle-list-details .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px 20px;
    margin-bottom: 20px;
}

.vehicle-list-details .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehicle-list-details .detail-item .label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-list-details .detail-item .value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.vehicle-list-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.vehicle-list-actions .view-details-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.vehicle-list-actions .view-details-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.vehicle-list-actions .image-count {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.vehicle-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #000;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

/* Vehicle Image Slider */
.vehicle-image-slider {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vehicle-image-slider .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-image-slider .slider-image.active {
    opacity: 1;
}

.vehicle-image-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.vehicle-card:hover .vehicle-image-slider .slider-arrow {
    opacity: 1;
}

.vehicle-image-slider .slider-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.vehicle-image-slider .slider-arrow.prev {
    left: 10px;
}

.vehicle-image-slider .slider-arrow.next {
    right: 10px;
}

.vehicle-image-slider .slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.vehicle-image-slider .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-image-slider .slider-dot.active {
    background: #007bff;
    transform: scale(1.3);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

.image-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.special-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.vehicle-year {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.vehicle-meta-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    font-size: 12px;
    color: #6c757d;
    overflow: hidden;
}

.vehicle-meta-info .meta-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.vehicle-meta-info .meta-item strong {
    color: #495057;
    font-weight: 600;
    margin-right: 4px;
}

.vehicle-price {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.vehicle-details {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vehicle-details span {
    background: #e9ecef;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #495057;
}

.view-details-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-details-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Single Vehicle Page Styles */
.vehicle-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.vehicle-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-button {
    margin: 10px 0 25px;
}

.back-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.back-button a:hover {
    color: #555;
}

.back-button .back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vehicle-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #000;
    font-weight: 700;
}

.vehicle-price-large {
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
}

.vehicle-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.vehicle-images {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vehicle-contact-card,
.vehicle-quick-info {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vehicle-contact-card h3,
.vehicle-quick-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
    font-size: 18px;
    font-weight: 600;
}

.contact-info p {
    margin: 5px 0;
    font-size: 14px;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.spec-group {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spec-group h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #495057;
}

.spec-value {
    color: #6c757d;
}

/* Feature Cards */
.vehicle-features {
    margin-bottom: 40px;
}

.vehicle-features h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.feature-category {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.feature-category h4 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    color: #495057;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.feature-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: 600;
    position: absolute;
    left: 0;
}

/* Dealer Comments */
.dealer-comments {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.dealer-comments h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.comments-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #000;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #007bff;
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 20px 0;
}

.pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.pagination ul.page-numbers li {
    margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-block;
    padding: 12px 16px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
    box-sizing: border-box;
}

.pagination .page-numbers a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pagination .page-numbers .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    font-weight: 600;
}

.pagination .page-numbers .prev,
.pagination .page-numbers .next {
    padding: 12px 20px;
    font-weight: 600;
}

.pagination .page-numbers .dots {
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: default;
}

.pagination .page-numbers .dots:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vehicle-inventory-container {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .search-options {
        width: 260px;
    }
}

@media (max-width: 1024px) {
    .vehicle-inventory-container {
        flex-direction: column;
        background: transparent;
    }
    
    .search-options {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .inventory-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .sort-options {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Hide desktop elements on mobile */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    /* Mobile filter modal */
    .search-options {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }

    .search-options.mobile-active {
        display: block;
        animation: slideIn 0.3s ease;
    }

    .search-options h3 {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #007bff;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .search-options select {
        margin-bottom: 15px;
        padding: 12px;
        font-size: 16px;
    }

    .search-options button {
        padding: 14px;
        font-size: 16px;
        margin: 8px 0;
        width: 48%;
        display: inline-block;
    }

    .search-options button[type="submit"] {
        margin-right: 4%;
    }

    @keyframes slideIn {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }

    /* Mobile container adjustments */
    .vehicle-inventory-container {
        display: block;
        padding: 0;
        background: transparent;
    }

    .inventory-content {
        width: 100%;
        padding: 0;
        background: #f5f5f5;
    }

    /* Mobile search bar */
    .dynamic-search {
        margin: 0 0 15px 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #e9ecef;
        box-shadow: none;
    }

    .search-form {
        padding: 15px;
    }

    .search-input-container {
        border-radius: 25px;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }

    .search-input {
        padding: 12px 18px;
        font-size: 14px;
    }

    .search-btn {
        background: transparent;
        color: #6c757d;
        padding: 12px 16px;
    }

    /* Mobile header */
    .inventory-header {
        padding: 15px;
        background: #fff;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .inventory-header h2 {
        font-size: 24px;
        margin: 0;
        font-weight: 600;
    }

    /* Mobile view/filter toggles */
    .mobile-controls {
        display: flex;
        gap: 10px;
    }

    .mobile-toggle-btn {
        width: 40px;
        height: 40px;
        border: 1px solid #dee2e6;
        background: #fff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-toggle-btn:active {
        background: #f8f9fa;
        transform: scale(0.95);
    }

    .mobile-toggle-btn.active {
        background: #007bff;
        color: #fff;
        border-color: #007bff;
    }

    /* Sort bar for mobile */
    .sort-and-filters-bar {
        background: #fff;
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sort-options {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .sort-options label {
        font-size: 14px;
        font-weight: 600;
        color: #495057;
        white-space: nowrap;
    }

    .sort-options select {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #dee2e6;
        border-radius: 20px;
        background: #f8f9fa;
        font-size: 14px;
    }

    .show-all-btn {
        padding: 8px 16px;
        background: #6c757d;
        color: #fff;
        border: none;
        border-radius: 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Vehicle count info */
    .vehicle-count-info {
        padding: 10px 15px;
        background: #f8f9fa;
        font-size: 14px;
        color: #6c757d;
        text-align: center;
        margin-bottom: 10px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    /* Mobile vehicle grid - single column */
    .vehicle-inventory-container.grid-view,
    .vehicle-inventory-container.list-view {
        display: block;
        padding: 10px;
        background: transparent;
    }

    /* Mobile vehicle card styling */
    .vehicle-card {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 15px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s;
    }

    .vehicle-card:active {
        transform: scale(0.98);
    }

    .vehicle-image-slider,
    .vehicle-image {
        height: 220px;
        position: relative;
    }

    .vehicle-image img,
    .slider-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Special badge positioning */
    .special-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #dc3545;
        color: #fff;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        z-index: 10;
    }

    /* Vehicle info section */
    .vehicle-info {
        padding: 12px 15px;
    }

    .vehicle-title {
        font-size: 16px;
        font-weight: 600;
        color: #212529;
        margin: 0 0 4px 0;
    }

    .vehicle-year {
        font-size: 14px;
        color: #6c757d;
        margin: 0 0 8px 0;
    }

    .vehicle-price {
        font-size: 20px;
        font-weight: 700;
        color: #000;
        margin: 8px 0;
    }

    .vehicle-details {
        display: flex;
        gap: 12px;
        margin: 10px 0;
        flex-wrap: wrap;
    }

    .vehicle-details span {
        font-size: 12px;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .vehicle-details .condition {
        background: #e7f5ff;
        color: #0066cc;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: 500;
    }

    .view-details-btn {
        display: inline-block;
        background: #007bff;
        color: #fff;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
        margin-top: 10px;
        transition: background 0.2s;
    }

    .view-details-btn:hover {
        background: #0056b3;
        color: #fff;
        text-decoration: none;
    }

    /* Image count badge */
    .image-count {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0,0,0,0.7);
        color: #fff;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* Hide slider controls on mobile */
    .slider-arrow,
    .slider-dots {
        display: none;
    }

    /* List view on mobile looks same as cards */
    .vehicle-list-item {
        background: #fff;
        border-radius: 12px;
        margin-bottom: 15px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: block;
    }

    .vehicle-list-image {
        width: 100%;
        height: 220px;
    }

    .vehicle-list-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .vehicle-list-content {
        padding: 12px 15px;
    }

    .vehicle-list-header {
        margin-bottom: 10px;
    }

    .vehicle-list-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #212529;
        margin: 0 0 4px 0;
        text-transform: uppercase;
    }

    .vehicle-list-header .vehicle-price {
        font-size: 20px;
        font-weight: 700;
        color: #000;
        margin: 8px 0;
    }

    .vehicle-list-details .detail-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .vehicle-list-details .detail-item {
        font-size: 12px;
        color: #6c757d;
    }

    .vehicle-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vehicle-specs {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-container {
        padding: 15px;
    }

    .vehicle-header h1 {
        font-size: 28px;
    }

    .vehicle-price-large {
        font-size: 32px;
    }

    .main-image {
        height: 300px;
    }

    /* Pagination mobile styles */
    .pagination {
        padding: 20px 15px;
        background: #fff;
        border-top: 1px solid #e9ecef;
    }

    .pagination ul {
        display: flex;
        justify-content: center;
        gap: 5px;
        flex-wrap: wrap;
    }

    .pagination li {
        list-style: none;
    }

    .pagination a,
    .pagination span {
        display: block;
        padding: 8px 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        color: #495057;
        font-size: 14px;
        text-decoration: none;
        background: #fff;
    }

    .pagination .current {
        background: #007bff;
        color: #fff;
        border-color: #007bff;
    }

    .pagination a:hover {
        background: #f8f9fa;
        border-color: #007bff;
        color: #007bff;
    }
}

@media (max-width: 480px) {
    .vehicle-inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-card {
        margin: 0 10px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}

/* Loading and Animation Styles */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Dynamic Search Bar Styles */
.dynamic-search {
    width: 100%;
    margin: 0 0 30px 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.search-form {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-row {
    display: flex;
    gap: 25px;
    width: 100%;
    align-items: flex-end;
}

.search-input-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-wrapper.full-width {
    flex: 1;
    width: 100%;
}

.search-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.search-input-container:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    min-width: 0;
    font-weight: 400;
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    font-weight: 600;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateX(-1px);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.clear-search-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.clear-search-btn:hover {
    background: #c82333;
    transform: translateX(-1px);
}

.clear-search-btn svg {
    width: 16px;
    height: 16px;
}

/* Price Range Slider */
.price-range-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.price-slider-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 18px 20px;
    transition: all 0.3s ease;
}

.price-slider-container:hover {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.price-display {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
    color: #007bff;
    font-size: 16px;
}

.price-range-slider {
    position: relative;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    margin: 10px 0;
}

.price-range-track {
    position: absolute;
    height: 100%;
    background: #007bff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.price-range-input {
    position: absolute;
    top: -8px;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
}

.price-range-input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
}

.price-range-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .search-input-wrapper,
    .price-range-wrapper {
        flex: none;
        width: 100%;
    }
    
    .price-range-wrapper {
        min-width: auto;
    }
    
    .sort-and-filters-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sort-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dynamic-search {
        margin: 0 0 20px 0;
        border-radius: 6px;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .search-row {
        gap: 15px;
    }
    
    .search-input-container {
        border-radius: 6px;
    }
    
    .search-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .search-btn,
    .clear-search-btn {
        padding: 12px 16px;
        min-width: 48px;
    }
    
    .price-slider-container {
        padding: 15px;
        border-radius: 6px;
    }
    
    .price-display {
        font-size: 14px;
    }
    
    .search-label {
        font-size: 13px;
    }
    
    .sort-and-filters-bar {
        padding: 12px 15px;
        margin-bottom: 15px;
    }
    
    .sort-options {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .sort-options select {
        min-width: 200px;
        text-align: center;
    }
}

/* Homepage Inventory Search Widget */
.homepage-inventory-search {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.homepage-inventory-search .search-container {
    padding: 0;
}

.homepage-inventory-search .search-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    padding: 30px 20px 25px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.homepage-inventory-search .search-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage-inventory-search .search-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.homepage-inventory-search .search-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.homepage-inventory-search .search-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-bottom: 3px solid #007bff;
}

.homepage-inventory-search .search-tab .tab-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.homepage-inventory-search .tab-content {
    display: none;
    padding: 30px;
}

.homepage-inventory-search .tab-content.active {
    display: block;
}

.homepage-inventory-search .search-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.homepage-inventory-search .search-fields.single-field {
    grid-template-columns: 1fr;
}

.homepage-inventory-search .field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.homepage-inventory-search .field-group.full-width {
    grid-column: 1 / -1;
}

.homepage-inventory-search .field-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.homepage-inventory-search .field-group select,
.homepage-inventory-search .field-group input[type="text"],
.homepage-inventory-search .field-group input[type="number"] {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.homepage-inventory-search .field-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

.homepage-inventory-search .field-group input[type="text"],
.homepage-inventory-search .field-group input[type="number"] {
    padding-right: 16px;
}

.homepage-inventory-search .field-group select:focus,
.homepage-inventory-search .field-group input[type="text"]:focus,
.homepage-inventory-search .field-group input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    background: #fff;
}

.homepage-inventory-search .field-group input[type="text"]::placeholder,
.homepage-inventory-search .field-group input[type="number"]::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.homepage-inventory-search .field-group input[type="number"] {
    -moz-appearance: textfield;
}

.homepage-inventory-search .field-group input[type="number"]::-webkit-outer-spin-button,
.homepage-inventory-search .field-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.homepage-inventory-search .search-fields.budget-fields {
    grid-template-columns: repeat(2, 1fr);
}

.homepage-inventory-search .currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.homepage-inventory-search .currency-input .currency-symbol {
    position: absolute;
    left: 14px;
    color: #6c757d;
    font-weight: 600;
    pointer-events: none;
}

.homepage-inventory-search .currency-input input[type="number"] {
    flex: 1;
    width: 100%;
    padding-left: 32px;
}

.homepage-inventory-search .search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.homepage-inventory-search .reset-btn {
    background: rgba(108, 117, 125, 0.9);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.homepage-inventory-search .reset-btn:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.homepage-inventory-search .search-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.homepage-inventory-search .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.homepage-inventory-search .search-btn:hover::before {
    left: 100%;
}

.homepage-inventory-search .search-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Responsive Design for Homepage Search */
@media (max-width: 1024px) {
    .homepage-inventory-search .search-fields {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .homepage-inventory-search .search-title {
        font-size: 24px;
        padding: 25px 20px 20px;
    }
    
    .homepage-inventory-search .tab-content {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .homepage-inventory-search {
        margin: 0 15px;
        border-radius: 8px;
    }
    
    .homepage-inventory-search .search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .homepage-inventory-search .search-title {
        font-size: 22px;
        padding: 20px 15px;
        letter-spacing: 1px;
    }
    
    .homepage-inventory-search .tab-content {
        padding: 20px 15px;
    }
    
    .homepage-inventory-search .search-tab {
        padding: 16px 15px;
        font-size: 14px;
        gap: 8px;
    }
    
    .homepage-inventory-search .search-tab .tab-icon {
        width: 18px;
        height: 18px;
    }
    
    .homepage-inventory-search .field-group select,
    .homepage-inventory-search .field-group input[type="text"],
    .homepage-inventory-search .field-group input[type="number"] {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .homepage-inventory-search .field-group select {
        padding-right: 35px;
    }
    
    .homepage-inventory-search .field-group input[type="text"],
    .homepage-inventory-search .field-group input[type="number"] {
        padding-right: 14px;
    }
    
    .homepage-inventory-search .search-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .homepage-inventory-search .reset-btn,
    .homepage-inventory-search .search-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .homepage-inventory-search .search-fields.budget-fields {
        grid-template-columns: 1fr;
    }
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    padding: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
    cursor: pointer;
    width: auto;
    padding: 0;
    border: none;
}

.checkbox-label input[type="checkbox"]:checked + span,
.checkbox-label input[type="checkbox"]:checked {
    color: #0066cc;
    font-weight: 500;
}

/* Responsive adjustments for checkbox groups */
@media (max-width: 768px) {
    .checkbox-group {
        max-height: 120px;
    }
    
    .checkbox-label {
        padding: 8px;
        font-size: 14px;
    }
}
