/* Mundero TO-portaal — zelfde palet als het vluchten-dashboard (national.css). */
:root {
  --teal: #03b5aa;
  --teal-dark: #029a90;
  --teal-tint: #e5f7f6;
  --ink: #363636;
  --ink-soft: #5b6b6b;
  --ink-dim: #9aa6a6;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --line: #e6eaea;
  --line-soft: #eef2f2;
  --ok: #1f9d74;
  --warn: #d99100;
  --bad: #d64545;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.07);
  --radius: 12px;
  --font-body: "Source Sans Pro", system-ui, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
/* [hidden] moet ALTIJD winnen — ook van display:flex/grid op hetzelfde element. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; }
a { color: var(--teal-dark); text-decoration: none; }
.mono { font-family: var(--font-mono); }
.dim { color: var(--ink-dim); }
.loading { padding: 4rem; text-align: center; color: var(--ink-dim); }

/* ---- Login ---- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 2.5rem 3rem; text-align: center; max-width: 24rem; }
.login-card h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
.login-card p { color: var(--ink-soft); margin: 0 0 1.5rem; }
.btn-slack { display: inline-flex; align-items: center; gap: .6rem; background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: .7rem 1.4rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.btn-slack:hover { background: var(--teal-dark); }
.login-err { margin-top: 1rem; color: var(--bad); font-size: .9rem; }

/* ---- Shell ---- */
header { background: var(--surface); border-bottom: 1px solid var(--line); padding: .7rem 1.4rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 5; }
header .brand { font-weight: 700; font-size: 1.05rem; }
header .brand span { color: var(--teal-dark); }
header .spacer { flex: 1; }
header nav a { margin-right: 1rem; color: var(--ink-soft); font-weight: 600; }
header nav a.active { color: var(--teal-dark); }
.userchip { display: flex; align-items: center; gap: .5rem; }
.userchip img { width: 28px; height: 28px; border-radius: 50%; }
.userchip .role { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-dim); }
.btn-ghost { background: none; border: 1px solid var(--line); border-radius: 7px; padding: .35rem .8rem; cursor: pointer; color: var(--ink-soft); font-size: .85rem; }
.btn-ghost:hover { border-color: var(--ink-dim); }
.userchip .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; background: var(--teal, #03b5aa); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
/* 🔒 Toegangsbeheer-knop in de header */
.lockbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(3,181,170,.35); border-radius: 8px; padding: 5px 11px; text-decoration: none; font-size: .8rem; font-weight: 600; color: var(--teal-dark, #029a90); background: rgba(3,181,170,.06); white-space: nowrap; margin-right: .5rem; }
.lockbtn:hover, .lockbtn.active { border-color: var(--teal, #03b5aa); background: rgba(3,181,170,.14); }
/* Avatars in het Toegangsbeheer */
.dt-person { display: flex; align-items: center; gap: 10px; }
.dt-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.dt-avatar.fallback { background: var(--teal, #03b5aa); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

main { max-width: 68rem; margin: 0 auto; padding: 1.4rem; }
.toolbar { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.toolbar input[type=search], .toolbar select { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .95rem; }
.toolbar input[type=search] { min-width: 16rem; }
.count { color: var(--ink-dim); font-size: .9rem; }

/* ---- Tripkaarten ---- */
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .9rem; }
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; cursor: pointer; transition: box-shadow .12s, transform .12s; }
.trip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.trip-card .code { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-dim); }
.trip-card h3 { margin: .15rem 0 .5rem; font-size: 1.05rem; }
.trip-card .meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .85rem; color: var(--ink-soft); }
.trip-card .foot { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; }
.trip-card .foot img { width: 22px; height: 22px; border-radius: 50%; }
.trip-card .foot .to-name { font-size: .85rem; color: var(--ink-soft); flex: 1; }

.badge { display: inline-block; padding: .12rem .55rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--line-soft); color: var(--ink-soft); white-space: nowrap; }
.badge.ok { background: #e2f5ee; color: var(--ok); }
.badge.warn { background: #faf0da; color: var(--warn); }
.badge.bad { background: #fbe9e9; color: var(--bad); }
.badge.teal { background: var(--teal-tint); color: var(--teal-dark); }

/* ---- Reisdetail ---- */
.back { display: inline-block; margin-bottom: .9rem; color: var(--ink-soft); cursor: pointer; }
.detail-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.3rem; margin-bottom: 1.1rem; }
.detail-head h2 { margin: 0 0 .2rem; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--ink-soft); font-size: .9rem; }
section.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 1rem; overflow: hidden; }
section.module > h3 { margin: 0; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line-soft); font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
section.module .empty { padding: .9rem 1.2rem; color: var(--ink-dim); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: .55rem 1.2rem; color: var(--ink-dim); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line-soft); }
td { padding: .6rem 1.2rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.btn-book { background: var(--teal); color: #fff; border: 0; border-radius: 7px; padding: .4rem .9rem; font-weight: 600; cursor: pointer; font-size: .85rem; }
.btn-book:hover { background: var(--teal-dark); }
.btn-book[disabled] { background: var(--line); color: var(--ink-dim); cursor: not-allowed; }
/* Oranje actie-knop: partner-info moet eerst in Notion klaargezet worden. */
.btn-alert { background: var(--warn); color: #fff; border: 0; border-radius: 7px; padding: .4rem .9rem; font-weight: 600; cursor: pointer; font-size: .85rem; white-space: nowrap; }
.btn-alert:hover { filter: brightness(1.08); }
.btn-alert[disabled] { background: var(--line); color: var(--ink-dim); cursor: not-allowed; }
.hint { font-size: .78rem; color: var(--ink-dim); }

/* ---- Admin ---- */
.admin-table select, .admin-table input { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; }
.admin-table .backups { min-width: 14rem; }
.save-note { font-size: .8rem; color: var(--ok); margin-left: .5rem; }
.err-banner { background: #fbe9e9; color: var(--bad); border: 1px solid #f3c9c9; border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1rem; }

/* ---- Keuze-pop-up (over budget) ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,40,40,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.22); max-width: 30rem; width: 100%; overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { padding: 1.1rem 1.4rem .9rem; border-bottom: 1px solid var(--line-soft); display: flex; gap: .7rem; align-items: baseline; }
.modal-head .icon { font-size: 1.4rem; }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-head .sub { color: var(--ink-dim); font-size: .82rem; }
.modal-body { padding: 1rem 1.4rem; }
.modal-body .detail { color: var(--ink-soft); font-style: italic; margin: 0 0 .8rem; }
.price-compare { display: flex; gap: .8rem; margin: .8rem 0; }
.price-compare .box { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; text-align: center; }
.price-compare .box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-dim); }
.price-compare .box .val { font-size: 1.25rem; font-weight: 700; }
.price-compare .box.over .val { color: var(--bad); }
.price-compare .box.budget .val { color: var(--ink-soft); }
.room-list { margin: .4rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-soft); }
.room-list li { padding: .18rem 0; }
.modal-actions { display: flex; flex-direction: column; gap: .55rem; padding: .4rem 1.4rem 1.3rem; }
.modal-actions button { border: 0; border-radius: 9px; padding: .7rem 1rem; font-size: .95rem; font-weight: 600; cursor: pointer; text-align: left; }
.modal-actions .choice-book { background: var(--teal); color: #fff; }
.modal-actions .choice-book:hover { background: var(--teal-dark); }
.modal-actions .choice-next { background: var(--teal-tint); color: var(--teal-dark); }
.modal-actions .choice-next:hover { background: #d3f1ee; }
.modal-actions .choice-stop { background: none; color: var(--ink-dim); border: 1px solid var(--line); }
.modal-actions .choice-stop:hover { color: var(--bad); border-color: #f3c9c9; }
.modal-actions button[disabled] { opacity: .5; cursor: wait; }
.modal-actions .hintline { font-size: .78rem; color: var(--ink-dim); text-align: center; margin: .1rem 0 0; }
.choice-chip { background: #faf0da; color: var(--warn); border: 0; border-radius: 99px; padding: .25rem .7rem; font-size: .78rem; font-weight: 700; cursor: pointer; }

/* ---- Distribusion transport-schema ---- */
.dist-detail td { background: #fbfdfd; padding: .4rem 1.2rem .8rem; }
.dist-schedule table { font-size: .85rem; }
.dist-schedule th { padding: .35rem .8rem; }
.dist-schedule td { padding: .4rem .8rem; }
.dist-toggle:hover { filter: brightness(.95); }
.prov-name { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
/* Kandidaat-carriers onder de netwerk-badge: mag over meerdere regels lopen. */
.dist-cand { white-space: normal; line-height: 1.4; margin-top: 3px; max-width: 26rem; }
/* Deelboekingen op één traject: per boeking een regel met ref, aantal pax en
   de knoppen voor ticket/annuleren (een rit wordt vaak in delen geboekt). */
.dist-booking { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0; }
.dist-booking .hint { white-space: normal; max-width: 22rem; }
.dist-booking .btn-ghost { padding: .1rem .35rem; }
.dist-booked-box { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }

/* ---- Portalen-menu (hamburger + drawer) ---- */
.hamburger { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; color: var(--ink-soft); }
.hamburger:hover { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-dark); }
.hamburger svg { display: block; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(30,40,40,0); z-index: 60; transition: background .18s; }
.drawer-overlay.open { background: rgba(30,40,40,.45); }
.drawer { position: absolute; top: 0; left: 0; bottom: 0; width: 21rem; max-width: 85vw; background: var(--surface); box-shadow: var(--shadow-md); transform: translateX(-100%); transition: transform .18s ease-out; display: flex; flex-direction: column; }
.drawer-overlay.open .drawer { transform: translateX(0); }
/* Drawer in de Vlucht Ops-stijl (flights.mundero.eu): bord-typografie (neue-kabel,
   uppercase + letterspacing), monospace-adressen en vierkante chips. */
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: "neue-kabel", var(--font-body); font-weight: 700; font-size: 17px; letter-spacing: 4px; text-transform: uppercase; }
.drawer-head span { color: var(--teal); }
.drawer-body { padding: 10px; overflow-y: auto; }
.portal-row { display: flex; align-items: center; gap: 13px; padding: 10px 11px; border-radius: 10px; color: var(--ink); }
a.portal-row:hover { background: var(--teal-tint); }
.portal-row.current { background: var(--line-soft); }
.portal-row.soon { opacity: .55; }
.portal-avatar { position: relative; width: 40px; height: 40px; flex: none; }
.portal-avatar img, .portal-avatar-fallback { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.portal-avatar-fallback { background: var(--teal-tint); color: var(--teal-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.portal-emoji { position: absolute; right: -4px; bottom: -4px; font-size: 15px; background: var(--surface); border-radius: 50%; padding: 1px; line-height: 1; box-shadow: var(--shadow-sm); }
.portal-info { min-width: 0; }
.portal-name { font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.portal-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; border: 1px solid #d3dbdb; padding: 2px 8px; color: var(--ink-dim); text-transform: uppercase; white-space: nowrap; }
.portal-chip.here { color: var(--teal); border-color: rgba(3,181,170,.4); }

/* ---- Berichten (mail-approval in het portaal) ---- */
.navlink-msgs { position: relative; padding-right: .35rem; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 700; vertical-align: text-top; }
.msg-toggle { display: flex; gap: 8px; margin-bottom: .9rem; }
.msg-pill { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .4rem 1rem; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.msg-pill.active { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-tint); }
.pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; }
.pill-count.dim-count { background: var(--ink-dim); }
.msg-list { display: flex; flex-direction: column; gap: .7rem; }
.msg-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: .9rem 1.1rem; cursor: pointer; transition: box-shadow .12s, transform .12s; }
.msg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.msg-main { min-width: 0; flex: 1; }
.msg-from { font-size: .82rem; color: var(--ink-soft); }
.msg-subject { font-weight: 600; margin: .15rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.msg-cta { color: var(--teal-dark); font-weight: 600; white-space: nowrap; }
.msg-body { white-space: pre-wrap; font-family: var(--font-body); font-size: .92rem; line-height: 1.5; margin: 0; padding: .9rem 1.2rem; max-height: 24rem; overflow-y: auto; background: #fbfdfd; }
.msg-partner { border-left: 3px solid var(--line); }
#msg-draft .msg-body { border-left: 3px solid var(--teal); background: #f6fcfb; }
.msg-draft-head { padding: .6rem 0 .4rem; display: flex; flex-direction: column; gap: 2px; }
.msg-notes { margin: .2rem 0; padding-left: 1.2rem; }
.msg-notes li { margin: .25rem 0; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.msg-actions .msg-reject:hover { color: var(--bad); border-color: #f3c9c9; }
.msg-revise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.msg-revise textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; font: inherit; resize: vertical; }
.msg-revise button { align-self: flex-start; }
#msg-edit-body { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 8px; padding: .9rem 1.2rem; font-family: var(--font-body); font-size: .92rem; line-height: 1.5; background: #f6fcfb; resize: vertical; }
.msg-edit-actions { display: flex; gap: 8px; margin: .6rem 0 .2rem; }
.msg-filter { margin: .5rem 0 .9rem; }
.msg-filter input { width: 100%; max-width: 34rem; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-size: .92rem; background: var(--surface); }
.msg-filter input:focus { outline: none; border-color: var(--teal); }
.msg-card .msg-trip { cursor: pointer; }

/* ---- Handleiding ---- */
.guide .guide-body { padding: .9rem 1.3rem 1.1rem; font-size: .93rem; line-height: 1.55; color: var(--ink); }
.guide .guide-body p { margin: .5rem 0; }
.guide-steps { margin: .3rem 0; padding-left: 1.3rem; }
.guide-steps li { margin: .7rem 0; }
.guide-steps li > .hint { margin-top: .25rem; line-height: 1.45; }
.guide-btn { display: inline-block; margin: .35rem .5rem .25rem 0; text-decoration: none; }
a.guide-btn { color: #fff; }
.guide-faq { margin: .3rem 0; padding-left: 1.3rem; }
.guide-faq li { margin: .5rem 0; }
.changelog td { padding: .45rem .6rem; font-size: .88rem; }
.changelog td:first-child { white-space: nowrap; width: 6.5rem; }
#token-note .badge { font-weight: 600; }

/* Flex-periode-badges (1N/2N ↔ vluchtdata) */
.flex-badge.flex-ok { color: #0b5c4f; }
.flex-badge.flex-warn { color: #b45309; font-weight: 600; }

/* Internationale vluchten: compacte tabel */
#intl-flights { font-size: .85rem; }
#intl-flights th, #intl-flights td { padding-top: .35rem; padding-bottom: .35rem; }

/* Nationale vluchten (fase 2) */
.nat-props td { padding: 6px 10px; border-bottom: 1px solid var(--line, #e5e9e8); }
.ok-banner { background: #e6f4f1; border: 1px solid #bfe3db; border-radius: 8px; padding: 10px 12px; }
.nat-unbookable { opacity: .55; }

/* Vergelijk-pop-up nationale vluchten — max-width van de basis-.modal (30rem)
   expliciet overschrijven, anders blijft de brede variant op 480px hangen. */
.modal.modal-wide { width: min(1040px, 96vw); max-width: min(1040px, 96vw); max-height: 88vh; display: flex; flex-direction: column; padding: 1.1rem 1.4rem; }

/* Boek-modal met passagiersrijen (4 kolommen + paspoortnr. bij Tickets Bolivia):
   30rem is te smal, de paspoortkolom valt buiten beeld. Zelfde override-truc als
   .modal-wide, maar op tussenmaat; lange lijsten scrollen binnen de modal. */
.modal.modal-pax { width: min(820px, 96vw); max-width: min(820px, 96vw); max-height: 88vh; overflow-y: auto; padding: 1.1rem 1.6rem 0; box-sizing: border-box; }
.modal.modal-pax > h3 { margin: 0 0 .4rem; }
/* De knoppenbalk heeft zijn eigen zijpadding (1.4rem): niet dubbel optellen. */
.modal.modal-pax .modal-actions { margin: .6rem -1.6rem 0; }
.modal-wide .nat-scroll { overflow-y: auto; flex: 1; margin: 8px 0; border: 1px solid #e5e9e8; border-radius: 8px; }
.modal-wide .nat-props { width: 100%; border-collapse: collapse; }
.modal-wide .nat-props td { vertical-align: top; }
.modal-wide .nat-props td:first-child { min-width: 240px; }
.modal-wide .nat-props td:nth-child(3) { white-space: nowrap; }
.modal-wide .nat-props td:last-child { text-align: right; white-space: nowrap; }
.modal-wide .nat-props .btn-book { white-space: nowrap; }
.nat-filter { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.nat-filter .nat-f { cursor: pointer; border: 1px solid transparent; background: #eef2f1; color: #445; }
.nat-filter .nat-f.active { border-color: var(--teal-dark, #0b5c4f); background: #e6f4f1; color: #0b5c4f; font-weight: 700; }

/* Back-up per reis (admin) */
.bt-cell { max-width: 22rem; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; min-height: 1.2rem; }
.bt-input { width: 100%; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; }

/* Foto's zoeken uit Drive */
.foto-zoekbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.foto-zoekbar input[type="search"] { flex: 1; min-width: 16rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.foto-zoekbar select { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.foto-zoekbar .btn { background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: .5rem 1.2rem; font-weight: 600; cursor: pointer; }
.foto-zoekbar .btn:hover { background: var(--teal-dark); }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* Mailronde-basket */
.btn-basket { background: var(--teal-tint); color: var(--teal-dark); border: 1px solid var(--teal); border-radius: 7px; padding: .35rem .7rem; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-basket:hover { background: #d5f2f0; }
.btn-basket.on { background: var(--teal); color: #fff; }
.btn-alt { display: block; margin-top: .3rem; background: none; border: 0; color: var(--ink-dim); font-size: .72rem; text-decoration: underline; cursor: pointer; padding: 0; }
.btn-alt:hover { color: var(--teal-dark); }
.btn-alt[disabled] { color: var(--line); cursor: not-allowed; text-decoration: none; }
#basket-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.07); display: flex; align-items: center; gap: .8rem; padding: .7rem 1.2rem; justify-content: flex-end; }
/* Balk zichtbaar → onderaan ruimte vrijhouden zodat pagina-knoppen niet afgedekt raken. */
body.has-basket-bar main { padding-bottom: 5.5rem; }
#basket-bar .basket-info { margin-right: auto; color: var(--ink); font-size: .95rem; }
.basket-trip { margin: .5rem 0; }
.basket-trip-h { font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin-bottom: .25rem; }
.basket-row { display: flex; align-items: center; justify-content: space-between; padding: .3rem .55rem; border: 1px solid var(--line-soft); border-radius: 7px; margin-bottom: .3rem; font-size: .9rem; }
.basket-rm { background: none; border: 0; color: var(--ink-dim); cursor: pointer; font-size: .95rem; }
.basket-rm:hover { color: var(--bad); }
.basket-types { display: flex; gap: 1.2rem; margin: .8rem 0 .2rem; font-size: .9rem; }
.basket-guestlist { margin-top: .2rem; }
.basket-guestlist .hint { font-weight: 400; }
.basket-result { margin-top: .8rem; font-size: .88rem; }
.basket-result .ok-line { color: var(--ok); font-weight: 600; }
.basket-result .bad-line { color: var(--bad); font-weight: 600; margin-top: .4rem; }
.basket-result ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }

/* Annuleer-blok (inklapbaar) */
details.module.cancel-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.3rem; margin-bottom: 1.1rem; }
details.module.cancel-block summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
details.module.cancel-block[open] summary { margin-bottom: .5rem; }
.cancel-status { margin-top: .25rem; }

/* Live voortgangs-pop-up (boeking volgen) */
.modal.job-live { max-width: 36rem; }
.job-live-status { margin-bottom: .6rem; }
.job-live-details { border: 1px solid var(--teal); background: var(--teal-tint); border-radius: 9px; padding: .65rem .8rem; margin-bottom: .6rem; font-size: .88rem; display: flex; flex-direction: column; gap: .3rem; }
.job-live-details .job-picks { margin: 0; padding-left: 1.2rem; }
.job-live-details .badge { font-size: .72rem; }
.job-live-timeline { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: .45rem; border: 1px solid var(--line-soft); border-radius: 9px; padding: .6rem .7rem; background: var(--bg); }
.job-ev { display: flex; gap: .5rem; font-size: .88rem; line-height: 1.35; }
.job-ev-t { color: var(--ink-dim); font-family: var(--font-mono); font-size: .78rem; padding-top: .1rem; white-space: nowrap; }
.job-ev-i { flex: 0 0 auto; }
.job-choice-box { margin-top: .7rem; border: 1px solid var(--warn); border-radius: 9px; padding: .7rem .8rem; background: #fff8ec; font-size: .9rem; }
.job-choice-btns { display: flex; gap: .5rem; margin-top: .55rem; flex-wrap: wrap; }
.job-status { cursor: pointer; }

/* Blok-editor in Berichten: vergrendelde blokken grijs (behouden hun opmaak in
   de mail), proza-blokken als tekstvak. */
.msg-part-locked { background: var(--line-soft); border: 1px dashed var(--line); border-radius: 8px; padding: .5rem .7rem; margin: .45rem 0; color: var(--ink-dim); font-size: .88rem; white-space: pre-wrap; }
.msg-part-tag { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-dim); margin-bottom: .3rem; font-weight: 700; }
.msg-part-edit { display: block; width: 100%; margin: .45rem 0; padding: .5rem .7rem; border: 1px solid var(--teal); border-radius: 8px; font: inherit; font-size: .9rem; line-height: 1.5; resize: vertical; }

/* Meldings-bolletje op een rij-knop (à la Facebook): rood = partner-antwoord
   wacht in Berichten, amber = eigen concept wacht op bevestiging. */
.msg-dot { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; border-radius: 999px; background: #e02440; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; padding: 0 4px; box-shadow: 0 0 0 2px #fff; cursor: pointer; }
.msg-dot.draft { background: var(--warn, #e8a13c); }

/* Boekingsopties-pop-up (Notion-volgorde) */
.opt-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 9px; }
.opt-row .opt-info { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .92rem; }
.opt-row .btn-book, .opt-row .btn-ghost { white-space: nowrap; }
.foto-kaart { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s; }
.foto-kaart:hover { box-shadow: 0 3px 12px rgba(0,0,0,.14); }
.foto-kaart img { width: 100%; height: 170px; object-fit: cover; display: block; background: #eef2f1; }
.foto-info { padding: 8px 10px; font-size: .78rem; line-height: 1.4; color: #445; }
.foto-info .badge { margin-right: 4px; }
.foto-leeg { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; background: #eef2f1; color: #99a; font-size: .8rem; }
.foto-meer-wrap { text-align: center; margin-top: 14px; }
.foto-meer-wrap .btn { background: var(--teal); color: #fff; border: 0; border-radius: 8px; padding: .5rem 1.4rem; font-weight: 600; cursor: pointer; }

/* Startpagina (hero + tool-kaarten) — uniform met de andere portalen */
.hero { background: var(--surface, #fff); border: 1px solid var(--line, #e6eaea); border-radius: 14px; box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.07)); padding: 2.2rem 2.4rem; text-align: center; margin-bottom: 1.1rem; }
.hero-emoji { font-size: 3.2rem; }
.hero-title { font-family: var(--font-sign, "neue-kabel", sans-serif); font-size: 1.9rem; letter-spacing: 3px; text-transform: uppercase; margin: .4rem 0 .2rem; }
.hero-intro { color: var(--ink-soft, #5b6b6b); margin: 1rem auto 0; max-width: 34rem; }
.hero-leader { display: flex; align-items: center; gap: .7rem; justify-content: center; margin-top: 1.4rem; }
.hero-leader img, .hero-leader .fb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hero-leader .fb { background: var(--teal-tint, #e5f7f6); color: var(--teal-dark, #029a90); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.hero-leader .who2 { text-align: left; } .hero-leader .who2 b { display: block; }
.hero-leader .who2 span { font-size: .75rem; color: var(--ink-dim, #9aa6a6); text-transform: uppercase; letter-spacing: .05em; }
.apps-module { padding: 1rem 1.2rem; }
.apps-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim, #9aa6a6); margin-bottom: .7rem; }
.app-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #e6eaea); border-radius: 12px; text-decoration: none; color: var(--ink, #363636); background: var(--surface, #fff); transition: box-shadow .15s, border-color .15s; }
.app-tile + .app-tile { margin-top: 10px; }
.app-tile:hover { border-color: var(--teal, #03b5aa); box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.07)); }
.app-emoji { font-size: 1.7rem; }
.app-info { flex: 1; min-width: 0; } .app-info b { display: block; } .app-info span { color: var(--ink-soft, #5b6b6b); font-size: .85rem; }
.app-go { color: var(--teal-dark, #029a90); font-weight: 700; font-size: 1.2rem; }

/* Berichten-detail: modules met een guide-body (prijsbanner, beslisblok, context)
   kregen geen binnenmarge — die stond enkel op .guide .guide-body. Het concept
   (#msg-draft) heeft zijn eigen marge via .msg-body. */
section.module > .guide-body:not(#msg-draft) { padding: .9rem 1.2rem 1.1rem; font-size: .93rem; line-height: 1.55; }
section.module > .guide-body:not(#msg-draft) > p:first-child { margin-top: 0; }
section.module > .guide-body:not(#msg-draft) > p:last-child { margin-bottom: 0; }

/* 🧭 Beslisblok prijsantwoord */
#price-decide .pd-modes { display: flex; gap: .6rem; flex-wrap: wrap; margin: .1rem 0 .5rem; }
#price-decide .pd-modes label { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; background: var(--surface); }
#price-decide .pd-modes label:has(input:checked) { border-color: var(--teal); background: #eefaf6; }
#price-decide .pd-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }

/* ---- Dynamic Pricing (#/dynamic-pricing) ---- */
.dp-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.dp-head h1 { margin: 0; font-size: 1.4rem; }
.dp-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.dp-tab { padding: .35rem .8rem; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; font-weight: 600; background: var(--surface); }
.dp-tab.active { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-dark); }
.dp-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .85rem; color: var(--ink-soft); }
.dp-toolbar .spacer { flex: 1; }
.dp-toolbar select, .dp-toolbar input[type=date] { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; max-width: 100%; }
.dp-toolbar a.btn-ghost { text-decoration: none; }
.dp-title h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.dp-title p { margin: 0 0 1rem; font-size: .85rem; }
.dp-inner { padding: .4rem 1.2rem 1rem; }
.dp-bucket { margin: .8rem 0 .3rem; font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.dp-empty { margin: .2rem 0 .4rem; font-size: .85rem; }
.dp-scroll { overflow-x: auto; }
.dp-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dp-table th, .dp-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; vertical-align: middle; }
.dp-table th { font-size: .74rem; color: var(--ink-dim); font-weight: 700; }
.dp-table .r { text-align: right; }
.dp-table td.dp-note { white-space: normal; max-width: 28rem; }
.dp-summary { margin: .4rem 0; padding-left: 1.1rem; line-height: 1.7; font-size: .9rem; }
.dp-modal.wide { max-width: 46rem; }
.dp-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.dp-kv { width: 100%; font-size: .9rem; margin-bottom: .8rem; }
.dp-kv td { padding: .2rem 0; }
.dp-kv .r { text-align: right; }
.dp-field { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--ink-soft); margin: .6rem 0 .2rem; }
.dp-field input { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 7px; font-size: 1rem; }
.dp-line { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .85rem; }
.dp-line:last-child { border-bottom: 0; }
.dp-note { white-space: pre-wrap; color: var(--ink-soft); margin-top: .2rem; }
.dp-search { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 7px; font-size: .9rem; min-width: 16rem; max-width: 100%; margin-bottom: .6rem; }
.dp-toolbar label { display: flex; align-items: center; gap: .4rem; min-width: 0; max-width: 100%; }
.dp-toolbar select { min-width: 0; flex: 1; text-overflow: ellipsis; }
.dp-ok { margin: .8rem 0 .2rem; font-size: .85rem; }
.dp-ok summary { cursor: pointer; color: var(--ink-soft); font-weight: 600; }
.dp-info { margin-left: .6rem; border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 600; cursor: pointer; vertical-align: middle; }
.dp-info:hover { border-color: var(--teal); color: var(--ink); }
.dp-rule p, .dp-rule ul { margin: 0 0 .7rem; line-height: 1.45; }
.dp-rule code { font-size: .82rem; background: var(--line-soft); padding: .1rem .3rem; border-radius: 4px; }
.dp-rule .dp-kv { margin: 0 0 .8rem; }
.dp-matrix th { font-size: .75rem; color: var(--ink-dim); text-align: left; }
.dp-matrix th.r { text-align: right; }

/* Popups nooit hoger dan het scherm: titel en knoppen blijven staan, de inhoud
   scrollt (het mailronde-mandje met 17 reizen viel bovenaan buiten beeld). */
.modal { max-height: calc(100vh - 2rem); display: flex; flex-direction: column; overflow-y: auto; }
.modal > .modal-head, .modal > .modal-actions { flex-shrink: 0; }
.modal > .modal-body { overflow-y: auto; min-height: 0; }

/* Mailronde-mandje: dezelfde accommodatie op veel reizen → één regel met chips */
.basket-group { margin: .5rem 0; padding: .45rem .6rem; border: 1px solid var(--line-soft); border-radius: 8px; }
.basket-group-h { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.basket-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.basket-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; padding: .15rem .3rem .15rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.basket-chip .basket-rm { border: 0; background: none; cursor: pointer; color: var(--ink-dim); padding: 0 .15rem; }

/* Bredere popup voor lijsten (mailronde-mandje, alle reizen van een bestemming) */
.modal.modal-list { max-width: 46rem; }
