/* ============== Brand palette ============== */
:root {
  --osc-blue: #1F8FCB;
  --osc-blue-dark: #166A99;
  --osc-blue-logo: #3FA9DC;
  --osc-lime: #C5D639;
  --osc-lime-dark: #B0BF2A;
  --osc-lime-text: #6E7D17;
  --osc-ink: #0F1720;
  --osc-ink-soft: #3A4A5A;
  --osc-muted: #6B7785;
  --osc-surface: #ffffff;
  --osc-bg: #F6F8FB;
  --osc-border: #E5E9EF;

  /* Design tokens */
  --osc-radius-sm: 8px;
  --osc-radius: 14px;
  --osc-radius-lg: 20px;
  --osc-shadow-sm: 0 1px 2px rgba(15,23,32,.04), 0 1px 3px rgba(15,23,32,.06);
  --osc-shadow:    0 4px 12px rgba(15,23,32,.06), 0 2px 4px rgba(15,23,32,.04);
  --osc-shadow-lg: 0 12px 40px rgba(15,23,32,.10), 0 4px 10px rgba(15,23,32,.06);

  /* Bootstrap variable overrides */
  --bs-body-font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bs-body-color: var(--osc-ink);
  --bs-body-bg: var(--osc-bg);
  --bs-primary: var(--osc-blue);
  --bs-primary-rgb: 31, 143, 203;
  --bs-link-color: var(--osc-blue);
  --bs-link-hover-color: var(--osc-blue-dark);
  --bs-link-color-rgb: 31, 143, 203;
  --bs-border-radius: var(--osc-radius);
  --bs-border-color: var(--osc-border);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { position: relative; min-height: 100%; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--osc-bg);
  color: var(--osc-ink);
  margin-bottom: 60px;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--osc-ink);
}
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800; letter-spacing: -0.03em;
}

.text-muted, .text-secondary { color: var(--osc-muted) !important; }

/* ============== Buttons ============== */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .55rem 1.25rem;
  letter-spacing: -0.01em;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; border-radius: 999px; }

.btn-primary {
  background-color: var(--osc-blue);
  border-color: var(--osc-blue);
  box-shadow: 0 4px 14px rgba(31,143,203,.25);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--osc-blue-dark);
  border-color: var(--osc-blue-dark);
  box-shadow: 0 6px 18px rgba(31,143,203,.35);
}

.btn-outline-primary { color: var(--osc-blue); border-color: var(--osc-blue); background: transparent; }
.btn-outline-primary:hover { background: var(--osc-blue); border-color: var(--osc-blue); color: #fff; }

.btn-accent {
  background-color: var(--osc-lime);
  border-color: var(--osc-lime-dark);
  color: var(--osc-ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(197,214,57,.35);
}
.btn-accent:hover, .btn-accent:focus {
  background-color: var(--osc-lime-dark);
  border-color: var(--osc-lime-dark);
  color: var(--osc-ink);
}

.btn-light { background: #fff; border-color: var(--osc-border); color: var(--osc-ink); }
.btn-light:hover { background: var(--osc-bg); border-color: var(--osc-border); }

.text-accent { color: var(--osc-lime-text); }
.bg-accent   { background-color: var(--osc-lime); color: var(--osc-ink); }

/* ============== Forms ============== */
.form-control, .form-select {
  border-radius: var(--osc-radius-sm);
  border-color: var(--osc-border);
  background: #FAFBFD;
  padding: .6rem .85rem;
  font-size: 1rem;
  color: var(--osc-ink);
}
.form-control:hover, .form-select:hover { background: #fff; }
.form-control-lg, .form-select-lg { padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--osc-radius); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(31,143,203,.18);
  border-color: var(--osc-blue);
}
.form-label { font-weight: 600; color: var(--osc-ink-soft); font-size: .85rem; }

/* Floating labels — brand-tuned */
.form-floating > .form-control,
.form-floating > .form-select { height: calc(3.25rem + 2px); padding-top: 1.4rem; padding-bottom: .35rem; }
.form-floating > label {
    color: var(--osc-muted);
    font-weight: 500;
    padding: 1rem .85rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--osc-blue);
    font-size: .85rem;
    font-weight: 600;
    transform: translateY(-.65rem);
    opacity: 1;
}

/* ============== Cards ============== */
.card {
  background: var(--osc-surface);
  border: 1px solid var(--osc-border);
  border-radius: var(--osc-radius);
  box-shadow: var(--osc-shadow-sm);
}

/* ============== Header / brand ============== */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--osc-border);
}
.site-header .navbar { padding: .5rem 0; }
.navbar-brand { padding: .25rem 0; }
.navbar-brand img { height: 48px; width: auto; display: block; }

