.home-hero {
  min-height: 100vh;
  min-height: 100svh;
}

.home-hero .hero-content {
  height: auto;
  min-height: 0;
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(1.5rem, 4vw, 4rem);
}

/* Keep the Webflow image zoom/entrance. Fade the photo into a soft blur at
   the bottom; text and buttons stay sharp above this non-interactive layer. */
.home-hero .hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, #00000014 60%, #00000052);
  pointer-events: none;
}

/* Older browsers keep the neutral gradient instead of blurring the full photo. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and ((mask-image: linear-gradient(transparent, #000)) or (-webkit-mask-image: linear-gradient(transparent, #000))) {
  .home-hero .hero-content::after {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(180deg, transparent 25%, #00000040 50%, #000 90%);
    mask-image: linear-gradient(180deg, transparent 25%, #00000040 50%, #000 90%);
  }
}

.home-hero .hero-head {
  max-width: 12ch;
  font-size: clamp(2.5rem, 8.5vw, 8.9rem);
  word-break: normal;
  text-wrap: balance;
}

.home-hero-description,
.home-hero-details {
  position: relative;
  z-index: 3;
  max-width: 100%;
  text-align: center;
}

.home-hero-description {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
  text-shadow: 0 2px 10px #00000080;
}

.home-hero-season {
  margin: 0 0 1.25rem;
  font-size: var(--body-size-desktop--medium);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 2px 10px #00000080;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.home-hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid transparent;
}

.home-hero-actions .home-hero-directions {
  color: var(--white);
  background-color: transparent;
  border-color: var(--white);
}

.home-hero-actions .home-hero-directions:hover {
  color: var(--black);
  background-color: var(--white);
}

.home-hero-actions .button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* Allow the long heading and photo strip to wrap only when they do not fit.
   Their existing dimensions, alignment and Webflow animations stay intact. */
.home-cafe > .row.is-mobile-vertical-reverse {
  flex-wrap: wrap;
}

.home-cafe > .row.is-mobile-vertical-reverse > .image-wrapper {
  margin-left: auto;
}

/* At the tablet/desktop boundary, long card labels must not widen grid tracks. */
.grid-3-column > .collection-item {
  min-width: 0;
}

/* Lottie's underline scales to the link width. Keep the animated path, but
   make its stroke equally thick for short and long activity labels. */
.home-activities .fild-line svg path[stroke] {
  vector-effect: non-scaling-stroke;
  stroke-width: 2px;
}

/* Keep every photo in the homepage's accommodation grid square. On small
   screens the text belongs below the photo and must not squeeze its height. */
.tooms-list-wrapper .room-card {
  aspect-ratio: 1 / 1;
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* Leave room for the longest hover description in the three-column grid. */
  .tooms-list-wrapper .room-card {
    padding: 1.25rem;
  }
}

@media (max-width: 991px) {
  .tooms-list-wrapper .room-card {
    aspect-ratio: auto;
  }

  .tooms-list-wrapper .room-card > img.image.absolute {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    flex: none;
    object-fit: cover;
  }
}

@media (max-width: 479px) {
  .home-cafe .image-wrapper {
    max-width: 100%;
  }

  .home-cafe .overflow-image {
    min-width: 0;
  }

  .home-activities {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 95%;
    margin-inline: auto;
  }

  /* Share the existing copy, links and images with the desktop sticky story.
     Contents exposes the photo/text pairs to this grid without moving nodes
     or duplicating the content and Webflow interaction identifiers. */
  .home-activities .wrapper-sticky,
  .home-activities .sticky-wrap,
  .home-activities .wrapper-images-sticky,
  .home-activities .column-sticky,
  .home-activities .collection-list {
    display: contents;
  }

  .home-activities .sticky-overflow-image {
    position: relative;
    inset: auto;
    grid-column: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: .6rem .6rem 0 0;
  }

  /* Webflow stacks the photos in reverse order behind the desktop story. */
  .home-activities .sticky-overflow-image:nth-child(3) { grid-row: 1; }
  .home-activities .sticky-overflow-image:nth-child(2) { grid-row: 3; }
  .home-activities .sticky-overflow-image:nth-child(1) { grid-row: 5; }

  .home-activities .collection-item {
    grid-column: 1;
    min-width: 0;
    margin-bottom: 1.5rem;
  }

  .home-activities .collection-item:nth-child(1) { grid-row: 2; }
  .home-activities .collection-item:nth-child(2) { grid-row: 4; }
  .home-activities .collection-item:nth-child(3) { grid-row: 6; margin-bottom: 0; }

  .home-activities .content.white.sticky {
    height: auto;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 0 0 .6rem .6rem;
    color: var(--black) !important;
  }

  .home-activities .heading-h4-size.max-width-xsmall {
    font-size: var(--heading-size-mobile--h3);
    line-height: 1.2;
    text-align: left;
  }

  /* a-6 writes inline scroll transforms even at the tiny breakpoint. The
     formerly hidden phone section now uses normal document-flow cards. */
  .home-activities .sticky-overflow-image,
  .home-activities .content {
    transform: none !important;
  }
}
