/* Service landing pages — tour gallery strip + feature cards */

.tour-item--strip {
  min-width: 84.8rem;
}

.tour-item--strip .tour-item__content {
  width: 34rem;
  flex-shrink: 0;
}

.tour-item--strip .tour-item__media--strip {
  width: auto;
  height: 40rem;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 5rem;
  overflow: hidden;
}

.tour-item--strip .tour-item__media--strip picture,
.tour-item--strip .tour-item__media--strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Figma service pages: full-bleed features background + large cards */
.features:has([src*="/figma/"]):not(:has([src*="sea-cruise/features_bg"])) {
  background-color: transparent;
}

.features:has([src*="/figma/"]):not(:has([src*="sea-cruise/features_bg"])) .features__bg {
  top: 0;
  bottom: 0;
  height: 100%;
}

.features:has([src*="/figma/"]):not(:has([src*="sea-cruise/features_bg"])) .features__bg-inage {
  height: 100%;
}

.features:has([src*="/figma/"]):not(:has([src*="sea-cruise/features_bg"])) .features__bg-inage picture,
.features:has([src*="/figma/"]):not(:has([src*="sea-cruise/features_bg"])) .features__bg-inage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* sea-cruise: photo on the right at natural scale (not zoomed full-bleed) */
.features:has([src*="sea-cruise/features_bg"]) {
  background-color: white;
}

.features:has([src*="sea-cruise/features_bg"]) .features__bg {
  top: 9rem;
  bottom: auto;
  left: 46%;
  right: 0;
  height: auto;
}

.features:has([src*="sea-cruise/features_bg"]) .features__bg-inage picture,
.features:has([src*="sea-cruise/features_bg"]) .features__bg-inage img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  object-position: right top;
}

.features:has([src*="/figma/"]) .features__main {
  min-height: 38rem;
  padding-bottom: 2rem;
}

.features:has([src*="/figma/"]) .features__wrapper {
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 14rem;
}

@media (min-width: 992px) {
  .features:has([src*="/figma/"]) .features__gallery {
    grid-column-gap: 2rem;
  }

  .features:has([src*="/figma/"]) .features__image {
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 280;
    max-width: none;
    margin: 0;
    border-radius: 3rem;
    overflow: hidden;
  }

  .features:has([src*="/figma/"]) .features__image picture,
  .features:has([src*="/figma/"]) .features__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .features:has([src*="/figma/"]) .features__title {
    text-align: left;
    font-size: 2.4rem;
    line-height: 114%;
    margin-top: 2rem;
  }
}

@media (max-width: 991.97px) {
  .features__image {
    width: 11.5rem;
    height: 10.5rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
  }

  .features__image picture,
  .features__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .features__title {
    text-align: center;
  }

  .tour-item--strip {
    min-width: inherit;
    width: 27rem;
  }

  .tour-item--strip .tour-item__content {
    width: auto;
  }

  .tour-item--strip .tour-item__media--strip {
    width: 100%;
    height: auto;
    min-height: 12rem;
    border-radius: 3rem;
  }

  .tour-item--strip .tour-item__media--strip img {
    height: auto;
    object-fit: contain;
  }
}

/* Comments gallery: scrollable tabs on mobile */
@media (max-width: 991.97px) {
  .comments .navbar__control {
    display: none;
  }

  .comments .navbar__content {
    position: static;
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 0.4rem 0.2rem 0.8rem;
    box-shadow: none;
    background: transparent;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .comments .navbar__content::-webkit-scrollbar {
    display: none;
  }

  .comments .navbar__item {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    border-radius: 1.3rem;
    padding: 0.8rem 1.4rem;
    min-height: 4.4rem;
    font-size: 1.3rem;
    text-align: center;
    justify-content: center;
  }

  .comments .navbar__item.active {
    background-color: #017dad;
    color: #fff;
    box-shadow: none;
  }
}
