/* General style */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* Contact Bar */
.contact-bar {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
}

.contact-bar strong {
    color: #007bff;
}

/* Header Container with Background Image */
.header-container {
    width: 100%;
    height: 400px;
    background-image: url('images/road.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 200px;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* Logo */
.logo img {
    height: 150px;
    object-fit: contain;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
}

nav ul li a:hover {
    background-color: #007bff;
    border-radius: 5px;
}

.inventory-page {
    display: flex;
    margin: 20px;
    gap: 20px;
    padding-left: 15%;
    padding-right: 15%;
}

.inventory-filters {
    width: 250px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    position: sticky;
    top: 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.inventory-filters label {
    font-weight: bold;
}

.inventory-filters select, .inventory-filters input {
    width: 100%;
    padding: 8px;
}

#inventory-reset-filters {
    width: 100%;
    padding: 10px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.inventory-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    position: relative;
}

.inventory-sort {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.inventory-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
}

.inventory-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.inventory-pagination button {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: bold;
}

.inventory-pagination button.active {
    background-color: #ff6600;
    color: white;
}

#inventory-page-number {
    padding: 8px 12px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: bold;
}

.inventory-pagination button, #inventory-page-number {
    display: inline-block;
    margin: 0 5px;
}

.inventory-pagination span {
    margin: 0 5px;
    font-size: 16px;
}

.car-item {
    width: 100%;
    max-width: 400px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.car-item:hover {
    transform: scale(1.05);
}

.car img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
}

.car-details {
    padding: 10px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-details h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}

.car-details p {
    font-size: 16px;
    color: #555;
    margin: 5px 0;
}

.car-details a {
    margin-top: auto;
    background-color: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: block;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.car-details a:hover {
    background-color: #0056b3;
}

.car-info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    align-items: center;
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    width: 100%;
}

.car-specs div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
}

.car-specs div:last-child {
    border-bottom: none;
}

.car-title {
    font-size: 18px;
    font-weight: bold;
}

.car-price {
    background: #ff6600;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
}

.car-extra {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 15px;
    color: #555;
}

.car-extra i {
    margin-right: 5px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 5px 10px;
}