/* Keep desktop spacing and composition independent of the mobile layout. */
:root {
  --desktop-width: 77rem;
  --desktop-inset: max(var(--gutter), (100% - var(--desktop-width)) / 2);
  --section-space: clamp(4rem, 5.7vw, 6rem);
  --header-height: 4.85rem;
}

.wrap,
.header-inner {
  width: min(100% - var(--gutter) * 2, var(--desktop-width));
}

[data-page="home"] .site-header { margin-bottom: 0; }
[data-page="home"] .site-header:not(.is-scrolled):not(.menu-open) { background: var(--black); }
.header-enquiry { min-height: 2.65rem; }

h2 { font-size: clamp(3.3rem, 5.05vw, 5.2rem); }
.section-heading { margin-bottom: clamp(1.9rem, 3.25vw, 3rem); }
.section-heading-split { grid-template-columns: minmax(0, 1fr) minmax(17rem, .66fr); }
.section-heading-split > p,
.section-heading-split > div:last-child { justify-self: end; width: min(100%, 26rem); }
.section-heading-split p:not(.eyebrow) { max-width: 41ch; }

.hero-home {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  justify-items: stretch;
  column-gap: clamp(2rem, 4.8vw, 4.75rem);
  min-height: 0;
  padding: clamp(1.9rem, 3.4vw, 3.35rem) var(--desktop-inset) clamp(2.4rem, 4vw, 3.9rem);
}

.hero-home::after { display: none; }

.hero-home .hero-image {
  position: relative;
  inset: auto;
  z-index: auto;
  grid-area: 1 / 2;
  width: 100%;
  height: clamp(27rem, 63vh, 39rem);
  height: clamp(27rem, 63svh, 39rem);
  object-position: center 7%;
  border: 1px solid var(--line);
}

.hero-home .hero-content { grid-area: 1 / 1; width: 100%; }
.hero-home h1 { font-size: clamp(3.8rem, 5.65vw, 6.1rem); line-height: .96; margin-block: 1rem 1.15rem; }
.hero-home .hero-description { width: min(100%, 43ch); }

.hero-sub {
  width: min(100% - var(--gutter) * 2, var(--desktop-width));
  min-height: clamp(20.5rem, 31vw, 27rem);
  margin: clamp(1.3rem, 2.7vw, 2.35rem) auto 0;
  padding: clamp(1.75rem, 3.8vw, 3.4rem);
  align-items: center;
  border: 1px solid var(--line);
}

.hero-sub .hero-image { left: auto; width: 75%; }
.hero-sub::after {
  background: linear-gradient(90deg, var(--black) 10%, #0b0b0be8 25%, #0b0b0b85 49%, #0b0b0b14 80%);
}
.hero-sub .hero-content { width: min(100%, 37rem); margin: 0; }
.hero-sub h1 { max-width: none; font-size: clamp(3.55rem, 5.25vw, 5.4rem); line-height: .94; }
.hero-sub .breadcrumbs { margin-bottom: .6rem; }
.hero-sub .sub-hero-credit { right: 1rem; bottom: .75rem; }

.room-showcase .photo-link { height: clamp(14rem, 24vw, 23rem); }

.room-gallery:has(> figure:nth-child(5):last-child) {
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(11rem, 17vw, 15.5rem);
  gap: .85rem;
}

.room-gallery:has(> figure:nth-child(5):last-child) img { object-position: center; }

.destination-grid { gap: clamp(1.35rem, 2.65vw, 2.5rem) clamp(1rem, 1.9vw, 1.65rem); }
.destination-card { padding-bottom: .45rem; }
.destination-card h3 { font-size: clamp(1.6rem, 2.08vw, 2.05rem); line-height: 1.06; }
.destination-card .landmark-title { gap: .5rem; }
.destination-card:last-child:nth-child(3n + 1):not(:first-child) { grid-column: 2; }

.location-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
}
.location-grid .map-panel { min-height: clamp(20rem, 30vw, 26rem); }

.travel-section > .wrap:has(> .travel-map:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: start;
  column-gap: clamp(1.5rem, 3.9vw, 3.5rem);
}

.travel-section .section-heading { grid-column: 1 / -1; }
.travel-section .travel-map { height: clamp(23rem, 32vw, 29rem); margin: 0; }
.travel-section .travel-map:not([hidden]) + .distance-list { grid-template-columns: 1fr; }
.travel-section .distance-row { padding-block: 1rem; }
.travel-section .distance-row h3 { font-size: clamp(1.55rem, 2.1vw, 2rem); }

@media (min-width: 78rem) {
  .destination-section .section-heading h2 br { display: none; }
  .destination-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .destination-card,
  .destination-card:last-child:nth-child(3n + 1):not(:first-child) { grid-column: span 2; }
  .destination-card:nth-child(5):nth-last-child(3) { grid-column: 2 / span 2; }
}
