/* The suites — header + carousel draggable full-bleed.
   Track meluas edge-to-edge viewport; kartu pertama align dengan container. */

.suites-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.suites-header-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.suites-cta {
  flex-shrink: 0;
}

.suites-carousel {
  --carousel-inset: max(var(--space-gutter), calc((100vw - 74.625rem) / 2));
  width: 100%;
  overflow: hidden;
}

.suites-track {
  display: flex;
  gap: var(--space-l);
  padding-left: var(--carousel-inset);
  padding-right: var(--carousel-inset);
  width: max-content;
  cursor: grab;
}

.suites-track.is-dragging {
  cursor: grabbing;
}

/* Fallback (reduced-motion / tanpa Draggable): scroll native */
.no-motion .suites-track {
  width: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.no-motion .suites-track::-webkit-scrollbar {
  display: none;
}

.suite-card {
  display: grid;
  grid-template-columns: minmax(0, 41%) minmax(0, 59%);
  flex-shrink: 0;
  width: min(74.625rem, 100vw - 2 * var(--space-gutter));
  min-height: 28.625rem;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-white);
  scroll-snap-align: start;
  /* Hover only. At rest the six cards sat side by side with `.card-shadow`, and
     the token's last layer is offset 100px down with an 80px blur — across a row
     that wide the shadows merged into one grey band under the carousel that read
     as a gradient painted on the section. The utility itself is left alone; the
     styleguide still uses it to show the elevation token. */
  box-shadow: none;
  transition: box-shadow var(--duration-normal) var(--ease-out-expo);
}

.suite-card:hover {
  box-shadow: var(--shadow-soft);
}

.suite-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-xl);
}

.suite-card-media {
  min-height: 28.625rem;
  overflow: hidden;
}

.suite-card-media img {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.suite-card:hover .suite-card-media img {
  transform: scale(1.04);
}

.suites-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

.suites-nav-btn {
  padding: var(--space-2xs);
  transition: opacity var(--duration-fast) var(--ease-out-expo);
}

.suites-nav-btn:hover {
  opacity: 0.5;
}

[data-carousel-next] img {
  transform: scaleX(-1);
}

@media screen and (max-width: 767px) {
  .suites-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .suite-card {
    grid-template-columns: 1fr;
  }

  .suite-card-media {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
