/* ============================================================
   LUNARIS GARAGE — Home: Lunaris Collect slider (loads after styles.css)
   The car cards sit side by side: the Ferrari 599 GTB first, the GR Yaris next.
   Swipe on a phone, or use the arrows and the name tabs under the cards.
   ============================================================ */
.collect-slider {
  position: relative;
}

/* The track reaches into the container's side padding, so the cards' shadows
   are not cut off at the edges. */
.collect-track {
  display: flex;
  gap: 120px;   /* far enough apart that the next card's shadow stays out of view */
  margin: -40px -48px -72px;
  padding: 40px 48px 72px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 48px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.collect-track::-webkit-scrollbar {
  display: none;
}

.collect-slide {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.collect-slide > .collector-card {
  flex: 1;
}

/* Arrows and the two name tabs under the cards */
.collect-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.collect-tabs {
  display: flex;
  gap: 8px;
}

.collect-tab {
  padding: 10px 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50px;
  background: transparent;
  font-family: 'Inconsolata', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.collect-tab:hover {
  border-color: rgba(0, 0, 0, 0.4);
  color: #000;
}

.collect-tab[aria-current="true"] {
  border-color: #0f1013;
  background: #0f1013;
  color: #fff;
}

.collect-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.collect-arrow:hover:not(:disabled) {
  border-color: #000;
  background: #000;
  color: #fff;
}

.collect-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.collect-tab:focus-visible,
.collect-arrow:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

/* Tablet and phone: the next car peeks in from the side, so people see they can swipe */
@media (max-width: 900px) {
  .collect-track {
    gap: 14px;
  }

  .collect-slide {
    flex-basis: 88%;
  }
}

@media (max-width: 768px) {
  .collect-track {
    margin: -32px -24px -64px;
    padding: 32px 24px 64px;
    scroll-padding-inline: 24px;
  }
}

@media (max-width: 600px) {
  .collect-arrow {
    display: none;
  }

  .collect-tab {
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}
