.boats-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.boat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boat-card--visual {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  display: block;
  border-radius: 12px;
  background: #071322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 54px rgba(5, 18, 34, 0.16);
}

.boat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0d63a9, #64c7ff);
  z-index: 2;
}

.boat-card--visual::before,
.boat-card--visual .boat-card__media,
.boat-card--visual .boat-card__content {
  display: none;
}

.boat-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.35s cubic-bezier(0.16, 1, 0.3, 1), filter 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.84);
}

.boat-card__overlay {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 10px;
  background: rgba(21, 22, 24, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.boat-card--visual .boat-card__eyebrow,
.boat-card--visual h3,
.boat-card--visual p,
.boat-card--visual .boat-card__meta li {
  color: var(--color-white);
}

.boat-card--visual .boat-card__eyebrow {
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
}

.boat-card--visual h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.boat-card--visual p {
  display: block;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.boat-card--visual .boat-card__meta {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.boat-card--visual .boat-card__meta li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 0 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.66rem;
  line-height: 1;
  white-space: nowrap;
}

.boat-card__media {
  min-height: 250px;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s ease;
}

.boat-card:hover .boat-card__media {
  transform: scale(1.04);
}

.boat-card--visual:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 62px rgba(5, 18, 34, 0.22);
}

.boat-card--visual:hover .boat-card__image {
  transform: scale(1.08);
  filter: brightness(0.96);
}

.boat-card--visual:hover .boat-card__overlay {
  transform: translateY(-2px);
  background: rgba(22, 24, 27, 0.42);
  border-color: rgba(255, 255, 255, 0.16);
}

.boat-card__content {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.boat-card__eyebrow {
  margin-bottom: 10px;
  color: var(--color-ocean);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.boat-card__content h3 {
  margin-bottom: 0;
}

.boat-card__content > p {
  color: rgba(15, 39, 71, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.boat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 4px 0 0;
}

.boat-card__meta li {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(17, 114, 191, 0.08);
  color: rgba(15, 39, 71, 0.72);
  font-size: 0.86rem;
}

.boat-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 114, 191, 0.16);
  background: rgba(17, 114, 191, 0.08);
  font-weight: 700;
  color: var(--color-ocean);
}

@media (max-width: 767px) {
  .boats-showcase__grid {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    gap: 14px;
    padding: 0 14px 10px 2px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .boats-showcase__grid::-webkit-scrollbar {
    display: none;
  }

  .boats-showcase__grid.is-draggable {
    cursor: grab;
  }

  .boats-showcase__grid.is-dragging {
    cursor: grabbing;
  }

  .boats-showcase__grid::after {
    content: "";
    flex: 0 0 2px;
  }

  .boat-card {
    flex: 0 0 clamp(228px, calc(100vw - 108px), 268px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 396px;
  }

  .boat-card,
  .boat-card * {
    -webkit-user-select: none;
    user-select: none;
  }

  .boat-card__image,
  .boat-card__overlay,
  .boat-card__media,
  .boat-card__content,
  .boat-card__content h3,
  .boat-card__content > p,
  .boat-card__meta,
  .boat-card__eyebrow {
    pointer-events: none;
  }

  .boat-card__link {
    pointer-events: auto;
  }

  .boat-card--visual {
    flex: 0 0 clamp(236px, calc(100vw - 100px), 276px);
    min-height: 308px;
  }

  .boat-card__overlay {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 1rem 1rem 1.05rem;
  }

  .boat-card--visual h3 {
    font-size: 0.98rem;
  }

  .boat-card--visual p {
    font-size: 0.72rem;
  }

  .boat-card--visual .boat-card__meta {
    gap: 0.45rem;
  }

  .boat-card--visual .boat-card__meta li {
    min-height: 28px;
    padding: 0 0.5rem;
    font-size: 0.62rem;
  }

  .boat-card__media {
    min-height: 156px;
  }

  .boat-card__content {
    padding: 20px 18px 20px;
  }

  .boat-card__content > p {
    -webkit-line-clamp: 4;
  }
}

@media (min-width: 1025px) {
  .boats-showcase__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-items: center;
  }

  .boat-card--visual {
    width: min(100%, 320px);
    min-height: 0;
    height: auto;
    aspect-ratio: 0.76;
  }
}
