/* Wellesley Mazda — minimal supplemental styles. Tailwind handles 95%. */

html, body { -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Hide scrollbars on horizontal chip rows */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Carousel snap */
.carousel { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.carousel > * { scroll-snap-align: center; flex-shrink: 0; }

/* Range slider — keep it readable on iOS */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: #e5e5e5; border-radius: 999px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: #C4001A; border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: #C4001A; border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* Dual-range slider stack: position inputs on top of each other */
.dual-range { position: relative; height: 28px; }
.dual-range input[type=range] {
  position: absolute; left: 0; right: 0; top: 12px;
  pointer-events: none; background: transparent;
}
.dual-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; }
.dual-range input[type=range]::-moz-range-thumb { pointer-events: auto; }
.dual-range .track { position: absolute; left: 0; right: 0; top: 22px; height: 4px; background: #e5e5e5; border-radius: 999px; }
.dual-range .fill  { position: absolute; top: 22px; height: 4px; background: #C4001A; border-radius: 999px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fadeIn { animation: fadeIn 0.18s ease-out; }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-slideUp { animation: slideUp 0.22s ease-out; }

/* Image placeholder shimmer */
.img-shimmer {
  background: linear-gradient(110deg, #f4f4f4 8%, #ececec 18%, #f4f4f4 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Sticky filter shadow */
.filter-bar { backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