.site-header .nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--osc-ink-soft) !important;
  padding: .5rem .9rem !important;
  border-radius: 999px;
  margin: 0 .1rem;
  position: relative;
  transition: color .15s ease, background .15s ease;
}
.site-header .nav-link .bi { font-size: 1rem; opacity: .7; }
.site-header .nav-link:hover { color: var(--osc-blue) !important; background: rgba(31,143,203,.08); }
.site-header .nav-link:hover .bi { opacity: 1; }
.site-header .nav-link.active {
  color: var(--osc-blue) !important;
  background: rgba(31,143,203,.12);
}
.site-header .nav-link.active .bi { opacity: 1; color: var(--osc-blue); }

@media (max-width: 767.98px) {
  .site-header .navbar-collapse { padding-top: .75rem; }
  .site-header .nav-link {
    padding: .65rem 1rem !important;
    justify-content: flex-start;
    border-radius: var(--osc-radius-sm);
    margin: .1rem 0;
  }
  .site-header .nav-link.active { background: rgba(31,143,203,.1); }
}

.site-header .dropdown-menu {
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    box-shadow: var(--osc-shadow);
    padding: .5rem;
    margin-top: .25rem !important;
}
.site-header .dropdown-item {
    border-radius: var(--osc-radius-sm);
    padding: .5rem .75rem;
    font-weight: 500;
    color: var(--osc-ink-soft);
}
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus {
    background: rgba(31,143,203,.1);
    color: var(--osc-blue);
}

/* Makes mega-menu */
.site-header .mega-menu { min-width: 460px; padding: 1rem; }
.site-header .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .15rem .5rem;
}
.site-header .mega-menu-item {
    padding: .5rem .75rem;
    border-radius: var(--osc-radius-sm);
    font-weight: 500;
    color: var(--osc-ink-soft);
    text-decoration: none;
    white-space: nowrap;
}
.site-header .mega-menu-item:hover {
    background: rgba(31,143,203,.1);
    color: var(--osc-blue);
}
.site-header .mega-menu-footer {
    border-top: 1px solid var(--osc-border);
    margin-top: .75rem; padding-top: .75rem;
    text-align: center;
}
.site-header .mega-menu-footer a {
    color: var(--osc-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}
.site-header .mega-menu-footer a:hover { text-decoration: underline; }

@media (max-width: 767.98px) {
    .site-header .mega-menu { min-width: auto; padding: .5rem; }
    .site-header .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
}

.navbar-toggler {
  border: 1px solid var(--osc-border);
  padding: .4rem .6rem;
  border-radius: var(--osc-radius-sm);
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(31,143,203,.18); }

/* Custom hamburger */
.osc-burger {
  width: 44px; height: 40px;
  display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  background: #fff;
}
.osc-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--osc-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
}
.osc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.osc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.osc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== Vehicle card ============== */
.vehicle-card {
  transition: transform .18s ease, box-shadow .18s ease;
  border-radius: var(--osc-radius);
  overflow: hidden;
  background: #fff;
}
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--osc-shadow-lg) !important; }
.vehicle-card .img-wrap { height: 200px; border-bottom: none; border-radius: 0; }
.vehicle-card .vehicle-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: opacity .25s ease, transform .4s ease;
}
.vehicle-card:hover .vehicle-img { transform: scale(1.04); }

