/* Accessibility and resilient interaction defaults */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav-toggle,
.language-toggle,
.back-to-top {
  min-width: 44px;
  min-height: 44px;
}
.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .45rem;
}
button,
input,
textarea,
select {
  touch-action: manipulation;
}
input,
textarea,
select {
  min-height: 44px;
}
textarea {
  min-height: 7rem;
}

/* Booking form: stable controls on iOS and explicit service-time selection. */
.booking-form { min-width: 0; }
.booking-form-heading { grid-column: 1 / -1; padding-bottom: 1.25rem; border-bottom: 1px solid var(--neutral); }
.booking-form-heading h2 { margin-bottom: .45rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.booking-form-heading p:last-child { margin: 0; }
.booking-form input,
.booking-form textarea { box-sizing: border-box; min-width: 0; max-width: 100%; }
.time-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.time-picker legend { margin-bottom: .4rem; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.time-picker-help { margin: 0 0 1rem; color: #5e574d; font-size: .82rem; }
.time-slots { display: grid; gap: 1.25rem; }
.time-slot-group { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; }
.time-slot-label { margin: .7rem 0 0; color: var(--wine); font: 600 .7rem var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.time-slot-list { display: grid; grid-template-columns: repeat(5, minmax(64px, 1fr)); gap: .55rem; }
.time-slot { min-height: 46px; border: 1px solid #ab9f8d; background: #fff; color: var(--dark); font: 600 .82rem var(--sans); cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.time-slot:hover { border-color: var(--wine); }
.time-slot.selected { border-color: var(--wine); background: var(--wine); color: #fff; }
.booking-layout {
  grid-template-areas:
    "form info"
    "photo photo";
}
.booking-form { grid-area: form; }
.booking-info {
  grid-area: info;
  position: static;
  width: 100%;
  box-sizing: border-box;
}
.booking-photo { grid-area: photo; }
.privacy-check {
  align-items: center;
  margin: 0;
}
.privacy-check input {
  align-self: start;
  margin-top: .18em;
}

.booking-form > .whatsapp-notice {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: .15rem 0 0;
  text-align: left;
}

@media (max-width: 1100px) {
  .time-slot-list { grid-template-columns: repeat(4, minmax(64px, 1fr)); }
}
@media (max-width: 900px) {
  .booking-layout {
    grid-template-areas:
      "info"
      "form"
      "photo";
  }
}
@media (max-width: 600px) {
  .booking-layout {
    grid-template-areas:
      "info"
      "form"
      "photo";
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .booking-form { width: 100%; padding: 1.25rem; gap: 1.1rem; overflow: hidden; }
  .booking-form .field { min-width: 0; }
  .booking-form input[type="date"],
  .booking-form input[type="number"] { width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
  .time-slot-group { grid-template-columns: 1fr; gap: .45rem; }
  .time-slot-label { margin: 0; }
  .time-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .time-slot { width: 100%; padding: .7rem .35rem; }
  .booking-info { position: static; }
}
.success,
.error,
.form-status {
  scroll-margin-top: 7rem;
}

/* Keep the mobile dropdown attached to the header at every scroll state. */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--mobile-nav-top, 86px);
    margin-top: -1px;
  }
  .main-nav a,
  .language-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Let the embedded map fill the complete map panel. */
.contact-map {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.contact-map > .map-consent,
.contact-map > .map {
  width: 100%;
  flex: 1 1 auto;
}
.contact-map > .map-consent {
  padding: 0 !important;
}
.contact-map > .map,
.contact-map > .map-consent > .map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 410px;
  margin: 0;
  border: 0;
}
.contact-map > .map-route {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-media video {
    display: none;
  }
}
@media (forced-colors: active) {
  .button,
  .nav-toggle,
  .back-to-top,
  input,
  textarea {
    border: 1px solid ButtonText;
  }
  .scroll-progress {
    display: none;
  }
}