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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #2c2c2c;
    line-height: 1.5;
}

/* Header */
header {
    background: #2c2c2c;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    color: #eb0a1e;
    margin-right: 0.5rem;
}

.logo .light {
    font-weight: 300;
    color: #ccc;
}

.compare-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #eb0a1e;
    border-radius: 6px;
    transition: background 0.3s;
}

.compare-link:hover {
    background: #c00818;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #666;
}

.filter-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-icon {
    background: linear-gradient(135deg, #eb0a1e 0%, #c00818 100%);
    padding: 2rem;
    text-align: center;
}

.card-icon i {
    font-size: 4rem;
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.vehicle-badge {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.hybrid {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.type {
    background: #e3f2fd;
    color: #1565c0;
}

.specs-compact {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.specs-compact i {
    width: 20px;
    color: #eb0a1e;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-details {
    flex: 2;
    text-align: center;
    padding: 0.6rem;
    background: #2c2c2c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-details:hover {
    background: #eb0a1e;
}

.btn-compare {
    flex: 1;
    padding: 0.6rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-compare:hover {
    background: #f5f5f5;
    border-color: #eb0a1e;
}

/* Detail Page */
.vehicle-detail {
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.detail-icon {
    background: linear-gradient(135deg, #eb0a1e 0%, #c00818 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 2.5rem;
    color: white;
}

.detail-title h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.detail-title .subtitle {
    color: #666;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eb0a1e;
    display: inline-block;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-row.highlight {
    background: #e8f5e9;
    padding: 0.6rem;
    margin: 0.5rem 0;
    border-radius: 6px;
}

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

.spec-value {
    font-weight: 500;
}

.trims-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.trim-tag {
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.safety-list, .highlights-list {
    list-style: none;
    padding-left: 0;
}

.safety-list li, .highlights-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-list i, .highlights-list i {
    color: #eb0a1e;
    width: 20px;
}

/* Compare Page */
.compare-header {
    text-align: center;
    margin-bottom: 2rem;
}

.compare-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.no-compare {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
}

.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.compare-table th, .compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.compare-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 1.1rem;
}

.compare-table th button.remove-compare {
    margin-left: 0.5rem;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1rem;
}

.section-header td {
    background: #2c2c2c;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.spec-name {
    font-weight: 600;
    background: #fafafa;
    width: 200px;
}

.spec-value {
    font-weight: 400;
}

.add-more {
    text-align: center;
    vertical-align: middle;
}

.btn-add-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eb0a1e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #eb0a1e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 1rem;
}

.btn-compare-large {
    padding: 0.6rem 1.2rem;
    background: #eb0a1e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-compare-large:hover {
    background: #c00818;
}

/* Footer */
footer {
    background: #2c2c2c;
    color: #999;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters-section {
        flex-direction: column;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .compare-table th, .compare-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}