.vehicle-card .card-badges {
    position: absolute;
    top: .7rem; left: .7rem;
    display: flex; gap: .4rem;
    z-index: 3;
}
.badge-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .6rem;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    color: var(--osc-ink);
    backdrop-filter: blur(4px);
    box-shadow: var(--osc-shadow-sm);
}
.badge-certified { background: var(--osc-blue); color: #fff; }
.badge-new       { background: var(--osc-lime); color: var(--osc-ink); }
.badge-used      { background: rgba(255,255,255,.95); color: var(--osc-ink-soft); }

.vehicle-card .card-savings {
    position: absolute;
    bottom: .7rem; right: .7rem;
    padding: .3rem .6rem;
    background: var(--osc-lime);
    color: var(--osc-ink);
    font-size: .72rem; font-weight: 800;
    letter-spacing: .04em;
    border-radius: 6px;
    z-index: 3;
    box-shadow: var(--osc-shadow-sm);
}

.vehicle-card .card-body { padding: 1rem 1rem 1.1rem; }
.vehicle-card .card-title { font-size: 1rem; color: var(--osc-ink); margin-bottom: 0; }
.vehicle-card .card-meta { font-weight: 600; }
.vehicle-card .card-price { display: flex; align-items: baseline; gap: .5rem; }
.vehicle-card .price-msrp { text-decoration: line-through; color: var(--osc-muted); font-size: .85rem; }
.vehicle-card .price-now  { color: var(--osc-blue); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.vehicle-card .card-stats { color: var(--osc-muted); }
.vehicle-card .card-stats .bi { color: var(--osc-muted); margin-right: .2rem; }

/* Pagination */
.pagination .page-link {
    border-radius: 999px !important;
    margin: 0 .15rem;
    min-width: 40px; text-align: center;
    border-color: var(--osc-border);
    color: var(--osc-ink-soft);
    padding: .45rem .8rem;
}
.pagination .page-item.active .page-link {
    background: var(--osc-blue);
    border-color: var(--osc-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(31,143,203,.25);
}
.pagination .page-item.disabled .page-link { color: var(--osc-muted); opacity: .5; }

/* Image wrapper (spinner + placeholder) */
.img-wrap {
    position: relative;
    display: block;
    background: #f3f5f8;
    overflow: hidden;
    border-bottom: 1px solid var(--osc-border);
}
.img-wrap::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 32px; height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(15,23,32,.08);
    border-top-color: var(--osc-blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    z-index: 0;
}
.img-wrap .vehicle-img { position: relative; z-index: 1; opacity: 0; }
.img-wrap.loaded .vehicle-img { opacity: 1; }
.img-wrap.loaded::after { display: none; }
.img-wrap .img-placeholder {
    position: absolute; inset: 0;
    display: none;
    flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--osc-muted); gap: .25rem;
    z-index: 2;
}
.img-wrap .img-placeholder .bi { font-size: 2rem; }
.img-wrap .img-placeholder span { font-size: .85rem; font-weight: 500; }
.img-wrap.no-image::after { display: none; }
.img-wrap.no-image .vehicle-img { display: none; }
.img-wrap.no-image .img-placeholder { display: flex; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============== Horizontal rail ============== */
.rail {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 260px; scroll-snap-align: start; }
.rail-controls .btn {
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1;
  background: #fff;
}
.rail-controls .btn + .btn { margin-left: .5rem; }

/* ============== Detail carousel ============== */
#photoCarousel .carousel-inner,
#photoCarousel .carousel-item { height: 480px; background: #f3f5f8; border-radius: var(--osc-radius); }
#photoCarousel .carousel-item img { height: 100%; width: 100%; object-fit: cover; }

/* ============== Toasts ============== */
#osc-toasts {
    position: fixed;
    top: 80px; right: 1rem;
    z-index: 9998;
    display: flex; flex-direction: column; gap: .5rem;
    pointer-events: none;
}
.osc-toast {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .65rem 1rem;
    background: #fff;
    color: var(--osc-ink);
    border: 1px solid var(--osc-border);
    border-left: 4px solid var(--osc-blue);
    border-radius: var(--osc-radius);
    box-shadow: var(--osc-shadow);
    font-weight: 600; font-size: .9rem;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: auto;
    min-width: 200px;
}
.osc-toast.show { opacity: 1; transform: translateX(0); }
.osc-toast.toast-success { border-left-color: var(--osc-lime-text); }
.osc-toast.toast-warn    { border-left-color: #E29B27; }
.osc-toast .bi { font-size: 1.1rem; }

/* ============== Page loader ============== */
#page-loader {
  position: fixed; inset: 0;
  background: rgba(246,248,251,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .25s ease;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }

/* ============== Search filters ============== */
.filter-sidebar > .offcanvas-body { padding: 0 !important; }
@media (max-width: 991.98px) {
    /* Full-width drawer on mobile */
    .filter-sidebar.offcanvas { width: 100vw !important; max-width: 100vw; }
    .filter-sidebar .offcanvas-body { padding: 1rem !important; }
}
@media (min-width: 992px) {
    .filter-sidebar { position: sticky; top: 4.5rem; max-height: calc(100vh - 5rem); overflow-y: auto; }
}
.filter-sidebar .card { border-radius: var(--osc-radius); }
.filter-group { margin-bottom: 1.1rem; }
.filter-group:last-of-type { margin-bottom: .5rem; }
.filter-value { font-size: .85rem; font-weight: 600; color: var(--osc-blue); }

/* noUiSlider brand styling */
.osc-slider { margin: .5rem .35rem 0; }
.noUi-target {
    background: #E9EEF4;
    border: none;
    box-shadow: none;
    height: 3px;
    border-radius: 999px;
}
.noUi-connect { background: var(--osc-blue); }
.noUi-horizontal .noUi-handle {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--osc-blue);
    box-shadow: 0 1px 4px rgba(15,23,32,.12);
    cursor: grab;
    top: -7px;
    right: -8px;
}
.noUi-handle:before, .noUi-handle:after { display: none; }
.noUi-horizontal .noUi-handle:active { cursor: grabbing; transform: scale(1.1); }

/* Sticky mobile Filters trigger (visible while scrolling results) */
@media (max-width: 991.98px) {
    .mobile-filter-trigger {
        position: sticky;
        top: 72px;          /* clear the sticky header */
        z-index: 20;
        padding-top: .25rem;
        padding-bottom: .25rem;
        background: transparent;
        margin-bottom: -.5rem;
    }
    .search-layout > .mobile-filter-trigger + * { padding-top: 0; }
}
.btn-mobile-filter {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--osc-blue);
    border: 1px solid rgba(31,143,203,.25);
    font-weight: 600;
    padding: .55rem 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(15,23,32,.06);
    transition: background .15s ease, border-color .15s ease;
}
.btn-mobile-filter:hover, .btn-mobile-filter:focus {
    background: rgba(255,255,255,.95);
    color: var(--osc-blue-dark);
    border-color: var(--osc-blue);
}

/* Mobile filter count badge */
.filter-count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 .4rem;
    background: var(--osc-blue); color: #fff;
    border-radius: 999px;
    font-size: .8rem; font-weight: 700;
    margin-left: .25rem;
}

