/* Mobile-first responsive layer.
   Breakpoints: 480px large phone, 681px tablet, 901px laptop, 1200px desktop. */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html { overflow-y: auto; }

body {
  padding-bottom: 96px;
  overflow-y: visible;
  touch-action: auto;
  scroll-padding-bottom: 112px;
}

.booking-header {
  min-height: 62px;
  padding: 0.5rem 0.75rem;
  gap: 0.75rem;
}

.brand { min-width: 0; }
.brand img { width: auto; height: 38px; max-width: 150px; }
.booking-nav { display: none; }
.exit-booking { flex: 0 0 auto; padding: 0.5rem 0.72rem; font-size: 0.68rem; }

.booking-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0.5rem 1.5rem;
}

.booking-intro {
  padding: 1.5rem 0.75rem 1.1rem;
}

.booking-intro .eyebrow { margin-bottom: 0.45rem; font-size: 0.62rem; }
.booking-intro h1 { font-size: clamp(1.85rem, 9.5vw, 2.55rem); line-height: 1.04; }
.booking-intro h1 br { display: none; }
.booking-intro > p:last-child { margin-top: 0.7rem; font-size: 0.8rem; line-height: 1.5; }

.stepper { display: none; }
.mobile-progress {
  margin: 0 0 0.75rem;
  padding: 0.8rem 0.85rem;
  display: block;
  border: 1px solid rgba(143, 95, 0, 0.18);
  border-radius: 13px;
  background: rgba(255, 248, 239, 0.82);
}

.mobile-progress > .mobile-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}
.mobile-progress > div span { font-size: 0.74rem; font-weight: 700; }
.mobile-progress > div b { color: var(--muted); font-size: 0.64rem; text-align: right; }
.mobile-progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.mobile-progress-dots i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #d4bd97;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.mobile-progress-dots i.is-complete { background: var(--gold); }
.mobile-progress-dots i.is-current {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(183, 121, 18, 0.18);
  transform: scale(1.3);
}

