/* Approved mobile/tablet audit fixes, 2026-09-14. Keep every menu item reachable. */
@media (max-width: 980px) {
  .site-header .main-nav {
    max-height: calc(100vh - 188px);
    max-height: calc(100dvh - 188px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 640px) {
  .site-header .main-nav {
    max-height: calc(100vh - 175px);
    max-height: calc(100dvh - 175px - env(safe-area-inset-bottom, 0px));
  }
}

/* Touch tablets retain their normal text scale instead of the desktop preview. */
@media (min-width: 981px) and (pointer: coarse) {
  body main :is(h1,h2,h3,h4,h5,h6):not(.home-experiences-ref *) { font-size: 32px !important; }
  body main :is(.home-answer-card,.stay-answer-card,.experience-answer-card,.contact-answer-card) h3 { font-size: 22px !important; }
  main { --stiltz-content-edge: 32px; --stiltz-after-hero-space: 72px; }
}

/* Larger touch areas, with the existing button text and small visual review dots. */
@media (pointer: coarse), (max-width: 980px) {
  [data-gallery-filter] {
    box-sizing: border-box;
    min-height: 44px !important;
    min-width: 44px !important;
    padding-block: 10px !important;
  }
  .stay-review-arrow, .home-stay-slider-arrow-ref {
    min-width: 44px;
    min-height: 44px;
  }
  .stay-review-more {
    box-sizing: border-box;
    min-height: 44px;
    padding-block: 12px;
  }
  .footer-social a { width: 44px; height: 44px; flex-shrink: 0; }
  .stay-review-dots { gap: 0; }
  .stay-review-dot,
  .stay-review-dot.is-active {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    transform: none;
  }
  .stay-review-dot::before {
    content: '';
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    border: 1px solid var(--stiltz-timber);
    border-radius: 50%;
  }
  .stay-review-dot.is-active::before {
    background: var(--stiltz-timber);
    transform: scale(1.2);
  }
}

/* Keep the complete wordmark inside the mobile/tablet header in both states. */
@media (max-width: 980px) {
  .site-header .header-mark img.header-mark-logo,
  .site-header.is-condensed .header-mark img.header-mark-logo {
    transform: none;
    max-width: 100%;
  }
}


/* Approved mobile/tablet Phase 1 artwork, balanced spacing and Book colour, 2026-09-16. */
@media (max-width: 980px), (pointer: coarse) {
  body .site-header[data-site-header] .header-book-panel,
  body .site-header[data-site-header] .header-book-panel:is(:hover, :focus-visible, :active) {
    background-color: var(--hospitality-brand) !important;
    border-color: var(--hospitality-brand) !important;
    color: #fff !important;
  }
  body .site-header[data-site-header] .header-book-panel:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
  }
  body .site-header[data-site-header] .header-mark {
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: 10px 25px;
  }
  body .site-header[data-site-header] .header-mark img.header-mark-logo {
    flex: 0 1 auto;
    height: auto;
    margin: 0;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    transform: none;
    width: min(100%, 210.9264px);
  }
}
@media (max-width: 980px) {
  body .site-header[data-site-header],
  body .site-header[data-site-header].is-condensed { min-height: 168px; }
  body .site-header[data-site-header] .header-frame {
    grid-template-rows: 112px 56px;
    min-height: 168px;
  }
  body .site-header[data-site-header] .header-mark img.header-mark-logo {
    width: min(100%, 261.6627px);
  }
}
@media (max-width: 640px) {
  body .site-header[data-site-header],
  body .site-header[data-site-header].is-condensed { min-height: 157px; }
  body .site-header[data-site-header] .header-frame {
    grid-template-rows: 105px 52px;
    min-height: 157px;
  }
}
@media (min-width: 981px) and (pointer: coarse) {
  body .site-header[data-site-header]:not(.is-condensed) .header-brand {
    padding: 10px 25px !important;
  }
  body .site-header[data-site-header]:not(.is-condensed) .header-brand-logo img {
    align-self: center;
    height: 82px;
    max-height: 100%;
    max-width: 100%;
    transform: none;
    width: auto;
  }
}


/* Owner-requested larger phone/tablet logos, 2026-09-16.
   Natural aspect ratios, 20px displayed side padding, and desktop styles retained. */
@media (max-width: 640px) {
  body .site-header[data-site-header] .header-mark img.header-mark-logo {
    width: min(100%, 242.2803px);
  }
}
@media (min-width: 981px) and (pointer: coarse) {
  body .site-header[data-site-header].is-condensed { min-height: 94px; }
  body .site-header[data-site-header].is-condensed .header-frame {
    grid-template-columns: 266px minmax(0, 1fr) 188px;
    grid-template-rows: 94px;
    min-height: 94px;
  }
}


/* Phone split sections: image/slider first, sharing the text content gutter.
   Approved 2026-09-16. Portrait tablets and normal tablet landscape stay unchanged. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main[class] :is(.home-stay-grid-ref, .home-story-grid-ref, .stay-path,
      .about-story-grid:has(.about-story-image), .about-architecture,
      .about-commitment-grid, .contact-location-grid, .knut-intro, .activity-mobile-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    height: auto;
    min-height: 0;
  }
  body main #your-stay .home-stay-grid-ref,
  body main #home-location .home-story-grid-ref {
    grid-template-columns: minmax(0, 1fr);
  }
  body main[class] :is(.home-stay-photo-ref, .home-story-map-ref, .stay-path-media,
      .about-story-image, .about-architecture-image, .about-commitment-image,
      .contact-map-panel, .knut-portrait) {
    grid-column: 1;
    grid-row: auto;
    order: -1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  body main[class] :is(.home-stay-copy-ref, .home-story-copy-ref, .stay-path-copy,
      .about-story-grid:has(.about-story-image) > .about-story-copy,
      .about-architecture-copy, .about-commitment-copy, .contact-location-copy,
      .knut-intro-copy) {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    min-width: 0;
    max-width: none;
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }
  body main #your-stay .home-stay-copy-ref { padding-inline: 0; }
  body main[class] :is(.about-architecture-image, .about-commitment-image) :is(picture, img) {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
  body main[class] .activity-mobile-card > picture {
    display: block;
    grid-column: 1;
    grid-row: auto;
    order: -1;
    width: 100%;
  }
  body main[class] .activity-mobile-card > img,
  body main[class] .activity-mobile-card > picture > img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    width: 100%;
    order: -1;
  }
  body main[class] .activity-mobile-card > div {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    min-width: 0;
    width: 100%;
    padding-inline: 0;
  }
  body main[class] :is(.home-stay-slider-ref, .stay-path-slider) {
    width: 100%;
    max-width: 100%;
  }
}


/* Phone amenity labels use one line; keep the Wi-Fi provider on two lines. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  .stay-included-grid > article:nth-of-type(n + 2) > p { white-space: nowrap; }
  .stay-included-grid > article:nth-of-type(n + 2) > p > br { display: none; }
}

/* Phone opening photos fill the visible area below the fixed logo/Book header.
   The opening section still occupies exactly one screen. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body { --phone-hero-header: 168px; }
  body main > :is(.home-ref-hero, .stay-hero-full, .about-hero, .experiences-hero-full, .gallery-hero-full, .contact-hero) img {
    position: absolute;
    inset: var(--phone-hero-header) 0 0;
    width: 100%;
    height: calc(var(--opening-hero-height) - var(--phone-hero-header));
    min-height: 0;
    max-height: none;
    margin: 0;
    object-fit: cover;
    transform: none;
  }
}
@media (max-width: 640px) {
  body { --phone-hero-header: 157px; }
}

/* Keep the main subject in the phone crop. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main > .gallery-hero-full img { object-position: 5% 50%; }
  body main > .contact-hero img { object-position: 90% 50%; }
}

/* Footer navigation: readable labels and generous touch targets at 80% scale. */
@media (max-width: 980px), (pointer: coarse) {
  .site-footer .footer-link-row {
    gap: calc(8px / var(--site-page-scale, 1)) calc(16px / var(--site-page-scale, 1));
    padding-block: calc(24px / var(--site-page-scale, 1));
  }
  .site-footer .footer-link-row a {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: calc(44px / var(--site-page-scale, 1));
    min-width: calc(44px / var(--site-page-scale, 1));
    padding: calc(8px / var(--site-page-scale, 1));
    font-size: calc(11px / var(--site-page-scale, 1));
    line-height: 1.4;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .site-footer .footer-link-row { justify-items: stretch; }
  .site-footer .footer-link-row a { width: 100%; }
}


/* Phone footer: separate recognition groups and centre the return-to-top control. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body .site-footer .footer-recognition {
    row-gap: calc(56px / var(--site-page-scale, .8));
  }
  body .site-footer .footer-minimal {
    padding-bottom: calc(24px / var(--site-page-scale, .8));
  }
  body .site-footer .footer-minimal .scroll-to-top {
    grid-column: 1 / -1;
    justify-self: center;
    margin-inline: auto;
    /* The footer grid already supplies an 18px row gap. */
    margin-top: calc(24px / var(--site-page-scale, .8) - 18px);
    transform: none;
  }
}

