/*
 * Mijn Bebsy: sign-in extras (on top of auth.css) and the signed-in area
 * (dashboard, booking page). Mobile first; loaded after common.css.
 */

/* ── Shared bits ─────────────────────────────────────────────── */
.acc-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
}
.acc-muted { color: var(--text-secondary); }
.acc-small { font-size: 13px; }
.acc-mt { margin-top: 18px; }
.acc-optional { font-weight: 400; color: var(--text-muted); }
.acc-fineprint { margin: 20px 0 0; font-size: 14px; }

.acc-success {
  background: #eaf7ef;
  border: 1px solid #b7e2c6;
  color: #1d6b3a;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 20px;
}

.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--purple);
  background: var(--purple);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.acc-btn:hover { background: var(--purple-mid); border-color: var(--purple-mid); color: #fff; }
.acc-btn--ghost { background: transparent; color: var(--purple); }
.acc-btn--ghost:hover { background: var(--purple-pale); color: var(--purple); }
.acc-btn--small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.acc-btn--danger { background: #b3261e; border-color: #b3261e; }
.acc-btn--danger:hover { background: #8f1d17; border-color: #8f1d17; }
a.auth-btn { text-decoration: none; }

.acc-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Booking status: a small coloured dot and plain text, no pill. */
.acc-pill {
  --dot: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--text-primary);
}
.acc-pill::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
}
.acc-pill--confirmed { --dot: #2e9e5b; }
.acc-pill--awaiting_documents { --dot: var(--purple-light); }
.acc-pill--awaiting_payment { --dot: #e8870e; }
.acc-pill--processing { --dot: #3b82f6; }
.acc-pill--cancelled { --dot: #c9372c; color: var(--text-secondary); }
.acc-pill--travelled { --dot: var(--border-strong); color: var(--text-secondary); }

.acc-callout {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--purple-pale);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
}
.acc-callout--ok { background: #eaf7ef; }

/* Password with show/hide toggle */
.acc-password { position: relative; display: block; width: 100%; }
.acc-password input { display: block; width: 100%; min-width: 0; padding-right: 68px; }
.acc-password__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--purple);
  font: 500 13px var(--font-body);
  cursor: pointer;
}
.acc-password__toggle:hover { background: var(--purple-pale); }

/* ── Sign-in pages ──────────────────────────────────────────── */
.account-auth .auth-wrap { padding: 32px 16px 56px; }
.account-auth .auth-field input { font-size: 16px; } /* no iOS zoom on focus */
.account-auth .auth-grid--single .auth-pane--login { border-right: 0; }
/* Tablet and up: the card floats on a destination photo under a deep purple
   overlay. Not on phones, where the card fills the screen and the photo would
   barely show (a CSS background there is never downloaded). */
@media (min-width: 769px) {
  /* No footer on these pages: let the photo fill the screen below the header. */
  body.account-auth { display: flex; flex-direction: column; min-height: 100vh; }
  .account-auth main {
    flex: 1;
    display: flex;
    align-items: center;
    background:
      linear-gradient(180deg, rgba(42, 21, 102, 0.62) 0%, rgba(24, 12, 60, 0.78) 100%),
      url("/assets/images_redesign/category-hero.webp") center / cover no-repeat,
      #2a1566;
  }
  .account-auth .auth-wrap { flex: 1; padding: 64px 24px 80px; }
  .account-auth .auth-grid { border: 0; box-shadow: 0 24px 64px rgba(12, 6, 32, 0.35); }
  .account-auth .acc-breadcrumb { color: rgba(255, 255, 255, 0.72); }
  .account-auth .acc-breadcrumb a { color: #fff; }
}

.acc-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 24px;
  border-radius: 10px;
  background: var(--bg-secondary);
}
.acc-segment__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.acc-segment__btn:hover { color: var(--text-primary); }
.acc-segment__btn.is-active { background: #fff; color: var(--purple); box-shadow: 0 1px 3px rgba(26, 26, 24, 0.1); }

.acc-breadcrumb {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.acc-breadcrumb a { color: var(--purple); text-decoration: none; }

.acc-message { text-align: center; }
.acc-message .auth-notice { margin: 0 auto; max-width: 420px; }
.acc-message .auth-btn { width: auto; padding-left: 28px; padding-right: 28px; }
.acc-message__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple);
}
.acc-message--success .acc-message__icon { background: #eaf7ef; color: #1d6b3a; }
.acc-message--error .acc-message__icon { background: #fdecea; color: #b3261e; }

/* ── Signed-in area ─────────────────────────────────────────── */
/* Warm white surfaces and a softer line; purple is kept for actions and the
   one "you are here" accent. */
.acc {
  --bg-card: #fffdfa;
  --border: #eae6de;
  background: var(--bg);
}
.acc-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.acc-wrap--narrow { max-width: 820px; }

/* Type scale for the signed-in area: 12 (labels), 14 (metadata),
   18 (item titles), 28 (page and section titles). */
.acc-head { margin-bottom: 20px; }
.acc-greeting {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.acc-stats { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); overflow-wrap: anywhere; }
.acc-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.acc-sub { margin: 6px 0 0; color: var(--text-secondary); font-size: 15px; overflow-wrap: anywhere; }
.acc-h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--text-primary);
}
.acc-panel > .acc-h2 { margin-top: 28px; }
.acc-panel > .acc-h2:first-child { margin-top: 8px; }

.acc-card {
  margin: 16px 0 0;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.acc-card > p { margin: 0 0 12px; line-height: 1.6; }
.acc-form { margin-top: 16px; }
.acc-form > .acc-small { margin: 0 0 16px; }
.acc-form__grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.acc-form__grid > .auth-field:empty { display: none; }
.acc-form .auth-field input { font-size: 16px; }
.acc-field--narrow { max-width: 360px; }

/* Next trip: the one real card on the page. */
.acc-next-wrap { margin-bottom: 36px; }
.acc-next-wrap > .acc-eyebrow { margin-bottom: 10px; color: var(--text-secondary); }
.acc-next {
  display: grid;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.04), 0 10px 30px -12px rgba(26, 26, 24, 0.12);
}
.acc-next__media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(160deg, var(--purple) 0%, #2a1566 100%);
}
.acc-next__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-next__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 12, 28, 0.62) 0%, rgba(16, 12, 28, 0.18) 45%, rgba(16, 12, 28, 0) 70%);
}
.acc-next__countdown {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
.acc-next__count { font-family: var(--font-serif); font-size: 56px; line-height: 1; letter-spacing: -0.01em; }
.acc-next__count-label { margin-top: 4px; font-size: 14px; font-weight: 500; opacity: 0.92; }
.acc-next__count-label--big { margin: 0; font-family: var(--font-serif); font-size: 28px; font-weight: 400; opacity: 1; }
.acc-next__body { padding: 20px; }
.acc-next__status { margin: 0 0 10px; }
.acc-next__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}
.acc-next__destination { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); }
.acc-next__meta { margin: 2px 0 0; font-size: 14px; color: var(--text-secondary); }
.acc-next__note { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.acc-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.acc-next__actions .acc-link-arrow { margin-left: 0; }
.acc-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 600;
}
.acc-next__home { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--text-primary); }
.acc-next__home::first-letter { text-transform: uppercase; }