/* Filter actions row (Reset + Apply) — desktop, inside form card */
.filter-actions {
    display: flex; gap: .5rem; align-items: center;
    margin-top: 1rem;
}
.filter-actions .btn-primary { flex: 1; }

/* Mobile drawer footer — outside form, pinned to drawer bottom */
@media (max-width: 991.98px) {
    .filter-sidebar.offcanvas { display: flex !important; flex-direction: column; }
    .filter-sidebar.offcanvas .offcanvas-header { flex: 0 0 auto; }
    .filter-sidebar.offcanvas .offcanvas-body { flex: 1 1 auto; overflow-y: auto; }
    .drawer-footer {
        flex: 0 0 auto;
        display: flex; gap: .5rem;
        padding: .85rem 1rem;
        background: #fff;
        border-top: 1px solid var(--osc-border);
        box-shadow: 0 -6px 16px rgba(15,23,32,.06);
    }
    .drawer-footer .btn-primary { flex: 1; }
}

/* Empty state */
.empty-state {
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--osc-shadow-sm);
}
.empty-icon { font-size: 3rem; color: var(--osc-blue); opacity: .55; }
.empty-title { font-size: 1.3rem; font-weight: 700; margin: 1rem 0 .5rem; }
.empty-text { color: var(--osc-muted); margin-bottom: 1.25rem; }
.empty-suggestions {
    display: inline-block; text-align: left;
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    color: var(--osc-ink-soft);
}
.empty-suggestions li { padding: .25rem 0; }
.empty-suggestions a { color: var(--osc-blue); text-decoration: none; font-weight: 600; }
.empty-suggestions a:hover { text-decoration: underline; }