/* Home map: compact outer spacing on phones, including short touch landscape. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main #home-location.home-story-ref {
    padding-block: calc(32px / var(--site-page-scale, 1));
  }
}

/* Phone Experiences: match the compact Home map outer spacing, 2026-09-16. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.experiences-page-full > :is(.experiences-intro, .activity-scroll-story) {
    padding-block: calc(32px / var(--site-page-scale, 1));
  }
}


/* Portrait tablets: fit opening photos below the header and retain full-screen sections.
   Mobile and every landscape orientation retain their approved framing. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body { --tablet-hero-header: 168px; }
  body main > :is(.home-ref-hero, .stay-hero-full, .about-hero, .experiences-hero-full, .gallery-hero-full, .contact-hero) img {
    position: absolute;
    inset: var(--tablet-hero-header) 0 0;
    width: 100%;
    height: calc(var(--opening-hero-height) - var(--tablet-hero-header));
    min-height: 0;
    max-height: none;
    margin: 0;
    object-fit: cover;
    transform: none;
  }
}
/* Wide tablets use the existing expanded/compact header dimensions and timing. */
@media (min-width: 981px) and (orientation: portrait) and (pointer: coarse) {
  body { --tablet-hero-header: 166px; }
  body:has(.site-header.is-condensed) { --tablet-hero-header: 94px; }
  body main > :is(.home-ref-hero, .stay-hero-full, .about-hero, .experiences-hero-full, .gallery-hero-full, .contact-hero) img {
    transition: top .28s ease, height .28s ease;
  }
}

