/* Mobile layer for the public pages. Everything here is scoped to phones, tablets or touch
   input; a desktop browser with a mouse sees the original untouched. */

/* ── Booking bar (phones) ─────────────────────────────────────────────── */
.om-book-bar {
  display: none;
}
@media (max-width: 767px) {
  .om-book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: flex;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e3ded8;
    box-shadow: 0 -6px 24px rgba(28, 44, 52, 0.12);
    transform: translateY(110%);
    transition: transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .om-book-bar-on {
    transform: none;
  }
  .om-book-call,
  .om-book-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-decoration: none;
    touch-action: manipulation;
  }
  .om-book-call {
    flex: none;
    width: 52px;
    color: #1c2c34;
    border: 1px solid #1c2c34;
  }
  .om-book-main {
    flex: 1;
    color: #fff !important;
    background: #1c2c34;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .om-book-main:active {
    background: #aa998a;
  }
  /* Room for the bar and the chat button at the end of the page, in the footer's own colour. */
  .om-has-bar #pxl-footer {
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }
  /* The chat button moves above the bar and gets out of the way of the content. */
  .om-bar-on #voicebot-react-widget {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
  /* So does the accessibility button, which would otherwise cover the call button. */
  .om-bar-on #om-a11y-open {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  #om-a11y-open {
    transition: bottom 0.25s ease;
  }
  #voicebot-react-widget {
    transform: scale(0.86);
    transform-origin: bottom right;
    transition: bottom 0.25s ease;
  }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .om-book-bar,
  #om-a11y-open,
  #voicebot-react-widget {
    transition: none;
  }
}

/* ── Touch targets (any touch device) ─────────────────────────────────────
   The visible design stays; the area that reacts to a finger grows to about 44px. */
@media (pointer: coarse) {
  /* Padding with an equal negative margin enlarges the target without moving anything. */
  #pxl-footer a:not(.pxl-btn):not(.social-item),
  .pxl-brc-wrap .br-link,
  .pxl-readmore,
  .item-readmore a,
  .widget_categories a,
  .pxl-post-list .post-title a,
  .wpml-ls a {
    display: inline-block;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: -12px;
    margin-bottom: -12px;
  }
  #pxl-footer .pxl-links li,
  #pxl-footer .pxl-nav-menu li {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .pxl-socials-wrap .social-item {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .pxl-socials-wrap .socials-list {
    flex-wrap: nowrap !important;
    gap: 4px;
  }
  /* Slider dots and numbers: an invisible halo takes the tap. */
  .swiper-pagination-bullet,
  .pxl-swiper-pagination-bullet {
    position: relative;
  }
  .swiper-pagination-bullet::after,
  .pxl-swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .pxl-swiper-arrow {
    min-width: 44px;
    min-height: 44px;
  }
  .elementor-swiper-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
  /* Card and list titles, "more" links and the author and category links under a post. */
  .item-title a,
  .post-title a,
  .link-more,
  .archive-metas a,
  .pxl-post-carousel .item-readmore a {
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: -10px;
    margin-bottom: -10px;
  }
  /* With pinch zoom allowed again, 16px keeps iOS from zooming into every field it focuses. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(
      [type="file"]
    ),
  select,
  textarea {
    font-size: 16px !important;
  }
  a,
  button,
  [role="button"],
  label,
  summary {
    touch-action: manipulation;
  }
}

/* ── Layout fixes (phones) ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* The room slider's page numbers sat on top of the section below it. */
  .elementor-top-section:has(.pxl-post-carousel.layout-room-1 .style-bullets-number) {
    margin-bottom: 64px;
  }
}

/* ── Menu and other slide-out panels ──────────────────────────────────── */
/* A swipe that reaches the end of the panel stays in the panel instead of moving the page
   behind it. */
.pxl-hidden-template {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
