/* Custom utility classes (Tailwind CDN doesn't support @apply on external CSS,
   so these are written as plain CSS mirroring the intended Tailwind utility combos) */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  background-color: #ea580c; color: #fff; font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); transition: background-color .15s ease;
}
.btn-primary:hover { background-color: #c2410c; }
.btn-primary:active { background-color: #9a3412; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  background-color: #fff; color: #1e293b; font-size: 0.875rem; font-weight: 600;
  border: 1px solid #cbd5e1; transition: all .15s ease;
}
.btn-secondary:hover { border-color: #f97316; color: #ea580c; }

.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  background-color: rgba(255,255,255,0.1); color: #fff; font-size: 0.875rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px); transition: background-color .15s ease;
}
.btn-outline-white:hover { background-color: rgba(255,255,255,0.2); }

.nav-link {
  padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 600;
  color: #334155; transition: all .15s ease;
}
.nav-link:hover { color: #ea580c; background-color: #fff7ed; }
.nav-link-active { color: #ea580c; background-color: #fff7ed; }

.section-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
.section-subtitle { color: #64748b; margin-top: 0.5rem; }

.card {
  background-color: #fff; border-radius: 1rem; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow .3s ease;
}
.card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.65rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 700; }
.badge-featured { background-color: #ea580c; color: #fff; }
.badge-new { background-color: #10b981; color: #fff; }
.badge-sold { background-color: #64748b; color: #fff; }

.input-field, .select-field {
  width: 100%; padding: 0.625rem 0.875rem; border-radius: 0.5rem;
  border: 1px solid #cbd5e1; font-size: 0.875rem; color: #1e293b; background-color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-field:focus, .select-field:focus {
  outline: none; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.25);
}
.select-field { appearance: none; }

.label-field {
  display: block; font-size: 0.7rem; font-weight: 700; color: #475569;
  margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em;
}

.spinner {
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: #ea580c;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.car-card-image { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.hero-gradient {
  background: radial-gradient(ellipse at top right, rgba(234,88,12,0.35), transparent 60%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

.gallery-thumb { aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: opacity .2s; width: 100%; }
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { outline: 3px solid #ea580c; outline-offset: -3px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
