/*
Theme Name: Second Hand Delhi Cars
Theme URI: https://secondhanddelhicars.in
Author: Sunil Kumar
Description: Custom theme for a used car marketplace in Delhi.
Version: 1.0
Text Domain: secondhanddelhicars
*/

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-weight: 700;
    font-size: 1.3rem;
    color: #0f172a;
}

.main-nav a {
    margin-left: 16px;
    font-size: 0.95rem;
    color: #4b5563;
}

.hero {
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px 16px;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero-subtitle {
    opacity: 0.9;
    margin-bottom: 16px;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.search-form select,
.search-form input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.search-form button {
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    cursor: pointer;
    background: #22c55e;
    color: #0f172a;
    font-weight: 600;
}

.section {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 16px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.car-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
}

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.car-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.car-card-title {
    font-weight: 600;
    font-size: 1rem;
}

.car-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.car-price {
    font-weight: 700;
    font-size: 1rem;
    color: #16a34a;
}

.car-location {
    font-size: 0.8rem;
    color: #9ca3af;
}

.site-footer {
    background: #0f172a;
    color: #9ca3af;
    padding: 24px 16px;
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
