/* 
 * Vehicle Inventory Styles
 * This stylesheet contains all styles for the vehicle inventory display
 */
	@font-face {font-family: Montserrat; src: url(/web/fonts/Montserrat-Regular.ttf);}
	@font-face {font-family: Montserrat; src: url(/web/fonts/Montserrat-Black.ttf); font-weight:800}
	@font-face {font-family: Montserrat; src: url(/web/fonts/Montserrat-Bold.ttf); font-weight:700}
	@font-face {font-family: Montserrat; src: url(/web/fonts/Montserrat-Medium.ttf); font-weight:600}
	@font-face {font-family: Montserrat; src: url(/web/fonts/Montserrat-Light.ttf); font-weight:300}
	@font-face {font-family: Roboto; src: url(/web/fonts/Roboto-Regular.ttf)}
	@font-face {font-family: Roboto; src: url(/web/fonts/Roboto-Black.ttf); font-weight:800}
	@font-face {font-family: Roboto; src: url(/web/fonts/Roboto-Bold.ttf); font-weight:700}
	@font-face {font-family: Roboto; src: url(/web/fonts/Roboto-Medium.ttf); font-weight:600}
	@font-face {font-family: Roboto; src: url(/web/fonts/Roboto-Light.ttf); font-weight:300}

body {font-family: 'Roboto'}

.fancybox__container {z-index: 2000!important;}

/* Container and General Layout */
.vehicle-inventory-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dynamic page title */
#dynamic-pagetitle h1 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 48px;
    color: #333;
    font-weight: 800;
    font-family: Roboto;
    letter-spacing: -.02em;
    text-align: center;
}

/* Search Form */
.vehicle-search-form-container {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vehicle-search-form .search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vehicle-search-form .search-field {
    flex: 1;
    min-width: 200px;
}

.vehicle-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vehicle-search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.vehicle-search-form .search-button {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    height: 45px;
    margin-top: 25px;
    width: 100%;
    font-weight: 600;
}

.vehicle-search-form .search-button:hover {
    background-color: #004494;
}

/* Filter and Sort Controls */
.inventory-controls {
    margin-bottom: 30px;
}

.filter-section, .sort-section {
    margin-bottom: 20px;
}

.filter-section h3, .sort-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center!important;

}

.filter-button {
    border: 1px solid #d52343;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fefefe;
    font-family: Roboto;}

.filter-button:hover {
    background-color: #d52343;
    color: white;
}

.filter-button.active {
    background-color: #d52343;
    color: white;
    border-color: #cd2343;
}

.reset-button {
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d52343;
    background-color: #d52343;
    color:#ffffff;
    font-family: Roboto;}

.reset-button:hover {
    background-color: #ab1530;
}

.sort-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

/* Vehicle List */
.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vehicle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.vehicle-image {
    height: 200px;
    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-details {
    padding: 15px;
}

.vehicle-details h3 {
    margin: 0 0;
    font-size: 18px;
    color: #333;
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: #0056b3;
    margin: 0;
}

.vehicle-mileage, .vehicle-bodystyle {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
}

.vehicle-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.vehicle-link:hover {
    background-color: #004494;
    text-decoration: none;
}

/* Pagination */
.pagination-container {

    margin: 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-button {
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination-button:hover {
    background-color: #cd2343;
}

.pagination-button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

/* Inventory Summary */
.inventory-summary {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

/* Messages */
.no-vehicles-message, .error-message {
    padding: 30px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.no-vehicles-message h3, .error-message h3 {
    margin-top: 0;
    color: #333;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

            /* Inventory grid layout */
            .vehicle-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 20px;
                margin: 20px 0;
            }
            
            /* Vehicle card styling */
            .vehicle-card {
                border: 1px solid #e0e0e0;
                border-radius: 6px;
                overflow: hidden;
                box-shadow: 0 2px 4px rgba(0,0,0,0.1);
                transition: transform 0.2s, box-shadow 0.2s;
                background: white;
            }
            
            .vehicle-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            }
            
            /* Image container */
            .vehicle-image {
                height: 275px;
                overflow: hidden;
            }
            
            .vehicle-image img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
            
            /* Details section */
            .vehicle-details {
                padding: 12px;
            }
            
            /* Header with year/make and price */
            .vehicle-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 0px;
            }
            
            .vehicle-year-make {
                font-family: Roboto;
                font-size: 18px;
                font-weight: 700;
                color: #333;
                line-height: 1.1rem;
            }
            
            .vehicle-model-trim {
                font-size: 16px;
                color: #555;
                margin-bottom: 12px;
            }
            
            .vehicle-price {
                font-size: 18px;
                font-weight: 700;
                color: #0056b3;
                text-align: right;
            }
            
            /* Info row for mileage */
            .vehicle-info-row {
                display: flex;
                justify-content: flex-start;
                margin-bottom: 15px;
            }
            
            .vehicle-mileage {
                color: #666;
            }
            
            /* View details button */
            .view-details-btn {
                display: block;
                width: 100%;
                background: #0056b3;
                color: white;
                text-align: center;
                padding: 12px;
                border-radius: 4px;
                text-decoration: none;
                font-weight: 600;
                margin: 12px 0;
                transition: background 0.2s;
            }
            
            .view-details-btn:hover {
                background: #003d7a;
            }
            
            /* Dealer info */
            .dealer-info {
                display: flex;
                justify-content: space-between;
                margin-top: 10px;
                font-size: 14px;
                color: #777;
            }
            
            .dealer-name {
                font-weight: 500;
            }
            
            .dealer-phone {
                text-align: right;
            }
            
            /* Pagination styling */
            .pagination {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin: 20px 0;
                padding: 10px;
                background: #f8f8f8;
                border-radius: 4px;
            }
            
            .pagination-info {
                font-size: 14px;
                font-weight: 500;
                color: #555;
            }
            
            .pagination-links {
                display: flex;
                gap: 10px;
            }
            
            .pagination-link {
                background: #f4f4f4;
                border: 1px solid #cd2653;
                color: #cd2653;
                padding: 6px 12px;
                border-radius: 3px;
                text-decoration: none;
                font-weight: 500;
                transition: all 0.2s;
            }
            
            .pagination-link:hover:not(.disabled) {
                background: #cd2653;
                color: white;
            }
            
            .pagination-link.disabled {
                opacity: 0.5;
                cursor: default;
                pointer-events: none;
                border: 1px solid #ccc;
                color: #999;
            }
            
            /* Sorting controls styling */
            .sorting-wrapper {
                display: flex;
                align-items: center;
                margin: 15px 0;
                padding: 10px;
                background: #f8f8f8;
                border-radius: 4px;
            }
            
            .sorting-wrapper label {
                margin-right: 5px;
                font-weight: 500;
            }
            
            .sort-select {
                padding: 6px 10px;
                border: 1px solid #ddd;
                border-radius: 4px;
                margin-right: 15px;
                background: white;
            }
            
            
            /* No results message */
            .no-results {
                text-align: center;
                padding: 40px;
                font-size: 18px;
                color: #666;
            }
            
            

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vehicle-search-form .search-fields {
        flex-direction: column;
    }
    
    .vehicle-search-form .search-field {
        width: 100%;
    }
    
    .vehicle-search-form .search-button {
        margin-top: 10px;
    }
    
    .vehicle-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .vehicle-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    #dynamic-pagetitle h1 {
        font-size: 24px;
    }

}

@media (max-width: 576px) {
    .sorting-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-select {
        margin-bottom: 10px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vehicle-list {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
}