.booking-layout,
.booking-content,
.booking-panel,
.date-time-selection,
.date-section,
.time-section,
.time-groups,
.time-group,
.details-form {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.booking-layout { display: block; }
.booking-content {
  min-height: 0;
  margin: 0;
  padding: 0.9rem;
  overflow: visible;
  border-radius: 16px;
  touch-action: auto;
}
.booking-panel { overflow: visible; }

.payment-deadline {
  margin-inline: 0.9rem;
  align-items: flex-start;
}

.payment-deadline > b {
  min-width: 74px;
}

.panel-heading { align-items: flex-start; margin-bottom: 1.25rem; }
.panel-heading > p,
.section-number { display: none; }
.panel-heading h2 { font-size: clamp(1.45rem, 7vw, 1.8rem); line-height: 1.17; }

.outlet-grid { grid-template-columns: 1fr; gap: 0.65rem; }
.outlet-card { border-radius: 14px; }
.card-image { height: clamp(150px, 40vw, 190px); }
.card-image img { object-position: center 44%; }
.open-pill { top: 0.55rem; left: 0.55rem; padding: 0.3rem 0.5rem; font-size: 0.6rem; }
.card-body { gap: 0.65rem; padding: 0.72rem 0.78rem; }
.card-body strong { font-size: 0.96rem; }
.card-body span { font-size: 0.69rem; }
.card-body .card-meta { margin-top: 0.22rem; }

.service-list { gap: 0.7rem; }
.active-guest-label { position: sticky; z-index: 5; top: 0; margin: 0 -0.9rem 0.7rem; padding: 0.55rem 0.9rem; border-block: 1px solid rgba(143, 95, 0, 0.14); background: rgba(255, 248, 239, 0.96); }
.active-guest-label[hidden] { display: none; }
.pax-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.pax-option { min-height: 64px; border-radius: 13px; }
.pax-hint { font-size: 0.72rem; }
.guest-names { margin-top: 1.3rem; padding-top: 1.15rem; }
.same-toggle { margin-bottom: 0.8rem; padding: 0.75rem 0.85rem; }
.guest-preview { grid-template-columns: 1fr; }
.service-card { grid-template-columns: 104px minmax(0, 1fr); gap: 0.7rem; padding: 0.65rem; border-radius: 13px; }
.service-card.has-discount-badge { grid-template-columns: 104px minmax(0, 1fr); }
.service-card img { width: 104px; height: 104px; }
.service-copy { min-width: 0; }
.service-copy h3 { font-size: 1rem; }
.service-copy p { display: none; }
.service-action { grid-column: 1 / -1; padding: 0.25rem 0.25rem 0.2rem; display: flex; align-items: center; justify-content: space-between; }
.add-service { min-height: 38px; padding-inline: 1rem; }
.service-more { grid-column: 1 / -1; min-width: 0; margin: 0 0.25rem; }
.service-more ul { grid-template-columns: 1fr; }

.guest-card { padding: 0.85rem; border-radius: 13px; gap: 0.7rem; }
.guest-card-fields { grid-template-columns: 1fr; gap: 0.7rem; }
.preference-warning { margin-top: 0.85rem; }

.date-time-selection { display: grid; gap: 0.8rem; overflow: visible; }
.date-section,
.time-section { padding: 0.9rem 0.7rem; border-radius: 13px; }
.date-section { overflow: hidden; }
.time-section { overflow: visible; }

.date-strip {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0.35rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
}

.date-strip::-webkit-scrollbar { display: none; }
.date-strip:active { cursor: grabbing; }
.date-button { flex: 0 0 62px; min-width: 62px; min-height: 70px; padding: 0.5rem 0.2rem; scroll-snap-align: start; }

.time-groups { display: grid; gap: 0.9rem; overflow: visible; }
.time-group { display: grid; grid-template-columns: 1fr; gap: 0.55rem; align-items: start; }
.time-group > span { padding-top: 0; color: var(--ink); font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.time-button-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; min-width: 0; }
.time-button { width: 100%; min-width: 0; min-height: 46px; padding: 0.55rem 0.2rem; font-size: 0.74rem; }

.details-form { grid-template-columns: 1fr; gap: 0.85rem; }
.field { min-width: 0; }
.field,
.field-wide { grid-column: 1 / -1; min-width: 0; }
.field input,
.field textarea,
.field select,
.promotion-controls input { min-height: 48px; padding: 0.8rem; font-size: 1rem; }
.guest-field input { font-size: 1rem; }
.promotion-slot[hidden] { display: none; }
.billing-promotion-slot {
  margin-top: 1rem;
  padding: 0;
  border: 1px solid rgba(143, 95, 0, 0.18);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 9px 24px rgba(92, 63, 19, 0.07);
  overflow: hidden;
}
.promotion-disclosure {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.promotion-disclosure svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.9;
  transition: transform 160ms ease;
}
.promotion-disclosure[aria-expanded="true"] svg { transform: rotate(180deg); }
.promotion-disclosure.is-applied { color: #277344; }
.promotion-disclosure:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -4px; }
.promotion-disclosure[hidden] { display: none; }
.billing-promotion-slot .promotion-box {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(143, 95, 0, 0.12);
}
.billing-promotion-slot .promotion-card {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.summary-promotion-slot { padding: 0; }
.promotion-box { padding: 0.85rem; }
.promotion-controls { grid-template-columns: minmax(0, 1fr) 76px; gap: 0.65rem; }
.promotion-controls .secondary-button { width: 76px; padding-inline: 0.5rem; }
.promotion-controls .promotion-remove { grid-column: 1 / -1; justify-self: start; }
.consent { font-size: 0.68rem; }
.terms-dialog { max-height: min(88vh, 720px); }
.terms-dialog-head { padding: 1.25rem 1.25rem 0.85rem; }
.terms-dialog-head h2 { font-size: 1.2rem; }
.terms-body { padding: 0.85rem 1.25rem 1.4rem; }

/* Keep navigation in the document flow. Only the summary tab remains fixed. */
.panel-actions {
  position: static;
  margin: 1.4rem 0 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.primary-button { min-height: 46px; padding: 0.7rem 1rem; font-size: 0.75rem; }
.text-button { min-height: 44px; }

.booking-summary {
  position: fixed;
  z-index: 1002;
  top: auto;
  right: 0.35rem;
  bottom: max(0.35rem, env(safe-area-inset-bottom));
  left: 0.35rem;
  width: auto;
  max-width: 100%;
  max-height: min(86dvh, 680px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  border: 1px solid rgba(143, 95, 0, 0.25);
  border-radius: 22px;
  background: var(--paper);
  transform: translateY(105%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-summary.is-open { transform: translateY(0); }
.summary-sheet-handle { display: block; }
.summary-close { display: grid; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--gold-dark); background: transparent; }
.summary-close:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.summary-overlay { display: block; }
.mobile-summary-bar {
  right: 0.65rem;
  bottom: max(0.65rem, env(safe-area-inset-bottom));
  left: 0.65rem;
  min-height: 68px;
  padding: 0.65rem 0.7rem 0.65rem 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  gap: 0.7rem;
  border: 1px solid rgba(143, 95, 0, 0.28);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 248, 232, 0.98);
  box-shadow: 0 10px 28px rgba(92, 63, 19, 0.14);
}
.mobile-summary-bar > span:first-child { min-width: 0; display: grid; gap: 0.12rem; }
.mobile-summary-bar > span:first-child small { color: var(--gold-dark); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-summary-bar > span:first-child b { overflow: hidden; color: var(--ink); font-size: 0.76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-summary-bar .mobile-summary-total { min-width: 62px; display: grid; gap: 0.08rem; justify-items: end; text-align: right; }
.mobile-summary-bar .mobile-summary-total small { color: var(--gold-dark); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mobile-summary-bar .mobile-summary-total strong { color: var(--gold-dark); font: 600 1.05rem var(--font-display); white-space: nowrap; }
.mobile-summary-bar > svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; }
.mobile-summary-bar > svg circle { fill: rgba(255, 252, 244, 0.5); }

.summary-sheet-handle { position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; background: #d2a955; }
.summary-close { top: 0.7rem; right: calc(0.65rem + 0.7rem - 0.35rem); }
.summary-close svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; }
@media (max-width: 900px) {
  body.keyboard-open .mobile-summary-bar {
    pointer-events: none;
  }
  body.keyboard-open .booking-summary,
  body.keyboard-open .booking-summary.is-open {
    transform: translateY(105%);
    visibility: hidden;
    pointer-events: none;
  }
  body.keyboard-open .summary-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.review-card { overflow: visible; }
.review-heading { padding: 1.2rem 3.5rem 0.85rem 1rem; align-items: flex-start; }
.review-heading h3 { font-size: 1.2rem; }
.review-secure { display: none; }
.review-details { padding: 0.25rem 1rem; }
.review-guest-list { padding: 0.35rem 1rem 0.8rem; }
.review-details div { grid-template-columns: 76px minmax(0, 1fr); padding: 0.75rem 0; }
.review-details dd { overflow-wrap: anywhere; }
.review-pricing { padding-inline: 1rem; }
.review-total { padding: 0.9rem 1rem; }
.review-total strong { font-size: 1.25rem; }

/* Large phones */
@media (min-width: 480px) {
  .booking-shell { padding-inline: 0.75rem; }
  .booking-content { padding: 1.1rem; }
  .card-image { height: 205px; }
  .service-card { grid-template-columns: 124px minmax(0, 1fr) auto; }
  .service-card.has-discount-badge { grid-template-columns: 124px minmax(0, 1fr) 140px auto; }
  .service-card img { width: 124px; height: 108px; }
  .service-copy p { display: block; }
  .service-action { grid-column: auto; padding: 0 0.25rem; display: grid; justify-items: end; }
  .service-more { grid-column: 2 / -1; }
  .pax-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .date-button { flex-basis: 68px; min-width: 68px; }
}

/* Tablets */
@media (max-width: 680px) {
  .service-card.has-discount-badge { grid-template-columns: 104px minmax(0, 1fr); }
  .service-card.has-discount-badge img { width: 104px; height: 104px; }
  .has-discount-badge .service-discount { width: 104px; }
}

@media (min-width: 681px) {
  body { padding-bottom: 96px; }
  .booking-header { min-height: 74px; padding: 0.6rem 1.5rem; }
  .brand img { height: 48px; max-width: 190px; }
  .exit-booking { font-size: 0.76rem; }
  .booking-shell { width: min(100% - 2rem, 860px); margin: 0 auto; padding: 0 0 2rem; }
  .booking-intro { padding: 2.8rem 1rem 2.2rem; }
  .booking-intro h1 { font-size: 3.25rem; }
  .booking-intro h1 br { display: initial; }
  .booking-intro > p:last-child { font-size: 0.92rem; }
  .mobile-progress { display: none; }
  .stepper { margin-bottom: 1.5rem; display: flex; }
  .step b { display: none; }
  .booking-content { padding: 1.7rem; border-radius: 20px; }
  .panel-heading > p { display: block; }
  .section-number { display: inline; }
  .panel-heading h2 { font-size: 1.9rem; }
  .active-guest-label { position: static; margin: 0 0 0.85rem; padding: 0; border: 0; background: transparent; }
  .outlet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .guest-preview { grid-template-columns: repeat(2, 1fr); }
  .card-image { height: 220px; }
  .date-section,
  .time-section { padding: 1.25rem; }
  .date-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
  .date-button { min-width: 0; width: 100%; }
  .time-group { grid-template-columns: 88px minmax(0, 1fr); gap: 0.75rem; align-items: start; }
  .time-group > span { padding-top: 0.78rem; }
  .time-button-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .details-form { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .field-wide { grid-column: 1 / -1; }
  .panel-actions { position: static; margin: 2rem 0 0; padding: 1.25rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* Laptops */
@media (min-width: 901px) {
  body { padding-bottom: 0; }
  .promotion-disclosure { display: none; }
  .booking-header { min-height: 82px; padding-inline: clamp(1.5rem, 4vw, 4rem); }
  .brand img { height: 54px; max-width: 220px; }
  .booking-nav { display: flex; }
  .booking-shell { width: min(100% - 2rem, 1280px); max-width: 1280px; }
  .step b { display: block; }
  .booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(290px, 29vw, 340px);
    gap: 1.25rem;
    align-items: start;
  }
  .booking-content { padding: 2rem; }
  .booking-summary { position: sticky; z-index: auto; top: 1rem; right: auto; bottom: auto; left: auto; width: 100%; max-width: 100%; max-height: none; overflow: hidden; border-width: 1px; border-radius: 20px; transform: none; }
  .summary-sheet-handle,
  .summary-close,
  .summary-overlay,
  .mobile-summary-bar { display: none; }
  .review-heading { padding: 1.35rem 1.4rem; align-items: center; }
  .review-heading h3 { font-size: 1.55rem; }
  .review-secure { display: flex; }
  .review-details { padding: 0.5rem 1.4rem; }
  .review-details div { grid-template-columns: 96px minmax(0, 1fr); padding: 1rem 0; }
  .review-details dt { font-size: 0.76rem; }
  .review-details dd { font-size: 0.82rem; }
  .summary-promotion-slot {
    padding: 1rem 1.4rem 1.1rem;
    border-top: 1px dashed rgba(143, 95, 0, 0.22);
  }
  .summary-promotion-slot .promotion-card {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .summary-promotion-slot .promotion-label { margin-bottom: 0.65rem; }
  .summary-promotion-slot .promotion-controls {
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 0.55rem;
  }
  .summary-promotion-slot .promotion-controls input {
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
  .summary-promotion-slot .promotion-controls .secondary-button {
    width: 68px;
    min-height: 42px;
    padding-inline: 0.4rem;
  }
  .review-total { padding: 1.2rem 1.4rem; }
  .review-total small { font-size: 0.68rem; }
  .review-total b { font-size: 0.84rem; }
  .review-total strong { font-size: 1.65rem; }
}

@media (max-width: 359px) {
  .promotion-controls { grid-template-columns: 1fr; }
  .promotion-controls .secondary-button { width: 100%; }
}

/* Desktops */
@media (min-width: 1200px) {
  .booking-shell { width: min(100% - 3rem, 1340px); max-width: 1340px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr) clamp(330px, 28vw, 380px); gap: 1.6rem; }
  .booking-content { padding: 2.75rem; }
  .panel-heading h2 { font-size: 2.15rem; }
}

@media (min-width: 1500px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 390px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-summary,
  .mobile-progress-dots i { transition: none; }
}

/* Compact phone booking layout; preserve full exterior photographs and usable
   controls. Inputs stay at 16px to avoid automatic mobile browser zoom. */
@media (max-width: 680px) {
  .booking-intro { padding: 1.1rem 0.65rem 0.85rem; }
  .booking-intro h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .booking-content { padding: 0.75rem; }
  .panel-heading { margin-bottom: 0.9rem; }
  .panel-heading h2 { font-size: clamp(1.25rem, 5.8vw, 1.5rem); }
  .mobile-progress { padding: 0.65rem 0.75rem; margin-bottom: 0.6rem; }
  .outlet-card:hover img { transform: none; }
  .card-body { padding: 0.65rem 0.7rem; gap: 0.55rem; }
  .card-body strong { font-size: 0.9rem; }
  .service-list { gap: 0.6rem; }
  .service-copy h3 { font-size: 0.93rem; }
  .guest-card { padding: 0.75rem; }
  .date-section, .time-section { padding: 0.75rem 0.6rem; }
}

/* Wider, shorter full-bleed cards. Moderate cropping retains the signboard and
   entrance while avoiding narrow portrait-style cards on either screen size. */
.outlet-grid { align-items: stretch; grid-auto-rows: auto; max-width: 640px; margin-inline: auto; }
/* Keep loading feedback content-sized. Author display:grid on cards must never
   override hidden while loading or when the backend excludes an outlet. */
.outlet-grid > [hidden] { display: none !important; }
.outlet-card { display: grid; grid-template-rows: auto 1fr; align-content: start; }
.outlet-card .card-image { height: auto; aspect-ratio: 6 / 5; }
.outlet-card .card-image img { display: block; object-fit: cover; object-position: center 55%; }
.outlet-card:hover img { transform: none; }
.outlet-card .card-body { min-height: 0; padding-bottom: 0.65rem; align-items: flex-start; }
.outlet-card .card-body > span:last-child { align-content: start; }
.outlet-card .card-body .card-phone { margin-top: 0; color: var(--muted); font-weight: 400; }
.card-body .outlet-detail { display: flex; align-items: flex-start; gap: 0.45rem; line-height: 1.45; }
.outlet-detail svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-body .outlet-detail > span { color: inherit; font: inherit; }
@media (max-width: 680px) {
  .outlet-grid { max-width: 300px; }
}

@media (max-width: 767px) {
  [data-panel="4"] .panel-heading { flex-direction: column; gap: 0.6rem; }
  [data-panel="4"] .panel-heading > p { display: block; max-width: none; text-align: left; margin: 0; }
}
