/* Yacht / Boat Party — extends event-organiser .eo-* patterns */

.page--yacht {
  background: var(--eo-bg, #05050a);
  color: #fff;
  overflow-x: clip;
}

.yacht-about__media {
  margin: 2.75rem 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--eo-border, rgba(255, 222, 89, 0.18));
  background: var(--eo-surface, rgba(255, 255, 255, 0.035));
  aspect-ratio: 3 / 4;
  max-height: 22rem;
  justify-self: end;
  align-self: start;
  width: min(100%, 20rem);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 222, 89, 0.06);
}

.yacht-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.05) saturate(1.06);
  transition: transform 0.7s ease, filter 0.4s ease;
}

.yacht-about__media:hover img {
  transform: scale(1.03);
  filter: contrast(1.08) saturate(1.1);
}

.page--yacht .eo-about {
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.page--yacht .eo-types {
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.page--yacht .eo-types__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page--yacht .eo-types__grid .eo-type:nth-child(n) {
  grid-column: auto;
}

.page--yacht .eo-types__grid .eo-type:nth-child(n) .eo-type__image {
  height: 9rem;
}

/* Living images — subtle Ken Burns motion */
.page--yacht .yacht-live-image img {
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
  animation: yacht-live-zoom 18s ease-in-out infinite alternate;
  transition: filter 0.45s ease;
}

.page--yacht .yacht-live-image--pan img {
  animation-name: yacht-live-pan;
}

.page--yacht .yacht-live-image--delay-2 img {
  animation-delay: -6s;
}

.page--yacht .yacht-live-image--delay-3 img {
  animation-delay: -12s;
}

.page--yacht .eo-type:hover .yacht-live-image img,
.page--yacht .eo-type:focus-within .yacht-live-image img {
  filter: contrast(1.06) saturate(1.08) brightness(1.04);
  animation-play-state: paused;
  transform: scale(1.08);
  transition: transform 0.6s ease, filter 0.45s ease;
}

@keyframes yacht-live-zoom {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.1) translate(-2.5%, -1.5%);
  }
}

@keyframes yacht-live-pan {
  from {
    transform: scale(1.05) translate(2%, 0);
  }

  to {
    transform: scale(1.12) translate(-3%, -1%);
  }
}

.page--yacht .eo-included {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.yacht-combine__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.yacht-combine-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--eo-border, rgba(255, 222, 89, 0.18));
  background: var(--eo-surface, rgba(255, 255, 255, 0.035));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.yacht-combine-card:hover,
.yacht-combine-card:focus-visible {
  border-color: rgba(255, 222, 89, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.yacht-combine-card__title {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.yacht-combine-card__text {
  margin: 0;
  color: var(--eo-muted, rgba(255, 255, 255, 0.56));
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.yacht-combine-card__link {
  margin-top: 0.9rem;
  color: var(--eo-yellow, #ffde59);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .yacht-combine-card,
  .yacht-about__media img {
    transition: none;
  }

  .yacht-about__media:hover img {
    transform: none;
  }

  .page--yacht .yacht-live-image img {
    animation: none;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .page--yacht .eo-type:hover .yacht-live-image img,
  .page--yacht .eo-type:focus-within .yacht-live-image img {
    transform: none;
    filter: none;
  }
}

@media (max-width: 900px) {
  .page--yacht .eo-types__grid,
  .yacht-combine__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yacht-about__media {
    width: min(100%, 22rem);
    max-height: 18rem;
    aspect-ratio: 4 / 3;
    margin-top: 1.25rem;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .page--yacht .eo-types__grid,
  .yacht-combine__grid {
    grid-template-columns: 1fr;
  }
}
