/* ============================================================
   Lohit Enterprises LLC — Used Car Dealer
   ============================================================ */
:root {
    --primary: #14263f;        /* deep navy */
    --primary-2: #1B3A6B;
    --primary-dark: #0d1b2e;
    --gold: #E0A422;
    --gold-dark: #c68f19;
    --gold-light: #f2c14e;
    --accent: #d64545;         /* used for price / attention */
    --white: #ffffff;
    --light: #f5f7fa;
    --light-2: #eef1f6;
    --line: #e2e7ee;
    --gray: #64748b;
    --gray-dark: #334155;
    --ink: #1a2233;
    --shadow-sm: 0 1px 3px rgba(16,32,58,.08);
    --shadow: 0 6px 24px rgba(16,32,58,.10);
    --shadow-lg: 0 16px 40px rgba(16,32,58,.16);
    --radius: 12px;
    --radius-lg: 18px;
    --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, .logo-text { font-family: 'Oswald', 'Inter', sans-serif; font-weight: 600; letter-spacing: .3px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow { display: inline-block; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; margin-bottom: .5rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .95rem;
    border: 2px solid transparent; cursor: pointer; transition: all .18s ease; text-align: center;
    font-family: inherit;
}
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-gold { background: var(--gold); color: var(--primary-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* ── Top bar ── */
.top-bar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: .82rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1.5rem; max-width: var(--container); margin: 0 auto; }
.top-bar a { color: rgba(255,255,255,.85); }
.top-bar-left { display: flex; gap: 1.5rem; align-items: center; }
.top-bar-phone { font-weight: 700; color: #fff !important; }
.top-bar a:hover { color: var(--gold-light) !important; }

/* ── Navbar ── */
.navbar { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.navbar-brand { display: flex; align-items: center; gap: .8rem; }
.logo-mark {
    width: 44px; height: 44px; flex: none; border-radius: 9px;
    background: var(--gold); color: var(--primary-dark);
    display: grid; place-items: center; font-family: 'Oswald'; font-weight: 700; font-size: 1.25rem;
    letter-spacing: .5px;
}
.logo-emblem { width: 48px; height: 48px; flex: none; display: block; }
.logo-text { font-size: 1.35rem; color: #fff; line-height: 1; display: block; }
.logo-sub { font-size: .64rem; color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-top: 3px; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,.88); font-weight: 500; font-size: .96rem; transition: color .15s; }
.nav-links a:hover { color: var(--gold-light); }
.btn-call-nav { background: var(--gold); color: var(--primary-dark) !important; padding: .5rem 1.1rem; border-radius: 7px; font-weight: 700 !important; }
.btn-call-nav:hover { background: var(--gold-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* ── Flash messages ── */
.flash-wrap { margin: 1rem auto; }
.flash { padding: .85rem 1.2rem; border-radius: 8px; margin-bottom: .6rem; font-weight: 500; }
.flash-error { background: #fdecea; color: #a12622; border: 1px solid #f5c2bd; }
.flash-success { background: #e8f6ec; color: #1e6b39; border: 1px solid #b9e3c6; }

/* ── Hero ── */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(135deg, #14263f 0%, #1B3A6B 55%, #24507f 100%);
}
.hero-overlay {
    position: absolute; inset: 0; opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; padding: 5rem 1.5rem 5.5rem; }
.hero-text { max-width: 640px; }
.hero-eyebrow { display: inline-block; background: rgba(224,164,34,.18); color: var(--gold-light); padding: .35rem .9rem; border-radius: 30px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; margin-bottom: 1.2rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

/* ── Quick search ── */
.quick-search { background: var(--gold); padding: 1.1rem 0; }
.quick-search-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.quick-search-form input, .quick-search-form select {
    flex: 1; min-width: 180px; padding: .8rem 1rem; border: none; border-radius: 8px; font-size: 1rem; font-family: inherit;
    background: #fff; color: var(--ink);
}
.quick-search-form .btn { flex: none; min-width: 130px; }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-light { background: var(--light); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-head h2 { font-size: 2rem; color: var(--primary); }
.section-link { color: var(--gold-dark); font-weight: 600; }
.section-link:hover { color: var(--primary); }

/* ── Value props ── */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-item { text-align: center; padding: 1.5rem 1rem; }
.value-icon {
    width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--primary); color: var(--gold); display: grid; place-items: center;
    font-size: 1.6rem; font-weight: 700; font-family: 'Oswald';
}
.value-item h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: .5rem; }
.value-item p { color: var(--gray); font-size: .94rem; }

/* ── Car grid & cards ── */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.car-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.car-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--light-2); overflow: hidden; }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.car-card:hover .car-card-img img { transform: scale(1.05); }
.car-card-noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; font-size: 2.8rem; color: #b6c0cf; }
.car-card-noimg span { font-size: .85rem; }
.car-badge { position: absolute; top: .75rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .3rem .7rem; border-radius: 6px; }
.badge-body { right: .75rem; background: rgba(20,38,63,.85); color: #fff; }
.badge-pending { left: .75rem; background: var(--gold); color: var(--primary-dark); }
.badge-sold { left: .75rem; background: var(--accent); color: #fff; }
.car-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.car-card-title { font-size: 1.18rem; color: var(--primary); line-height: 1.2; margin-bottom: .4rem; }
.car-card-price { font-size: 1.6rem; font-weight: 700; font-family: 'Oswald'; color: var(--accent); margin-bottom: .6rem; }
.car-card-specs { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--gray); font-size: .85rem; margin-bottom: 1rem; }
.car-card-cta { margin-top: auto; color: var(--gold-dark); font-weight: 600; font-size: .92rem; }
.car-card:hover .car-card-cta { color: var(--primary); }

.empty-state { text-align: center; color: var(--gray); padding: 2rem; }
.empty-state a { color: var(--gold-dark); font-weight: 600; }
.empty-state-box { text-align: center; background: var(--light); border-radius: var(--radius-lg); padding: 3rem 2rem; }
.empty-state-box h3 { color: var(--primary); margin-bottom: .6rem; }
.empty-state-box p { color: var(--gray); margin-bottom: 1.5rem; }
.empty-state-box a { color: var(--gold-dark); font-weight: 600; }

/* ── CTA band ── */
.cta-band { background: var(--primary); color: #fff; padding: 3rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: 2rem; margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; }

/* ── Two-col ── */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.two-col h2 { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.two-col p { color: var(--gray-dark); margin-bottom: 1.5rem; }
.two-col-visual { display: grid; gap: 1rem; }
.stat-tile { background: var(--light); border-left: 4px solid var(--gold); border-radius: 10px; padding: 1.2rem 1.4rem; }
.stat-tile strong { display: block; font-family: 'Oswald'; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.stat-tile span { color: var(--gray); font-size: .9rem; }

/* ── Page head ── */
.page-head { background: linear-gradient(135deg, #14263f, #1B3A6B); color: #fff; padding: 2.75rem 0; }
.page-head h1 { font-size: 2.4rem; margin-bottom: .35rem; }
.page-head p { color: rgba(255,255,255,.85); }

/* ── Inventory layout ── */
.inventory-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.filter-group { margin-bottom: 1.1rem; }
.filter-group label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-dark); margin-bottom: .4rem; }
.filter-group input, .filter-group select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 7px; font-size: .95rem; font-family: inherit; background: #fff; }
.filter-reset { display: block; text-align: center; margin-top: .8rem; color: var(--gray); font-size: .88rem; }
.filter-reset:hover { color: var(--accent); }
.results-bar { display: flex; justify-content: flex-end; margin-bottom: 1.2rem; }
.sort-form { display: flex; align-items: center; gap: .5rem; }
.sort-form label { font-size: .88rem; color: var(--gray); }
.sort-form select { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; }

/* ── Vehicle detail ── */
.breadcrumb { padding-top: 1.2rem; }
.breadcrumb a { color: var(--gold-dark); font-weight: 600; }
.vehicle-detail { padding-top: 1.5rem; }
.vehicle-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--light-2); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; font-size: 4rem; color: #b6c0cf; }
.gallery-noimg span { font-size: 1rem; }
.gallery-status { position: absolute; top: 1rem; left: 1rem; background: var(--accent); color: #fff; padding: .4rem 1rem; border-radius: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .82rem; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .8rem; }
.gallery-thumb { border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; background: none; aspect-ratio: 4/3; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold); }

.vehicle-info h1 { font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.vehicle-price { font-family: 'Oswald'; font-size: 2.6rem; font-weight: 700; color: var(--accent); margin: .5rem 0 .2rem; }
.vehicle-stockline { color: var(--gray); font-size: .88rem; margin-bottom: 1.4rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-bottom: 1.5rem; }
.spec { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec span { color: var(--gray); }
.spec strong { color: var(--ink); }
.vehicle-actions { display: flex; flex-direction: column; gap: .75rem; }

.vehicle-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; margin-top: 3rem; align-items: start; }
.vehicle-desc h2, .vehicle-inquiry h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: .9rem; }
.vehicle-desc p { color: var(--gray-dark); }
.vehicle-inquiry { background: var(--light); border-radius: var(--radius-lg); padding: 1.6rem; border: 1px solid var(--line); }
.muted { color: var(--gray); font-size: .92rem; margin-bottom: 1rem; }

/* ── Forms ── */
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px;
    font-size: 1rem; font-family: inherit; margin-bottom: .8rem; background: #fff; color: var(--ink);
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,164,34,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-dark); margin: .5rem 0 .5rem; }
.form-disclaimer { font-size: .8rem; color: var(--gray); margin-bottom: 1rem; }

/* Form page layout (financing/sell/contact) */
.form-page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.form-page-info h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: 1rem; }
.form-page-info > p { color: var(--gray-dark); margin-bottom: 1.5rem; }
.steps-list { list-style: none; counter-reset: step; margin-bottom: 1.8rem; }
.steps-list li { position: relative; padding-left: 3rem; margin-bottom: 1.2rem; color: var(--gray-dark); }
.steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: var(--primary); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: 'Oswald'; }
.steps-list strong { color: var(--primary); }
.info-card { background: var(--light); border-radius: var(--radius); padding: 1.4rem; border-left: 4px solid var(--gold); }
.info-card h4 { color: var(--primary); margin-bottom: .7rem; }
.check-list { list-style: none; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: .5rem; color: var(--gray-dark); font-size: .95rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 1.2rem; }

/* Contact details */
.contact-details { margin-bottom: 1.5rem; }
.contact-line { display: flex; gap: .9rem; margin-bottom: 1.1rem; align-items: flex-start; }
.contact-line span { font-size: 1.3rem; flex: none; }
.contact-line strong { color: var(--primary); }
.contact-line a { color: var(--gold-dark); }

/* ── Thank you / 404 ── */
.thankyou-inner { max-width: 620px; margin: 0 auto; text-align: center; padding: 2rem 0; }
.thankyou-check { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: #e8f6ec; color: #1e8a45; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; }
.thankyou-404 { background: var(--light); color: var(--primary); font-family: 'Oswald'; font-size: 1.9rem; }
.thankyou h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: .8rem; }
.thankyou p { color: var(--gray-dark); margin-bottom: .6rem; }
.thankyou a { color: var(--gold-dark); font-weight: 600; }

/* ── Footer ── */
footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.footer-tag { color: var(--gold-light); font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .93rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }

.hide-mobile { display: inline; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: var(--light); }
.admin-topbar { background: var(--primary); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.admin-topbar-inner { max-width: 1160px; margin: 0 auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.admin-logo { color: #fff; font-family: 'Oswald'; font-weight: 700; font-size: 1.25rem; letter-spacing: 1px; }
.admin-logo span { color: var(--gold-light); font-weight: 500; }
.admin-nav { display: flex; gap: 1.5rem; flex: 1; }
.admin-nav a { color: rgba(255,255,255,.8); font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; border-color: var(--gold); }
.admin-topbar-right { display: flex; gap: 1.2rem; align-items: center; }
.admin-viewsite { color: rgba(255,255,255,.7); font-size: .88rem; }
.admin-logout { color: var(--gold-light); font-size: .88rem; font-weight: 600; }
.admin-main { max-width: 1160px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-head h1 { color: var(--primary); font-size: 1.8rem; }

.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2rem; }
.admin-stat { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .15s; }
.admin-stat:hover { transform: translateY(-3px); }
.admin-stat-num { display: block; font-family: 'Oswald'; font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.admin-stat-label { color: var(--gray); font-size: .9rem; }
.admin-stat-highlight { border-left: 4px solid var(--gold); }

.admin-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { font-size: 1.2rem; color: var(--primary); }
.admin-panel-head a { color: var(--gold-dark); font-weight: 600; font-size: .9rem; }
.admin-empty { padding: 2rem 1.4rem; color: var(--gray); text-align: center; }
.admin-empty a { color: var(--gold-dark); font-weight: 600; }

.admin-filters { display: flex; gap: .5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.admin-filter { padding: .45rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 30px; font-size: .88rem; color: var(--gray-dark); font-weight: 500; }
.admin-filter:hover { border-color: var(--gold); }
.admin-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: .8rem 1rem; background: var(--light); color: var(--gray-dark); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: #fafbfd; }
.nowrap { white-space: nowrap; }
.cell-detail { max-width: 320px; font-size: .86rem; color: var(--gray-dark); }
.lead-msg { color: var(--gray); font-style: italic; }
.admin-thumb { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; }
.admin-thumb-empty { display: grid; place-items: center; background: var(--light-2); font-size: 1.3rem; }

.tag { display: inline-block; padding: .2rem .6rem; border-radius: 5px; font-size: .74rem; font-weight: 700; text-transform: capitalize; }
.tag-inquiry { background: #e5edf7; color: #1B3A6B; }
.tag-financing { background: #e8f6ec; color: #1e6b39; }
.tag-tradein { background: #fdf2dc; color: #96690a; }
.tag-contact { background: #f0e9f7; color: #5b3a86; }
.status { display: inline-block; padding: .2rem .6rem; border-radius: 5px; font-size: .74rem; font-weight: 600; text-transform: capitalize; }
.status-new { background: #fdecea; color: #a12622; }
.status-contacted { background: #fff6e0; color: #96690a; }
.status-closed { background: #eef1f6; color: var(--gray); }
.status-veh-available { background: #e8f6ec; color: #1e6b39; }
.status-veh-pending { background: #fff6e0; color: #96690a; }
.status-veh-sold { background: #fdecea; color: #a12622; }

.admin-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.btn-sm { padding: .35rem .7rem; border-radius: 6px; font-size: .82rem; font-weight: 600; background: var(--primary); color: #fff; border: none; cursor: pointer; }
.btn-sm:hover { background: var(--primary-dark); }
.btn-sm-danger { background: #fdecea; color: #a12622; }
.btn-sm-danger:hover { background: #f5c2bd; }
.mini-select { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; font-size: .82rem; font-family: inherit; }
.status-select { font-weight: 600; }

/* Admin form */
.admin-form { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.admin-form-section { padding: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-form-section h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 1.1rem; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.admin-form label { display: block; font-size: .85rem; color: var(--gray-dark); font-weight: 500; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 7px;
    font-size: .95rem; font-family: inherit; margin-top: .35rem; background: #fff;
}
.admin-form textarea { resize: vertical; }
.checkbox-label { display: flex !important; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600 !important; color: var(--primary) !important; }
.checkbox-label input { width: auto; margin: 0; }
.upload-label { font-weight: 600; color: var(--primary); }
.upload-label input { margin-top: .5rem; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.admin-photo { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 4/3; }
.admin-photo.is-main { border-color: var(--gold); }
.admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-main { position: absolute; top: .4rem; left: .4rem; background: var(--gold); color: var(--primary-dark); padding: .15rem .5rem; border-radius: 5px; font-size: .72rem; font-weight: 700; }
.admin-photo-actions { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: .4rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.admin-form-footer { padding: 1.5rem; display: flex; gap: 1rem; }

/* Admin login */
.admin-login-body { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(135deg, #14263f, #1B3A6B); }
.admin-login-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 380px; }
.admin-login-logo { text-align: center; font-family: 'Oswald'; font-weight: 700; font-size: 1.4rem; color: var(--primary); letter-spacing: 1px; margin-bottom: 1.8rem; }
.admin-login-logo span { display: block; font-size: .8rem; color: var(--gold-dark); font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s; }
    .nav-links.open { max-height: 400px; padding: .5rem 0 1rem; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: .8rem 1.5rem; }
    .btn-call-nav { margin: .5rem 1.5rem; text-align: center; }
    .value-grid { grid-template-columns: 1fr 1fr; }
    .car-grid { grid-template-columns: 1fr 1fr; }
    .inventory-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .vehicle-layout, .vehicle-lower, .two-col, .form-page-layout, .footer-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .cell-detail { max-width: 220px; }
}
@media (max-width: 600px) {
    .hide-mobile { display: none; }
    .value-grid, .car-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr; }
    .form-row, .form-row-3, .admin-grid { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .hero-inner { padding: 3.5rem 1.5rem; }
    .admin-nav { gap: 1rem; font-size: .9rem; }
    .admin-topbar-inner { flex-wrap: wrap; gap: 1rem; }
    .admin-table { font-size: .82rem; }
    .admin-table th, .admin-table td { padding: .6rem .5rem; }
}
