/* custom styles */

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(148,163,184,0.4) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.4); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.6); }

/* line-clamp-2 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* range input */
input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
  height: 24px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: rgb(226 232 240);
  border-radius: 999px;
}
.dark input[type="range"]::-webkit-slider-runnable-track {
  background: rgb(51 65 85);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px; width: 16px;
  margin-top: -6px;
  background: #0ea5e9;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* card entrance */
.listing-card, .cat-card, .recent-item {
  animation: fadeUp 280ms ease-out both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* focus rings */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 8px;
}

/* image shimmer */
img { background: linear-gradient(110deg, rgba(148,163,184,0.1) 30%, rgba(148,163,184,0.25) 50%, rgba(148,163,184,0.1) 70%); background-size: 200% 100%; }
img[src] { animation: shimmer 1.2s linear; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* print */
@media print {
  header, footer, nav, #modal, #postModal, #toast { display: none !important; }
}
