:root {
  --amber: #f59e0b;
  --amber-dark: #ad6500;
  --ink: #101316;
  --ink-2: #181c20;
  --steel: #626b73;
  --surface: #fff;
  --muted: #f4f6f7;
  --border: #e1e5e8;
  --success: #16875b;
  --danger: #c43c3c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  font-family: Inter, sans-serif;
  color: #171a1d;
  background: #fff;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
.navbar-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  top: -60px;
  left: 1rem;
  background: var(--amber);
  padding: 0.8rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.offline {
  background: #7c2d12;
  color: #fff;
  padding: 0.5rem;
  text-align: center;
}
.topbar {
  background: #080a0c;
  color: #c8ced3;
  font-size: 0.8rem;
  padding: 0.5rem 0;
}
.site-nav {
  background: var(--ink);
  border-bottom: 3px solid var(--amber);
}
.site-nav .nav-link {
  color: #dbe0e4;
  font-weight: 600;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--amber);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--amber);
  color: #111;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  font-family: 'Barlow Condensed';
  font-weight: 800;
}
.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #111;
  font-weight: 700;
}
.btn-amber:hover {
  background: #ffc457;
  border-color: #ffc457;
}
.hero {
  min-height: 650px;
  color: #fff;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.94), rgba(5, 7, 8, 0.58), rgba(5, 7, 8, 0.25)),
    url('/assets/images/hero/home-hero-desktop.jpg') center/cover,
    var(--ink);
}
.eyebrow {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.78rem;
}
.display-hero {
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  max-width: 880px;
}
.search-panel {
  background: #fff;
  color: #171a1d;
  padding: 1.25rem;
  border-left: 5px solid var(--amber);
  box-shadow: 0 20px 50px #0005;
}
.section {
  padding: 5rem 0;
}
.section-muted {
  background: var(--muted);
}
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.service-card,
.inventory-card,
.vehicle-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  transition: 0.2s;
  overflow: hidden;
}
.service-card:hover,
.inventory-card:hover,
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px #15202b18;
}
.service-icon {
  font-size: 2rem;
  color: var(--amber);
}
.card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #dfe3e5;
}
.badge-available {
  background: #d9f3e8;
  color: #126742;
}
.price {
  font: 800 1.7rem 'Barlow Condensed';
}
.hazard {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 18px, #15181b 18px 36px);
}
.filters {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: sticky;
  top: 85px;
}
.skeleton {
  background: linear-gradient(90deg, #e6eaed 25%, #f7f8f9 50%, #e6eaed 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.detail-gallery-main {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e6eaed;
}
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.spec-list > div {
  background: #fff;
  padding: 0.8rem;
}
.spec-list small {
  display: block;
  color: var(--steel);
}
.stepper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.stepper span {
  height: 5px;
  flex: 1;
  background: #d9dde0;
}
.stepper span.active {
  background: var(--amber);
}
.form-step[hidden] {
  display: none;
}
.cta-band {
  background: var(--amber);
  padding: 4rem 0;
}
.site-footer {
  background: #090b0d;
  color: #aeb6bd;
  padding: 4rem 0 6rem;
}
.site-footer h3 {
  color: #fff;
}
.route-loader {
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  z-index: 2000;
}
.app-toast {
  background: #111;
  color: #fff;
  border-left: 4px solid var(--amber);
  padding: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 8px 25px #0004;
}
.mobile-actions {
  display: none;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed #b8c0c7;
}
.admin-placeholder {
  background: #fff5db;
  border-left: 4px solid var(--amber);
  padding: 1rem;
}
.prose {
  max-width: 820px;
}
.prose p {
  line-height: 1.8;
}
@media (max-width: 767px) {
  html {
    scroll-padding-bottom: 6rem;
  }
  .topbar {
    display: none;
  }
  .hero {
    min-height: 760px;
    background-image:
      linear-gradient(rgba(5, 7, 8, 0.84), rgba(5, 7, 8, 0.8)),
      url('/assets/images/hero/home-hero-mobile.jpg');
  }
  .section {
    padding: 3.5rem 0;
  }
  .mobile-actions {
    position: fixed;
    z-index: 1000;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #111;
    color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-actions a {
    font-size: 0.68rem;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    padding: 0.6rem 0.1rem;
  }
  .mobile-actions a.is-unavailable {
    cursor: not-allowed;
    opacity: 0.55;
  }
  .mobile-actions i {
    display: block;
    color: var(--amber);
    font-size: 1.1rem;
  }
  .site-footer {
    padding-bottom: 7rem;
  }
  .filters {
    position: static;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
  .display-hero {
    font-size: 3.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
}

/* Complete-vehicle marketplace */
.sale-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sale-toolbar .form-select {
  width: auto;
  min-width: 190px;
}
.sale-results {
  display: grid;
  gap: 1.25rem;
}
.sale-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sale-results-list {
  grid-template-columns: 1fr;
}
.sale-results-list .sale-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
}
.sale-results-list .sale-card-image-wrap {
  height: 100%;
}
.sale-results-list .sale-card-image {
  height: 100%;
  aspect-ratio: auto;
}
.sale-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 20px #14202b0a;
}
.sale-card-image-wrap {
  display: block;
  position: relative;
}
.sale-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e5e8ea;
}
.sale-featured {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--amber);
  color: #111;
  padding: 0.35rem 0.6rem;
  font-weight: 800;
}
.sale-card-body {
  padding: 1.15rem;
}
.sale-card h3 {
  font-size: 1.7rem;
  margin: 0.2rem 0 0.75rem;
}
.sale-card h3 a {
  text-decoration: none;
}
.sale-kicker {
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.75rem 0 0;
}
.sale-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--steel);
  font-size: 0.88rem;
}
.sale-card-actions,
.sale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.sale-actions {
  position: relative;
  z-index: 2;
}
.sale-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sale-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #9aa3aa;
  background: #f3f5f6;
  color: #252a2e;
  border-radius: 2rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sale-badge-important,