@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main > .gallery-hero-full img { object-position: 5% 50%; }
  body main > .contact-hero img { object-position: 92% 50%; }
}

/* Consistent phone About content photos; retain original proportions and focal points. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.about-page { --about-mobile-photo-ratio: 3 / 2; }
  body main.about-page :is(.about-story-image, .about-architecture-image, .about-commitment-image) {
    aspect-ratio: var(--about-mobile-photo-ratio);
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  body main.about-page :is(.about-story-image, .about-architecture-image, .about-commitment-image) > picture {
    display: contents;
  }
  body main.about-page :is(.about-story-image, .about-architecture-image, .about-commitment-image) img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: var(--about-mobile-photo-ratio);
    object-fit: cover;
    transform: none;
  }
}

/* Short phone landscape uses a wider frame, avoiding enlargement of older sources. */
@media (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.about-page { --about-mobile-photo-ratio: 16 / 9; }
}
/* Home Your Stay: readable text followed by a full-content-width slider on portrait tablets. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main #your-stay .home-stay-grid-ref {
    grid-template-columns: minmax(0, 1fr);
  }
  body main #your-stay .home-stay-copy-ref {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 0 32px;
  }
  body main #your-stay .home-stay-photo-ref {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
}
/* Let Stiltz use the shared tablet gutters and a compact row of room choices. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main #your-stay .home-stay-grid-ref { max-width: none; }
}
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) and (pointer: coarse) {
  body main #your-stay .home-stay-types-ref { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body main #your-stay .home-stay-types-ref a + a {
    border-top: 0;
    border-left: 1px solid rgba(36,35,32,.12);
    padding-left: 18px;
  }
}

/* Stay inclusion feature: more arrival space and a readable mobile heading. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.stay-page-full > .stay-included {
    padding-top: calc(52px / var(--site-page-scale, 1));
  }
  html body main.stay-page-full .stay-included-grid > .eyebrow {
    font-size: 32px !important;
    line-height: 1.12;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    line-height: 1.15;
    margin-inline: auto;
    text-wrap: balance;
  }
}
/* Home Location: match Desert Breeze's balanced map-left tablet portrait layout. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main #home-location .home-story-grid-ref {
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: 28px;
  }
  body main #home-location .home-story-map-ref {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  body main #home-location .home-story-copy-ref {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) and (pointer: coarse) {
  body main #home-location .home-story-copy-ref,
  body main #home-location .home-story-copy-ref :is(.eyebrow, h2, p) {
    margin-inline: auto;
    text-align: center;
  }
  body main #home-location .home-story-copy-ref :is(.home-rule, .button) {
    margin-inline: auto;
  }
}
@media (min-width: 981px) and (orientation: portrait) and (pointer: coarse) {
  body main #home-location .home-story-grid-ref {
    column-gap: clamp(40px, 5vw, 72px);
  }
}
/* Stay rooms: full-bleed alternating white bands in tablet portrait. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main.stay-page-full .stay-path-white::before {
    left: 50%;
    right: auto;
    width: calc(100vw / var(--site-page-scale, 1));
    margin-inline: 0;
    transform: translateX(-50%);
  }
}
/* Match Stay room sliders and copy to the 90%-width Home photo on portrait tablets. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main.stay-page-full .stay-path {
    grid-template-columns: minmax(0, 1fr);
  }
  body main.stay-page-full .stay-path :is(.stay-path-copy, .stay-path-media) {
    grid-column: 1;
    width: 90%;
    max-width: none;
    justify-self: center;
  }
  body main.stay-page-full .stay-path .stay-path-copy { grid-row: 1; order: 0; }
  body main.stay-page-full .stay-path .stay-path-media { grid-row: 2; order: 0; }
}
/* Home Your Stay: centre the copy above its slider on portrait tablets. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main #your-stay .home-stay-copy-ref { text-align: center; }
  body main #your-stay .home-stay-copy-ref :is(h2, p, .home-rule) { margin-inline: auto; }
  body main #your-stay .home-stay-types-ref a {
    justify-items: center;
    padding-inline: 16px;
    text-align: center;
  }
  body main #your-stay .home-stay-proofs-ref { justify-content: center; }
  body main #your-stay .home-stay-proofs-ref li { justify-content: center; text-align: center; }
}

/* Owner review: soften only the mobile Stiltz wordmark size by 8%. */
@media (max-width: 640px) {
  body .site-header[data-site-header] .header-mark img.header-mark-logo {
    width: min(92%, 222.8979px);
  }
}
@media (min-width: 641px) and (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body .site-header[data-site-header] .header-mark img.header-mark-logo {
    width: min(92%, 240.7297px);
  }
}
/* Home Location: left-align copy in the map/text portrait-tablet layout. */
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) and (pointer: coarse) {
  body main #home-location .home-story-copy-ref,
  body main #home-location .home-story-copy-ref :is(.eyebrow, h2, p) {
    margin-inline: 0;
    text-align: left;
  }
  body main #home-location .home-story-copy-ref :is(.home-rule, .button) {
    margin-inline: 0;
  }
}
/* Four FAQs form two balanced rows on portrait tablets. */
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) and (pointer: coarse) {
  body main :is(.home-answer-grid, .stay-answer-grid, .experience-answer-grid, .contact-answer-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Keep the Home photo centred and nearly as wide as its copy on portrait tablets.
   Stay room sliders remain aligned with their existing text width. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main #your-stay .home-stay-photo-ref {
    width: 90%;
    max-width: none;
    justify-self: center;
  }
}