/* Favorite heart on cards */
.vehicle-card .card-fav {
    position: absolute;
    top: .65rem; right: .65rem;
    width: 36px; height: 36px;
    border: none; padding: 0;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--osc-shadow-sm);
    z-index: 4;
    transition: transform .15s ease, background .15s ease;
}
.vehicle-card .card-fav:hover { transform: scale(1.1); }
.vehicle-card .card-fav .bi { font-size: 1.05rem; line-height: 1; }
.vehicle-card .card-fav .bi-heart { color: var(--osc-ink-soft); display: block; }
.vehicle-card .card-fav .bi-heart-fill { color: #E74C5C; display: none; }
.vehicle-card .card-fav.is-fav .bi-heart { display: none; }
.vehicle-card .card-fav.is-fav .bi-heart-fill { display: block; }

/* Active filter chips */
.active-chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.active-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .65rem .35rem .85rem;
    background: rgba(31,143,203,.1);
    color: var(--osc-blue);
    border-radius: 999px;
    font-size: .85rem; font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .15s ease;
}
.active-chip:hover {
    background: var(--osc-blue);
    color: #fff;
}
.active-chip .bi {
    font-size: .7rem;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(15,23,32,.08);
    border-radius: 50%;
    transition: background .15s ease;
}
.active-chip:hover .bi { background: rgba(255,255,255,.25); }
.active-chip-clear {
    color: var(--osc-muted);
    text-decoration: none;
    font-size: .85rem; font-weight: 600;
    padding: .35rem .5rem;
}
.active-chip-clear:hover { color: var(--osc-blue); text-decoration: underline; }

/* Results toolbar — sticky on scroll */
.results-toolbar {
    position: sticky;
    top: 0;
    background: var(--osc-bg);
    z-index: 10;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}
.results-toolbar.scrolled { border-bottom-color: var(--osc-border); }

/* Condition toggle (btn-check group) */
.btn-check:checked + .btn-outline-secondary {
    background: var(--osc-blue);
    border-color: var(--osc-blue);
    color: #fff;
}

/* ============== Hero ============== */
.hero {
  position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(31,143,203,.18), transparent 70%),
              radial-gradient(900px 400px at 95% 110%, rgba(197,214,57,.22), transparent 70%),
              #fff;
  border: 1px solid var(--osc-border);
  border-radius: var(--osc-radius-lg);
  padding: 1.75rem 1.25rem;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 2.75rem 2rem; } }

