/* MAT Booking widget (Magic Air Tours) — based on HeliVibe Booking v0.6.5.
 * Brand/design lives in the variables below: override them from the theme
 * (Flatsome → Advanced → Custom CSS) without touching the plugin. */
.matb {
  /* Magic Air Tours palette (taken from magicairtours.com / Flatsome, oct-2026) */
  --matb-accent: #F05A28;      /* MAT orange (Flatsome secondary): primary CTA (Book / Pay) */
  --matb-accent-ink: #FFFFFF;  /* White on orange is 3.4:1 → CTA text is kept >= 18px bold (WCAG large text) */
  --matb-ink: #333333;         /* Body text */
  --matb-muted: #5D5D5D;       /* Secondary text (6.6:1 on white) */
  --matb-line: #E6E1D8;        /* Lines */
  --matb-soft: #FBF6EC;        /* Warm tint behind panels */
  --matb-bg: #FFFFFF;          /* White cards */
  --matb-link: #155E9B;        /* MAT blue (logo/headings): links, focus, checks (6.7:1 on white) */
  --matb-signature: #EBB660;   /* MAT gold (Flatsome primary) as shape (progress bar) */
  --matb-champagne: #EBB660;   /* Gold: thin lines, details only */
  --matb-champagne-deep: #7A5A1F; /* gold-ish text on light */
  --matb-seamist: #EAF2F9;     /* Light blue tint */
  --matb-success: #1F7A4D;
  --matb-danger: #B8432F;      /* Error (5.4:1 on white) */
  --matb-radius: 12px;
  --matb-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --matb-font-display: "Montserrat", system-ui, sans-serif;

  color: var(--matb-ink);
  background: var(--matb-bg);
  font-family: var(--matb-font);
  font-size: 16px;
  line-height: 1.45;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
}
.matb *, .matb *::before, .matb *::after { box-sizing: border-box; }

/* progress */
.matb-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.matb-step { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--matb-muted); }
.matb-step::before { content: ""; height: 4px; border-radius: 4px; background: var(--matb-line); }
.matb-step.is-done::before, .matb-step.is-current::before { background: var(--matb-signature); }
.matb-step.is-current { color: var(--matb-ink); font-weight: 700; }
.matb-step-n { display: none; }
@media (max-width: 420px) { .matb-step-l { display: none; } .matb-step.is-current .matb-step-l { display: inline; white-space: nowrap; } }

.matb-panel { display: flex; flex-direction: column; gap: 18px; }
.matb-center { align-items: center; text-align: center; padding: 24px 0; }
.matb-title { margin: 0; font-family: var(--matb-font-display); font-size: 22px; line-height: 1.2; }
.matb-label { margin: 0 0 8px; font-weight: 700; font-size: 15px; display: block; }
.matb-muted, .matb-help { color: var(--matb-muted); font-size: 14px; margin: 0; }
.matb-help { margin: 8px 0 10px; }
.matb-warn { color: var(--matb-danger); font-size: 14px; margin: 0; }
.matb-pax + [role="alert"] { margin-top: 8px; display: grid; gap: 4px; }
.matb-error { background: #FBEDEA; color: var(--matb-danger); border-radius: var(--matb-radius); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.matb-error[hidden] { display: none; }

/* buttons */
.matb-btn { appearance: none; border: 0; cursor: pointer; min-height: 52px; padding: 0 20px; border-radius: var(--matb-radius);
  background: var(--matb-accent); color: var(--matb-accent-ink); font: inherit; font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; }
.matb-btn:disabled { opacity: .45; cursor: not-allowed; }
.matb-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.matb-btn-ghost { background: transparent; color: var(--matb-ink); border: 1px solid var(--matb-ink); }
.matb-btn:focus-visible, .matb-tour:focus-visible, .matb-cal-day:focus-visible, .matb-time:focus-visible, .matb-seg-b:focus-visible, .matb-icon:focus-visible, .matb-link:focus-visible {
  outline: 3px solid var(--matb-link); outline-offset: 2px; }
.matb-link { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--matb-link); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.matb-actions { display: flex; gap: 10px; }
.matb-actions .matb-btn-ghost { flex: 0 0 auto; width: auto; }
.matb-col { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* tours */
.matb-tours { display: flex; flex-direction: column; gap: 10px; }
.matb-tour { text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px;
  border: 1px solid var(--matb-line); border-radius: var(--matb-radius); background: var(--matb-bg); color: inherit; font: inherit; }
.matb-tour:hover { border-color: var(--matb-ink); }
.matb-tour-name { font-weight: 700; font-size: 17px; }
.matb-tour-meta { color: var(--matb-muted); font-size: 14px; grid-column: 1; }
.matb-tour-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; display: flex; flex-direction: column; }
.matb-tour-price strong { font-size: 20px; }
.matb-tour-price small { color: var(--matb-muted); font-size: 12px; }
/* tour photo (optional) */
.matb-tour.has-img { padding: 0 0 14px; overflow: hidden; }
.matb-tour.has-img > .matb-tour-name, .matb-tour.has-img > .matb-tour-meta { padding-left: 16px; }
.matb-tour.has-img > .matb-tour-price { padding-right: 16px; grid-row: 2 / span 2; }
.matb-tour-media { grid-column: 1 / -1; display: block; position: relative; aspect-ratio: 16 / 9; background: var(--matb-soft); margin-bottom: 10px; overflow: hidden; }
.matb-tour-img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; -webkit-user-drag: none; user-select: none; }
/* card with photo carousel: media on top, the info is the select button */
.matb-tour.matb-tour-card { display: block; padding: 0; cursor: default; }
.matb-tour-card .matb-tour-media { margin-bottom: 0; }
.matb-tour-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 16px 14px; margin: 0;
  border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.matb-tour-body:focus-visible { outline: 3px solid var(--matb-link); outline-offset: -3px; }