/* Match the Desert Breeze Your Stay paragraph measure on portrait tablets. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main #your-stay .home-stay-copy-ref p {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
  }
}

/* Match Desert Breeze's two-part inclusion heading on phones only. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  html body main.stay-page-full .stay-included-grid > .eyebrow {
    display: grid;
    gap: 6px;
    font-size: 0 !important;
    letter-spacing: normal;
    text-transform: none;
  }
  html body main.stay-page-full .stay-included-grid > .eyebrow .mobile-included-kicker {
    display: block;
    color: var(--stiltz-ink);
    font-family: var(--stiltz-serif);
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  html body main.stay-page-full .stay-included-grid > .eyebrow .mobile-included-script {
    display: block;
    color: var(--hospitality-brand);
    font-family: "Hospitality Papyrus", Papyrus, fantasy;
    font-size: 36px !important;
    font-weight: 400;
    font-style: normal;
    letter-spacing: normal;
    line-height: 1.1;
    text-transform: none;
  }
}

/* Center Stiltz room descriptions like Desert Breeze on portrait tablets. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main.stay-page-full .stay-path-copy { text-align: center; }
  body main.stay-page-full .stay-path-copy :is(.eyebrow, h2, p) { margin-inline: auto; }
}

/* Phone guest-review intro: centred divider and Desert Breeze's tighter gap. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.stay-page-full .stay-reviews-intro .stay-rule {
    margin-inline: auto;
    margin-bottom: 4px;
  }
  body main.stay-page-full .stay-reviews-grid { row-gap: 28px; }
}

/* Phone About story: centred introduction before its water-view photo. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.about-page .about-story-grid > .about-story-copy {
    order: 0;
    grid-row: 1;
    text-align: center;
  }
  body main.about-page .about-story-grid > .about-story-image {
    order: 1;
    grid-row: 2;
  }
  body main.about-page .about-story-copy :is(.eyebrow, h2, p) {
    text-align: center;
    margin-inline: auto;
  }
  body main.about-page .about-story-copy .about-rule { margin-inline: auto; }
}

/* Match Desert Breeze's Included section on tablets and desktop, using Stiltz blue. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse),
       (min-width: 641px) and (pointer: fine),
       (min-width: 641px) and (min-height: 501px) and (orientation: landscape) and (pointer: coarse) {
  body main.stay-page-full .stay-included-grid { column-gap: 16px; }
  body main.stay-page-full .stay-included-grid > .eyebrow {
    display: grid;
    gap: 6px;
    min-height: 74px;
    padding: 0;
    margin: 0;
    align-items: initial;
    justify-content: initial;
    line-height: 1;
  }
  body main.stay-page-full .stay-included-grid > .eyebrow .mobile-included-kicker {
    display: block;
    color: var(--stiltz-ink) !important;
    font-family: Marcellus, Georgia, serif !important;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
  }
  body main.stay-page-full .stay-included-grid > .eyebrow .mobile-included-script {
    display: block;
    color: var(--hospitality-brand) !important;
    font-family: 'Hospitality Papyrus', Papyrus, fantasy !important;
    font-size: 26px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
  }
  body main.stay-page-full .stay-included-grid article { padding-inline: 16px; }
  body main.stay-page-full .stay-included-grid article p {
    font-family: Marcellus, Georgia, serif;
    font-size: 18px;
    line-height: 1.2;
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  body main.stay-page-full .stay-included-grid > .eyebrow { text-align: center; }
}
@media (min-width: 981px) {
  body main.stay-page-full .stay-included-grid { grid-template-columns: 1.16fr .96fr .96fr .96fr 1.16fr; }
  body main.stay-page-full .stay-included-grid > .eyebrow { text-align: left; }
}

/* Complete the desktop inclusion heading's small kicker / Papyrus hierarchy. */
@media (min-width: 981px) and (pointer: fine) {
  body main.stay-page-full .stay-included-grid > .eyebrow .mobile-included-kicker {
    font-size: clamp(13px, .9vw, 15px) !important;
  }
  body main.stay-page-full .stay-included-grid > .eyebrow .mobile-included-script {
    font-size: 32px !important;
    transform: translateX(-6px);
  }
}

