/* ==========================================================================
   Moniker Global Booking Flow — floating bar + modal funnel
   Self-contained. Reuses the public design tokens from global.css
   (--color-gold, --font-heading, --font-body, spacing) with safe
   fallbacks so it also renders correctly on the standalone /contact page.
   All classes are prefixed `mbf-` to avoid collisions.
   ========================================================================== */

/* `--mbf-*` tokens must be defined on BOTH the floating-bar/modal root
   AND the inline wizard container (/contact) — the inline wizard is
   rendered outside .mbf-root, so it needs its own variable scope. */
.mbf-root,
.mbf-inline {
  --mbf-gold: var(--color-gold, #f3ad0f);
  --mbf-gold-hover: #d99a0d;
  --mbf-ink: var(--color-dark-text, rgb(22, 26, 37));
  --mbf-teal: var(--color-teal, rgb(38, 76, 81));
  --mbf-white: #ffffff;
  --mbf-line: #e6e3dc;
  --mbf-beige: #f7f4ee;
  --mbf-font-body: var(--font-body, 'Lato', Arial, sans-serif);
  --mbf-font-heading: var(--font-heading, 'EB Garamond', Georgia, serif);
  --mbf-radius: 6px;
  --mbf-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.mbf-root *,
.mbf-root *::before,
.mbf-root *::after { box-sizing: border-box; }

/* ---------- Floating bar -------------------------------------------------- */
.mbf-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(0);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 24px);
  padding: 10px 12px 10px 18px;
  background: var(--mbf-ink);
  color: var(--mbf-white);
  border-radius: 999px;
  box-shadow: var(--mbf-shadow);
  font-family: var(--mbf-font-body);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mbf-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.mbf-bar__label {
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}
.mbf-bar__count {
  color: var(--mbf-gold);
  font-weight: 700;
}
.mbf-bar__chips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mbf-bar__chip {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mbf-bar__cta {
  font-family: var(--mbf-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  background: var(--mbf-gold);
  color: #1a1a1a;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.mbf-bar__cta:hover { background: var(--mbf-gold-hover); }
.mbf-bar__clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.mbf-bar__clear:hover { color: var(--mbf-white); }

/* ---------- Overlay + modal ---------------------------------------------- */
.mbf-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mbf-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mbf-modal {
  width: 100%;
  max-width: 640px;
  background: var(--mbf-white);
  border-radius: var(--mbf-radius);
  box-shadow: var(--mbf-shadow);
  font-family: var(--mbf-font-body);
  color: var(--mbf-ink);
  transform: translateY(14px);
  transition: transform 0.25s ease;
  overflow: hidden;
}
.mbf-overlay.is-open .mbf-modal { transform: translateY(0); }

.mbf-modal__head {
  position: relative;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--mbf-line);
  background: var(--mbf-beige);
}
.mbf-modal__eyebrow {
  font-family: var(--mbf-font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mbf-teal);
  margin: 0 0 6px;
}
.mbf-modal__title {
  font-family: var(--mbf-font-heading);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}
.mbf-modal__sub {
  font-size: 14px;
  line-height: 1.5;
  color: #5b5b5b;
  margin: 8px 0 0;
}
.mbf-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--mbf-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.mbf-modal__close:hover { background: rgba(0, 0, 0, 0.12); }

/* Modal body is a flex container; the wizard inside owns its own scroll
   on the step-body, and the footer (Back/Continue) lives OUTSIDE that
   scroll area. Same approach on desktop + mobile so the footer never has
   content peeking below it. */
.mbf-modal__body {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
  overflow: hidden;
  padding: 0;
}
.mbf-modal__body > .mbf-wizard {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 28px 0;
}
.mbf-modal__body .mbf-step-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.mbf-modal__body .mbf-wizard-foot {
  position: static;
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--mbf-white);
}

/* ---------- Property list (primary + alternates) -------------------------- */
.mbf-props { margin: 0 0 22px; }
.mbf-props__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mbf-props__title {
  font-family: var(--mbf-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mbf-ink);
  margin: 0;
}
.mbf-prop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--mbf-line);
  border-radius: var(--mbf-radius);
  margin-bottom: 8px;
  background: var(--mbf-white);
}
.mbf-prop__thumb {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--mbf-beige);
  flex-shrink: 0;
}
.mbf-prop__meta { flex: 1; min-width: 0; }
.mbf-prop__name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbf-prop__role {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.mbf-prop__role--primary { color: var(--mbf-teal); font-weight: 700; }
.mbf-prop__role--alt { color: #8a8a8a; }
.mbf-prop__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mbf-prop__btn {
  font-family: var(--mbf-font-body);
  font-size: 11px;
  background: transparent;
  border: 1px solid var(--mbf-line);
  border-radius: 4px;
  padding: 5px 9px;
  color: var(--mbf-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mbf-prop__btn:hover { border-color: var(--mbf-teal); color: var(--mbf-teal); }
.mbf-prop__btn--remove:hover { border-color: #c0392b; color: #c0392b; }

.mbf-props__empty {
  font-size: 13px;
  color: #7a7a7a;
  padding: 10px 12px;
  border: 1px dashed var(--mbf-line);
  border-radius: var(--mbf-radius);
  margin-bottom: 8px;
}
.mbf-addrow { display: flex; gap: 8px; margin-top: 6px; }
.mbf-addrow select { flex: 1; }
.mbf-addrow .mbf-prop__btn { white-space: nowrap; }

/* ---------- Form --------------------------------------------------------- */
.mbf-form { display: block; }
/* Subhead used inside a step pane to group related fields (e.g. on step 3
   the trip-review block and the contact block each get their own subhead). */
.mbf-subhead {
  font-family: var(--mbf-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--mbf-ink);
  letter-spacing: 0.3px;
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mbf-line, #e5e0d8);
}
.mbf-subhead:first-of-type { margin-top: 6px; }
/* Three-column variant for the trip review row (check-in / check-out /
   group size) — falls back to single column on mobile via the existing
   .mbf-grid 1fr override below. */
.mbf-grid--trip {
  grid-template-columns: 1fr 1fr 1fr;
}
.mbf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* min-width:0 — grid items default to min-width:auto, which lets a wide
   intrinsic child (the phone row) push its column past 1fr and squash the
   neighbouring field. */
.mbf-field { margin-bottom: 14px; min-width: 0; }
.mbf-field--full { grid-column: 1 / -1; }
.mbf-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--mbf-ink);
}
.mbf-label .mbf-opt { color: #9a9a9a; font-weight: 400; }
.mbf-input,
.mbf-select,
.mbf-textarea {
  width: 100%;
  font-family: var(--mbf-font-body);
  font-size: 14px;
  color: var(--mbf-ink);
  background: var(--mbf-white);
  border: 1px solid var(--mbf-line);
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mbf-input:focus,
.mbf-select:focus,
.mbf-textarea:focus {
  outline: none;
  border-color: var(--mbf-gold);
  box-shadow: 0 0 0 3px rgba(243, 173, 15, 0.18);
}
.mbf-textarea { resize: vertical; min-height: 90px; }
/* Phone = dial code + number. The select is fixed-width so the number field
   keeps a usable size even at 320px, where .mbf-grid is already 1 column. */
.mbf-phone {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
/* min-width:0 — flex items default to min-width:auto (min-content), which
   for a <select> is its widest option and for an <input> is its `size`
   attribute; either would blow past the flex-basis set below. */
.mbf-phone .mbf-select,
.mbf-phone .mbf-input { width: auto; min-width: 0; }
.mbf-phone__cc {
  flex: 0 0 120px;
  padding-left: 9px;
  padding-right: 4px;
}
.mbf-phone__other { flex: 0 0 74px; padding-left: 9px; padding-right: 6px; }
.mbf-phone__other[hidden] { display: none; }
/* "Other…" is a short label, so the dropdown gives width back to the number
   field once the free-text code box joins the row. */
.mbf-phone.is-other .mbf-phone__cc { flex: 0 0 92px; }
.mbf-phone__num { flex: 1 1 auto; min-width: 0; }
.mbf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
}
.mbf-check input { width: 16px; height: 16px; accent-color: var(--mbf-gold); }
/* Small "i" info dot next to "My dates are flexible" — native title tooltip. */
.mbf-infodot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--mbf-gold);
  color: var(--mbf-gold);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}

.mbf-error {
  display: none;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a23b32;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.mbf-error.is-shown { display: block; }

.mbf-submit {
  width: 100%;
  font-family: var(--mbf-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  background: var(--mbf-gold);
  color: #1a1a1a;
  padding: 14px 24px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
.mbf-submit:hover { background: var(--mbf-gold-hover); }
.mbf-submit:disabled { opacity: 0.6; cursor: progress; }
.mbf-note {
  text-align: center;
  font-size: 12.5px;
  color: #8a8a8a;
  margin: 12px 0 0;
}

/* ---------- Success ------------------------------------------------------ */
.mbf-success {
  text-align: center;
  padding: 28px 16px 8px;
}
.mbf-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(243, 173, 15, 0.16);
  color: var(--mbf-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.mbf-success__title {
  font-family: var(--mbf-font-heading);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
}
.mbf-success__text {
  font-size: 14px;
  color: #5b5b5b;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 22px;
}

/* ---------- Inline (used by the standalone /contact page) ---------------- */
.mbf-inline {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.mbf-inline .mbf-modal {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: none;
  border: 1px solid var(--mbf-line);
}
.mbf-inline .mbf-modal__close { display: none; }
.mbf-inline .mbf-modal__body { max-height: none; }

/* ---------- Wizard ------------------------------------------------------- */
.mbf-wizard { display: flex; flex-direction: column; }

/* step header */
.mbf-steps {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.mbf-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9a9a9a;
  min-width: 0;
}
.mbf-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--mbf-line);
  color: #8a8a8a;
}
.mbf-step.is-active { color: var(--mbf-ink); font-weight: 700; }
.mbf-step.is-active .mbf-step__num { background: var(--mbf-gold); color: #1a1a1a; }
.mbf-step.is-done { color: var(--mbf-teal); }
.mbf-step.is-done .mbf-step__num { background: var(--mbf-teal); color: #fff; }
.mbf-step__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mbf-step-body { padding-top: 18px; }
.mbf-step-title {
  font-family: var(--mbf-font-heading);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
}
.mbf-step-intro {
  font-size: 13.5px;
  color: #5b5b5b;
  line-height: 1.55;
  margin: 0 0 18px;
}

/* footer nav */
.mbf-wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mbf-line);
  background: var(--mbf-white);
}
.mbf-btn {
  font-family: var(--mbf-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 4px;
  cursor: pointer;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.mbf-btn--primary { background: var(--mbf-gold); color: #1a1a1a; }
.mbf-btn--primary:hover { background: var(--mbf-gold-hover); }
.mbf-btn--primary:disabled { opacity: 0.6; cursor: progress; }
.mbf-btn--ghost { background: transparent; border-color: var(--mbf-line); color: var(--mbf-ink); }
.mbf-btn--ghost:hover { border-color: var(--mbf-teal); color: var(--mbf-teal); }

/* property cards */
.mbf-card {
  border: 1px solid var(--mbf-line);
  border-radius: var(--mbf-radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--mbf-white);
}
.mbf-card__head { display: flex; align-items: center; gap: 12px; padding: 12px; }
.mbf-card__img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--mbf-beige);
  flex-shrink: 0;
}
.mbf-card__meta { flex: 1; min-width: 0; }
.mbf-card__name {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbf-card__role {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
  color: #9a9a9a;
}
.mbf-card__role.is-primary { color: var(--mbf-teal); font-weight: 700; }
.mbf-card__actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.mbf-minibtn {
  font-family: var(--mbf-font-body);
  font-size: 11px;
  background: transparent;
  border: 1px solid var(--mbf-line);
  border-radius: 4px;
  padding: 5px 9px;
  color: var(--mbf-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mbf-minibtn:hover { border-color: var(--mbf-teal); color: var(--mbf-teal); }
.mbf-minibtn--rm:hover { border-color: #c0392b; color: #c0392b; }

.mbf-card__est { padding: 0 12px 12px; }
.mbf-card__est--muted { font-size: 13px; color: #8a8a8a; padding: 0 12px 14px; }
.mbf-card__pricerow { display: flex; align-items: baseline; gap: 8px; }
.mbf-card__price {
  font-family: var(--mbf-font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--mbf-ink);
}
.mbf-card__esttag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--mbf-teal);
  background: rgba(38, 76, 81, 0.1);
  padding: 2px 7px;
  border-radius: 999px;
}
.mbf-card__estnote { font-size: 12px; color: #8a8a8a; margin-top: 3px; line-height: 1.5; }

/* breakdown accordion */
.mbf-bd { margin-top: 10px; border-top: 1px solid var(--mbf-line); padding-top: 4px; }
.mbf-bd__summary,
.mbf-help__summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mbf-teal);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.mbf-bd__summary::-webkit-details-marker,
.mbf-help__summary::-webkit-details-marker { display: none; }
.mbf-help__icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mbf-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mbf-bd__body { padding: 4px 0 2px; }
.mbf-bd__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #5b5b5b;
  padding: 4px 0;
}
.mbf-bd__row--total {
  border-top: 1px solid var(--mbf-line);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 700;
  color: var(--mbf-ink);
  font-size: 14px;
}
.mbf-bd__note { font-size: 11.5px; color: #9a9a9a; line-height: 1.5; margin: 8px 0 0; }

/* soft warning band */
.mbf-warn {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 12px 12px;
  padding: 9px 11px;
  background: #fdf0ec;
  border: 1px solid #f3c6b8;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9a3b1f;
}
.mbf-warn__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #d9663f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* empty state */
.mbf-empty {
  border: 1px dashed var(--mbf-line);
  border-radius: var(--mbf-radius);
  padding: 22px;
  text-align: center;
  margin-bottom: 12px;
}
.mbf-empty__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.mbf-empty__text { font-size: 13px; color: #7a7a7a; line-height: 1.55; margin: 0; }
.mbf-empty__btn {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
}
.mbf-link {
  color: var(--mbf-teal);
  text-decoration: underline;
  font-weight: 700;
}
.mbf-link:hover { color: var(--mbf-gold-hover); }

/* inline help accordion */
.mbf-help {
  border: 1px solid var(--mbf-line);
  border-radius: 6px;
  background: var(--mbf-beige);
  margin-top: 16px;
}
.mbf-help__summary { padding: 10px 12px; }
.mbf-help[open] .mbf-help__summary { border-bottom: 1px solid var(--mbf-line); }
.mbf-help__body {
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #5b5b5b;
}
.mbf-help__body p { margin: 0; }
.mbf-help__list { margin: 0; padding-left: 18px; }
.mbf-help__list li { margin-bottom: 5px; }
.mbf-help__list li:last-child { margin-bottom: 0; }

/* ---------- Collection card "Save" affordance ---------------------------- */
.mbf-card-save {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  font-family: var(--font-body, 'Lato', Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1a1a1a;
  background: var(--color-gold, #f3ad0f);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.mbf-card-save:hover { background: #d99a0d; transform: translateY(-1px); }
.mbf-card-save.is-saved { background: rgba(255, 255, 255, 0.92); color: var(--color-teal, rgb(38, 76, 81)); cursor: default; }

/* ---------- Responsive --------------------------------------------------- */
/* Reserve space so the fixed bar never overlaps page content / footer.
   Desktop bar is centered & short; mobile bar is full-width & taller. */
body.mbf-has-bar { padding-bottom: 80px; }

@media (max-width: 767px) {
  body.mbf-has-bar {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
  .mbf-bar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: none;
    border-radius: 14px;
    padding: 12px 12px 12px 16px;
    gap: 10px;
  }
  .mbf-bar.is-visible { transform: none; }
  .mbf-bar__chips { display: none; }
  .mbf-bar__label { white-space: normal; font-size: 13px; }
  .mbf-bar__cta { padding: 10px 16px; font-size: 13px; }
  /* Full-screen sheet on mobile. The flex-column structure (body owns
     no scroll, the step-body inside the wizard does, footer outside)
     is now in the BASE rules — mobile only adjusts sizing + safe area. */
  .mbf-overlay { padding: 0; align-items: stretch; overflow: hidden; }
  .mbf-overlay .mbf-modal {
    max-width: 100%;
    border-radius: 0;
    height: 100%;          /* fallback for browsers without dvh */
    height: 100dvh;        /* tracks mobile browser chrome correctly */
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  /* No max-height cap on mobile — the body fills the remaining viewport. */
  .mbf-modal__body { max-height: none; flex: 1 1 auto; min-height: 0; }
  .mbf-modal__body > .mbf-wizard { padding: 22px 22px 0; }
  .mbf-modal__body .mbf-wizard-foot {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .mbf-grid { grid-template-columns: 1fr; gap: 0; }
  /* On mobile the trip-review row also collapses to a single column for
     consistency with the other field groups in the wizard. */
  .mbf-grid--trip { grid-template-columns: 1fr; }
  .mbf-modal__title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .mbf-bar, .mbf-overlay, .mbf-modal { transition: none; }
}
