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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #1a2a3a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #e67e22;
}

.hero {
    background: linear-gradient(135deg, #1a2a3a 0%, #000000b3 100%), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1600');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn {
    background: #e67e22;
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #d35400;
}

.featured {
    padding: 50px 0;
}

.featured h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.features {
    display: flex;
    gap: 30px;
    padding: 50px 0;
    background: white;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 15px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.feature-box h3 {
    margin: 15px 0;
}

.contact-info {
    background: #1a2a3a;
    color: white;
    text-align: center;
    padding: 50px 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.hours {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

footer {
    background: #0f1a24;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Inventory Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px auto;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.car-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.car-card h3 {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
}

.car-card p {
    padding: 0 15px 15px;
    color: #666;
}

.car-card .price {
    color: #e67e22;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Car Details Page */
.car-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.detail-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-grid img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail-grid img:hover {
    opacity: 0.7;
}

.detail-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.price-tag {
    font-size: 2rem;
    color: #e67e22;
    font-weight: bold;
    margin-bottom: 20px;
}

.specs {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

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

.spec-label {
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-call, .btn-test {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.btn-call {
    background: #27ae60;
    color: white;
}

.btn-test {
    background: #3498db;
    color: white;
}

.location-note {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.back-btn {
    display: inline-block;
    margin: 20px 0;
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
}

/* Sell Car Page */
.sell-form {
    padding: 50px 0;
}

.sell-benefits {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.benefit {
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
}

.sell-form form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 30px auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

textarea {
    min-height: 100px;
    margin: 15px 0;
}

button {
    background: #e67e22;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

button:hover {
    background: #d35400;
}

.inventory-header {
    background: white;
    padding: 30px 0;
}

.filters {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-box, .sort-select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .car-detail-card {
        grid-template-columns: 1fr;
    }
    .features {
        flex-direction: column;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
}