.matb .matb-tour-body:hover, .matb .matb-tour-body:focus { background: transparent; color: var(--matb-ink); }
.matb-car { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.matb-car::-webkit-scrollbar { display: none; }
.matb-car:focus-visible { outline: 3px solid var(--matb-link); outline-offset: -3px; }
.matb-car-slide { flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.matb .matb-car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-height: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #0B0F14; font: 700 22px/1 system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.matb .matb-car-btn:hover, .matb .matb-car-btn:focus { background: #FFFFFF; color: #0B0F14; }
.matb-car-btn:focus-visible { outline: 3px solid var(--matb-link); outline-offset: 2px; }
.matb-car-prev { left: 8px; }
.matb-car-next { right: 8px; }
.matb-car-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.matb-car-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.35); transition: background .2s, transform .2s; }
.matb-car-dot.is-on { background: #FFFFFF; transform: scale(1.25); }
@media (hover: none) { .matb .matb-car-btn { display: none; } }
/* scroll effect: JS writes translate+scale inline on each photo.
   v0.1.6: much softer (was a 32-42% zoom that cut the route maps); now 6% zoom and a 2% drift, so the whole photo shows. */
.matb-plx { position: absolute; top: 0; right: 0; bottom: 0; left: 0; -webkit-transform: scale(1.06); transform: scale(1.06);
  -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@keyframes matb-plx {
  from { -webkit-transform: translate3d(0, 2%, 0) scale(1.06); transform: translate3d(0, 2%, 0) scale(1.06); }
  to   { -webkit-transform: translate3d(0, -2%, 0) scale(1.06); transform: translate3d(0, -2%, 0) scale(1.06); }
}
/* The timeline subject is the whole card (its scroller is the page); the media box has
   overflow:hidden, which would otherwise become the timeline's scroller and freeze it. */
@supports (animation-timeline: view()) {
  .matb-tour-card { view-timeline-name: --matb-card; view-timeline-axis: block; }
  .matb-plx { animation: matb-plx linear both; animation-timeline: --matb-card; animation-range: cover 0% cover 100%; }
}
@media (prefers-reduced-motion: reduce) { .matb-plx { -webkit-transform: none !important; transform: none !important; will-change: auto; animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .matb-car { scroll-behavior: auto; } .matb-car-dot { transition: none; } }

.matb-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--matb-soft); border-radius: var(--matb-radius); }

/* calendar */
.matb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.matb-cal-month { font-weight: 700; }
.matb-icon { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--matb-line); background: var(--matb-bg); font-size: 22px; line-height: 1; cursor: pointer; color: var(--matb-ink); }
.matb-icon:disabled { opacity: .35; cursor: not-allowed; }
.matb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.matb-cal-wd { text-align: center; font-size: 12px; color: var(--matb-muted); padding: 4px 0; }
.matb-cal-day { aspect-ratio: 1 / 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--matb-line); background: var(--matb-bg); color: var(--matb-ink); font: inherit; font-weight: 700; cursor: pointer; }
.matb-cal-day:disabled { border-color: transparent; color: #A9B1BC; font-weight: 400; cursor: default; background: transparent; }
.matb-cal-day.is-selected, .matb-time.is-selected, .matb-seg-b.is-selected { background: var(--matb-link); border-color: var(--matb-link); color: #FFFFFF; }

.matb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.matb-time { min-height: 44px; border-radius: 10px; border: 1px solid var(--matb-line); background: var(--matb-bg); color: var(--matb-ink); font: inherit; font-weight: 700; cursor: pointer; }
.matb-time:disabled { opacity: .4; cursor: not-allowed; }

/* passengers */
.matb-seg { display: inline-flex; border: 1px solid var(--matb-line); border-radius: var(--matb-radius); overflow: hidden; }
.matb-seg-b { min-width: 56px; min-height: 44px; border: 0; background: var(--matb-bg); color: var(--matb-ink); font: inherit; font-weight: 700; cursor: pointer; }
.matb-pax { display: flex; flex-direction: column; gap: 10px; }
.matb-pax-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; }
.matb-pax-n { grid-column: 1 / -1; font-size: 14px; font-weight: 700; }
.matb-pax-row > .matb-input:not(.matb-input-w) { grid-column: 1; }
.matb-pax-row > .matb-input-w { grid-column: 2; }
.matb-pax-row:first-child > .matb-input-w { grid-column: 1 / -1; max-width: 160px; }

/* inputs */
.matb-input input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #C9CED6; border-radius: 10px; font: inherit; color: var(--matb-ink); background: var(--matb-bg); }
.matb-input input:focus { outline: 3px solid color-mix(in srgb, var(--matb-link) 30%, transparent); border-color: var(--matb-link); }
.matb-input input:disabled { background: var(--matb-soft); }
.matb-input.is-invalid input, .matb-input.is-invalid select { border-color: var(--matb-danger); }
.matb-input-block { display: block; }
.matb-field-err { display: block; color: var(--matb-danger); font-size: 13px; margin-top: 6px; }
.matb-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.matb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.matb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.matb-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--matb-link); }
.matb-check.is-invalid span { color: var(--matb-danger); }
.matb-check a { color: inherit; }

