:root {
  color-scheme: light;
}

body {
  margin: 0;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hero-gradient {
  background: linear-gradient(180deg, rgba(35, 38, 40, 0.5) 0%, rgba(35, 38, 40, 0.2) 100%);
}

.section-line {
  position: relative;
}

.section-line::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #ffb129;
}

.sold-ribbon {
  background-color: #e94343;
  transform: rotate(45deg);
  position: absolute;
  top: 15px;
  right: -35px;
  width: 140px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #111;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

/* Inventory filter column: scroll without showing a track (overflow still works). */
.hide-scrollbar,
.inventory-filter-sidebar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar,
.inventory-filter-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Inventory sidebar / modal: transparent fields, white label text; options use light surface in the native menu. */
.inventory-filter-select,
.inventory-filter-input {
  /* Some browser / Tailwind forms resets inject white backgrounds + inner shadows. */
  background-color: transparent !important;
  background: transparent !important;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.inventory-filter-select:focus,
.inventory-filter-input:focus {
  outline: 2px solid rgba(78, 119, 237, 0.55);
  outline-offset: 0;
  border-color: rgba(78, 119, 237, 0.85);
}
.inventory-filter-input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}
.inventory-filter-select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Search inputs often carry extra UA styling. */
.inventory-filter-input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
.inventory-filter-input[type="search"]::-webkit-search-decoration,
.inventory-filter-input[type="search"]::-webkit-search-cancel-button,
.inventory-filter-input[type="search"]::-webkit-search-results-button,
.inventory-filter-input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Make sure the “closed” select stays transparent too. */
.inventory-filter-select {
  background-image: none !important;
}

/* Motors-style separators + simple carousels (About page). */
.motors-colored-separator {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.motors-colored-separator .first-long {
  height: 3px;
  width: 54px;
  background: #ffb129;
}
.motors-colored-separator .last-short {
  height: 3px;
  width: 18px;
  background: #ffb129;
}

.motors-orange-underline {
  position: relative;
  display: inline-block;
}
.motors-orange-underline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: #ffb129;
}

.simple-carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.simple-carousel-track::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Motors-like carousel chrome (About page). */
.motors-carousel {
  --motors-nav-size: 42px;
}
.motors-carousel-viewport {
  touch-action: pan-y;
}
.motors-carousel-track {
  will-change: transform;
  transition: transform 320ms ease;
}
.motors-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: var(--motors-nav-size);
  width: var(--motors-nav-size);
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.motors-carousel-prev { left: -14px; }
.motors-carousel-next { right: -14px; }
.motors-carousel-nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.motors-carousel-dots button {
  height: 10px;
  width: 10px;
  border-radius: 9999px;
  background: #cbd5e1;
}
.motors-carousel-dots button[data-active="1"] {
  background: #ffb129;
}

/* About → Media Gallery controls (match provided sample) */
.motors-gallery-chevron {
  color: rgba(255,255,255,0.6);
  transition: color 160ms ease;
}
.motors-gallery-chevron:hover {
  color: rgba(255,255,255,0.82);
}
.motors-gallery-chevron[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}
.motors-gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #5c5f61;
}
.motors-gallery-dots button[data-active="1"] {
  background: #ffb129;
}

/* Breakpoints: match Motors behavior */
@media (max-width: 639px) {
  /* Mobile: hide arrows (use swipe + dots), keep clean layout */
  .motors-carousel-nav { display: none; }
  .motors-carousel { --motors-nav-size: 40px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* Tablet: keep arrows but inside edge so they don’t overflow */
  .motors-carousel-prev { left: 6px; }
  .motors-carousel-next { right: 6px; }
}
@media (min-width: 1024px) {
  /* Desktop: slightly outside edges like reference */
  .motors-carousel-prev { left: -14px; }
  .motors-carousel-next { right: -14px; }
}

body.mobile-menu-open {
  overflow: hidden;
}

[data-mobile-menu-panel].is-open {
  transform: translateX(0);
}

.vehicle-detail-page [data-vehicle-detail-thumb].is-active {
  border-color: #ffb129;
  box-shadow: inset 0 0 0 1px #ffb129;
}