/* Booking-specific shared-component rules. Keep canonical vendor files exact. */

/* Canonical theme suffixes and existing form labels need a hidden-text utility. */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Announce only the suffix matching the document language. */
html[lang|="en"] .lang-it,
html[lang|="it"] .lang-en { display: none; }

/* Flat warm surfaces remove decorative glass gradients and keep text legible. */
.booking-page .jk-glass,
.booking-page .jk-glass.hi {
  background: var(--jk-surface);
  box-shadow: none;
}
.booking-page .jk-glass::before,
.booking-page .jk-glass::after { display: none; }

/* Center the bar between safe areas, including an asymmetric landscape notch. */
.booking-page .jk-top {
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
  width: min(1180px, calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 20px));
  margin-inline: auto;
  transform: none;
}
/* Keep the switch from shrinking and clip navigation before it crowds controls. */
.booking-page .jk-top .jk-mark,
.booking-page .jk-top .jk-links,
.booking-page .jk-top .jk-tag { overflow: hidden; }
.booking-page .jk-top [data-jk-theme-switch] { flex: none; }

/* Retain 44 px touch targets and a strong focus ring on booking navigation. */
.booking-page .jk-thsw button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
}
.booking-page .jk-thsw button:focus-visible,
.booking-page .jk-top a:focus-visible {
  outline: 2px solid var(--jk-accent-text);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  /* Override the canonical 420 px contraction: 390 px can keep 44 px controls. */
  .booking-page .jk-thsw button { flex: 0 0 44px; padding: 0 6px; }
}
@media (max-width: 680px) {
  /* Leave comfortable space around the compact mobile bar. */
  .booking-page .jk-top {
    gap: 8px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
}
@media (max-width: 359px) {
  /* Preserve the existing compact fallback on the narrowest screens. */
  .booking-page .jk-thsw button {
    min-width: 36px;
    min-height: 36px;
    flex-basis: 36px;
    padding: 0 6px;
  }
}