/* totals */
.matb-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--matb-line); padding-top: 14px; }
.matb-total strong { font-size: 22px; }
.matb-price { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--matb-radius); background: var(--matb-soft); }
.matb-price > div { display: flex; justify-content: space-between; gap: 12px; }
.matb-price dt, .matb-price dd { margin: 0; }
.matb-price .is-strong { font-weight: 700; font-size: 18px; }

.matb-hold { margin: 0; font-size: 14px; color: var(--matb-muted); }
.matb-stripe { min-height: 120px; }

/* loading */
.matb-loading { display: flex; justify-content: center; padding: 24px 0; }
.matb-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--matb-line); border-top-color: var(--matb-accent); animation: matb-spin .8s linear infinite; display: inline-block; }
@keyframes matb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .matb-spinner { animation-duration: 2s; } }

/* Theme isolation (Flatsome/Astra style button:hover/focus, uppercase buttons, margins, and cap content width) */
div.matb[data-matb] { max-width: 560px !important; width: 100%; margin-left: auto !important; margin-right: auto !important; }
.matb button, .matb .matb-btn { text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; margin: 0; max-width: none; }
.matb input, .matb select { margin-bottom: 0; box-shadow: none; }
.matb .matb-tour-card:hover, .matb .matb-tour-card:focus-within { border-color: var(--matb-ink); }
.matb button.matb-tour:hover, .matb button.matb-tour:focus { background: var(--matb-bg); color: var(--matb-ink); border-color: var(--matb-ink); }
.matb .matb-cal-day:not(:disabled):not(.is-selected):hover, .matb .matb-cal-day:not(.is-selected):focus,
.matb .matb-time:not(:disabled):not(.is-selected):hover, .matb .matb-time:not(.is-selected):focus,
.matb .matb-seg-b:not(.is-selected):hover, .matb .matb-seg-b:not(.is-selected):focus,
.matb .matb-icon:hover, .matb .matb-icon:focus { background: var(--matb-soft); color: var(--matb-ink); }
.matb .matb-cal-day:disabled:hover { background: transparent; color: #A9B1BC; }
.matb .matb-cal-day.is-selected, .matb .matb-time.is-selected, .matb .matb-seg-b.is-selected { background: var(--matb-link); color: #FFFFFF; }
.matb .matb-btn:hover, .matb .matb-btn:focus { background: var(--matb-accent); color: var(--matb-accent-ink); filter: brightness(0.94); }
.matb .matb-btn-ghost:hover, .matb .matb-btn-ghost:focus { background: transparent; color: var(--matb-ink); filter: none; }
.matb .matb-link:hover, .matb .matb-link:focus { background: none; color: var(--matb-link); }
.matb .matb-cal-day, .matb .matb-seg-b, .matb .matb-icon { padding: 0; white-space: nowrap; }
.matb .matb-time { padding: 0 6px; white-space: nowrap; }

/* Policies shown before the agree checkbox (v0.2.2) */
.matb-policies { display: flex; flex-direction: column; gap: 14px; }
.matb-policy-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--matb-ink); }
.matb-policy-body { max-height: 220px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px; border: 1px solid var(--matb-line, #d6dbe3); border-radius: var(--matb-radius); background: var(--matb-bg); font-size: 14px; line-height: 1.5; }
.matb-policy-body p { margin: 0 0 8px; }
.matb-policy-body p:last-child { margin-bottom: 0; }
.matb-policy-body a { color: inherit; }
.matb-policy-body:focus-visible { outline: 2px solid var(--matb-link); outline-offset: 2px; }

/* Extras (v0.3.0) */
.matb-extras { display: flex; flex-direction: column; gap: 12px; }
.matb-extra { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--matb-line); border-radius: var(--matb-radius); background: var(--matb-bg); cursor: pointer; }
.matb-extra.is-on { border-color: var(--matb-link); box-shadow: 0 0 0 1px var(--matb-link) inset; }
.matb-extra input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--matb-link); }
.matb-extra-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.matb-extra-price { font-weight: 700; white-space: nowrap; }
.matb-extra-desc { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; }
.matb .matb-input select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--matb-line); border-radius: 10px; background: var(--matb-bg); color: var(--matb-ink); font: inherit; }

