* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: #333;
}

.search-account {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-account a{
  text-decoration: none;
  color: white;
  text-align: center;
}
.search-account button{
  border: none;
  background-color: rgb(32, 32, 78);
  height: 4vh;
  border-radius: 9px;
  width: 12vh;
}


.search-account input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

aside.filters {
    width: 250px;
    background: rgb(255, 255, 255);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    margin-bottom: 0.5rem;
}

select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.range-slider {
    margin-top: 0.5rem;
}

.range-slider input {
    width: 100%;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.sort-by label {
    display: block;
    margin: 0.5rem 0;
}

main {
    flex: 1;
}

.hero {
    
    background-size: cover;
    background-position: center;
   
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    height: 70vh;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.car-listings table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f8f8f8;
    font-weight: 600;
}

table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    aside.filters {
        width: 100%;
    }
}

.car-listings {
   margin-left: 2%;
   
    width: 190vh;
   
    
    
}

.car-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}

.car-card {
    flex: 0 1 calc(33.333% - 1.34rem);
    min-width: 80px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.car-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover img {
    transform: scale(1.05);
}

.car-details {
    padding: 2rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.car-info {
    background: rgba(44, 82, 130, 0.05);
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-info .year {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.car-info .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5282;
}

/* Enhanced car meta information */
.car-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
}

.car-meta span {
    background: #f8f9fa;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.car-meta span i {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Status and location section */
.car-status-location {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: #d4edda;
    color: #155724;
}

.status-used {
    background: #fff3cd;
    color: #856404;
}

.location-info {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.location-info i {
    color: #6c757d;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    gap: 0.5rem;
}

.car-specs span {
    background: #f8f9fa;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    justify-content: center;
}

.car-specs span i {
    color: #6c757d;
}

.view-details {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, #2c5282, #3182ce);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 1rem;
}

.view-details a {
    color: white;
    text-decoration: none;
}

.view-details:hover {
    background: linear-gradient(to right, #2a4365, #2c5282);
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .car-card {
        flex: 0 1 calc(50% - 1rem);
    }
    .car-listings {
    margin-top: 2%;
    width: 36vh;
    
    
}
}

@media (max-width: 768px) {
    .car-card {
        flex: 0 1 100%;
        height: 30vh;
    }
    
    .car-grid {
        gap: 1.5rem;
    }

    .car-meta {
        grid-template-columns: 1fr;
    }

    .car-status-location {
        flex-direction: column;
        gap: 0.5rem;
    }

    .car-specs {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Hide hamburger by default */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .nav-links,
    .search-account {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 10px;
    }

    .nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    .hamburger {
        display: block;
    }

    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-links.show,
    .search-account.show {
        display: flex;
    }
}

/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loaded .loading-overlay {
    opacity: 0;
    pointer-events: none;
}





/* Simple centered text styling */