.hero-inner { max-width: 960px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--osc-blue);
  background: rgba(31,143,203,.08);
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: .8rem;
  color: var(--osc-ink);
}
.hero-accent {
  background: linear-gradient(135deg, var(--osc-lime-dark), var(--osc-lime));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding: 0 .1em;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--osc-ink-soft);
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* Hero form: mobile stacks, md+ inline with zip + submit paired */
.hero-form {
  background: #fff;
  border: 1px solid var(--osc-border);
  border-radius: var(--osc-radius);
  padding: 1rem;
  box-shadow: var(--osc-shadow);
}
.hero-form-row { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .hero-form-row { grid-template-columns: 1.3fr 1.3fr .7fr .9fr; align-items: end; }
}
.hero-field .form-label { color: var(--osc-muted); margin-bottom: .25rem; }
.hero-field-submit .btn { height: 58px; }

.hero-quick-links {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-top: 1.25rem; font-size: .9rem;
}
.hero-quick-links a {
  color: var(--osc-ink-soft);
  text-decoration: none;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,32,.06);
  background: rgba(15,23,32,.04);
  transition: all .15s ease;
  font-weight: 500;
}
.hero-quick-links a:hover { background: var(--osc-blue); color: #fff; border-color: var(--osc-blue); }
.hero-quick-links .ms-auto { border: none; background: none; padding: .35rem 0; color: var(--osc-blue); font-weight: 600; }
.hero-quick-links .ms-auto:hover { background: none; color: var(--osc-blue-dark); text-decoration: underline; }

/* ============== Footer ============== */
.site-footer {
    border-top: 1px solid var(--osc-border);
    background: #fff;
    margin-top: 4rem;
}
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a {
    color: var(--osc-ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
}
.footer-nav a:hover { color: var(--osc-blue); }

/* ============== Legal pages ============== */
.legal-page {
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    padding: 2.5rem;
    box-shadow: var(--osc-shadow-sm);
    max-width: 960px;
    margin: 0 auto;
}
@media (max-width: 576px) { .legal-page { padding: 1.5rem; } }
.legal-page h1 { font-size: 2rem; margin-bottom: .25rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.75rem; color: var(--osc-ink); }
.legal-page p  { color: var(--osc-ink-soft); line-height: 1.65; }
.legal-page a  { color: var(--osc-blue); }

/* ============== Detail page ============== */
.detail-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0; }
.detail-breadcrumb a { color: var(--osc-muted); text-decoration: none; }
.detail-breadcrumb a:hover { color: var(--osc-blue); }
.detail-breadcrumb .breadcrumb-item.active { color: var(--osc-ink); font-weight: 500; }

.detail-carousel { border-radius: var(--osc-radius); overflow: hidden; box-shadow: var(--osc-shadow); }
.detail-carousel .carousel-control-prev, .detail-carousel .carousel-control-next { width: 10%; }
.detail-carousel .carousel-control-prev-icon, .detail-carousel .carousel-control-next-icon {
    background-color: rgba(255,255,255,.95);
    border-radius: 50%;
    background-size: 50% 50%;
    width: 40px; height: 40px;
    box-shadow: var(--osc-shadow);
    filter: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231F8FCB'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}
.detail-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231F8FCB'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.detail-carousel .carousel-counter {
    position: absolute;
    bottom: 1rem; right: 1rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(15,23,32,.65);
    color: #fff;
    font-size: .8rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
#photoCarousel .carousel-inner, #photoCarousel .carousel-item { border-radius: 0; }

.detail-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--osc-ink);
}
.detail-trim { font-size: 1.1rem; color: var(--osc-muted); font-weight: 500; margin-top: .1rem; }
.badge-market { background: rgba(31,143,203,.1); color: var(--osc-blue); }

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .25rem 1.5rem;
    margin: 0;
}
@media (min-width: 576px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-grid > div {
    padding: .65rem 0;
    border-bottom: 1px solid var(--osc-border);
}
.spec-grid dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--osc-muted);
    font-weight: 600;
    margin: 0;
}
.spec-grid dd { margin: .15rem 0 0; color: var(--osc-ink); font-weight: 500; }

