/**
 * Drive This - Map Page Scroll Enhancement v1.2.0
 * CSS for chevron navigation with 2-second delay on page load
 */

/* ==========================================================================
   SCROLL CHEVRON WRAPPER
   ========================================================================== */

.dt-scroll-chevron-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
}

/* ==========================================================================
   SCROLL CHEVRONS
   ========================================================================== */

.dt-scroll-chevron {
  position: absolute;
  top: 53%;
  transform: translateY(-50%);
  pointer-events: auto;
  
  /* Sizing */
  width: 40px;
  height: 40px;
  
  /* Center the SVG */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Appearance */
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  
  /* Hidden by default - requires BOTH is-visible AND dt-chevrons-ready */
  opacity: 0;
  pointer-events: none;
  
  /* Transitions */
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

/* Only show when both conditions met: scroll position AND delay elapsed */
.dt-scroll-chevron.is-visible.dt-chevrons-ready {
  opacity: 1;
  pointer-events: auto;
}

/* Positioning */
.dt-scroll-chevron-left {
  left: 12px;
}

.dt-scroll-chevron-right {
  right: 12px;
}

/* Icons */
.dt-scroll-chevron svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Hover states */
.dt-scroll-chevron:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

/* Focus states */
.dt-scroll-chevron:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   DRAG CURSOR
   ========================================================================== */

.horizontal-scroll {
  cursor: grab;
}

.horizontal-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* ==========================================================================
   MOBILE - Hide chevrons, touch is preferred
   ========================================================================== */

@media (max-width: 767px) {
  .dt-scroll-chevron-wrapper {
    display: none;
  }
  
  .horizontal-scroll {
    cursor: default;
  }
}