/* Display typography */
.matb-title, .matb-tour-name, .matb-tour-price strong, .matb-total strong, .matb-policy-title { font-family: var(--matb-font-display); }
.matb .matb-btn:focus-visible { outline-color: var(--matb-link); }

/* v0.6.0 — 2 screens + deferred Stripe payment */
.matb-summary-tour { justify-content: flex-start; }
.matb-summary-img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.matb-summary-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.matb-summary-name { font-family: var(--matb-font-display); font-size: 17px; }
.matb-summary-txt .matb-muted { font-size: 13px; }
.matb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.matb-row .matb-label { margin: 0; }
.matb-cal-day.is-selected, .matb-time.is-selected, .matb-seg-b.is-selected { background: var(--matb-link); }
/* sticky total + continue */
.matb-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--matb-bg); border-top: 1px solid var(--matb-line); box-shadow: 0 -6px 16px rgba(11,15,20,.06); }
.matb-bar-sum { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.matb-bar-label { font-size: 12px; color: var(--matb-muted); }
.matb-bar-total { font-family: var(--matb-font-display); font-size: 22px; }
.matb-bar-sub { font-size: 12px; color: var(--matb-muted); }
.matb .matb-bar-btn { flex: 1; width: auto; }
/* step 2 sections */
.matb-sec { display: flex; flex-direction: column; gap: 10px; }
.matb-sec-title { margin: 0; font-family: var(--matb-font-display); font-size: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--matb-champagne); align-self: flex-start; }
.matb-sec .matb-help { margin: 0; }
.matb-pax-card { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--matb-line); border-radius: var(--matb-radius); min-width: 0; }
.matb-pax-card .matb-pax-n { padding: 0 6px; margin-left: -6px; font-size: 14px; font-weight: 700; }
.matb-pax-grid { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 10px; align-items: start; }
.matb-pax-grid .matb-span2 { grid-column: span 2; }
@media (max-width: 480px) {
  .matb-pax-grid { grid-template-columns: 1fr 1fr; }
  .matb-pax-grid .matb-input-w { grid-column: 1; }
  .matb-pax-grid .matb-span2 { grid-column: 1 / -1; }
}
.matb-pax-grid .matb-label { font-size: 13px; font-weight: 500; color: var(--matb-muted); margin-bottom: 4px; }
.matb-weight-msgs { display: grid; gap: 4px; }
.matb-weight-msgs:empty { display: none; }
.matb-field-err[hidden] { display: none; }
.matb-stripe { min-height: 150px; }
.matb-terms { font-size: 14px; }
.matb-terms-sum { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.matb-terms-sum li { position: relative; padding-left: 22px; }
.matb-terms-sum li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--matb-signature); }
.matb-terms-full summary { cursor: pointer; color: var(--matb-link); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.matb-terms-full[open] { padding: 0 14px 12px; border: 1px solid var(--matb-line); border-radius: var(--matb-radius); }
.matb-terms-full p { margin: 0 0 8px; line-height: 1.5; }
.matb-terms-full .matb-policy-title { margin: 10px 0 6px; font-size: 15px; }
.matb-secure { margin: -6px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px; color: var(--matb-muted); }
.matb-secure svg { flex-shrink: 0; color: var(--matb-success); }
.matb-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--matb-seamist); color: var(--matb-link); font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.matb-hear { width: 100%; max-width: 400px; margin-top: 8px; padding: 14px; border-radius: var(--matb-radius); background: var(--matb-soft); text-align: left; display: flex; flex-direction: column; gap: 10px; }
.matb-hear .matb-label { font-size: 14px; }
.matb .matb-hear select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--matb-line); border-radius: 10px; background: var(--matb-bg); color: var(--matb-ink); font: inherit; }
.matb .matb-btn-sm { min-height: 44px; font-size: 15px; }
.matb .matb-tour-price strong { color: var(--matb-ink); }