/* Phone Experiences introduction: breathing room above the opening eyebrow. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.experiences-page-full > section.experiences-intro { padding-top: 70px; }
}

/* Match Desert Breeze's Stay review divider and space below on portrait tablets. */
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) {
  body main.stay-page-full .stay-reviews-intro .stay-rule {
    width: 100px;
    margin-bottom: 4px;
  }
  body main.stay-page-full .stay-reviews-grid { row-gap: 28px; }
}

/* Match Desert Breeze's experience-number size on standard tablets. */
@media (min-width: 641px) and (max-width: 980px) {
  body main.experiences-page-full .activity-mobile-card .experience-number {
    font-size: 18px;
    line-height: 1;
  }
}

/* Phone activity numbers: larger, stronger and high contrast for quick scanning. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main.experiences-page-full .activity-mobile-card .experience-number {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--stiltz-ink);
    font-variant-numeric: tabular-nums;
  }
}

/* Phone gallery viewer uses the visible screen, independent of page zoom. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body .gallery-lightbox {
    zoom: calc(1 / var(--site-page-scale, 1));
    inset: 0 auto auto 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: 64px 16px 80px;
    align-content: center;
    justify-content: center;
  }
  body .gallery-lightbox-frame {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 144px);
    gap: 12px;
  }
  body .gallery-lightbox-frame img { max-height: calc(100dvh - 180px); }
  body .gallery-lightbox-close {
    width: 48px;
    height: 48px;
    top: max(12px, env(safe-area-inset-top));
    right: 16px;
    z-index: 2;
  }
  body .gallery-lightbox-arrow {
    display: flex;
    width: 48px;
    height: 48px;
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: none;
    z-index: 2;
    background: #FCFAF6;
    color: #242320;
    font-size: 38px;
  }
  body .gallery-lightbox-prev { left: 20px; }
  body .gallery-lightbox-next { right: 20px; }
  body .gallery-lightbox-arrow:hover,
  body .gallery-lightbox-arrow:focus-visible { transform: none; }
}

/* Phone gallery categories: centre wrapped rows like Desert Breeze. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main .gallery-tabs {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }
  body main .gallery-tabs button { text-align: center; }
}

/* Phone viewer controls: geometric icons avoid font-baseline misalignment. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body .gallery-lightbox .gallery-lightbox-close,
  body .gallery-lightbox .gallery-lightbox-arrow {
    font-size: 0;
    padding: 0;
    line-height: 1;
  }
  body .gallery-lightbox-close::before,
  body .gallery-lightbox-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background: center / 24px 24px no-repeat;
    pointer-events: none;
  }
  body .gallery-lightbox-close::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242320' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6L18 18M18 6L6 18'/%3E%3C/svg%3E");
  }
  body .gallery-lightbox-prev::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242320' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6L9 12L15 18'/%3E%3C/svg%3E");
  }
  body .gallery-lightbox-next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242320' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6L15 12L9 18'/%3E%3C/svg%3E");
  }
}

/* Center the Gallery category row on tablets, matching Desert Breeze. */
@media (min-width: 641px) and (max-width: 980px) {
  body main.gallery-page-full .gallery-tabs { justify-content: center; }
}

