/* Home carousel hero */
#carWrapper {
  position: relative; /* not fixed */
  width: 100%;
  height: 55vh;           /* same as Walk hero */
  max-height: 480px;      /* optional cap */
  margin: 0;
  border: none;
  border-radius: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

#carTrack {
  display: flex;
  height: 100%;
  transition: transform .25s ease;
}

.car-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.car-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0,0,0,.55) 100%);
}

/* Keep other views above */
#viewWalk, #viewSight {
  position: relative;
  z-index: 30;
  background: var(--bg);
}

/* Home-only dots, independent of walk.css */
.home-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 6px;
}

.home-dot {
  width: 22px;
  height: 4px;
  border: 0;
  border-radius: 9999px;
  background: #6b6b6b;   /* darker for inactive */
  opacity: .5;
  cursor: pointer;
}

.home-dot.active {
  background: #e6e6e6;   /* light gray for active */
  opacity: 1;
}

/* Optional: visible keyboard focus */
.home-dot:focus-visible {
  outline: 2px solid #bcbcbc;
  outline-offset: 2px;
}


/* =========================================================
   Navigation Buttons (Glassy / Transparent)
   ========================================================= */

.home-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20; /* High z-index to ensure it sits ABOVE the slide overlay */

  /* Glassy Look (Matches Sight view) */
  width: 40px;
  height: 40px;
  border-radius: 50%;

  /* See-through black background */
  background-color: rgba(0, 0, 0, 0.25);

  /* Blur the image behind */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  /* Subtle border */
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

/* Hover/Active effects */
.home-nav-btn:active {
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(0.95);
}

.home-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Positioning */
.home-nav-btn.prev { left: 12px; }
.home-nav-btn.next { right: 12px; }

/* Hiding logic (Essential for the "switch only when possible" logic) */
.home-nav-btn[hidden] {
  display: none !important;
}