#discover-detail:has(.stay-detail) {
  width: min(1240px, calc(100vw - 44px));
  max-height: calc(100dvh - 42px);
  border-radius: 7px;
  background: #fbfaf7;
  color: #172936;
}

#discover-detail:has(.stay-detail) .discover-detail-header {
  align-items: center;
  padding: 20px clamp(16px, 3.4vw, 46px) 11px;
  background: #fbfaf7;
  border-bottom: 1px solid #dfdcd2;
}

#discover-detail:has(.stay-detail) .discover-detail-header h2 {
  font: 500 clamp(1.55rem, 4.2vw, 3.2rem)/1.1 Georgia, "Noto Serif CJK SC", "Songti SC", serif;
  letter-spacing: -.033em;
}

#discover-detail:has(.stay-detail) .discover-detail-content {
  padding: 0 clamp(16px, 3.4vw, 46px) 35px;
}

.stay-detail {
  --stay-line: #dcd8ce;
  --stay-heading: #172936;
  --stay-surface: #f1eee6;
  --stay-text-action: #244c79;
  --stay-muted: #505c64;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 29%);
  align-items: start;
  column-gap: clamp(16px, 2.5vw, 28px);
  line-height: 1.6;
}

.stay-noted-address {
  grid-column: 1 / -1;
  margin: 12px 0 16px;
  color: var(--stay-muted);
  font-size: .9rem;
}

.stay-gallery-wrap { grid-column: 1; grid-row: 2; min-width: 0; }
.stay-gallery { display: grid; gap: 6px; aspect-ratio: 2 / 1; }
.stay-gallery-triptych { grid-template-columns: 2.14fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.stay-gallery figure { position: relative; overflow: hidden; min-width: 0; min-height: 0; margin: 0; background: #e8e1d3; }
.stay-gallery-triptych figure:first-child { grid-row: 1 / span 2; }
.stay-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stay-gallery figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  border-radius: 2px;
  background: #131b1cd9;
  color: #fff;
  font-size: .72rem;
  line-height: 1.3;
}

.stay-image-credits { margin: 9px 0 0; color: var(--stay-muted); font-size: .79rem; }
.stay-image-credits summary { cursor: pointer; width: fit-content; }
.stay-image-credits ul { margin: 7px 0 0; padding-inline-start: 20px; }
.stay-image-credits a { color: var(--stay-text-action); text-decoration: underline; text-underline-offset: 3px; }

.stay-section-nav {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 12px;
  border-bottom: 1px solid var(--stay-line);
}

.stay-section-nav button {
  min-height: 43px;
  padding: 5px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--stay-heading);
  font: inherit;
  font-size: .87rem;
  cursor: pointer;
}

.stay-section-nav button:is(:hover, :focus-visible) { border-bottom-color: var(--stay-text-action); color: var(--stay-text-action); }

.stay-detail-layout { display: contents; }
.stay-detail-main { grid-column: 1; grid-row: 4; min-width: 0; }
.stay-section { padding: 18px 0 20px; border-bottom: 1px solid var(--stay-line); }
.stay-section:last-child { border-bottom: 0; }

.stay-section h3,
.stay-booking h3 {
  margin: 0;
  font: 500 clamp(1.15rem, 2.1vw, 1.55rem)/1.25 Georgia, "Noto Serif CJK SC", "Songti SC", serif;
  letter-spacing: -.02em;
}

.stay-section h3 { scroll-margin-top: 100px; }

.stay-section p {
  margin: 9px 0 0;
  max-width: 62ch;
  color: var(--stay-muted);
  font-size: .94rem;
}

.stay-route-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 15px;
  margin: 12px 0;
  padding: 10px 13px;
  background: #eeeee7;
}

.stay-route-box p { margin: 0; color: var(--stay-heading); }
.stay-route-link { display: inline-flex; align-items: center; min-height: 38px; }
.stay-route-link::after { margin-inline-start: 7px; content: "↗"; }

.stay-section :is(.stay-section-links a, .stay-source-rooms, .stay-route-link),
.stay-edit-dates {
  color: var(--stay-text-action);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: .85rem;
  font-weight: 650;
}

.stay-section-links { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 8px; }
.stay-source-rooms { display: inline-block; margin-top: 9px; }

.stay-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(174px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
.stay-room-option {
  display: grid;
  gap: 3px;
  text-align: start;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--stay-line);
  border-radius: 3px;
  background: #fbfaf7;
  color: var(--stay-heading);
  font: inherit;
  cursor: pointer;
}

.stay-room-option strong { font-size: .93rem; line-height: 1.35; }
.stay-room-option span { color: var(--stay-muted); font-size: .83rem; }
.stay-room-option[aria-pressed="true"] { border-color: #587694; background: #eef2f5; }

.stay-booking {
  grid-column: 2;
  grid-row: 2 / span 3;
  position: sticky;
  top: 97px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2vw, 23px);
  border-top: 2px solid #244c79;
  background: var(--stay-surface);
}

.stay-booking-room { margin: 1px 0 0; font-size: .98rem; font-weight: 680; line-height: 1.35; }
.stay-booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid var(--stay-line);
  background: #fbfaf7;
}

.stay-booking-dates > div { min-width: 0; padding: 7px 7px 8px 10px; }
.stay-booking-dates > div + div { border-inline-start: 1px solid var(--stay-line); }
.stay-booking-dates dt { color: var(--stay-muted); font-size: .75rem; }
.stay-booking-dates dd { margin: 2px 0 0; font-size: .82rem; font-weight: 700; }
.stay-booking p:is(.stay-party, .stay-booking-channel, .stay-booking-terms) { margin: 0; color: var(--stay-muted); }
.stay-party { font-size: .85rem; }
.stay-booking-channel { text-align: center; font-size: .79rem; font-weight: 650; }
.stay-booking-terms { text-align: center; font-size: .78rem; line-height: 1.5; }

.stay-edit-dates {
  justify-self: start;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.stay-detail .stay-official-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 12px;
  border: 1px solid #244c79;
  border-radius: 4px;
  background: #244c79;
  color: white;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.stay-detail .stay-official-cta:hover { background: #1d3d62; }
.stay-detail a:focus-visible, .stay-detail button:focus-visible { outline: 2px solid #315c8a; outline-offset: 2px; }
.stay-detail a.stay-official-cta::after { content: "↗"; font-size: 1.05em; }
.stay-mobile-dock { display: none; }

@media (max-width: 700px) {
  #discover-detail:has(.stay-detail) { width: min(100%, 560px); max-height: calc(100dvh - 12px); }

  #discover-detail:has(.stay-detail) .discover-detail-content { padding-bottom: 0; }

  .stay-detail { display: block; }

  .stay-noted-address { margin: 9px 0 12px; font-size: .82rem; }

  .stay-gallery { aspect-ratio: 1.46; }

  .stay-gallery-triptych {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
    aspect-ratio: 1.32;
  }

  .stay-gallery-triptych figure:first-child { grid-row: 1; grid-column: 1 / -1; }

  .stay-section-nav { gap: 0 15px; margin-top: 7px; }
  .stay-section-nav button { min-height: 44px; font-size: .84rem; }

  .stay-booking { position: static; margin-bottom: 15px; }
  .stay-booking-terms, .stay-booking-channel { text-align: start; }

  .stay-mobile-dock {
    position: sticky;
    z-index: 1;
    bottom: 0;
    display: grid;
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--stay-line);
    background: #fbfaf7;
  }

  .stay-mobile-dock .stay-booking-channel { margin: 3px 0 0; color: var(--stay-muted); text-align: center; }
}