/* Keep Contact details/form and map/location side by side on portrait tablets. */
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) and (pointer: coarse) {
  body main.contact-page .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 52px);
    align-items: stretch;
    justify-items: stretch;
  }
  body main.contact-page .contact-details {
    display: flex;
    flex-direction: column;
    max-width: none;
    min-width: 0;
    width: auto;
    text-align: left;
  }
  body main.contact-page .contact-details :is(.eyebrow, h2, p) {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  body main.contact-page .contact-rule { margin-left: 0; margin-right: 0; flex-shrink: 0; }
  body main.contact-page .contact-list {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }
  body main.contact-page .contact-form {
    margin: 0;
    max-width: none;
    min-width: 0;
    padding: 0;
    width: 100%;
  }
  body main.contact-page .contact-location-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    column-gap: clamp(28px, 4vw, 48px);
    justify-items: stretch;
    text-align: left;
  }
  body main.contact-page :is(.contact-map-panel, .contact-location-copy) {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    order: 0;
  }
  body main.contact-page .contact-location-copy,
  body main.contact-page .contact-location-copy :is(.eyebrow, h2, p) {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  body main.contact-page .contact-location-copy .button { margin-left: 0; margin-right: 0; }
}

/* Portrait-tablet About panels follow desktop ordering with tablet-sized gutters and type. */
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main.about-page .about-story-grid,
  body main.about-page section.about-architecture,
  body main.about-page .about-commitment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    height: auto;
    min-height: 520px;
    align-items: stretch;
  }
  body main.about-page :is(.about-story-image, .about-story-copy, .about-architecture-image, .about-architecture-copy, .about-commitment-image, .about-commitment-copy) {
    order: 0;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
  }
  body main.about-page :is(.about-story-copy, .about-architecture-copy, .about-commitment-copy) {
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px clamp(20px, 3vw, 32px);
    box-sizing: border-box;
    text-align: left;
  }
  body main.about-page :is(.about-story-copy, .about-architecture-copy, .about-commitment-copy) :is(.eyebrow, h2, p) {
    text-align: left;
    margin-inline: 0;
  }
  body main.about-page :is(.about-story-copy, .about-architecture-copy, .about-commitment-copy) .about-rule {
    margin-left: 0;
    margin-right: auto;
  }
  body main.about-page :is(.about-story-image, .about-architecture-image, .about-commitment-image) {
    position: relative;
    align-self: stretch;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  body main.about-page :is(.about-story-image, .about-architecture-image, .about-commitment-image) picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  body main.about-page :is(.about-story-image, .about-architecture-image, .about-commitment-image) img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    transform: none;
  }
}

