/* ==========================================================
   carousel.css — Mr. Trampolines shared carousel styles
   Loaded once, cached across all pages.
   ========================================================== */

/* Track — horizontal scroll with snap (contained within carousel) */
.c-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
  width: 100%;
  height: 100%;
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.c-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Slide */
.c-slide {
  flex: none;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  position: relative;
}
.c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prev / Next arrows */
.c-prev,
.c-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}
.c-prev:hover, .c-next:hover {
  background: #fff;
  color: var(--primary-color, #1E555A);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.c-prev { left: 0.5rem; }
.c-next { right: 0.5rem; }

/* Dot indicators */
.c-dots-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
}
.c-dot {
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.25s ease;
}
.c-dot.c-dot-active {
  width: 1rem;
  background: #111827;
}

/* Thumbnail strip */
.c-thumbs-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  overscroll-behavior-x: contain;
  padding: 0.25rem; /* padding to allow box-shadow to show without clipping */
}
.c-thumbs-bar::-webkit-scrollbar { display: none; }

.c-dots-bar { display: none; } /* Hide dots, prefer thumbnails everywhere */

/* Thumbnail button */
.c-thumb {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  padding: 0;
  background: #f9fafb;
  opacity: 1;
  transform: scale(0.97);
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}
.c-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-thumb:hover {
  border-color: var(--primary-color, #1E555A);
  transform: scale(1);
}
.c-thumb.c-thumb-active {
  border-color: var(--primary-color, #1E555A);
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #fff;
}

/* Hide prev/next arrows — swipe & thumbnails only */
.c-prev,
.c-next {
  display: none !important;
}
