*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: #f7f7f5; color: #111110; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: #111110; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: .7rem; font-weight: 600; letter-spacing: .22em; color: #f7f7f5; text-transform: uppercase; transition: opacity .2s; }
.brand:hover { opacity: .6; }
.brand-sep { color: #3a3a38; margin: 0 .5rem; font-weight: 300; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link { font-size: .85rem; color: #78786e; letter-spacing: .02em; position: relative; padding-bottom: 2px; transition: color .2s; }
.nav-link:hover { color: #f7f7f5; }
.nav-link.active { color: #f7f7f5; font-weight: 500; }
.nav-link.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 1px; background: #f7f7f5; }
.login-btn { display: flex; align-items: center; gap: .6rem; color: #78786e; transition: color .2s; }
.login-btn:hover { color: #f7f7f5; }
.login-btn:hover .login-icon { border-color: #78786e; }
.login-label { font-family: 'DM Sans', sans-serif; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.login-icon { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #3a3a38; display: flex; align-items: center; justify-content: center; transition: border-color .2s; }

/* HERO */
.hero { background: #111110; padding: 3rem 0 3.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.eyebrow { font-family: 'DM Sans', sans-serif; font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: #78786e; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 300; color: #f7f7f5; line-height: 1.15; }
.hero-sub { margin-top: .75rem; font-size: .85rem; color: #4a4a46; }

/* GRID */
.listings { padding: 3rem 0 5rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* CARD */
.card {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); transform: translateY(-2px); }

.card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f0f0ec;
    display: block;
    flex-shrink: 0;
}
.card-img-placeholder {
    width: 100%;
    height: 200px;
    background: #e8e8e4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-img-placeholder svg { opacity: .3; }

/* SCROLLABLE BODY */
.card-body {
    padding: 1.25rem 1.25rem 0;
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: #e8e8e4 transparent;
}
.card-body::-webkit-scrollbar { width: 4px; }
.card-body::-webkit-scrollbar-track { background: transparent; }
.card-body::-webkit-scrollbar-thumb { background: #e8e8e4; border-radius: 2px; }

.card-name { font-size: 1rem; font-weight: 500; color: #111110; line-height: 1.3; margin-bottom: .35rem; }
.card-desc { font-size: .8rem; color: #78786e; line-height: 1.7; margin-bottom: 1rem; }

.autotrader-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #78786e;
    border: 1px solid #e8e8e4;
    border-radius: 2px;
    padding: .4rem .75rem;
    margin-bottom: 1.25rem;
    transition: border-color .15s, color .15s;
}
.autotrader-link:hover { border-color: #111110; color: #111110; }

.divider { border: none; border-top: 1px solid #f0f0ec; margin-bottom: 1rem; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.spec { display: flex; flex-direction: column; gap: .15rem; }
.spec-label { font-family: 'DM Sans', sans-serif; font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; color: #c4c4bc; }
.spec-value { font-size: .8rem; color: #111110; }

/* CARD FOOTER */
.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.card-price { font-size: 1.1rem; font-weight: 500; color: #111110; letter-spacing: -.01em; }
.card-mileage { font-family: 'DM Sans', sans-serif; font-size: .65rem; color: #c4c4bc; letter-spacing: .05em; }

.empty { text-align: center; padding: 6rem 0; }
.empty-text { font-size: .85rem; color: #c4c4bc; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; }
    .nav-inner { padding: 0 1.25rem; }
    .login-label { display: none; }
    .container { padding: 0 1.25rem; }
}