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

:root {
    --primary-color: #E65C00;
    --secondary-color: #1E8449;
    --accent-color: #F39C12;
    --warm-gold: #D4A574;
    --savanna-orange: #F5A623;
    --forest-green: #229954;
    --sandy-brown: #C4A35A;
    --terracotta: #E2725B;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --info-color: #3498DB;
    --light-gray: #F8F4E8;
    --medium-gray: #E8E0D0;
    --dark-gray: #2C3E50;
    --text-color: #333;
    --text-muted: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(230, 92, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 132, 73, 0.03) 0%, transparent 50%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 50%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(230, 92, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-icon {
    font-size: 1.7rem;
}

.lang-switcher {
    display: flex;
    gap: 0.4rem;
}

.lang-btn {
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.15);
    color: white;
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.lang-btn:hover:not(.active) {
    background: rgba(255,255,255,0.25);
}

nav {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.3rem;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    background: rgba(230, 92, 0, 0.1);
    color: var(--primary-color);
}

nav a.active {
    background: linear-gradient(135deg, var(--primary-color), #C45100);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 92, 0, 0.3);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), 
                url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1400');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.hero-search input {
    flex: 1;
    padding: 0.9rem 1.3rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
}

.hero-search button {
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 92, 0, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 92, 0, 0.4);
}

.btn-secondary {
    background: var(--dark-gray);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(44, 62, 80, 0.4);
}

.categories {
    padding: 3rem 0;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
}

.category-card {
    background: white;
    padding: 1.8rem 1.2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.category-card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    transition: transform 0.35s ease;
}

.category-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
}

.category-card .count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 0.25rem 0.7rem;
    border-radius: 18px;
}

.featured-cars {
    padding: 3rem 0;
    background: white;
}

.featured-cars h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.featured-cars h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--savanna-orange));
    border-radius: 2px;
}

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

.car-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.35s ease;
    position: relative;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.car-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--savanna-orange));
    z-index: 1;
}

.car-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover img {
    transform: scale(1.08);
}

.featured-badge,
.verified-badge {
    position: absolute;
    top: 8px;
    padding: 0.3rem 0.7rem;
    border-radius: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.featured-badge {
    left: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--savanna-orange));
    color: white;
}

.verified-badge {
    right: 8px;
    background: var(--success-color);
    color: white;
}