.sale-badge-sold,
.sale-badge-non-running,
.sale-badge-salvage {
  background: #fff0e8;
  border-color: #b74420;
  color: #7e260e;
}
.sale-badge-available {
  background: #e2f7ed;
  border-color: #16875b;
  color: #126742;
}
.sale-badge-reserved,
.sale-badge-pending {
  background: #fff5d7;
  border-color: #9b6900;
  color: #704c00;
}
.sale-price {
  font: 800 1.9rem 'Barlow Condensed';
  color: #111;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
}
.filter-chip {
  border: 1px solid #9ca4aa;
  border-radius: 2rem;
  background: #fff;
  padding: 0.35rem 0.7rem;
}
.sale-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.sale-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--steel);
}
.gallery-main {
  padding: 0;
  border: 0;
  background: #e5e8ea;
  width: 100%;
  cursor: zoom-in;
}
.gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: #ddd;
}
.gallery-thumbs button:focus {
  border-color: var(--amber);
}
.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.sale-disclosure {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.sale-disclosure h2 {
  font-size: 1.8rem;
}
.fulfillment-card {
  background: var(--ink);
  color: #fff;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  border-top: 5px solid var(--amber);
}
.sale-dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: 90vh;
  border: 0;
  padding: 1.5rem;
  box-shadow: 0 25px 80px #0008;
  overflow: auto;
}
.sale-dialog::backdrop {
  background: #080b0dd9;
}
.dialog-close-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.lightbox {
  width: min(1100px, calc(100% - 2rem));
  background: #0a0c0e;
  color: #fff;
  overflow: hidden;
}
.lightbox > img {
  display: block;
  width: 100%;
  height: min(75vh, 760px);
  object-fit: contain;
}
.lightbox > .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  border: 0;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  background: #000a;
  color: #fff;
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
.lightbox p {
  text-align: center;
  margin: 0.5rem;
}
.reservation-notice {
  background: #fff4d6;
  border-left: 4px solid var(--amber);
  padding: 1rem;
  margin-top: 1rem;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
}
.route-sale-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: min(1100px, 90%);
  margin: 5rem auto;
}
.route-sale-skeleton span {
  display: block;
  height: 340px;
}
.sale-detail .cta-band {
  border-left: 6px solid var(--ink);
}
@media (max-width: 1199px) {
  .sale-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .sale-detail {
    padding-bottom: 7rem;
  }
  .sale-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .sale-toolbar > div {
    width: 100%;
    flex-wrap: wrap;
  }
  .sale-toolbar .form-select {
    flex: 1;
    min-width: 170px;
  }
  .sale-results-grid,
  .sale-results-list {
    grid-template-columns: 1fr;
  }
  .sale-results-list .sale-card {
    display: block;
  }
  .sale-card-actions .btn {
    flex: 1;
  }
  .sale-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    padding: 1rem;
  }
  .sale-filter-dialog {
    margin-left: auto;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .sale-actions .btn,
  .sale-actions a {
    width: 100%;
  }
  .route-sale-skeleton {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  .route-sale-skeleton span:not(:first-child) {
    display: none;
  }
}
.announcement-bar {
  background: #f59e0b;
  color: #101316;
  text-align: center;
  font-weight: 700;
  padding: 0.65rem 1rem;
}
.unified-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  max-width: 850px;
  margin: 2rem 0;
}
.search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 110px;
  background: white;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px rgb(16 19 22 / 15%);
  overflow: hidden;
}
.search-suggestions a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  text-decoration: none;
}
.search-suggestions a[aria-selected='true'],
.search-suggestions a:hover {
  background: #fff3cd;
}
.search-suggestions small { text-transform: capitalize; color: #59636e; }
.search-history > div { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-bottom: 2rem; }
.search-history button { border: 1px solid #ced4da; border-radius: 2rem; background: white; padding: 0.4rem 0.8rem; }
.search-group { margin: 2.5rem 0; }
.search-group h2 { display: flex; gap: 0.6rem; align-items: center; border-bottom: 3px solid var(--amber); padding-bottom: 0.65rem; }
.search-group h2 small { margin-left: auto; font-size: 1rem; color: #59636e; }
.search-group-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.search-group-results article { background: white; border: 1px solid #dee2e6; border-radius: 0.5rem; padding: 1rem; }
.search-group-results h3 { font-size: 1.2rem; }
.search-pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 3rem; }
@media (max-width: 767px) {
  .unified-search { grid-template-columns: 1fr; }
  .search-suggestions { right: 0; }
  .search-group-results { grid-template-columns: 1fr; }
}
