/* Desktop layouts for the hotel guides and the four language pages. */
@media (min-width: 1000px) {
  .hotel-guide,
  .intl {
    --guide-gutter: 56px;
    --guide-max: 1160px;
    --guide-reading: 820px;
    --guide-gap: clamp(28px, 4vw, 56px);
  }

  .hotel-guide > :is(.guide-section, .page-jumps, .guide-filters) {
    width: calc(100% - var(--guide-gutter) - var(--guide-gutter));
    max-width: var(--guide-max);
    padding-inline: 0;
  }

  .detail-page .hotel-guide :is(section, article, h2, h3, details)[id] {
    scroll-margin-top: calc(var(--header, 84px) + 18px);
  }

  .hotel-guide > .guide-section { padding-block: 32px; }
  .hotel-guide > .guide-section:first-of-type { padding-top: 42px; }
  .hotel-guide > .guide-section:last-of-type { padding-bottom: 56px; }
  .hotel-guide > .guide-section > h2 { margin-bottom: 22px; }
  .hotel-guide > .guide-section > p { max-width: 44em; }
  .hotel-guide .page-jumps { gap: 0 24px; padding-block: 14px; }
  .hotel-guide .guide-section > .page-jumps { max-width: none; }
  .hotel-guide .page-jumps a { padding-inline: 0; gap: 12px; }
  .hotel-guide .guide-section .text-link { padding-block: 8px; }
  .hotel-guide .guide-section .text-link .arrow { width: 36px; height: 36px; }
  .hotel-guide .guide-section td,
  .hotel-guide .guide-section th { padding: 12px 16px; }
  .hotel-guide .guide-story-copy { padding-top: 0; }
  .hotel-guide .guide-story-copy h3 { letter-spacing: .04em; }
  .hotel-guide :is(.guide-story > img, .guide-story > picture > img) {
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  /* Store descriptions and benefits stay next to their own photographs. */
  #shops > .guide-story {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: var(--guide-gap);
    align-items: start;
    margin-block: 24px 0;
  }

  #shops > .guide-story + .guide-story { margin-top: 48px; }
  #shops > .guide-story:has(.shop-practical) { row-gap: 20px; }
  #shops .guide-story-copy:has(.shop-practical) { display: contents; }
  #shops .shop-intro { grid-column: 2; }
  #shops .shop-practical { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 var(--guide-gap); align-items: start; }
  #shops .shop-practical > .detail-specs { grid-column: 1; grid-row: 1 / 6; margin: 0; }
  #shops .shop-practical > :not(.detail-specs) { grid-column: 2; }
  #shops .shop-practical > .guide-phone { margin-top: 0; }
  #shops .guide-story-copy h3 { font-size: 24px; }
  #shops .guide-story-copy .guide-location:first-child { margin-top: 0; }
  #events > .guide-fold { max-width: var(--guide-reading); }

  #line > .guide-steps,
  #procedure > .guide-steps {
    display: grid;
    gap: 28px;
    padding-inline-start: 1.5em;
    list-style: decimal;
  }

  #line > .guide-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #procedure > .guide-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :is(#line, #procedure) .guide-steps h3 { margin-top: 0; }
  #line .guide-steps img { max-height: 150px; }

  /* Room and sight cards are grouped by their existing floor or area. */
  .hotel-guide > .guide-section:is(#floors, #venues, #west, #north, #south, #movies) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px clamp(24px, 3vw, 36px);
  }

  .hotel-guide > .guide-section:is(#floors, #venues, #west, #north, #south, #movies) > :not(article) {
    grid-column: 1 / -1;
    margin-block: 0;
  }

  .hotel-guide > .guide-section:is(#floors, #venues, #west, #north, #south) > .guide-story {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    min-width: 0;
  }

  :is(#floors, #venues, #west, #north, #south) .guide-story > img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  :is(#floors, #venues, #west, #north, #south) .guide-story-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  :is(#floors, #venues, #west, #north, #south) .guide-story-copy .text-link:last-child {
    margin: auto 0 0;
  }

  #floors > figure { max-width: 430px; }
  #floors .guide-map > span,
  #venues .guide-map > span { text-align: start; }
  .hotel-guide > #venues > figure:has(.guide-map) { grid-column: auto; }

  #services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto repeat(2, min-content) 1fr;
    column-gap: var(--guide-gap);
    align-items: start;
  }

  #services > :is(h2, .guide-fold) { grid-column: 1 / -1; }
  #services > figure { grid-column: 1; grid-row: 2 / span 3; margin-block: 0 24px; }
  #services > figure img { width: 100%; max-width: 480px; }
  #services > :is(p, .text-link) { grid-column: 2; }
  #services > figure + p { margin-top: 0; }

  :is(#services, #events) .guide-fold[open] > div:has(> figure) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: min-content min-content 1fr;
    gap: 8px 28px;
    align-items: start;
  }

  :is(#services, #events) .guide-fold[open] > div > figure { grid-row: 1 / span 3; }
  :is(#services, #events) .guide-fold[open] > div > :not(figure) { grid-column: 2; }

  .hotel-guide > .guide-section:is(#price, #option, #conditions, #annex) {
    max-width: var(--guide-reading);
  }

  /* Use full, uncropped route diagrams and put them next to related directions. */
  #train,
  #parking,
  #map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--guide-gap);
    align-items: start;
  }

  #train > h2,
  #parking > :is(h2, p, .detail-specs, .text-link),
  #map > h2 { grid-column: 1 / -1; }
  #train > :is(.detail-specs, .guide-fold) { grid-column: 1; }
  #train > .detail-specs { margin-top: 0; }
  #train > figure { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
  #parking > .detail-specs { max-width: var(--guide-reading); margin-top: 22px; }
  #parking > figure { margin-block: 12px 0; }
  #parking > p { margin-top: 0; }
  #parking > .text-link { width: min(100%, 420px); }
  #map { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  #map > :is(figure, p) { margin-block: 0; }
  #hotel > .text-link,
  #conference > .text-link { max-width: 440px; }
  #movies > article > h3 { margin-top: 0; }

  /* Keep long text, tables and application fields in a comfortable reading width. */
  .hotel-guide > .guide-section:is(.guide-article, #desk, #form, #jobs, #inquiry, #policy, #terms, #charges, #rules, #minor),
  .hotel-guide:has(> #terms) > .page-jumps {
    max-width: var(--guide-reading);
  }

  .hotel-guide:has(> #company) {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, min(42vw, 552px))
      var(--guide-gap)
      minmax(0, min(42vw, 552px))
      minmax(0, 1fr);
  }

  .hotel-guide:has(> #company) > .guide-cover { grid-column: 1 / -1; }
  .hotel-guide > :is(#company, #property) { width: 100%; padding-block: 48px 56px; }
  .hotel-guide > #company { grid-column: 2; }
  .hotel-guide > #property { grid-column: 4; border-top: 0; }
  .hotel-guide > #company .detail-specs > div,
  .hotel-guide > #property .detail-specs > div { grid-template-columns: 7em minmax(0, 1fr); }
  #jobs .detail-specs > div,
  #charges > .detail-specs > div { grid-template-columns: minmax(13em, 38%) minmax(0, 1fr); }

  #desk > .text-link { max-width: 520px; }
  #form .guide-inquiry-row {
    grid-template-columns: minmax(12em, 28%) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }
  #form .guide-inquiry-row > :is(label, span) { padding-top: 9px; }
  #form .guide-inquiry-purpose { justify-self: start; min-width: min(100%, 330px); }
  #form .guide-form fieldset { padding-inline: 16px; }
  #form .guide-inquiry-actions button { width: auto; padding-inline: 22px; }
  #form [data-review] dl {
    display: grid;
    grid-template-columns: minmax(12em, 28%) minmax(0, 1fr);
    gap: 8px 20px;
    margin-block: 12px;
  }

  #policy > h3 { margin-top: 30px; }
  :is(#policy, #terms, #charges, #rules, #minor) .text-link { max-width: 440px; }
  #charges .guide-table th { min-width: 6em; }

  /* Show date and category beside each headline while keeping the entire row clickable. */
  .hotel-guide > .guide-news { max-width: 1000px; }
  .guide-news .guide-filters { justify-content: flex-start; gap: 10px 24px; padding-block: 0 16px; }
  .guide-news .guide-news-list a {
    grid-template-columns: minmax(11em, 21%) minmax(0, 1fr);
    align-items: baseline;
    gap: 22px;
    padding-block: 16px;
  }

  .guide-title { padding-block: 34px 30px; }
  .guide-title h1 { max-width: var(--guide-reading); }
  .guide-article > .guide-location { margin-bottom: 22px; }
  .guide-article > .text-link { max-width: 380px; margin-top: 32px; }
  .guide-article p:has(> img:nth-of-type(2)) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    max-width: none;
  }

  /* The language pages have their own masthead and booking links. */
  .intl-header,
  .intl-hero > div,
  .intl-footer {
    padding-inline: max(var(--guide-gutter), calc((100% - var(--guide-max)) / 2));
  }

  .intl-header { min-height: 72px; }
  .intl-picker ul { min-width: 172px; }
  .intl-hero { height: clamp(360px, 36vw, 510px); max-height: none; }
  .intl-hero > picture { display: block; height: 100%; }
  .intl-hero img { object-position: center 54%; }
  .intl-hero > div { padding-top: 56px; padding-bottom: 32px; }
  .intl-hero h1 { text-wrap: balance; }
  .intl-hero p { max-width: 44em; }
  .intl .guide-filters { gap: 10px 24px; }
  .intl .guide-filters a { padding-inline: 2px; }
  .intl .hotel-guide > .guide-section:is(#rooms, #access, #sights, #info) { max-width: 920px; }

  .intl .guide-section:is(#spa, #breakfast) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--guide-gap);
    align-items: start;
  }

  .intl .guide-section#spa { grid-template-rows: auto repeat(2, min-content) 1fr; }
  .intl .guide-section#breakfast { grid-template-rows: auto repeat(3, min-content) 1fr; }
  .intl .guide-section:is(#spa, #breakfast) > h2 { grid-column: 1 / -1; }
  .intl .guide-section:is(#spa, #breakfast) > img {
    grid-column: 1;
    grid-row: 2 / -1;
    width: 100%;
  }

  .intl .guide-section:is(#spa, #breakfast) > :is(p, .guide-link) { grid-column: 2; }
  .intl .guide-section:is(#spa, #breakfast) > img + p { margin-top: 0; }
  .intl-footer { padding-block: 30px 96px; }
  .intl-booking a { min-height: 54px; padding-inline: 24px; }
  .intl .intl-phone-mobile { display: none; }
  .intl .intl-phone-desktop { display: inline; }
  /* The supplied meeting photographs stay at an appropriate display size. */
  .guide-cover:has(> img[src$="saiin-hall.webp"]),
  .guide-cover:has(> img[src$="rhino-hall.webp"]) { background: #354e4e; }
  .guide-cover > img:is([src$="saiin-hall.webp"], [src$="rhino-hall.webp"]) { width: 60%; max-width: 800px; margin-left: auto; }
  .guide-cover:has(> img[src$="saiin-hall.webp"])::after,
  .guide-cover:has(> img[src$="rhino-hall.webp"])::after { display: none; }
  .guide-cover:has(> img[src$="saiin-hall.webp"]) .page-hero-copy,
  .guide-cover:has(> img[src$="rhino-hall.webp"]) .page-hero-copy { width: 30%; bottom: 50%; transform: translateY(50%); }
}
