/*! JLP shared mobile layout — shrink content, never clip as the only fix */
html {
  width: 100%;
  max-width: 100%;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: auto; /* temporary scroll if a page still overflows; audit catches it */
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

/* Grid/flex children must be allowed to shrink below intrinsic min-content */
.jlp-city .section,
.jlp-city main,
.osa-site .section,
.osa-site main,
.osa-book-layout,
.osa-book-panel,
.book-form,
.osa-book-form,
#pb-app,
.pb-wrap,
.pb-card,
.pb-checkout,
.pb-checkout-main,
.pb-step,
.city-header,
.header-inner,
.container {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.osa-book-layout {
  width: 100%;
}
@media (max-width: 960px) {
  .osa-book-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

#pb-app,
.pb-wrap,
.pb-card,
.pb-checkout-grid {
  width: 100%;
  max-width: 100%;
}

/* Horizontal scrollers stay inside their own box */
.pb-week,
.jlp-hscroll,
.city-langs,
.pf-filters,
.tag-row {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.book-form,
.osa-book-form,
.paris-book-form {
  width: 100%;
  max-width: min(560px, 100%);
}
.book-form input,
.book-form select,
.book-form textarea,
.osa-book-form input,
.osa-book-form select,
.osa-book-form textarea,
.paris-book-form input,
.paris-book-form select,
.paris-book-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.paris-book-form label {
  min-width: 0;
  max-width: 100%;
}
.shell,
.section.shell {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .paris-book-form select,
  .book-form select,
  .osa-book-form select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .header .shell,
  .header-actions {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

.city-header {
  width: 100%;
  max-width: 100%;
}
.city-langs {
  flex-wrap: wrap;
}
.city-nav {
  max-width: 100%;
}

@media (max-width: 800px) {
  .city-header {
    gap: 10px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .city-nav {
    display: none;
  }
  .btn,
  .btn.primary,
  button[type="submit"] {
    min-height: 44px;
    touch-action: manipulation;
  }
  .jlp-book-msg,
  .osa-book-msg,
  [role="alert"] {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }
}

/* Sticky / fixed bars respect safe area */
.mobile-dock,
.pb-foot,
.tm-mobile-bar,
.hk-sticky-cta {
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  max-width: 100vw;
  box-sizing: border-box;
}