/* Price card */
.price-card {
    position: sticky; top: 1rem;
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    padding: 1.5rem;
    box-shadow: var(--osc-shadow);
}
.price-msrp-row { display: flex; justify-content: space-between; align-items: baseline; }
.price-msrp-label { font-size: .8rem; color: var(--osc-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.price-msrp-value { color: var(--osc-muted); text-decoration: line-through; font-weight: 500; }
.price-now-row { margin: .5rem 0 .25rem; }
.price-card .price-now { font-size: 2.5rem; font-weight: 800; color: var(--osc-blue); letter-spacing: -.03em; line-height: 1; }
.price-savings {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .75rem;
    background: rgba(197,214,57,.25);
    color: var(--osc-lime-text);
    border-radius: 999px;
    font-size: .85rem; font-weight: 700;
    margin-top: .5rem;
}
.price-stat { margin-top: .9rem; color: var(--osc-ink-soft); font-weight: 500; }
.price-stat .bi { color: var(--osc-muted); margin-right: .25rem; }
.price-footnote { text-align: center; font-size: .78rem; color: var(--osc-muted); }

/* ============== Lead form page ============== */
.lead-card, .vehicle-summary {
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    box-shadow: var(--osc-shadow-sm);
    overflow: hidden;
}
.lead-card { padding: 2rem; }
@media (max-width: 576px) { .lead-card { padding: 1.25rem; } }
.lead-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.lead-subtitle { color: var(--osc-muted); margin-top: .25rem; margin-bottom: 1.5rem; }
.lead-footnote {
    font-size: .8rem; color: var(--osc-muted);
    display: flex; align-items: center; gap: .4rem;
    justify-content: center;
}
.vehicle-summary .img-wrap { border-radius: 0; }

/* Success state */
.success-card {
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--osc-shadow-sm);
}
.success-icon {
    font-size: 3rem;
    color: var(--osc-lime-text);
    line-height: 1;
    margin-bottom: .75rem;
}
.success-title { font-size: 1.6rem; font-weight: 800; margin: 0; }
.success-text { color: var(--osc-muted); margin: .5rem 0 0; }

/* ============== Trust strip ============== */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    box-shadow: var(--osc-shadow-sm);
}
@media (min-width: 768px) { .trust-strip { grid-template-columns: repeat(4, 1fr); padding: 1.5rem; } }
.trust-item { text-align: center; }
.trust-num { font-weight: 800; font-size: 1.15rem; color: var(--osc-blue); letter-spacing: -.02em; }
.trust-label { font-size: .82rem; color: var(--osc-muted); font-weight: 500; }

/* ============== Body-type tiles ============== */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 576px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .tile-grid { grid-template-columns: repeat(8, 1fr); } }
.tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .5rem;
    padding: 1.25rem .5rem;
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    text-decoration: none;
    color: var(--osc-ink-soft);
    transition: all .15s ease;
    box-shadow: var(--osc-shadow-sm);
}
.tile:hover {
    transform: translateY(-3px);
    border-color: var(--osc-blue);
    color: var(--osc-blue);
    box-shadow: var(--osc-shadow);
}
.tile-icon { font-size: 1.75rem; color: var(--osc-blue); }
.tile-label { font-weight: 600; font-size: .9rem; }
.tile-accent { background: linear-gradient(135deg, rgba(197,214,57,.15), rgba(197,214,57,.05)); border-color: var(--osc-lime-dark); }
.tile-accent .tile-icon { color: var(--osc-lime-text); }
.tile-accent:hover { border-color: var(--osc-lime-dark); color: var(--osc-lime-text); }

