/* ============================================================
   Fleet Slider — auto-loaded 3-up ship carousel
   ============================================================ */

.fleet-slider {
  width: 100%;
}

/* ── Header row ──────────────────────────────────────────── */

.fleet-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.fleet-slider__heading {
  margin: 0;
  font-size: var(--heading-2);
  line-height: var(--heading-2-line-height);
  color: #3b3b3b;
}

.fleet-slider__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #3b3b3b;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.fleet-slider__cta:hover {
  color: #163029;
}

.fleet-slider__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b7e5d2;
  color: #163029;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.fleet-slider__cta:hover .fleet-slider__cta-arrow {
  background: #90aba0;
}

/* ── Viewport + track ────────────────────────────────────── */

.fleet-slider__viewport {
  position: relative;
  overflow: hidden;
}

.fleet-slider__track {
  display: flex;
  /* gap is set per-instance via the inline <style> block generated by PHP */
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Slides ──────────────────────────────────────────────── */

.fleet-slider__slide {
  position: relative;
  /* flex-basis and border-radius are set per-instance via the inline <style> block generated by PHP */
  height: 512px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #163029;
}

.fleet-slider__slide-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.fleet-slider__slide-placeholder {
  width: 100%;
  height: 100%;
  background: #163029;
}

/* Bottom gradient for name legibility */
.fleet-slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.fleet-slider__slide-name {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 2;
  color: #ffffff;
  font-family: "Aptos";
  font-style: normal;
  font-weight: 700;
  font-size: clamp(24px, 1.125rem + 0.5vw, 32px);
  line-height: 120%;
  letter-spacing: 0.02em;
}

/* ── Navigation buttons ──────────────────────────────────── */

.fleet-slider__nav.custom-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #163029;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition:
    background 0.2s ease,
    opacity 0.25s ease;
}

.fleet-slider__nav:hover {
  background: #ffffff;
}

.fleet-slider__nav--prev {
  left: 12px;
}

.fleet-slider__nav--next {
  right: 12px;
}

.fleet-slider__nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .fleet-slider__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .fleet-slider__slide {
    height: 400px;
    aspect-ratio: 1 / 1;
  }

  .fleet-slider__slide-name {
    font-size: 1.125rem;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
}
