/* CrocoYachts Home V23 — native fleet composition layer.
   Loaded after native-skin.css; scoped to the Home fleet host only. */

.cy-v23-fleet {
  --cy-v23-fleet-gutter: 20px;
}

.cy-v23-fleet .cb-fleet-showcase[data-cy-v23-fleet-composed] {
  display: block;
  min-width: 0;
}

.cy-v23-fleet .cb-fleet-showcase[data-cy-v23-fleet-composed] .cb-it {
  min-width: 0;
  margin-top: 0;
  opacity: 1;
  transform: none;
}

.cy-v23-fleet .cy-v23-fleet-featured,
.cy-v23-fleet .cy-v23-fleet-rail {
  display: flex;
  gap: 20px;
  width: calc(100% + var(--cy-v23-fleet-gutter));
  padding: 0 var(--cy-v23-fleet-gutter) 24px 0;
  margin: 0 0 -24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cy-v23-fleet .cy-v23-fleet-featured::-webkit-scrollbar,
.cy-v23-fleet .cy-v23-fleet-rail::-webkit-scrollbar {
  display: none;
}

.cy-v23-fleet .cy-v23-fleet-featured > .cb-it,
.cy-v23-fleet .cy-v23-fleet-rail > .cb-it {
  flex: 0 0 80%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.cy-v23-fleet .cy-v23-fleet-featured .cb-im img,
.cy-v23-fleet .cy-v23-fleet-rail .cb-im img {
  aspect-ratio: 1.5;
}

.cy-v23-fleet .cy-v23-fleet-featured .cb-im,
.cy-v23-fleet .cy-v23-fleet-rail .cb-im {
  border-radius: 16px;
}

.cy-v23-fleet .cy-v23-fleet-featured .cb-sub,
.cy-v23-fleet .cy-v23-fleet-rail .cb-sub {
  margin-top: 0;
  padding: 14px 0 0;
}

.cy-v23-fleet .cy-v23-fleet-featured .cb-name,
.cy-v23-fleet .cy-v23-fleet-rail .cb-name {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.cy-v23-fleet .cy-v23-fleet-featured .cb-meta,
.cy-v23-fleet .cy-v23-fleet-rail .cb-meta {
  margin-top: 5px;
  color: #6b7280;
  font: 400 13px/1.5 var(--cy-body);
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

/* Keep the native card link and rail controls; this is only title decoration. */
.cy-v23-fleet .cb-fleet-showcase .cb-sub > .cb-arrow {
  display: none;
}

.cy-v23-fleet .cb-fleet-showcase .cb-sub > div {
  min-width: 0;
}

.cy-v23-fleet .cb-meta [data-croco-fleet-field="capacity"] {
  white-space: nowrap;
}

.cy-v23-fleet .cy-v23-fleet-rail .cb-price {
  top: 12px;
  inset-inline-end: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  font-size: 12px;
}

.cy-v23-fleet .cy-v23-fleet-collection {
  margin-top: 30px;
}

.cy-v23-fleet .cy-v23-fleet-collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.cy-v23-fleet .cy-v23-fleet-collection-label {
  margin: 0;
  color: var(--cy-navy);
  font: 400 15px/1.4 var(--cy-body);
}

.cy-v23-fleet .cy-v23-fleet-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.cy-v23-fleet .cy-v23-fleet-controls[hidden] {
  display: none !important;
}

.cy-v23-fleet .cy-v23-fleet-step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #f3f5f5;
  color: var(--cy-navy);
  box-shadow: none;
  cursor: pointer;
}

.cy-v23-fleet .cy-v23-fleet-step svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.cy-v23-fleet .cy-v23-fleet-step[data-direction="previous"] svg {
  transform: rotate(180deg);
}

.cy-v23-fleet .cy-v23-fleet-step:disabled {
  opacity: .3;
  cursor: default;
}

.cy-v23-fleet .cy-v23-fleet-step:focus-visible,
.cy-v23-fleet .cy-v23-fleet-featured:focus-visible,
.cy-v23-fleet .cy-v23-fleet-rail:focus-visible {
  outline: 2px solid var(--cy-gold);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .cy-v23-fleet .cy-v23-fleet-step:not(:disabled):hover {
    background: #e9eded;
  }
}

@media (min-width: 700px) {
  .cy-v23-fleet {
    --cy-v23-fleet-gutter: 36px;
  }

  .cy-v23-fleet .cy-v23-fleet-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .cy-v23-fleet .cy-v23-fleet-featured > .cb-it {
    width: auto;
  }

  .cy-v23-fleet .cy-v23-fleet-featured .cb-im img {
    aspect-ratio: 1.2;
  }

  .cy-v23-fleet .cy-v23-fleet-featured .cb-name {
    font-size: 24px;
  }

  .cy-v23-fleet .cy-v23-fleet-rail > .cb-it {
    flex-basis: 42%;
  }

  .cy-v23-fleet .cy-v23-fleet-collection {
    margin-top: 48px;
  }

  .cy-v23-fleet .cy-v23-fleet-controls {
    display: flex;
  }
}

@media (min-width: 1000px) {
  .cy-v23-fleet {
    --cy-v23-fleet-gutter: 64px;
  }

  .cy-v23-fleet .cy-v23-fleet-featured {
    gap: 28px;
  }

  .cy-v23-fleet .cy-v23-fleet-featured .cb-im img {
    aspect-ratio: 1.65;
  }

  .cy-v23-fleet .cy-v23-fleet-featured .cb-sub {
    padding-top: 17px;
  }

  .cy-v23-fleet .cy-v23-fleet-featured .cb-name {
    font-size: 28px;
  }

  .cy-v23-fleet .cy-v23-fleet-featured .cb-meta {
    font-size: 14px;
  }

  .cy-v23-fleet .cy-v23-fleet-collection {
    margin-top: 54px;
  }

  .cy-v23-fleet .cy-v23-fleet-collection-label {
    font-size: 17px;
  }

  .cy-v23-fleet .cy-v23-fleet-rail {
    gap: 26px;
    width: 100%;
    padding-right: 0;
  }

  .cy-v23-fleet .cy-v23-fleet-rail > .cb-it {
    flex-basis: calc((100% - 52px) / 3);
  }

  .cy-v23-fleet .cy-v23-fleet-rail .cb-name {
    font-size: 22px;
  }
}

@media (min-width: 1440px) {
  .cy-v23-fleet {
    --cy-v23-fleet-gutter: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cy-v23-fleet .cy-v23-fleet-featured,
  .cy-v23-fleet .cy-v23-fleet-rail {
    scroll-behavior: auto;
  }

  .cy-v23-fleet .cb-fleet-showcase .cb-im img {
    transition: none;
  }
}
