/* =============================================================
   Used Car Dealer Pro — custom stylesheet
   ============================================================= */

:root {
    --uc-primary: #0d4f8f;
    --uc-primary-dark: #093a68;
    --uc-accent: #f2a516;
    --uc-ink: #15273b;
    --uc-muted: #64748b;
    --uc-bg: #f7f9fc;
    --uc-border: #e5eaf1;
    --uc-radius: 14px;
}

body.frontend {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--uc-bg);
    color: var(--uc-ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.text-gradient {
    background: linear-gradient(90deg, var(--uc-accent), #ffc35a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a { color: var(--uc-primary); }
a:hover { color: var(--uc-primary-dark); }

/* ---------- Navigation ---------- */
.navbar-uc {
    background: #0b1f33;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-uc .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    padding-inline: 0.85rem;
}

.navbar-uc .nav-link.active,
.navbar-uc .nav-link:hover { color: var(--uc-accent); }

/* ---------- Hero ---------- */
.hero-uc {
    background:
        radial-gradient(1200px 500px at 90% -10%, rgba(242, 165, 22, 0.22), transparent 60%),
        linear-gradient(135deg, #0b1f33 0%, #0d2c4a 55%, #12406e 100%);
    color: #fff;
    padding: 80px 0 90px;
}

.hero-uc-title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; }

.badge-soft { background: rgba(242, 165, 22, 0.15); color: #ffd98a; padding: 0.55em 1em; border-radius: 999px; }

.btn-uc-light {
    background: var(--uc-accent); color: #1a1a1a; font-weight: 600; border: none;
}
.btn-uc-light:hover { background: #ffc35a; color: #1a1a1a; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-number { font-size: 1.7rem; font-weight: 800; color: var(--uc-accent); }
.hero-stat-label { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    padding: 26px;
    max-width: 420px;
    margin-left: auto;
}
.hero-card-inner { display: flex; gap: 16px; align-items: center; }
.fc-icon {
    width: 54px; height: 54px; flex: 0 0 54px;
    display: grid; place-items: center;
    font-size: 1.4rem; color: var(--uc-accent);
    background: rgba(242, 165, 22, 0.14);
    border-radius: 14px;
}
.text-white-70 { color: rgba(255, 255, 255, 0.7); }

/* ---------- Sections ---------- */
.section-uc { padding: 64px 0; }

.section-eyebrow {
    text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 0.78rem; font-weight: 700; color: var(--uc-primary);
    margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.btn-uc {
    background: var(--uc-primary); color: #fff; font-weight: 600; border: 1px solid var(--uc-primary);
}
.btn-uc:hover { background: var(--uc-primary-dark); color: #fff; }

.btn-uc-ghost {
    background: #fff; color: var(--uc-primary); font-weight: 600;
    border: 1px solid var(--uc-border);
}
.btn-uc-ghost:hover { border-color: var(--uc-primary); color: var(--uc-primary-dark); }

/* ---------- Car cards ---------- */
.car-card {
    background: #fff; border: 1px solid var(--uc-border);
    border-radius: 16px; overflow: hidden; height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.car-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13, 79, 143, 0.12); }

.car-card-img { position: relative; aspect-ratio: 16 / 9; background: #eef2f7; }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; }

.car-condition {
    position: absolute; top: 12px; left: 12px;
    background: rgba(11, 31, 51, 0.82); color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}

.car-card-body { padding: 18px; }
.car-card-title { font-weight: 700; }

.car-price { color: var(--uc-primary); font-weight: 800; font-size: 0.95rem; white-space: nowrap; }

.car-price-lg { font-size: 2rem; font-weight: 800; color: var(--uc-primary); }

.car-specs {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
    color: var(--uc-muted); font-size: 0.82rem; margin-top: 12px;
}
.car-specs span i { color: var(--uc-primary); margin-right: 5px; }
.car-specs .fa-solid { width: 14px; }

/* ---------- Feature boxes ---------- */
.feature-box {
    background: #fff; border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius); padding: 26px 22px; height: 100%;
}
.feature-icon {
    width: 52px; height: 52px; display: grid; place-items: center;
    font-size: 1.25rem; color: var(--uc-primary);
    background: rgba(13, 79, 143, 0.09); border-radius: 13px; margin-bottom: 14px;
}

.feature-box-sm { display: flex; align-items: center; gap: 12px; font-weight: 700; }

/* ---------- CTA ---------- */
.cta-uc {
    background: linear-gradient(120deg, #0b1f33, #12406e);
    padding: 56px 0;
}

/* ---------- Page head / breadcrumb ---------- */
.page-head-uc {
    background: linear-gradient(135deg, #0d2c4a, #12406e);
    color: #fff; padding: 34px 0;
}
.page-head-uc .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-head-uc .breadcrumb-item a { color: #ffd98a; text-decoration: none; }
.page-head-uc .breadcrumb-item.active { color: rgba(255,255,255,.65); }

/* ---------- Detail ---------- */
.car-detail-card {
    background: #fff; border: 1px solid var(--uc-border);
    border-radius: 16px; padding: 22px;
}
.sticky-detail { position: sticky; top: 20px; }
.detail-meta li { margin-bottom: 8px; }
.detail-meta i { margin-right: 8px; }

/* ---------- Contact / forms ---------- */
.contact-form-card {
    background: #fff; border: 1px solid var(--uc-border);
    border-radius: 16px; padding: 28px; height: 100%;
}
.contact-info-card {
    background: linear-gradient(135deg, #0d2c4a, #12406e);
    color: #fff; border-radius: 16px; padding: 28px; height: 100%;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list li i { color: var(--uc-accent); width: 18px; margin-top: 3px; }

/* ---------- About ---------- */
.about-img-card {
    background: #fff; border: 1px solid var(--uc-border);
    border-radius: 20px; padding: 40px;
}
.about-emoji { font-size: 5rem; color: var(--uc-primary); }

/* ---------- Footer ---------- */
.footer-uc {
    background: #0b1f33; color: #fff;
    margin-top: auto;
}
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--uc-accent); }
.social-circle {
    width: 38px; height: 38px; display: grid; place-items: center;
    color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    transition: .15s ease;
}
.social-circle:hover { background: var(--uc-accent); color: #1a1a1a; }

/* =============================================================
   Admin
   ============================================================= */

body.admin {
    font-family: 'Inter', sans-serif;
    background: #eef2f7;
}

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 250px; flex: 0 0 auto;
    background: #0b1f33;
    color: #fff;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.admin-sidebar-brand {
    padding: 20px 22px; font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.admin-sidebar-label {
    font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.4); padding: 14px 10px 6px;
}
.admin-sidebar-link {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.72); text-decoration: none;
    padding: 11px 12px; border-radius: 10px; margin-bottom: 2px;
    font-weight: 500; font-size: .92rem;
    width: 100%; border: 0; background: transparent; text-align: left;
}
.admin-sidebar-link i { width: 18px; color: var(--uc-accent); }
.admin-sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar-link-btn { color: rgba(255,255,255,.72); }
.admin-sidebar-link-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-bottom: 1px solid var(--uc-border);
    padding: 12px 24px;
    position: sticky; top: 0; z-index: 10;
}
.admin-avatar {
    width: 36px; height: 36px; display: inline-grid; place-items: center;
    background: rgba(13,79,143,.1); color: var(--uc-primary);
    border-radius: 50%;
}
.admin-user { color: var(--uc-ink); display: flex; align-items: center; gap: 8px; }
.admin-topbar-icon { color: var(--uc-muted); font-size: 1.1rem; }

.admin-content { padding: 26px 28px 40px; }

.admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.admin-panel {
    background: #fff; border: 1px solid var(--uc-border);
    border-radius: 14px; overflow: hidden;
}
.admin-panel-head {
    padding: 14px 20px; border-bottom: 1px solid var(--uc-border);
    background: #fafbfd;
}
.admin-panel-body { padding: 20px; }

.stat-card {
    background: #fff; border: 1px solid var(--uc-border); border-radius: 14px;
    padding: 20px; display: flex; align-items: center; gap: 16px;
    min-height: 118px;
}
.stat-icon {
    width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
    font-size: 1.3rem; border-radius: 14px;
}
.stat-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label { color: var(--uc-muted); font-size: .82rem; font-weight: 600; }
.stat-card .small.text-muted { font-size: .78rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-blue .stat-icon { background: rgba(13,79,143,.1); color: var(--uc-primary); }
.stat-blue .stat-value { color: var(--uc-primary); }
.stat-green .stat-icon { background: rgba(22,150,94,.12); color: #16965e; }
.stat-green .stat-value { color: #16965e; }
.stat-amber .stat-icon { background: rgba(242,165,22,.15); color: #c9850a; }
.stat-amber .stat-value { color: #c9850a; }
.stat-red .stat-icon { background: rgba(211,66,66,.12); color: #d34242; }
.stat-red .stat-value { color: #d34242; }

/* Colored stat cards — each variant is a distinct gradient background with
   matching white icon/value/label text for contrast. */
.stat-card-themed {
    border: 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
}
.stat-card-themed .stat-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.stat-card-themed .stat-value { color: #fff; }
.stat-card-themed .stat-label { color: rgba(255, 255, 255, 0.85); }
.stat-card-themed .text-muted { color: rgba(255, 255, 255, 0.75) !important; }
.stat-card-themed .text-primary,
.stat-card-themed .text-success { color: #fff !important; }
.stat-card-themed .text-warning { color: #ffe08a !important; }
.stat-card-themed .text-danger { color: #ffd1d1 !important; }

.stat-card-blue    { background: linear-gradient(135deg, #2ba3e7, #0d4f8f); }
.stat-card-green   { background: linear-gradient(135deg, #22c55e, #15803d); }
.stat-card-amber   { background: linear-gradient(135deg, #f59e0b, #b45309); }
.stat-card-teal    { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.stat-card-indigo  { background: linear-gradient(135deg, #6366f1, #3730a3); }
.stat-card-purple  { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stat-card-pink    { background: linear-gradient(135deg, #ec4899, #be185d); }
.stat-card-red     { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.stat-card-orange  { background: linear-gradient(135deg, #fb923c, #ea580c); }
.stat-card-slate   { background: linear-gradient(135deg, #64748b, #334155); }
.stat-card-cyan    { background: linear-gradient(135deg, #22d3ee, #0e7490); }
.stat-card-violet  { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.stat-card-fuchsia { background: linear-gradient(135deg, #e879f9, #a21caf); }
.stat-card-rose    { background: linear-gradient(135deg, #fb7185, #be123c); }
.stat-card-lime    { background: linear-gradient(135deg, #84cc16, #4d7c0f); }
.stat-card-sky     { background: linear-gradient(135deg, #38bdf8, #0369a1); }

.empty-icon {
    width: 72px; height: 72px; display: grid; place-items: center;
    font-size: 1.8rem; color: var(--uc-primary);
    background: rgba(13,79,143,.08); border-radius: 18px;
}

@media (max-width: 991px) {
    body.sidebar-open .admin-sidebar { display: flex; }
    .admin-sidebar { display: none; position: fixed; z-index: 100; }
}

/* Desktop: collapse the sidebar to an icon rail; hovering expands it. */
@media (min-width: 992px) {
    .admin-sidebar { overflow: hidden; transition: width .25s ease; }

    body.sidebar-collapsed .admin-sidebar,
    body.sidebar-collapsed .admin-sidebar:hover,
    body.sidebar-collapsed .admin-sidebar:focus-within { width: 72px; }

    body.sidebar-collapsed .admin-sidebar:hover,
    body.sidebar-collapsed .admin-sidebar:focus-within { width: 250px; }

    /* Icon rail: hide labels, section headers and logo text until hover. */
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-label,
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-link span,
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-brand b,
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-link {
        white-space: nowrap;
    }
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-label,
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-link span,
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-brand b {
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }
    body.sidebar-collapsed .admin-sidebar:hover .admin-sidebar-label,
    body.sidebar-collapsed .admin-sidebar:hover .admin-sidebar-link span,
    body.sidebar-collapsed .admin-sidebar:hover .admin-sidebar-brand b,
    body.sidebar-collapsed .admin-sidebar:focus-within .admin-sidebar-label,
    body.sidebar-collapsed .admin-sidebar:focus-within .admin-sidebar-link span,
    body.sidebar-collapsed .admin-sidebar:focus-within .admin-sidebar-brand b {
        opacity: 1;
        visibility: visible;
    }

    /* Center icons while collapsed, left-align when expanded on hover. */
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-link,
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-brand {
        justify-content: flex-start;
    }
    body.sidebar-collapsed .admin-sidebar .admin-sidebar-link i {
        width: 100%;
        text-align: center;
        flex: 0 0 48px;
    }
    body.sidebar-collapsed .admin-sidebar:hover .admin-sidebar-link,
    body.sidebar-collapsed .admin-sidebar:focus-within .admin-sidebar-link {
        justify-content: flex-start;
    }
    body.sidebar-collapsed .admin-sidebar:hover .admin-sidebar-link i,
    body.sidebar-collapsed .admin-sidebar:focus-within .admin-sidebar-link i {
        width: 18px;
        flex: 0 0 18px;
        text-align: left;
    }
}

/* =============================================================
   Auth / error pages
   ============================================================= */

.auth-page,
.error-page {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(140deg, #0b1f33 0%, #12406e 100%);
    min-height: 100vh;
}

.auth-wrapper { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

.auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border-radius: 18px; padding: 38px 34px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.auth-brand {
    width: 64px; height: 64px; margin: 0 auto 16px;
    display: grid; place-items: center;
    font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--uc-primary), #1b6cb8);
    border-radius: 16px;
}
.auth-title { font-size: 1.35rem; text-align: center; }
.auth-sub { text-align: center; color: var(--uc-muted); margin-bottom: 24px; }
.auth-help { color: var(--uc-muted); }
.auth-help strong { color: var(--uc-ink); }

.error-box { padding: 80px 20px; color: #fff; }
.error-code {
    font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1;
    background: linear-gradient(90deg, var(--uc-accent), #ffc35a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.error-icon { font-size: 2.4rem; color: var(--uc-accent); margin: 18px 0; }
.error-box .text-muted { color: rgba(255,255,255,.65) !important; }

/* ---------- Toastr tweaks ---------- */
#toast-container > div { border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* =============================================================
   Admin — Phase 2 additions
============================================================= */

.admin-sidebar-link-active,
.admin-sidebar-link-active:hover {
    background: var(--uc-primary);
    color: #fff;
}
.admin-sidebar-link-active i { color: #ffd98a; }

.admin-sidebar-badge {
    margin-left: auto;
    min-width: 22px; height: 22px; padding: 0 6px;
    display: inline-grid; place-items: center;
    background: var(--uc-accent); color: #1a1a1a;
    border-radius: 999px; font-size: .72rem; font-weight: 800;
}

.admin-topbar-left,
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-topbar-left { flex: 1; }
.admin-topbar-toggle { color: var(--uc-muted); font-size: 1.2rem; }
.admin-topbar-toggle:hover { color: var(--uc-primary); }
.admin-topbar-title {
    font-size: 1rem; font-weight: 700;
    color: var(--uc-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-thumb {
    width: 46px; height: 34px; flex: 0 0 46px;
    object-fit: cover; border-radius: 8px; background: #eef2f7;
}

.badge-rounded {
    display: inline-block; 
    padding: .32em .7em;
    border-radius: 999px; 
    color: #fff;
    font-size: .72rem; 
    font-weight: 700;
    text-transform: uppercase; 
    letter-spacing: .03em; white-space: nowrap;
}

.admin-status-pill {
    cursor: default; color: #fff;
}

.chart-box {
    position: relative;
    height: 250px;
}

.c-pointer { cursor: pointer; }

.table thead th {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--uc-muted); font-weight: 700;
}

.text-inherit { color: inherit; }
.text-inherit:hover { color: var(--uc-primary); }

/* ---------- Phase 3: vehicle photo gallery ---------- */
.vehicle-photo {
    position: relative;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6f9;
}

.vehicle-photo-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.vehicle-photo-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    background: var(--uc-green, #16965e);
    padding: .18em .55em;
    border-radius: 999px;
}

.vehicle-photo-badge-muted {
    background: rgba(15, 26, 40, .6);
}

.vehicle-photo-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s ease;
}

.vehicle-photo:hover .vehicle-photo-actions { opacity: 1; }

.vehicle-photo-nav {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.vehicle-photo-nav .btn { flex: 1; }

/* Status badge for quick status change hints */
[data-vehicle-status][data-status] {
    user-select: none;
}

@media (max-width: 767px) {
    .admin-content { padding: 18px 14px 30px; }
    .admin-topbar { padding: 10px 14px; }
    .chart-box { height: 220px; }
}

/* =============================================================
   Phase 6 — Public website additions
   ============================================================= */

/* Hero search bar */
.hero-search {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(4px);
    max-width: 780px;
}
.hero-search .form-select,
.hero-search .form-control {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.hero-search .form-select option { color: #15273b; }

/* Stat band */
.bg-dark-stat {
    background: linear-gradient(135deg, #0b1f33, #12406e);
    padding: 40px 0;
}
.bg-dark-stat .hero-stat-label { color: rgba(255, 255, 255, 0.65); }

/* Brand tiles */
.brand-tile {
    display: block;
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: var(--uc-radius);
    padding: 20px 14px;
    text-align: center;
    color: var(--uc-ink);
    text-decoration: none;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(13, 79, 143, .12); color: var(--uc-ink); }
.brand-tile-logo { max-height: 44px; max-width: 100%; margin-bottom: 10px; }
.brand-tile-name { font-weight: 700; font-size: .95rem; }
.brand-tile-count { color: var(--uc-muted); }

/* Testimonials */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: 16px;
    padding: 24px 22px;
    height: 100%;
}
.testimonial-stars { margin-bottom: 10px; font-size: .85rem; }
.testimonial-text { color: var(--uc-ink); font-size: .95rem; font-style: italic; }
.testimonial-avatar {
    width: 42px; height: 42px; flex: 0 0 42px;
    display: grid; place-items: center;
    color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--uc-primary), #1b6cb8);
    border-radius: 50%;
}

/* Blog post cards */
.post-card {
    display: block;
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: 16px;
    overflow: hidden;
    color: var(--uc-ink);
    text-decoration: none;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13, 79, 143, .12); color: var(--uc-ink); }
.post-card-img { aspect-ratio: 16 / 9; background: #eef2f7; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px; }
.article-body p { margin-bottom: 1rem; line-height: 1.75; }

/* Filter card */
.filter-card {
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: 16px;
    padding: 20px;
}

/* Results loading state */
#results-wrap.loading { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* Compare toggle on cards */
.compare-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--uc-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    z-index: 2;
}
.compare-toggle:hover { background: var(--uc-primary); color: #fff; }
.compare-toggle.active { background: var(--uc-primary); color: #fff; }

/* Compare tray */
.compare-tray {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1050;
    background: rgba(11, 31, 51, 0.96);
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}
.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .82rem;
}
.compare-chip a { color: #fff; text-decoration: none; }

/* Compare table */
.compare-table th { white-space: nowrap; }
.compare-table .compare-label { width: 170px; color: var(--uc-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.compare-table td { min-width: 220px; vertical-align: middle; }
.compare-img-wrap { position: relative; max-width: 260px; }
.compare-img-wrap img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.compare-remove { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .9) !important; border-radius: 50%; padding: 6px; }

/* Detail page gallery */
.car-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: #eef2f7;
    aspect-ratio: 16 / 9;
}
.car-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.car-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    flex: 0 0 96px;
    height: 64px;
    border: 2px solid var(--uc-border);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: #eef2f7;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--uc-primary); }

/* Spec rows / chips / inspection */
.spec-row { padding: 6px 0; border-bottom: 1px dashed var(--uc-border); }
.feature-chip { font-size: .85rem; color: var(--uc-ink); }
.inspect-line { font-size: .82rem; color: var(--uc-ink); }
.inspect-line i { margin-right: 5px; }

/* Finance quick box */
.finance-quick { border: 1px solid var(--uc-border); }

/* Floating contact buttons */
.floater-btn {
    position: fixed;
    right: 20px;
    z-index: 1040;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform .15s ease;
}
.floater-btn:hover { transform: translateY(-2px); color: #fff; }
.floater-wa { bottom: 92px; background: #25d366; }
.floater-call { bottom: 26px; background: var(--uc-primary); }

/* Steps (exchange page) */
.step-card {
    background: #fff;
    border: 1px solid var(--uc-border);
    border-radius: 16px;
    padding: 26px 20px;
    height: 100%;
    position: relative;
}
.step-num {
    position: absolute;
    top: 16px; right: 16px;
    font-size: .8rem; font-weight: 800;
    color: var(--uc-muted);
    opacity: .35;
}

/* Misc */
.empty-state { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Bottom padding so the compare tray never covers content */
body.frontend { padding-bottom: 0; }
body.compare-open { padding-bottom: 64px; }

@media (max-width: 767px) {
    .hero-uc { padding: 48px 0 56px; }
    .section-uc { padding: 48px 0; }
    .floater-btn { width: 46px; height: 46px; font-size: 1.2rem; }
    .floater-wa { bottom: 84px; }
    .floater-call { bottom: 24px; }
}
/* Phase 8 � CMS module helpers */
.admin-hover-lift { transition: box-shadow .18s ease, transform .18s ease; }
.admin-hover-lift:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(13,60,90,.12); }
.cms-tile-icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf3fb; color: #0d4f8f; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.banner-preview img, .settings-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Phase 8 - frontend: settings logo + CMS banner carousel */
.navbar-brand-logo { height: 34px; width: auto; border-radius: 4px; background: #fff; object-fit: contain; padding: 2px; }
.banner-carousel { position: relative; }
.banner-slide-img { width: 100%; height: 420px; object-fit: cover; }
.banner-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,32,51,.78) 0%, rgba(9,32,51,.35) 55%, rgba(9,32,51,.05) 100%); }
.banner-caption { inset-inline: auto 0 !important; text-align: left; padding-left: 6vw; padding-right: 4vw; max-width: 720px; bottom: 6vh; left: 0; }
.banner-carousel .carousel-indicators { margin-bottom: 1rem; }
@media (max-width: 768px) {
    .banner-slide-img { height: 300px; }
    .banner-caption h2 { font-size: 1.25rem; }
}