/* Match Desert Breeze's separation between portrait-tablet About image panels. */
@media (min-width: 641px) and (max-width: 980px) and (orientation: portrait) and (pointer: coarse) {
  body main.about-page > :is(section.about-architecture, section.about-commitment) { margin-bottom: 32px; }
  body main.about-page > section.about-knut { margin-bottom: 56px; }
}

/* Home accommodation labels: compact heading/description spacing on phones. */
@media (max-width: 640px), (max-width: 980px) and (max-height: 500px) and (pointer: coarse) {
  body main #your-stay .home-stay-types-ref a {
    gap: 3px;
    align-content: start;
  }
  body main #your-stay .home-stay-types-ref a > span { min-height: 0; }
}

/* Knut profile: use the site's type hierarchy and brand accents. */
body main .knut-profile {
  --knut-accent: var(--hospitality-brand);
  --knut-accent-soft: color-mix(in srgb, var(--hospitality-brand) 8%, transparent);
}
body main .knut-kicker {
  color: var(--hospitality-brand);
  font-family: 'Hospitality Montserrat', var(--stiltz-sans);
  font-weight: 500;
}
body main .knut-panel > p:first-child {
  color: var(--stiltz-secondary-text);
  font-family: var(--stiltz-sans);
  font-size: 17px;
  line-height: 1.72;
  max-width: 760px;
}
body main .knut-inspirations h2 {
  color: var(--stiltz-ink);
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.25;
  margin: 0 0 24px;
  text-align: center;
}
body main .knut-word-break {
  color: var(--hospitality-brand);
  font-family: var(--hospitality-accent-font);
  font-weight: 400;
  line-height: 1.25;
}
@media (max-width: 980px), (pointer: coarse) {
  body main.content-page:has(.knut-profile) article > :is(h1, .eyebrow),
  body main .knut-profile :is(h2, h3, .knut-word-break) { text-align: center; }
  body main .knut-intro-copy { text-align: center; }
  body main .knut-intro h2 {
    width: 100%;
    max-width: 22ch;
    margin-inline: auto;
    line-height: 1.25;
    text-wrap: balance;
  }
  body main .knut-kicker { margin: 0 auto 20px; }
  body main .knut-intro-lead {
    color: var(--stiltz-secondary-text);
    font-family: var(--stiltz-sans);
    font-size: 16px;
    line-height: 1.65;
    max-width: 40ch;
    margin: 20px auto 0;
  }
  body main .knut-word-break { font-size: var(--small-screen-h2, 30px); }
  body main .knut-intro { height: auto; align-items: center; }
  body main.content-page .knut-portrait {
    max-width: 640px;
    margin-inline: auto;
    height: auto;
    min-height: 0;
    background: transparent;
  }
  body main .knut-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  body main .knut-place-image {
    padding: 0;
    margin-inline: auto;
    width: 100%;
    background: transparent;
  }
  body main .knut-place-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}
