/* A layer gives the mobile rules priority over the old unlayered !important rules. */
@layer mobileBooking {
  .mb-contact-bar, .mb-added-cta, .mb-added-phone { display: none; }
  @media (max-width: 800px) {
    [data-mb-header] {
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
    }
    header.mh-ready[data-mb-header]:not([data-mb-row]) { display: block !important; width: 100% !important; }
    .mn-header [data-mb-phone] svg, [data-mb-own-bar] :is(.mobile-call,.rs-launch,.mn-bottom) { display: none !important; }
    .mn-hero { width: auto !important; max-width: 100% !important; }
    [data-mb-row] {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) auto !important;
      grid-template-areas: "name name" "phone menu" !important;
      align-items: center !important;
      justify-content: stretch !important;
      gap: 2px 8px !important;
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: none !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      margin: 0 !important;
      padding: 10px 16px 6px !important;
    }
    [data-mb-group] { display: contents !important; }
    [data-mb-brand], [data-mb-brand] :is(h1, strong, .brand-title, .brand-name, span:not([aria-hidden])) {
      display: block !important;
      position: static !important;
      grid-area: name !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      max-height: none !important;
      overflow: visible !important;
      text-overflow: clip !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      font: 700 18px/1.25 Arial, sans-serif !important;
      letter-spacing: normal !important;
      margin: 0 !important;
    }
    [data-mb-brand] { display: flex !important; align-items: center !important; gap: 8px; }
    [data-mb-brand] small, [data-mb-phone] small,
    [data-mb-row] :is(.header-note,.header-place,.location,.header-book,.header-info),
    [data-mb-row] :is(.header-call,.header-contact,.sp-location) > :is(small,br,span) { display: none !important; }
    [data-mb-brand] :is(img,svg) { max-width: 32px; max-height: 32px; }
    [data-mb-phone] {
      display: inline-flex !important;
      position: static !important;
      grid-area: phone !important;
      justify-self: start !important;
      align-items: center !important;
      justify-content: start !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: 100% !important;
      height: auto !important;
      min-height: 44px !important;
      padding: 0 !important;
      margin: 0 !important;
      border: 0 !important;
      background: transparent !important;
      white-space: nowrap !important;
      overflow: visible !important;
      text-indent: 0 !important;
      color: #183e33 !important;
      font: 700 18px/1.25 Arial, sans-serif !important;
    }
    [data-mb-phone]::before, [data-mb-phone]::after { display: none !important; }
    [data-mb-phone] [data-uis-number] { font: inherit !important; }
    [data-mb-menu] {
      grid-area: menu !important;
      justify-self: end !important;
      position: static !important;
      min-height: 44px !important;
      max-height: none !important;
      margin: 0 !important;
    }
    /* Phones have limited first-screen space. The photo remains a gallery link. */
    .catalog-gallery figcaption { display: none !important; }
    .catalog-hero .catalog-summary { display: flex !important; flex-direction: column !important; gap: 12px; }
    .catalog-actions:has(.mb-hero-cta) { order: -1; width: 100%; display: grid !important; grid-template-columns: 1fr !important; }
    .catalog-actions:has(.mb-hero-cta) > :not(.mb-hero-cta) { display: none !important; }
    .quiet-hero-copy .quiet-perks { order: 1; }
    .mb-hero-cta {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: none !important;
      min-height: 52px !important;
      height: auto !important;
      padding: 12px 16px !important;
      margin: 0 !important;
      border: 0 !important;
      border-radius: 10px !important;
      background: #215b48 !important;
      color: #fff !important;
      font: 700 17px/1.3 Arial, sans-serif !important;
      text-align: center !important;
      text-decoration: none !important;
      white-space: normal !important;
    }
    .mb-payments { margin: 12px 16px; }
    .mb-payments summary { padding: 12px 0; cursor: pointer; font-size: 16px; }
    .mb-payments .pay26-ribbon { position: static !important; width: 100% !important; flex-wrap: wrap; }
    body[data-mb-bar] { padding-bottom: calc(76px + max(20px, env(safe-area-inset-bottom, 0px))) !important; }
    [data-mb-bar] :is(.mx-mobile-bar,.mb-contact-bar) {
      display: grid !important;
      position: fixed !important;
      inset: auto 0 0 !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
      width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      padding: 8px 12px max(20px, env(safe-area-inset-bottom, 0px)) !important;
      box-sizing: border-box !important;
      background: white !important;
      border-top: 1px solid #d9e2dc;
      z-index: 9990;
    }
    [data-mb-own-bar] :is(.mx-mobile-bar,.mobile-bar,.sana-bottom,.rs-mobile-bar) { display: none !important; }
    [data-mb-bar] :is(.mb-contact-bar,.mx-mobile-bar) > :is(.ns-call-btn,.mb-bar-action) {
      display: flex !important; align-items: center; justify-content: center;
      min-width: 0; min-height: 46px !important; height: auto !important; max-height: none !important;
      padding: 8px !important; box-sizing: border-box; border: 1px solid #bed0c6; border-radius: 12px;
      background: #fff; color: #183e33; text-align: center; text-decoration: none;
      white-space: normal !important; font: 700 16px/1.2 Arial, sans-serif !important;
    }
    .mb-contact-bar a.mb-bar-action { color: #fff; background: #183e33; }
    .mb-hero-cta:focus-visible,.mb-contact-bar :focus-visible { outline: 3px solid #a67422; outline-offset: 2px; }
  }
  .mb-callback {
    box-sizing: border-box; width: min(100% - 20px, 450px); max-width: none; max-height: calc(var(--mb-view-height, 100dvh) - 20px);
    margin: auto; padding: 0; border: 1px solid #d5dfd8; border-radius: 16px; background: white; color: #183e33;
  }
  .mb-regional { padding: 16px; overflow: auto; }
  .mb-regional > button { font-size: 16px; align-self: flex-end; }
  .mb-callback::backdrop { background: rgb(12 30 23 / 55%); }
  .mb-callback[open] { display: flex; flex-direction: column; }
  .mb-callback .mb-dialog-heading { position: static; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }
  .mb-callback h2 { margin: 0; font: 700 20px/1.25 Arial,sans-serif; }
  .mb-callback button { min-height: 44px; min-width: 44px; border: 0; background: white; color: #183e33; font-size: 24px; }
  .mb-callback iframe { display: block; width: 100%; min-height: 0; height: min(660px, calc(var(--mb-view-height, 100dvh) - 86px)); border: 0; }
}