/* Progress: one thin rule; finished steps get a small tick, the rest an open circle. */
.acc-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.acc-steps__item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.acc-steps__label { display: inline-flex; align-items: center; gap: 7px; }
.acc-steps__label::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
}
.acc-steps__item.is-done { color: var(--text-primary); }
.acc-steps__item.is-done .acc-steps__label::before {
  width: 12px;
  height: 12px;
  margin: 0 -2px 0 -2px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* The step we are waiting on looks unfinished like the rest (a coloured dot
   read as "done"); only its detail ("€ 1.302 open") is a shade darker. */
.acc-steps__item.is-current .acc-steps__detail { color: var(--text-secondary); }
.acc-steps__detail { padding-left: 14px; font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* Tabs: a scrollable row on phones */
.acc-tabs {
  display: flex;
  gap: 4px;
  margin: 0 -16px 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tabs__link {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.acc-tabs__link:hover { color: var(--text-primary); }
.acc-tabs__link.is-active { color: var(--purple); border-bottom-color: var(--purple); }
.acc-tabs__logout { flex: 0 0 auto; margin: 0; }
.acc-tabs__logout .acc-tabs__link {
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.acc-panel { padding-top: 8px; }
.acc-panel[hidden] { display: none; }

/* Trip lists: one surface, fine rules between rows, the whole row a link. */
.acc-trips {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.acc-trip {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  transition: background 0.12s;
}
.acc-trip + .acc-trip { border-top: 1px solid var(--border); }
.acc-trip:hover { background: #faf7f1; }
.acc-trips > .acc-trip:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.acc-trips > .acc-trip:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.acc-trip__media {
  position: relative;
  align-self: start;
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff url("/assets/images_redesign/bebsy-mark.png") center / 40% no-repeat;
  box-shadow: inset 0 0 0 1px var(--border);
}
.acc-trip__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-trip__body { min-width: 0; }
.acc-trip__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}
.acc-trip__title a { color: var(--text-primary); text-decoration: none; }
.acc-trip__title a::after { content: ''; position: absolute; inset: 0; }
.acc-trip:hover .acc-trip__title a { color: var(--purple); }
.acc-trip__title a:focus-visible { outline: none; }
.acc-trip:has(.acc-trip__title a:focus-visible) { outline: 2px solid var(--purple); outline-offset: -2px; }
.acc-trip__meta { margin: 3px 0 0; font-size: 14px; color: var(--text-secondary); }
.acc-trip__status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 8px 0 0; }
.acc-trip__note { font-size: 13px; color: var(--text-muted); }
.acc-trip__aside { display: none; }
.acc-trip__amount { font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.acc-trip__arrow { align-self: center; color: var(--text-muted); font-size: 16px; transition: color 0.12s, transform 0.12s; }
.acc-trip:hover .acc-trip__arrow { color: var(--purple); transform: translateX(2px); }

/* Booking number, copyable (trip rows and the booking page). */
.acc-booking__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.acc-booking__number { font-size: 13px; color: var(--text-muted); }
.acc-booking__code {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.3;
  cursor: copy;
}
.acc-booking__code:hover { color: var(--purple); text-decoration: underline; }
.acc-booking__code.is-copied { color: #1d6b3a; text-decoration: none; }
.acc-link-arrow {
  margin-left: auto;
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.acc-link-arrow::after { content: ' →'; }
.acc-link-arrow:hover { text-decoration: underline; }

/* Search and paging for long trip lists. */
/* Search: the first row of a trip list, same surface and divider as a trip. */
.acc-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--border);
  background: #fbf9f4;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background 0.12s;
}
.acc-search:focus-within { background: var(--bg-card); box-shadow: inset 0 -2px 0 var(--purple); }
.acc-search__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--text-muted); pointer-events: none; }
.acc-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 48px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: 16px var(--font-body); /* 16px: no iOS zoom on focus */
}
.acc-search__input::placeholder { color: var(--text-muted); }
.acc-search__input:focus { outline: none; }
.acc-search .acc-btn { min-height: 40px; }
.acc-search__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
/* Nothing found: the summary is the last row. */
.acc-trips--searchable > .acc-search__summary:last-child,
.acc-trips--searchable > .acc-search:last-child { border-bottom: 0; }
.acc-trips--searchable > .acc-search:last-child { border-radius: var(--radius); }
.acc-search__clear { color: var(--purple); font-weight: 500; text-decoration: none; }
.acc-search__clear:hover { text-decoration: underline; }
.acc-h2[id] { scroll-margin-top: 140px; } /* clear the sticky site header and tabs */
.acc-h2__count { margin-left: 6px; font-family: var(--font-body); font-size: 14px; color: var(--text-muted); vertical-align: middle; }

.acc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.acc-pager__range { margin: 0; font-size: 13px; color: var(--text-muted); }
.acc-pager__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.acc-pager__page,
.acc-pager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
a.acc-pager__page:hover,
a.acc-pager__step:hover { background: var(--bg-card); color: var(--purple); }
.acc-pager__page.is-current { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.acc-pager__step.is-disabled { color: var(--border-strong); }
.acc-pager__gap { padding: 0 2px; color: var(--text-muted); }
@media (max-width: 599px) {
  /* Phones: previous / next and the range; the page numbers would wrap. */
  .acc-pager__number,
  .acc-pager__gap { display: none; }
  .acc-pager { justify-content: center; }
  .acc-pager__range { order: 2; flex-basis: 100%; text-align: center; }
  .acc-search .acc-btn { padding: 0 14px; }
  .acc-search__icon { left: 14px; }
  .acc-search__input { padding-left: 42px; }
}

/* Delete account */
.acc-danger summary {
  cursor: pointer;
  font-weight: 600;
  color: #b3261e;
  list-style: none;
}
.acc-danger summary::-webkit-details-marker { display: none; }
.acc-danger summary::after { content: ' ▾'; font-size: 12px; }
.acc-danger[open] summary { margin-bottom: 12px; }
.acc-danger p { color: var(--text-secondary); font-size: 14px; }

.acc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; }
.acc-pill--muted { color: var(--text-secondary); }

/* Booking page */
.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.acc-back::before { content: '←'; }
.acc-booking-head {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.acc-booking-head__media { position: relative; aspect-ratio: 16 / 7; background: #fff url("/assets/images_redesign/bebsy-mark.png") center / auto 30% no-repeat; }
.acc-booking-head__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-booking-head__body { padding: 18px 20px 20px; }
.acc-booking-head .acc-title { margin-top: 10px; }
.acc-countdown { margin: 12px 0 0; font-weight: 600; color: var(--purple); }

.acc-pay { display: grid; gap: 14px; align-items: center; border-color: #f3d2ad; background: #fffaf3; }
.acc-pay .acc-h2 { margin-bottom: 4px; }
.acc-pay__amount { margin: 0 0 4px !important; font-family: var(--font-serif); font-size: 30px; line-height: 1.1; }

.acc-docs { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.acc-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.acc-doc:hover { border-color: var(--purple); background: var(--purple-pale); }
.acc-doc__icon { flex-shrink: 0; color: var(--purple); display: inline-flex; }
.acc-doc__name { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.acc-doc__action { flex-shrink: 0; color: var(--purple); font-size: 14px; font-weight: 600; }

.acc-flights { display: grid; gap: 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.acc-flight { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.acc-flight:last-child { padding-bottom: 0; border-bottom: 0; }
.acc-flight__date { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.acc-flight__date::first-letter { text-transform: uppercase; }
.acc-flight__route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; max-width: 560px; }
.acc-flight__route strong { display: block; font-size: 20px; font-weight: 600; }
.acc-flight__route span { display: block; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.acc-flight__arrow { padding-top: 4px; color: var(--text-muted); }
.acc-flight .acc-small { margin: 8px 0 0; }

.acc-stay { display: flex; align-items: flex-start; gap: 16px; }
.acc-stay__media {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff url("/assets/images_redesign/bebsy-mark.png") center / 40% no-repeat;
  box-shadow: inset 0 0 0 1px var(--border);
}
.acc-stay__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acc-stay__body { min-width: 0; flex: 1; }
.acc-stay__name { margin: 0; font-weight: 600; font-size: 16px; }
.acc-stay .acc-facts { margin-top: 10px; }
.acc-stars { color: #e0a100; letter-spacing: 1px; font-size: 13px; }
.acc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 12px 0; }
.acc-facts dt { font-size: 12px; color: var(--text-muted); }
.acc-facts dd { margin: 2px 0 0; font-weight: 500; }
.acc-facts--money { grid-template-columns: 1fr; gap: 8px; margin: 0; }
.acc-facts--money > div { display: flex; justify-content: space-between; gap: 12px; }
.acc-facts--money dt { font-size: 15px; color: var(--text-secondary); }
.acc-facts--money dd { margin: 0; }
.acc-facts--money .is-open { padding-top: 8px; border-top: 1px solid var(--border); font-weight: 700; }
.acc-facts--money .is-open dt { color: #9a4d00; }
.acc-room { margin: 6px 0 0 !important; font-size: 14px; color: var(--text-secondary); }
.acc-list { margin: 0 0 8px; padding-left: 18px; line-height: 1.8; }

.acc-help { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--purple-pale); }
.acc-help p { margin: 0 0 14px; color: var(--text-secondary); }

.acc-h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--text-primary); }

/* "Plan uw volgende reis" (no upcoming trip) */
.acc-plan {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purple) 0%, #2a1566 70%);
  color: #fff;
}
.acc-plan::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.acc-plan__body { position: relative; z-index: 1; padding: 24px 20px; }
.acc-plan__note { margin: 12px 0 36px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.acc-eyebrow--light { color: rgba(255, 255, 255, 0.75); }
.acc-plan__title { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 400; line-height: 1.25; }
.acc-plan__text { margin: 8px 0 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.acc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.acc-chip:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.acc-btn--light { background: #fff; border-color: #fff; color: var(--purple); }
.acc-btn--light:hover { background: var(--purple-pale); border-color: var(--purple-pale); color: var(--purple); }

.acc-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.acc-tabs__link.is-active .acc-tabs__count { background: var(--purple-pale); color: var(--purple); }

/* Trips tab below the next trip: one full-width column. */
.acc-trips-panel > * + .acc-h2 { margin-top: 40px; }

/* Help */
.acc-help-card {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.acc-help-card__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.acc-help-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.acc-help-card__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-help-card__buttons .acc-btn { border-color: var(--border-strong); color: var(--text-primary); }
.acc-help-card__buttons .acc-btn:hover { border-color: var(--purple); color: var(--purple); background: transparent; }
.acc-help-card__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.acc-help-card__links .acc-link-arrow { margin: 0; }
.acc-contact__link::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--acc-icon) no-repeat center / contain;
  mask: var(--acc-icon) no-repeat center / contain;
}
.acc-contact__link--whatsapp { --acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.6 7.3L3 20l1.3-5.1A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E"); }
.acc-contact__link--whatsapp::before { background-color: #1faa53; }
.acc-contact__link--phone { --acc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }

/* "Klaar voor vertrek?" checklist: a count, one thin bar, then ticks.
   What is still to come shows as an open circle, never a green box. */
.acc-checklist { margin: 0 0 8px; }
.acc-checklist.acc-card { margin-top: 0; }
.acc-booking-head + .acc-checklist,
.acc-pay + .acc-checklist { margin-top: 16px; }
.acc-checklist__count { margin: 0; font-size: 14px; color: var(--text-secondary); }
.acc-checklist__count [data-checklist-done] { font-weight: 600; color: var(--text-primary); }
.acc-checklist__bar { height: 4px; margin: 12px 0 4px; border-radius: 99px; background: var(--border); overflow: hidden; }
.acc-checklist__bar span { display: block; height: 100%; border-radius: inherit; background: var(--purple); transition: width 0.25s; }
.acc-checklist__list { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.acc-checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.acc-checklist__item:first-child { border-top: 0; }
.acc-checklist__box,
.acc-checklist__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
}
.acc-checklist__check { appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color 0.12s; }
.acc-checklist__check:hover { border-color: var(--purple); }
.acc-checklist__check:focus-visible { outline: 3px solid var(--purple-pale); outline-offset: 1px; }
.acc-checklist__item.is-done .acc-checklist__box,
.acc-checklist__check:checked {
  border-color: var(--text-primary);
  background: var(--text-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.acc-checklist__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.acc-checklist__label { font-size: 15px; color: var(--text-primary); cursor: default; }
label.acc-checklist__label { cursor: pointer; }
.acc-checklist__item:not(.is-done) .acc-checklist__label { color: var(--text-secondary); }
.acc-checklist__detail { font-size: 13px; color: var(--text-muted); }
.acc-checklist__detail::before { content: '— '; }
.acc-checklist__action {
  flex-shrink: 0;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--purple);
  border-radius: 99px;
  background: #fff;
  color: var(--purple);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.acc-checklist__action:hover { background: var(--purple-pale); text-decoration: none; }
.acc-doc-modal[hidden] { display: none; }
.acc-doc-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.acc-doc-modal__backdrop { position: absolute; inset: 0; background: rgba(26, 26, 24, 0.45); }
.acc-doc-modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  margin: 0;
  padding: 20px 20px 8px;
  background: var(--bg-card);
  border-radius: 16px 16px 0 0;
}
.acc-doc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.acc-doc-modal__title { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.acc-doc-modal__close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--bg); color: var(--text-primary); font-size: 22px; line-height: 1; cursor: pointer;
}
.acc-doc-modal__list { list-style: none; margin: 0; padding: 0; }
.acc-doc-modal__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.acc-doc-modal__name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.acc-doc-modal__icon { flex-shrink: 0; display: inline-flex; color: var(--purple-light); }
.acc-doc-modal__intro { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); }
.acc-doc-modal__foot { margin: 0; padding: 14px 0 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
@media (min-width: 600px) {
  .acc-doc-modal { align-items: center; padding: 24px; }
  .acc-doc-modal__panel { border-radius: 16px; padding: 24px 24px 12px; }
}

/* Booked flights, same card as the hotel page flight picker. */
.acc-card--flights { padding-bottom: 16px; }
.acc-flight-booked { cursor: default; margin-bottom: 12px; }
.acc-flight-booked:hover { border-color: var(--purple); box-shadow: 0 2px 16px rgba(61, 31, 140, 0.14); }
.bw-flight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.bw-flight-card.selected { border-color: var(--purple); box-shadow: 0 2px 16px rgba(61, 31, 140, 0.14); }
.bw-flight-price-bar {
  background: var(--purple);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bw-flight-price-tag { font-size: 14px; font-weight: 500; color: #fff; }
.bw-flight-legs {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  padding: 8px 12px 10px;
  align-items: stretch;
}
.bw-flight-legs.is-stacked { grid-template-columns: 1fr; }
.bw-flight-divider {
  position: relative;
  align-self: stretch;
  justify-self: center;
  width: 1px;
  background: var(--purple-pale);
}
.bw-flight-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  transform: translate(-50%, -50%);
}
.bw-flight-divider::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--purple-light);
  line-height: 1;
}
.bw-flight-legs.is-stacked .bw-flight-divider { width: 100%; height: 1px; margin: 8px 0; }
.bw-flight-legs.is-stacked .bw-flight-divider::before,
.bw-flight-legs.is-stacked .bw-flight-divider::after { display: none; }
.bw-flight-leg { padding: 0 4px; min-width: 0; }
.bw-flight-leg-label,
.bw-flight-leg-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bw-flight-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.bw-flight-endpoint { display: flex; flex-direction: column; min-width: 0; }
.bw-flight-endpoint--arr { align-items: flex-end; text-align: right; }
.bw-flight-airline { display: flex; align-items: center; justify-content: center; min-width: 0; margin-bottom: 2px; }
.bw-flight-airline-logo { display: block; height: 20px; width: auto; max-width: 100%; object-fit: contain; }
.bw-flight-airline-name { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.bw-flight-time { font-size: 16px; color: var(--text-primary); font-weight: 700; line-height: 1.15; }
.bw-flight-path { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.bw-flight-path-line-row { display: flex; align-items: center; width: 100%; gap: 4px; }
.bw-flight-path-line { flex: 1; height: 1px; background: var(--border-strong); min-width: 8px; }
.bw-flight-airport { font-size: 11px; color: var(--text-muted); line-height: 1.25; }
.bw-flight-duration { font-size: 10px; color: var(--text-muted); line-height: 1.2; margin-top: 1px; }
@media (max-width: 640px) {
  .bw-flight-legs { grid-template-columns: 1fr; }
  .bw-flight-divider { width: 100%; height: 1px; margin: 8px 0; }
  .bw-flight-divider::before,
  .bw-flight-divider::after { display: none; }
  .bw-flight-leg { padding: 0; }
}

/* ── Larger screens ─────────────────────────────────────────── */
@media (min-width: 600px) {
  .acc-form__grid { grid-template-columns: 1fr 1fr; }
  .acc-form__grid > .auth-field:empty { display: block; }
  .acc-card { padding: 24px; }
  .acc-pay { grid-template-columns: 1fr auto; }
  .acc-greeting { font-size: 34px; }
  .acc-h2 { font-size: 28px; }
  .acc-steps { display: flex; flex-wrap: wrap; gap: 10px 28px; }
  .acc-trip { grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 18px; padding: 16px 18px; }
  .acc-trip__media { width: 88px; height: 72px; align-self: center; }
  .acc-trip__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
}

@media (min-width: 900px) {
  .acc-wrap { padding: 44px 24px 80px; }
  .acc-head { margin-bottom: 24px; }
  .acc-help-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; }
  .acc-plan__body { padding: 36px 40px; }
  .acc-plan__title { font-size: 30px; }
  .acc-title { font-size: 34px; }
  .acc-next-wrap { margin-bottom: 44px; }
  .acc-next { grid-template-columns: 44% 1fr; }
  .acc-next__media { min-height: 340px; }
  .acc-next__countdown { left: 28px; bottom: 26px; }
  .acc-next__count { font-size: 72px; }
  .acc-next__body { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; }
  .acc-next__title { font-size: 28px; }
  .acc-tabs { margin: 0 0 8px; padding: 0; }
  .acc-booking-head { display: grid; grid-template-columns: 40% 1fr; }
  .acc-booking-head__media { aspect-ratio: auto; min-height: 220px; }
  .acc-booking-head__body { padding: 24px 28px; align-self: center; }
}

/* Phone: tabs sit directly under the greeting and stay pinned below the
   site header, so switching sections does not mean scrolling past the
   next-trip card and the checklist. */
@media (max-width: 899px) {
  .acc-wrap {
    display: flex;
    flex-direction: column;
  }
  .acc-head { order: 1; }
  .acc-wrap > .acc-success,
  .acc-wrap > .auth-error { order: 2; }
  .acc-tabs {
    order: 3;
    position: sticky;
    top: 62px;
    z-index: 40;
    margin: 0 -16px 20px;
    padding: 0 16px;
    background: var(--bg);
  }
  .acc-panel { order: 4; }
}

@media (max-width: 599px) {
  .acc-wrap { padding: 20px 16px 48px; }
  .acc-head { margin-bottom: 14px; }

  .acc-next-wrap { margin-bottom: 28px; }
  .acc-next__media { min-height: 200px; }
  .acc-next__body { padding: 18px 16px 20px; }
  .acc-next__count { font-size: 48px; }
  .acc-next__actions { flex-direction: column; align-items: stretch; }
  .acc-next__actions .acc-btn { width: 100%; }
  .acc-next__actions .acc-link-arrow { align-self: center; }

  .acc-checklist.acc-card { padding: 16px; }
  .acc-checklist__item { padding: 14px 0; }

  .acc-trip { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .acc-trip__media { width: 64px; height: 64px; }

  .acc-card { padding: 16px; }
}
