/* Where to Stay — load ../styles.css first */

body.page-where-stay {
  background: #fbf7ef;
  min-height: 100dvh;
  margin: 0;
  --stay-reveal-delay: 0.35s;
  --stay-reveal-duration: 1.45s;
}

body.page-where-stay .nav {
  background: #414f39;
}

.stay-main {
  padding-top: calc(clamp(11rem, 20vh, 20rem));
  padding-bottom: max(5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.stay-page-title {
  font-family: "Instrument Serif", serif;
  text-transform: uppercase;
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0;
  color: #1a1a1a;
}

.stay-lede {
  font-family: "Aboreto", serif;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: rgba(26, 26, 26, 0.78);
  margin: 0;
  max-width: 38rem;
}

body.page-where-stay .stay-v3-inner {
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.page-where-stay .stay-v3-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
  text-align: center;
  margin-bottom: clamp(3.75rem, 12vh, 6.5rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

body.page-where-stay .stay-v3-rule {
  width: 48%;
  min-width: 9rem;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(26, 26, 26, 0.28);
}

body.page-where-stay .stay-v3-kicker {
  font-family: "Luxurious Script", cursive;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  color: #1a1a1a;
}

body.page-where-stay .stay-v3-ornament .stay-page-title {
  margin: 0;
}

body.page-where-stay .stay-v3-ornament .stay-lede {
  margin: 0;
}

body.page-where-stay .stay-v3-hotel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 3.5vw, 2.25rem);
  align-items: start;
  text-align: left;
  margin: 0 0 clamp(2rem, 5vh, 2.75rem);
  padding-bottom: clamp(2rem, 5vh, 2.75rem);
  border-bottom: 1px solid rgba(26, 26, 26, 0.18);
}

body.page-where-stay .stay-v3-hotel:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-where-stay .stay-v3-hotel-media {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

body.page-where-stay .stay-v3-hotel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-where-stay .stay-v3-hotel-body {
  min-width: 0;
  padding-top: 0.15rem;
}

body.page-where-stay .stay-v3-hotel-heading {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.35;
}

body.page-where-stay .stay-v3-hotel-chips {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

body.page-where-stay .stay-v3-hotel-chip {
  font-family: "Aboreto", serif;
  font-size: clamp(0.6rem, 1.15vw, 0.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(65, 79, 57, 0.32);
  border-radius: 999px;
  color: rgba(65, 79, 57, 0.92);
  background: rgba(65, 79, 57, 0.07);
}

/*
 * stay-map-links.js wraps the label in .stay-map-link__text and appends .stay-map-link__icon
 * after the last word (nowrap) like Things to Do external links.
 */
body.page-where-stay .stay-map-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: "Aboreto", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

body.page-where-stay .stay-map-link__text {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-bottom: 3px;
  transition: background-size 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

body.page-where-stay .stay-map-link:hover .stay-map-link__text,
body.page-where-stay .stay-map-link:focus-visible .stay-map-link__text {
  background-size: 100% 1px;
}

body.page-where-stay .stay-map-link__hang {
  white-space: nowrap;
}

body.page-where-stay .stay-map-link__icon {
  display: inline-block;
  width: 0.58em;
  height: 0.58em;
  margin-left: 0.4em;
  vertical-align: 0.06em;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.4;
  transition: opacity 0.25s ease;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

body.page-where-stay .stay-map-link:hover .stay-map-link__icon,
body.page-where-stay .stay-map-link:focus-visible .stay-map-link__icon {
  opacity: 0.58;
}

body.page-where-stay .stay-map-link:hover {
  opacity: 0.88;
}

body.page-where-stay .stay-map-link:focus {
  outline: none;
}

body.page-where-stay .stay-map-link:focus-visible {
  outline: 2px solid #414f39;
  outline-offset: 4px;
}

body.page-where-stay .stay-v3-hotel-desc {
  font-family: "Aboreto", serif;
  font-size: clamp(0.85rem, 2vw, 0.85rem);
  line-height: 1.5;
  letter-spacing: 0.012em;
  color: rgba(26, 26, 26, 0.78);
  margin: 0;
}

body.page-where-stay .stay-v3-hotel-book-wrap {
  margin: 1rem 0 0;
  padding: 0;
}

/*
 * Outline-style control that fills on hover — same sweep as .error-btn (404)
 * and .nav-rsvp (../styles.css).
 */
body.page-where-stay .stay-v3-hotel-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Aboreto", serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: #414f39;
  background-color: #fbf7ef;
  background-image: linear-gradient(
    to bottom,
    #fbf7ef 0%,
    #fbf7ef 50%,
    #414f39 50%,
    #414f39 100%
  );
  background-size: 100% 200%;
  background-position: 0 0;
  background-repeat: no-repeat;
  border: 1px solid #414f39;
  border-radius: 6px;
  padding: 0.72rem 1.45rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition:
    background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease;
}

body.page-where-stay .stay-v3-hotel-book:hover {
  background-position: 0 100%;
  color: #fbf7ef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

body.page-where-stay .stay-v3-hotel-book:active {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  transition-duration: 0.15s;
}

body.page-where-stay .stay-v3-hotel-book:focus {
  outline: none;
}

body.page-where-stay .stay-v3-hotel-book:focus-visible {
  outline: 2px solid #414f39;
  outline-offset: 3px;
  background-position: 0 100%;
  color: #fbf7ef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  body.page-where-stay .stay-map-link__text {
    background-size: 100% 1px;
    transition: none;
  }

  body.page-where-stay .stay-map-link:hover {
    opacity: 1;
  }

  body.page-where-stay .stay-v3-hotel-book {
    transition: none;
  }

  body.page-where-stay .stay-v3-hotel-book:hover {
    background-position: 0 100%;
    color: #fbf7ef;
  }
}

@media (max-width: 40rem) {
  body.page-where-stay .stay-v3-hotel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body.page-where-stay .stay-v3-hotel-media {
    aspect-ratio: 16 / 9;
    max-height: 13.5rem;
  }
}

/* Scroll reveals */
body.page-where-stay [data-home-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity var(--stay-reveal-duration) cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--stay-reveal-duration) cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.page-where-stay [data-home-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
  transition-delay: var(--stay-reveal-delay);
}

body.page-where-stay section.stay-v3-hotel[data-home-reveal]:nth-of-type(1).is-visible {
  transition-delay: calc(var(--stay-reveal-delay) + 0.1s);
}

body.page-where-stay section.stay-v3-hotel[data-home-reveal]:nth-of-type(2).is-visible {
  transition-delay: calc(var(--stay-reveal-delay) + 0.24s);
}

@media (prefers-reduced-motion: reduce) {
  body.page-where-stay [data-home-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}