/* weight unit toggle (v0.6.1) */
.matb-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.matb .matb-seg-sm .matb-seg-b { min-width: 48px; min-height: 40px; font-size: 15px; }
.matb-unit { align-self: flex-start; }
/* v0.6.3: inputs aligned on the same baseline even when a label wraps to two lines */
.matb-pax-grid { align-items: stretch; }
.matb-pax-grid > .matb-input { display: flex; flex-direction: column; }
.matb-pax-grid > .matb-input > .matb-label { flex: 1 0 auto; display: flex; align-items: flex-end; }
.matb-note { margin: -8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--matb-seamist); font-size: 14px; }
.matb-price-note { font-size: 14px; color: var(--matb-muted); }
.matb-trust { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: -6px; }
.matb-trust .matb-secure { margin: 0; }
.matb-stripe-badge { display: inline-flex; opacity: .85; }
.matb-stripe-badge:hover, .matb-stripe-badge:focus-visible { opacity: 1; }
.matb-stripe-badge img { display: block; width: 120px; height: auto; }

/* MAT v0.1.0 — Helicopter / Airplane switch on the tour list */
.matb-cats { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 14px; }
.matb-cats .matb-seg-b { width: 100%; }

/* MAT v0.1.1 — tour list: 2 cards per row on tablets, 3 on desktop (like the Bookeo page).
   Only the list widens; progress, title and the Helicopter/Airplane switch stay centered at 560px,
   and the next steps go back to the narrow column. */
div.matb[data-matb].matb-is-list { max-width: 1200px !important; }
.matb-is-list > .matb-steps, .matb-is-list > .matb-error,
.matb-is-list .matb-title, .matb-is-list .matb-cats { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
@media (min-width: 700px) {
  .matb-is-list .matb-title { text-align: center; }
  .matb-is-list .matb-tours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .matb-is-list .matb-tour-card { display: flex; flex-direction: column; }
  .matb-is-list .matb-tour-card .matb-tour-body { flex: 1; align-items: start; }
}
@media (min-width: 1000px) {
  .matb-is-list .matb-tours { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* MAT v0.1.7 — big photo carousel of the chosen tour (flight step), 16:9 */
.matb-hero { margin: 0 0 -6px; }
.matb-hero .matb-tour-media { border-radius: var(--matb-radius); overflow: hidden; margin: 0; }
.matb-hero .matb-plx { -webkit-transform: none !important; transform: none !important; animation: none !important; will-change: auto; }
.matb-summary-tour.has-hero { padding: 12px 14px; }

/* MAT v0.1.9 — tour description from Bookeo, under the photos */
.matb-desc { font-size: 15px; line-height: 1.55; color: var(--matb-ink); margin: -4px 2px 0; }
.matb-desc p { margin: 0 0 10px; }
.matb-desc p:last-child { margin-bottom: 0; }
.matb-desc ul, .matb-desc ol { margin: 0 0 10px; padding-left: 20px; }

/* v0.1.19: Apple Pay / Google Pay buttons above the card form */
.matb-ece { margin: 0 0 14px; }
.matb-ece[hidden] { display: none !important; }
.matb-ece-or { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--matb-muted); display: flex; align-items: center; gap: 10px; }
.matb-ece-or::before, .matb-ece-or::after { content: ""; flex: 1; height: 1px; background: var(--matb-line); }