.car-info {
    padding: 1.2rem;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.car-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.category-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(230, 92, 0, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 500;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.car-details {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.detail-item .icon {
    font-size: 0.9rem;
}

.car-price-section {
    margin-bottom: 1rem;
}

.car-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-per-mile {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.car-tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.tag.verified {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.tag.featured {
    background: rgba(243, 156, 18, 0.15);
    color: #8B5A00;
}

.view-details {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
}

.view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 92, 0, 0.4);
}

footer {
    background: linear-gradient(135deg, #1E272E 0%, var(--dark-gray) 100%);
    color: white;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--warm-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--warm-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.filter-group select,
.filter-group input {
    padding: 0.7rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.filter-actions button {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#filter-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
}

#filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 92, 0, 0.4);
}

#reset-button {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
}

#reset-button:hover {
    background: var(--medium-gray);
}

.search-bar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-bar button {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-bar button:hover {
    transform: translateY(-2px);
}

#result-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: white;
    padding: 0.4rem;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pagination-btn {
    padding: 0.7rem 1.2rem;
    background: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pagination-info .current-page {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.pagination-info .total-pages {
    font-weight: 600;
}

.car-list-page {
    padding: 1.5rem 0;
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.sort-selector label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.sort-selector select {
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.car-details-page {
    padding: 2rem 0;
}

.details-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.car-images {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 0.8rem;
}

.main-image {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.thumbnail {
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-specs {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.car-header {
    margin-bottom: 1.2rem;
}

.car-header .tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.car-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-section {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(230, 92, 0, 0.05), rgba(30, 132, 73, 0.05));
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.spec-box {
    text-align: center;
    padding: 0.8rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.spec-box .icon {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.spec-box span {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.full-specs {
    margin-bottom: 1.5rem;
}

.full-specs h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem;
    background: var(--light-gray);
    border-radius: 6px;
}

.spec-item label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.description {
    margin-bottom: 1.5rem;
}

.description h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.description p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
}

.contact-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-info strong {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-btn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 92, 0, 0.4);
}

.inspection-report {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.inspection-report h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: white;
}

.score-circle span {
    position: relative;
    z-index: 1;
}

.score-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.2rem;
}

.score-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.inspection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.inspection-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.inspection-item:hover {
    transform: translateY(-3px);
}

.inspection-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.inspection-item div:nth-child(2) {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.inspection-item .result {
    font-weight: 700;
    font-size: 0.9rem;
}

.inspection-item .result.excellent {
    color: var(--success-color);
}

.inspection-item .result.good {
    color: var(--info-color);
}

.inspection-item .result.fair {
    color: var(--warning-color);
}

.inspection-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    color: #8B5A00;
    border-left: 4px solid var(--warning-color);
    font-size: 0.9rem;
}

.similar-cars {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.similar-cars h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.car-card.small {
    grid-template-columns: 1fr;
}

.car-card.small img {
    height: 130px;
}

.car-card.small .car-info {
    padding: 0.9rem;
}

.car-card.small .car-title {
    font-size: 0.95rem;
}

.car-card.small .car-price {
    font-size: 1.1rem;
}

.car-card.small button {
    padding: 0.5rem;
    font-size: 0.8rem;
}

.upload-page {
    padding: 2rem 0;
}

.upload-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.upload-form h2 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-row-3 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.upload-area {
    border: 2px dashed var(--medium-gray);
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(230, 92, 0, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(230, 92, 0, 0.1);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.upload-area p {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.upload-area span {
    color: var(--primary-color);
    font-weight: 600;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.preview-item .remove-btn:hover {
    background: var(--danger-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.2rem;
    border-top: 1px solid var(--medium-gray);
}

.form-actions button {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 92, 0, 0.4);
}

.form-actions .btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    border: none;
}

.form-actions .btn-secondary:hover {
    background: var(--medium-gray);
}

#message {
    margin-bottom: 1.2rem;
}

.success-message {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    font-weight: 500;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
    font-weight: 500;
}

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 50%, var(--secondary-color) 100%);
    padding: 1rem;
}

.login-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
}

.login-container .logo {
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-container h2 {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 1.2rem;
}

.login-form input {
    padding: 1rem;
}

.login-form button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
}

.login-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.admin-panel {
    min-height: 100vh;
    background: var(--light-gray);
}

.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #C45100 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.3);
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .logo {
    font-size: 1.4rem;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
}

.admin-nav button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.15);
    color: white;
}

.admin-nav button:hover {
    background: rgba(255,255,255,0.25);
}

.admin-nav button.active {
    background: white;
    color: var(--primary-color);
}

.admin-content {
    padding: 2rem;
}

.admin-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.admin-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--medium-gray);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.data-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.data-table td {
    font-size: 0.9rem;
    color: var(--text-color);
}

.data-table tr:hover {
    background: rgba(230, 92, 0, 0.03);
}

.data-table .action-btns {
    display: flex;
    gap: 0.5rem;
}

.data-table .action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn.edit {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.action-btn.edit:hover {
    background: rgba(52, 152, 219, 0.2);
}

.action-btn.delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.2);
}

.admin-upload-form {
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .details-container {
        grid-template-columns: 1fr;
    }
    
    .car-images {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.4rem;
    }
    
    .thumbnail {
        flex-shrink: 0;
        width: 100px;
        height: 80px;
    }
    
    .quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 0.2rem;
    }
    
    nav a {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: 10px;
        padding: 0.6rem;
    }
    
    .hero-search button {
        border-radius: 8px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 1.2rem 0.8rem;
    }
    
    .category-card .icon {
        font-size: 2.2rem;
    }
    
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar button {
        border-radius: 8px;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .inspection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .upload-form {
        padding: 1.2rem;
    }
    
    .upload-area {
        padding: 1.5rem 0.8rem;
    }
    
    .login-container {
        padding: 1.8rem;
    }
    
    .admin-header-content {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-content {
        padding: 1rem;
    }
    
    .admin-section {
        padding: 1.2rem;
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    header {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.15rem;
    }
    
    nav a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .category-card {
        padding: 1rem 0.6rem;
    }
    
    .category-card .icon {
        font-size: 1.8rem;
    }
    
    .car-image {
        height: 160px;
    }
    
    .car-info {
        padding: 1rem;
    }
    
    .car-title {
        font-size: 1rem;
    }
    
    .car-price {
        font-size: 1.2rem;
    }
    
    .main-image {
        height: 220px;
    }
    
    .thumbnail {
        width: 80px;
        height: 65px;
    }
}