@media (min-width: 641px) and (orientation: portrait) and (pointer: coarse) {
  body main .knut-intro {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  body main .knut-portrait {
    order: 0;
    width: min(100%, 640px);
    margin: 0 auto;
  }
  body main .knut-intro-copy { order: 1; padding: 40px 24px; }
}

/* Extend the approved Knut presentation to desktop; keep tablet/phone styling. */
body main.content-page:has(.knut-profile) article > h1 {
  width: 100%;
  max-width: none;
}
@media (min-width: 981px) and (pointer: fine) {
  body main.content-page:has(.knut-profile) article > :is(h1, .eyebrow),
  body main .knut-profile :is(h2, h3, .knut-word-break),
  body main .knut-intro-copy { text-align: center; }
  body main .knut-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: auto;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: var(--stiltz-paper);
  }
  body main .knut-intro-copy { padding: 48px 24px; }
  body main .knut-intro h2 {
    width: 100%;
    max-width: 22ch;
    margin-inline: auto;
    line-height: 1.25;
    text-wrap: balance;
  }
  body main .knut-kicker { margin: 0 auto 20px; }
  body main .knut-intro-lead {
    color: var(--stiltz-secondary-text);
    font-family: var(--stiltz-sans);
    font-size: 17px;
    line-height: 1.65;
    max-width: 40ch;
    margin: 20px auto 0;
  }
  body main .knut-portrait {
    width: 100%;
    max-width: 480px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    background: transparent;
  }
  body main .knut-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  body main .knut-place-image { padding: 0; background: transparent; }
  body main .knut-place-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

/* Owner refinement: centred biography introduction and more heading space. */
body main .knut-panel > p:nth-of-type(-n + 3) { text-align: center; }
body main .knut-inspirations { padding-top: 24px; }

/* Owner-approved Phase B logo increase, 2026-10-06. */
@media (min-width: 981px) and (pointer: fine) {
  body .site-header[data-site-header].is-condensed .header-mark img.header-mark-logo {
    scale: 1.1;
    transform-origin: right center;
  }
}

/* Owner-approved extra left padding for Phase B logos, 2026-10-06. */
@media (min-width: 981px) and (pointer: fine) {
  body .site-header[data-site-header].is-condensed .header-mark { padding-left: calc(26px + 10px / var(--site-page-scale, 1)); }
  body .site-header[data-site-header].is-condensed .header-frame { grid-template-columns: calc(226px + 10px / var(--site-page-scale, 1)) minmax(0, 1fr) 188px; }
}

/* Restore Phase A with logos 15% larger, preserving the Phase B refinements. */
@media (min-width: 981px) and (pointer: fine) {
  body .site-header[data-site-header]:not(.is-condensed) .header-brand-logo img { height: 78px; align-self: flex-start; scale: 1.15; transform-origin: center top; }
  body .site-header[data-site-header]:not(.is-condensed) .header-frame,
  body .site-header[data-site-header]:not(.is-condensed) .header-main { grid-template-rows: 117px 64px; min-height: 181px; }
  body .site-header[data-site-header]:not(.is-condensed) { min-height: 181px; }
}