/* ============== Price tiles ============== */
.price-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}
@media (min-width: 576px) { .price-tile-grid { grid-template-columns: repeat(5, 1fr); } }
.price-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    text-decoration: none;
    color: var(--osc-ink);
    transition: all .15s ease;
    box-shadow: var(--osc-shadow-sm);
}
.price-tile:hover {
    transform: translateY(-3px);
    background: var(--osc-blue);
    color: #fff;
    border-color: var(--osc-blue);
    box-shadow: var(--osc-shadow);
}
.price-tile:hover .price-tile-eyebrow { color: rgba(255,255,255,.8); }
.price-tile-eyebrow { font-size: .75rem; font-weight: 600; color: var(--osc-muted); text-transform: uppercase; letter-spacing: .08em; }
.price-tile-amount { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin-top: .15rem; }

/* ============== How It Works ============== */
.hiw-hero { text-align: center; padding: 1rem 0 .5rem; }
.hiw-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: .8rem 0;
}
.hiw-subtitle { color: var(--osc-ink-soft); max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; }

.hiw-steps {
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .hiw-steps { grid-template-columns: repeat(3, 1fr); } }
.hiw-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    padding: 1.75rem;
    box-shadow: var(--osc-shadow-sm);
}
.hiw-step-num {
    position: absolute; top: -14px; left: 1.5rem;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--osc-blue); color: #fff;
    font-weight: 800; font-size: .9rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(31,143,203,.3);
}
.hiw-step-icon {
    font-size: 1.75rem; color: var(--osc-blue);
    background: rgba(31,143,203,.1);
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--osc-radius);
    margin-bottom: 1rem;
}
.hiw-step-title { font-weight: 700; margin-bottom: .5rem; }
.hiw-step-text { color: var(--osc-ink-soft); margin: 0; line-height: 1.6; }

/* Promises grid */
.promises-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .promises-grid { grid-template-columns: repeat(2, 1fr); } }
.promise {
    display: flex; gap: .9rem; align-items: flex-start;
    background: #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius);
    padding: 1.25rem;
    box-shadow: var(--osc-shadow-sm);
}
.promise-icon {
    font-size: 1.5rem;
    color: var(--osc-blue);
    background: rgba(31,143,203,.1);
    width: 40px; height: 40px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--osc-radius-sm);
}
.promise-title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.promise-text { color: var(--osc-ink-soft); margin: 0; font-size: .9rem; line-height: 1.55; }

/* Accordion */
.accordion-item {
    border: 1px solid var(--osc-border) !important;
    border-radius: var(--osc-radius) !important;
    margin-bottom: .5rem;
    overflow: hidden;
    background: #fff;
}
.accordion-button {
    font-weight: 600;
    color: var(--osc-ink);
    background: #fff;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    color: var(--osc-blue);
    background: rgba(31,143,203,.06);
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(31,143,203,.18) !important; }
.accordion-body { line-height: 1.6; }

/* ============== Closing CTA ============== */
.closing-cta {
    text-align: center;
    background: radial-gradient(800px 300px at 50% 0%, rgba(31,143,203,.12), transparent 70%), #fff;
    border: 1px solid var(--osc-border);
    border-radius: var(--osc-radius-lg);
    padding: 3rem 1.5rem;
    box-shadow: var(--osc-shadow-sm);
}
.closing-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.closing-cta-text {
    color: var(--osc-ink-soft);
    max-width: 720px; margin: 0 auto 1.5rem;
    line-height: 1.65;
}

/* ============== Browse makes chips ============== */
.make-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.make-chip {
  display: inline-block;
  padding: .5rem 1rem;
  font-size: .9rem; font-weight: 500;
  color: var(--osc-ink-soft);
  background: #fff;
  border: 1px solid var(--osc-border);
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s ease;
}
.make-chip:hover {
  background: var(--osc-blue); color: #fff; border-color: var(--osc-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(31,143,203,.2);
}
