/* ============================================================
   Reisapp — stijl
   Concept: "reislogboek". Papierachtergrond, diep teal-inkt,
   duo-accent (teal = reisgenoot A, koraal = reisgenoot B),
   monospace voor data (datums, tijden, codes).
   ============================================================ */

:root {
  --paper:     #F4F7FA;
  --surface:   #FFFFFF;
  --ink:       #123047;
  --ink-soft:  #5B7183;
  --teal:      #16B5C4;
  --teal-deep: #0E8A94;
  --coral:     #F2743D;
  --line:      #E4EBF1;
  --bad:       #C0392B;

  /* Merk uit het logo */
  --navy:      #0E3A5D;
  --navy-2:    #14547e;
  --blue:      #2E7DB6;
  --sun:       #F5A623;

  /* Categorie-accenten (kleurrijk maar samenhangend) */
  --c-vandaag:   #16B5C4;
  --c-programma: #2E7DB6;
  --c-resto:     #F2743D;
  --c-uitgaven:  #2FA36B;
  --c-checklist: #7C6BE0;
  --c-notities:  #E7A733;
  --c-fotos:     #E5588A;
  --c-docs:      #4C6FE0;
  --c-verblijf:  #5878A8;
  --c-nood:      #D64B44;

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(16,57,90,.06), 0 8px 24px rgba(16,57,90,.07);
  --wrap: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal-deep); }

h1 { font-size: 1.7rem; letter-spacing: -.02em; margin: .1em 0 .3em; line-height: 1.15; }
h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 .5em; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }

/* Eyebrow = stempelachtig label boven een titel */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--teal-deep);
  margin: 0 0 .2em;
}
.eyebrow::before { content: "— "; color: var(--coral); }

/* ---- Topbar ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 1.1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; letter-spacing: -.01em; color: var(--ink);
  text-decoration: none; font-size: 1.05rem;
}
/* Duo-kleur = de twee reisgenoten */
.brand-mark {
  width: 22px; height: 14px; border-radius: 3px; display: inline-block;
  background: linear-gradient(90deg, var(--teal) 0 50%, var(--coral) 50% 100%);
}
.topnav { display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.topnav a { text-decoration: none; }
.topnav .who { color: var(--ink-soft); font-family: var(--mono); font-size: .8rem; }
.topnav .signout { color: var(--ink-soft); }
.topnav .signout:hover { color: var(--bad); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 1.4rem 1.1rem 3rem; flex: 1; }
.foot { text-align: center; color: var(--ink-soft); font-size: .8rem; padding: 1.2rem; font-family: var(--mono); }

.page-head { margin-bottom: 1.2rem; }

.flash {
  background: #E7F4F2; border: 1px solid #BfE3DF; color: var(--teal-deep);
  padding: .6rem .8rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem;
}
.notice { padding: .6rem .8rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; }
.notice-bad { background: #FBEAE7; border: 1px solid #F0C4BB; color: var(--bad); }

/* ---- Cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
}
.soon { border-style: dashed; box-shadow: none; }
.soon p { margin: 0 0 .5rem; }
.soon p:last-child { margin-bottom: 0; }

/* ---- Forms ---- */
.stack { display: flex; flex-direction: column; gap: .85rem; }
.row { display: flex; gap: .85rem; }
.row > label { flex: 1; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
input, textarea, select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: .6rem .7rem; width: 100%;
}
input:focus, textarea:focus, select:focus,
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: .6rem 1rem; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; text-align: center;
}
.btn-primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-primary:hover { background: #0b544f; }

/* ---- Auth ---- */
.auth { max-width: 380px; margin: 2.5rem auto 0; }
.auth-title { font-size: 2rem; margin-top: 0; }
.auth-sub { color: var(--ink-soft); margin-top: -.2em; }

/* ---- Reizenlijst ---- */
.trip-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.trip-card a {
  display: grid; gap: .15rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow);
}
.trip-card a:hover { border-left-color: var(--coral); }
.trip-name { font-weight: 700; font-size: 1.05rem; }
.trip-place { color: var(--ink-soft); font-size: .9rem; }
.trip-dates { color: var(--ink-soft); font-size: .8rem; }
.empty { color: var(--ink-soft); }
.new-trip h2 { margin-bottom: .8rem; }

/* ---- Trip-header + module-navigatie ---- */
.trip-head { margin-bottom: 1rem; }
.back { font-family: var(--mono); font-size: .78rem; text-decoration: none; color: var(--ink-soft); }
.back::before { content: "‹ "; }
.trip-meta { color: var(--ink-soft); font-size: .82rem; margin: .1rem 0 0; }
.trip-meta .dot { margin: 0 .4rem; color: var(--line); }

.modnav {
  display: flex; gap: .3rem; overflow-x: auto; margin: 0 -1.1rem 1.3rem;
  padding: 0 1.1rem .2rem; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
}
.modnav a {
  white-space: nowrap; text-decoration: none; color: var(--ink-soft);
  padding: .5rem .7rem; font-size: .9rem; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.modnav a:hover { color: var(--ink); }
.modnav a.is-active { color: var(--ink); border-bottom-color: var(--teal); }

.today h2, .module h2 { font-size: 1.35rem; }

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  .wrap { padding-top: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ Dagprogramma-module ============ */

/* Chips (labels) */
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip {
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  padding: .12rem .45rem; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--ink-soft); background: #fff;
}
.chip-actief { background: #E7F4F2; border-color: #BfE3DF; color: var(--teal-deep); }
.chip-rustig { background: #F3F1EB; border-color: var(--line); color: var(--ink-soft); }
.chip-tag    { background: #FBEEE8; border-color: #F1CFC1; color: #B4501F; }
.chip-date   { background: #fff; }
.chip-vast   { background: #FBEEE8; border-color: #F1CFC1; color: #B4501F; }
.warn { display: block; color: var(--coral); font-size: .8rem; font-weight: 600; margin-top: .1rem; }

/* Import-regel op de reizenlijst */
.import-line { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; color: var(--ink-soft); font-size: .9rem; }
.btn-small { padding: .4rem .7rem; font-size: .85rem; }

/* Kalender / kies-je-dag */
.cal { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.cal-day {
  display: flex; align-items: center; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .55rem .7rem;
}
.cal-date { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1.1; }
.cal-wd { font-size: .72rem; color: var(--ink-soft); }
.cal-dm { font-size: .95rem; font-weight: 700; }
.cal-pick { flex: 1; min-width: 0; }
.cal-fixed { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink); font-size: .92rem; }
.cal-fixed:hover { color: var(--teal-deep); }
.assign { display: flex; gap: .4rem; align-items: center; margin: 0; }
.assign select { flex: 1; min-width: 0; padding: .4rem .5rem; font-size: .9rem; }

/* Programmakaarten */
.prog-grid { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
@media (min-width: 620px) { .prog-grid { grid-template-columns: 1fr 1fr; } }
.prog-card {
  display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: .8rem .9rem; box-shadow: var(--shadow);
}
.prog-card:hover { border-left-color: var(--coral); }
.prog-name { font-weight: 700; line-height: 1.25; }

/* Programma-detail */
.lead { font-size: 1.02rem; color: var(--ink); margin: .2rem 0 1.2rem; }
.notice-warn { background: #FBEEE8; border: 1px solid #F1CFC1; color: #B4501F; }

.timeline { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.timeline li { display: flex; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.tl-when { flex: 0 0 92px; color: var(--teal-deep); font-size: .85rem; font-weight: 700; }
.tl-what { flex: 1; }

.poi-list { display: grid; gap: .8rem; margin-bottom: .6rem; }
.poi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; }
.poi h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.poi p { margin: 0 0 .3rem; }
.poi-addr { color: var(--ink-soft); font-size: .8rem; margin: 0 !important; }
.maplink { margin-left: .4rem; white-space: nowrap; }
.small { font-size: .85rem; }
.muted.small { display: block; margin-bottom: 1.4rem; }

.tip {
  background: #FBEEE8; border: 1px solid #F1CFC1; border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: 1.4rem;
}
.tip .eyebrow { color: #B4501F; }
.tip .eyebrow::before { content: "— "; color: var(--teal-deep); }
.tip p { margin: .2rem 0 .5rem; }

/* Bewaarde (niet-vaste) dag: doorklikbaar + wijzigen */
.cal-chosen { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; }
.cal-chosen:hover { color: var(--teal-deep); }
details.change { display: inline; margin-left: .5rem; }
details.change > summary {
  display: inline; cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: .74rem; color: var(--ink-soft);
}
details.change > summary::-webkit-details-marker { display: none; }
details.change > summary:hover { color: var(--teal-deep); }
details.change[open] > summary { color: var(--teal-deep); }
details.change .assign { margin-top: .5rem; }

/* Restaurants */
.filters { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .3rem; }
.filters select { width: auto; min-width: 160px; padding: .45rem .6rem; }
.check { flex-direction: row; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); font-size: .9rem; }
.check input { width: auto; }

.resto-list { display: grid; gap: .7rem; }
@media (min-width: 620px) { .resto-list { grid-template-columns: 1fr 1fr; } }
.resto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem .95rem; box-shadow: var(--shadow); }
.resto-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.resto-head h3 { margin: 0; font-size: 1.03rem; }
.resto-region { color: var(--teal-deep); font-size: .82rem; font-weight: 600; margin: .1rem 0 .4rem; }
.resto p { margin: 0 0 .4rem; }
.chip-coast { background: #E7F4F2; border-color: #BfE3DF; color: var(--teal-deep); flex: none; }

/* ============ Moderne, sfeervolle laag ============ */

.js .js-hide { display: none; }

body {
  background: linear-gradient(180deg, #F7F4EE 0%, #F1EEE6 100%);
  background-attachment: fixed;
}

/* Gradient-accent onder de topbar */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
}

/* Sfeer-hero met zachte zon-gloed */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(228,99,58,.15), transparent 55%),
    linear-gradient(135deg, rgba(18,166,160,.16), rgba(18,166,160,0) 62%),
    var(--surface);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.3rem; margin-bottom: 1.3rem;
  box-shadow: 0 10px 30px rgba(22,48,46,.06);
}
.hero::after {
  content: ""; position: absolute; top: -46px; right: -34px; width: 150px; height: 150px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 32%, rgba(232,163,61,.30), rgba(232,163,61,0) 70%);
}
.hero > * { position: relative; }
.hero h1 { margin: .06em 0 0; }
.hero-sm { padding: 1.05rem 1.2rem; border-radius: 16px; }
.hero .trip-meta { margin-top: .25rem; }

/* Moderne formulier-controls */
input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(22,48,46,.04); padding: .62rem .75rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,166,160,.16); outline: none;
}
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6B68' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: 13px;
}

/* Knoppen met subtiele diepte */
.btn { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); border: none; color: #fff;
  box-shadow: 0 3px 10px rgba(14,107,102,.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14,107,102,.32); background: linear-gradient(135deg, #14b3ac, #0b544f); }

/* Zachtere kaarten */
.card, .trip-card a, .prog-card, .resto, .poi, .cal-day { border-radius: 14px; }
.card { box-shadow: 0 6px 20px rgba(22,48,46,.05); }

/* Filterbar restaurants */
.filterbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.seg { display: inline-flex; background: #EDE8DE; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-btn { text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--ink-soft); padding: .34rem .85rem; border-radius: 999px; white-space: nowrap; transition: background .12s ease, color .12s ease; }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22,48,46,.14); }
.seg-btn:hover { color: var(--ink); }
.region-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.select-wrap select { min-width: 170px; }
.clear { font-size: .82rem; color: var(--ink-soft); }
.count { color: var(--ink-soft); font-size: .82rem; margin: .3rem 0 1.1rem; font-family: var(--mono); }

/* ============ Kaart & geocoding ============ */
.leaflet-map {
  height: 300px; border-radius: 14px; margin: 0 0 1.2rem;
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; z-index: 0;
}
.leaflet-container { font: inherit; }

.geo-banner {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: space-between;
  background: linear-gradient(135deg, rgba(18,166,160,.10), rgba(232,163,61,.10));
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1.3rem;
  font-size: .92rem;
}

.geo-progress { height: 12px; background: #EDE8DE; border-radius: 999px; overflow: hidden; margin: 1rem 0 .6rem; }
.geo-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); transition: width .3s ease; }
.geo-status { font-size: .9rem; margin: 0 0 .2rem; }
.geo-last { min-height: 1.2em; margin: 0 0 1rem; }
.geo-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ============ Documenten ============ */
.section-gap { margin-top: 1.8rem; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: .78rem; }

.doc-list { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
@media (min-width: 620px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc {
  display: flex; justify-content: space-between; gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--coral);
  border-radius: 14px; padding: .85rem .95rem; box-shadow: var(--shadow);
}
.doc-main { min-width: 0; }
.doc-title { font-weight: 700; text-decoration: none; color: var(--ink); word-break: break-word; }
.doc-title:hover { color: var(--teal-deep); }
.doc .chips { margin: .35rem 0; }
.doc-meta { font-size: .78rem; color: var(--ink-soft); margin: .1rem 0; }
.doc-note { font-size: .9rem; margin: .3rem 0; }
.doc-file { font-size: .72rem; margin: .3rem 0 0; }
.doc-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; flex: none; }
.doc-actions form { margin: 0; }

.chip-cat     { background: #F3F1EB; border-color: var(--line); color: var(--ink-soft); }
.chip-soon    { background: #FBEEE8; border-color: #F1CFC1; color: #B4501F; }
.chip-expired { background: #FBEAE7; border-color: #F0C4BB; color: var(--bad); }

.btn-danger { color: var(--bad); border-color: #F0C4BB; }
.btn-danger:hover { background: #FBEAE7; }

.doc-upload { margin-top: .4rem; }
.doc-upload h2 { margin-bottom: .3rem; }
input[type="file"] {
  font: inherit; width: 100%; padding: .5rem; border: 1px dashed var(--line);
  border-radius: 10px; background: #FBFAF7; cursor: pointer;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; cursor: pointer; margin-right: .7rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: .4rem .8rem; border-radius: 8px;
}

/* ============ Fotodagboek ============ */
.diary-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.author-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

.trip-cover { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: .5rem; display: block; }

.timeline-diary { display: grid; gap: 1rem; }
.mem { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow); }
.mem-head { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); }
.mem-date { font-size: .78rem; color: var(--teal-deep); font-weight: 700; }
.mem-title { font-weight: 700; font-size: 1.05rem; }
.mem-place { color: var(--ink-soft); font-size: .85rem; }
.mem-body { color: var(--ink); margin: .5rem 0 .6rem; }
.mem-thumbs { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.mem-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.mem-thumbs .more { color: var(--ink-soft); font-weight: 700; font-size: .85rem; }

.lbl { display: block; font-size: .82rem; color: var(--ink-soft); font-weight: 600; margin-bottom: .35rem; }
.photo-pick { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.photo-btn { position: relative; overflow: hidden; }
.story { white-space: normal; line-height: 1.6; margin: .2rem 0 1.2rem; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.ph { margin: 0; position: relative; }
.ph > .lb { display: block; }
.ph img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; box-shadow: var(--shadow); }
.ph-actions { position: absolute; top: .35rem; right: .35rem; display: flex; gap: .25rem; }
.ph-actions form { margin: 0; }
.icon-btn {
  border: none; background: rgba(255,255,255,.9); color: var(--ink); cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; font-size: .95rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 1px 3px rgba(22,48,46,.2);
}
.icon-btn:hover { background: #fff; }
.icon-btn.is-fav { color: var(--coral); }
.icon-btn.danger:hover { color: var(--bad); }

.add-photos { margin-bottom: 1.6rem; }
.danger-row { margin-top: .5rem; }

/* Lichtbak */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,28,26,.92);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lb-img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none; cursor: pointer;
  border-radius: 50%; width: 44px; height: 44px; font-size: 1.4rem; line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ============ Checklist & notities ============ */
.chk-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .3rem; }
.chk-item {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem;
}
.chk-item form { margin: 0; }
.chk { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 500; }
.chk input { width: auto; }
.chk-done { text-decoration: line-through; color: var(--ink-soft); }

.add-row { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.add-row input[type="text"] { flex: 1; }

.tpl-list { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; gap: .3rem; }
.tpl-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: .92rem; }
.tpl-list form { margin: 0; }

.note-add textarea, .note-group textarea { width: 100%; }
.note-group { display: grid; gap: .6rem; margin-bottom: .6rem; }
.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--coral);
  border-radius: 12px; padding: .75rem .9rem; box-shadow: var(--shadow);
}
.note-body { line-height: 1.55; }
.note-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .5rem; }
.note-who { color: var(--ink-soft); font-size: .8rem; }
.note-actions { display: flex; align-items: center; gap: .5rem; }
.note-actions form { margin: 0; }

/* ============ PWA / offline ============ */
.offline-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.offline-form { margin: 0; }
.offline-lbl { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--ink-soft); font-weight: 600; cursor: pointer; }
.offline-lbl input { width: auto; }

/* ============ Wereldkaart (reis-overzicht) ============ */
.worldmap-wrap {
  border: 1px solid var(--line); border-radius: 16px; padding: .3rem;
  margin-bottom: 1rem; box-shadow: var(--shadow); overflow: hidden;
  background: linear-gradient(180deg, #EDF2EF, #E7EEEA);
}
.worldmap { display: block; width: 100%; height: auto; }
.wm-sea { fill: transparent; }
.wm-land { fill: #D6CDB8; }
.wm-pin { fill: var(--coral); stroke: #fff; stroke-width: 2.5; cursor: pointer; transition: fill .12s ease; }
.worldmap a:hover .wm-pin, .worldmap a:focus .wm-pin { fill: var(--teal-deep); }

/* ============ Fixes-ronde ============ */
.trip-card { position: relative; }
.trip-del { position: absolute; top: .5rem; right: .5rem; margin: 0; }

.saved-note { background: #E7F4F2; border: 1px solid #BfE3DF; border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.saved-note strong { display: block; color: var(--teal-deep); margin-bottom: .5rem; }
.saved-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.prog-manage { display: flex; gap: .5rem; margin-bottom: 1rem; }
.prog-manage form { margin: 0; }

.timeline li { align-items: center; }
.tl-del { margin: 0 0 0 auto; }
.add-item .when-in { flex: 0 0 130px; }
.add-poi { margin: .6rem 0 1.4rem; }
.poi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.poi-top h3 { margin: 0; }
.poi-top form { margin: 0; }

/* ============ Uitgaven ============ */
.settle {
  background: linear-gradient(135deg, rgba(18,166,160,.12), rgba(228,99,58,.10));
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.settle-line { font-size: 1.05rem; margin: 0 0 .7rem; }
.settle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .5rem; }
.settle-cell { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.settle-cell .small { color: var(--ink-soft); }

.budget { margin: 0 0 1.2rem; }

.exp-form { margin-bottom: .8rem; }
.exp-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
.budget-set summary { list-style: none; cursor: pointer; display: inline-block; }
.budget-set summary::-webkit-details-marker { display: none; }

.cat-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .25rem; }
.cat-list li { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .7rem; font-size: .92rem; }

.exp-list { display: grid; gap: .5rem; }
.exp { display: flex; justify-content: space-between; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; box-shadow: var(--shadow); }
.exp-top { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.exp-amount { font-weight: 700; font-size: 1.02rem; }
.exp-desc { margin: .35rem 0 .2rem; }
.exp-meta { font-size: .78rem; margin: .2rem 0 0; }
.exp-actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; flex: none; }
.exp-actions form { margin: 0; }
.chip-joint { background: #F3F1EB; border-color: var(--line); color: var(--ink-soft); }

.pm-list { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.pm { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; }
.pm form { margin: 0; }
.pm-name { font-weight: 600; }
.pm-meta { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }

/* ============ Vandaag-dashboard ============ */
.dash-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(228,99,58,.15), transparent 55%),
    linear-gradient(135deg, rgba(18,166,160,.16), rgba(18,166,160,0) 62%), var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.dash-hero h2 { margin: .1rem 0 0; }
.dash-prog { display: flex; flex-direction: column; gap: .1rem; margin-top: .9rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; padding: .6rem .8rem; }
.dash-prog-name { font-weight: 700; }
.dash-prog:hover { border-left-color: var(--coral); }

.dash-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
@media (max-width: 460px) { .dash-actions { grid-template-columns: repeat(2, 1fr); } }
.dash-btn { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .4rem; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); }
.dash-btn span { font-size: 1.3rem; }
.dash-btn:hover { border-color: var(--teal); }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .4rem; }
.dash-card { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; box-shadow: var(--shadow); }
.dash-card-label { font-size: .78rem; color: var(--ink-soft); }
.dash-card-value { font-size: 1.2rem; font-weight: 700; }

.doc-attn { display: grid; gap: .4rem; }
.attn { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; }
.attn > span:first-child { font-weight: 600; flex: 1; }

/* ============ Reisverslag (afdrukbaar) ============ */
.report-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.report-head { border-bottom: 2px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.report-head h1 { margin: .1rem 0; }
.report-sub { color: var(--ink-soft); }
.report h2 { margin: 1.4rem 0 .6rem; color: var(--teal-deep); }
.report-day { margin-bottom: .9rem; }
.report-day h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.report-items { margin: .2rem 0 0; padding-left: 1.1rem; }
.report-items li { margin: .15rem 0; }
.report-note { margin-bottom: .6rem; }
.report-note-day { color: var(--teal-deep); font-size: .8rem; font-weight: 700; }
.report-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: .4rem; }
.report-photos figure { margin: 0; }
.report-photos img { width: 100%; border-radius: 8px; display: block; }
.report-photos figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: .2rem; }

@media print {
  .topbar, .foot, .modnav, .report-bar, .flash { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .report { border: none; box-shadow: none; padding: 0; }
  .report-photos { grid-template-columns: repeat(3, 1fr); }
  a { color: inherit; text-decoration: none; }
}

/* ============ Publieke deelpagina ============ */
.public-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.public-head h1 { margin: .05rem 0; }
.share-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-top: .6rem; }
.share-photos img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; display: block; box-shadow: var(--shadow); }
.share-foot { text-align: center; margin-top: 2rem; }

.share-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1.2rem; }
.share-row { display: flex; gap: .5rem; align-items: center; margin-top: .3rem; }
.share-url { flex: 1; font-family: var(--mono); font-size: .8rem; }
.share-box form { margin: 0; }

/* Reisverslag: fotodagboek-sectie */
.report-entry { margin-bottom: 1.1rem; }
.report-entry h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.report-entry p { margin: 0 0 .4rem; }
@media print { .report-entry, .report-day { page-break-inside: avoid; } }

/* ============ Fotoalbum ============ */
.album { max-width: 820px; margin: 0 auto; }
.album-cover {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 58vh;
  display: flex; align-items: flex-end; background: #16302E; color: #fff; margin-bottom: 2rem;
}
.album-cover::before { content: ""; position: absolute; inset: 0; background-image: var(--cover); background-size: cover; background-position: center; }
.album-cover::after  { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.68)); }
.album-cover-inner { position: relative; padding: 2rem 1.8rem; }
.album-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; opacity: .9; margin: 0 0 .35rem; }
.album-cover h1 { font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; line-height: 1.05; margin: 0; }
.album-sub { margin: .5rem 0 0; opacity: .95; }
.album-empty { margin: 2rem 0; }

.moment { margin: 0 0 2.4rem; }
.moment-head { display: flex; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .8rem; }
.moment-date { flex: 0 0 auto; text-align: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; color: var(--teal-deep); line-height: 1.25; text-transform: uppercase; }
.moment-daynum { font-family: Georgia, serif; font-size: 1.9rem; color: var(--ink); }
.moment-title h2 { font-family: Georgia, serif; margin: 0; font-size: 1.55rem; line-height: 1.15; }
.moment-place { color: var(--ink-soft); margin: .1rem 0 0; }
.moment-story { font-size: 1.02rem; line-height: 1.7; margin: 0 0 1rem; }
.moment-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.moment-photos.one { grid-template-columns: 1fr; }
.moment-photos figure { margin: 0; }
.moment-photos figure.lead { grid-column: 1 / -1; }
.moment-photos img { width: 100%; border-radius: 10px; display: block; box-shadow: var(--shadow); }
.moment-photos figure.lead img { max-height: 62vh; object-fit: cover; }
.moment-photos figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; font-style: italic; }

@media print {
  .album-cover { min-height: 92vh; border-radius: 0; page-break-after: always; }
  .moment { page-break-inside: avoid; }
  .moment-photos img { box-shadow: none; border-radius: 0; }
  .moment-photos figure.lead img { max-height: 70vh; }
}

/* ============================================================
   Op reis — nieuwe schil (zijbalk + bottom-nav) & kleurenlaag
   ============================================================ */

body {
  background: linear-gradient(180deg, #F4F7FA 0%, #EEF3F8 100%);
  background-attachment: fixed;
}

/* ---- Merk / logo ---- */
.brand-mark { display: none !important; }
.brand img.brand-logo, .mtopbar .brand-logo, .brandcard img { display: block; }

/* ============ Reis-schil ============ */
.shell { flex: 1; width: 100%; display: grid; grid-template-columns: 264px 1fr; align-items: start; }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
body.has-shell > .wrap { display: none; }         /* veiligheid: alleen schil-wrap telt */
.shell .wrap { max-width: var(--wrap); }

/* ---- Zijbalk (desktop) ---- */
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto;
  background: linear-gradient(180deg, var(--navy) 0%, #0b3350 100%);
  color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px;
}
.brandcard {
  display: block; background: #fff; border-radius: 14px; padding: 12px 14px;
  margin: 2px 4px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.brandcard img { width: 100%; height: auto; max-height: 42px; object-fit: contain; }
.snav { display: flex; flex-direction: column; gap: 3px; }
.snav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 12px;
  color: #cfe0ec; font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.snav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.snav-item.is-active { background: rgba(255,255,255,.13); color: #fff; }
.snav-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 1.02rem; background: var(--acc, var(--teal)); color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.2);
}
.snav-item.is-active .snav-dot { opacity: 1; }
.snav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--acc, var(--teal)); opacity: 0; transition: opacity .2s; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; color: #b8cede; text-decoration: none; font-size: .88rem; font-weight: 600; }
.side-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-user { font-size: .78rem; color: #9fc0d6; padding: 6px 11px 2px; font-family: var(--mono); }
.side-link.signout:hover { color: #ffd0c4; }

/* ---- Mobiele topbalk ---- */
.mtopbar { display: none; }

/* ---- Bottom-nav (mobiel) ---- */
.tabbar { display: none; }
.moresheet { display: none; }

/* De oude modnav is vervangen door de schil */
.modnav { display: none !important; }

/* Schil-wrap wat luchtiger op desktop */
@media (min-width: 900px) {
  .shell .wrap { padding: 1.8rem 2rem 3rem; margin: 0 auto; }
  .shell-main .foot { display: none; }
}

/* ---- Mobiel: geen zijbalk, wel bottom-nav ---- */
@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .shell-main { padding-bottom: 84px; }

  .mtopbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
    background: linear-gradient(180deg, var(--navy), #0d3f60); color: #fff;
    border-radius: 0 0 18px 18px; box-shadow: 0 6px 20px rgba(16,57,90,.18);
  }
  .mtopbar .brand-pill { background: #fff; border-radius: 11px; padding: 6px 10px; display: inline-flex; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
  .mtopbar .brand-pill img { height: 24px; width: auto; display: block; }
  .mtopbar .m-trip { text-align: right; min-width: 0; }
  .mtopbar .m-trip b { font-weight: 700; font-size: .95rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .mtopbar .m-trip small { color: #a9cbe0; font-size: .72rem; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 2px; text-decoration: none; color: var(--ink-soft); position: relative; cursor: pointer;
    background: none; border: none; font: inherit;
  }
  .tab .tab-ico { font-size: 1.35rem; line-height: 1; }
  .tab .tab-lbl { font-size: .66rem; font-weight: 700; letter-spacing: .01em; }
  .tab.is-active { color: var(--acc, var(--teal)); }
  .tab.is-active::before { content: ""; position: absolute; top: -7px; width: 24px; height: 3px; border-radius: 99px; background: var(--acc, var(--teal)); }

  .moresheet { display: block; position: fixed; inset: 0; z-index: 60; visibility: hidden; }
  .moresheet.show { visibility: visible; }
  .moresheet .sheet-bd { position: absolute; inset: 0; background: rgba(11,34,52,.45); opacity: 0; transition: opacity .25s; }
  .moresheet.show .sheet-bd { opacity: 1; }
  .moresheet .sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0; background: #fff;
    border-radius: 20px 20px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(16,57,90,.22); transform: translateY(100%); transition: transform .28s ease;
  }
  .moresheet.show .sheet-panel { transform: translateY(0); }
  .sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: #d3dde5; margin: 6px auto 12px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .sheet-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); padding: 12px 4px; border-radius: 14px; }
  .sheet-item:active { background: #f1f5f8; }
  .sheet-item .si { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; background: var(--acc, var(--teal)); }
  .sheet-item span { font-size: .72rem; font-weight: 600; text-align: center; }
  .sheet-sep { height: 1px; background: var(--line); margin: 12px 4px; }
  .sheet-links { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
  .sheet-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 10px; }
  .sheet-links a:hover { background: #f1f5f8; color: var(--ink); }
  .sheet-links a.signout { color: var(--bad); }
}

/* ============ Globale topbar (reizenlijst / kluis) — navy ============ */
.topbar { background: var(--navy); border-bottom: none; }
.topbar .brand { color: #fff; }
.topbar .brand .brand-logo { height: 30px; width: auto; background: #fff; border-radius: 9px; padding: 4px 8px; box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.topnav a { color: #cfe0ec; }
.topnav a:hover { color: #fff; }
.topnav .who { color: #9fc0d6; }
.topnav .signout { color: #cfe0ec; }
.topnav .signout:hover { color: #ffd0c4; }
.topbar::after { background: linear-gradient(90deg, var(--teal), var(--sun)); }

/* ============ Kleurrijke accenten ============ */
/* Vandaag-hero net iets frisser (blijft binnen bestaande .dash-hero) */
.dash-hero, .hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(22,181,196,.20), transparent 55%),
    linear-gradient(135deg, rgba(46,125,182,.12), rgba(46,125,182,0) 62%),
    var(--surface);
}
.hero::after, .dash-hero::after {
  background: radial-gradient(circle at 32% 32%, rgba(245,166,35,.30), rgba(245,166,35,0) 70%);
}

/* Snelactie-knoppen op Vandaag: gekleurde icoon-tegels */
.dash-actions .dash-btn span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; box-shadow: 0 3px 8px rgba(16,57,90,.12); }
.dash-actions .dash-btn:nth-child(1) span { background: var(--c-fotos); }
.dash-actions .dash-btn:nth-child(2) span { background: var(--c-uitgaven); }
.dash-actions .dash-btn:nth-child(3) span { background: var(--c-notities); }
.dash-actions .dash-btn:nth-child(4) span { background: var(--c-programma); }
.dash-actions .dash-btn { gap: .45rem; padding: .9rem .4rem; }
.dash-actions .dash-btn:hover { border-color: var(--teal); transform: translateY(-2px); transition: transform .12s ease, border-color .15s ease; }

/* Kaartranden per module een subtiele kleur mee */
.trip-card a { border-left-color: var(--blue); }
.prog-card { border-left-color: var(--c-programma); }
.resto { border-left: 3px solid var(--c-resto); }
.mem { border-left-color: var(--c-fotos); }
.note { border-left-color: var(--c-notities); }
.doc { border-left-color: var(--c-docs); }

/* ============ Documenten — bewerken (inline) ============ */
.doc-edit { margin-top: .5rem; }
.doc-edit > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 600; color: var(--c-docs);
  border: 1px solid var(--line); border-radius: 8px; padding: .32rem .6rem; background: #fff;
}
.doc-edit > summary::-webkit-details-marker { display: none; }
.doc-edit > summary:hover { border-color: var(--c-docs); }
.doc-edit[open] > summary { background: #eef2fb; }
.doc-edit .edit-form { display: grid; gap: .6rem; margin-top: .7rem; padding: .8rem; background: #F8FAFD; border: 1px solid var(--line); border-radius: 12px; }
.doc-edit .edit-form .row { gap: .6rem; }
.doc-edit .edit-actions { display: flex; gap: .5rem; }
.doc-actions { align-items: stretch; }

/* Iets modernere titel-typografie */
h1, h2, .brand { font-family: var(--sans); letter-spacing: -.015em; }

/* ============ Verblijf (hotels/accommodaties) ============ */
.stay-list { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
@media (min-width: 620px) { .stay-list { grid-template-columns: 1fr 1fr; } }
.stay {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c-verblijf);
  border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow);
}
.stay-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.stay-name { font-weight: 700; font-size: 1.05rem; }
.stay-dates { font-family: var(--mono); font-size: .78rem; color: var(--c-verblijf); font-weight: 700; white-space: nowrap; }
.stay-row { font-size: .88rem; color: var(--ink-soft); margin: .25rem 0 0; }
.stay-row .ic { margin-right: .35rem; }
.stay-note { font-size: .9rem; margin: .4rem 0 0; }
.stay-chips { margin-top: .5rem; }
.chip-stayref { background: #eef2fb; border-color: #d7defb; color: var(--c-docs); }
.stay-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.stay-actions .btn { padding: .38rem .7rem; font-size: .82rem; }
.stay-actions .btn-map { border-color: #cfe0ec; }

/* "Vannacht" op het Vandaag-dashboard */
.dash-stay {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--c-verblijf);
  border-radius: 12px; padding: .6rem .8rem; margin-top: .6rem;
}
.dash-stay .di { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; background: var(--c-verblijf); color: #fff; font-size: 1.05rem; }
.dash-stay .st-main { min-width: 0; }
.dash-stay .st-label { font-size: .74rem; color: var(--ink-soft); display: block; }
.dash-stay .st-name { font-weight: 700; }
.dash-stay:hover { border-left-color: var(--navy); }

/* Verblijf-label in de programmakalender */
.cal-stay { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--c-verblijf); font-weight: 600; margin-top: .2rem; }
.cal-stay .ic { font-size: .8rem; }

/* ============ Navigatieknopjes (Google Maps + Waze) ============ */
.navlinks { display: inline-flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.navbtn {
  display: inline-flex; align-items: center; gap: .32rem; text-decoration: none;
  font-size: .8rem; font-weight: 700; line-height: 1;
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.navbtn .nav-ic { font-size: .92rem; }
.navbtn-gmaps { background: #e8f0fe; color: #1a73e8; border-color: #d2e3fc; }
.navbtn-gmaps:hover { background: #d2e3fc; }
.navbtn-waze { background: #e6f9ff; color: #0a7ea4; border-color: #bfeeff; }
.navbtn-waze:hover { background: #bfeeff; }

/* In verblijf-actierij netjes op één lijn met de andere knoppen */
.stay-actions .navlinks { margin-top: 0; }

/* ============ Noodgeval-kaartje ============ */
.sos-call {
  display: flex; align-items: center; gap: .9rem; text-decoration: none;
  background: linear-gradient(135deg, var(--c-nood), #b83c37); color: #fff;
  border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(214,75,68,.32);
}
.sos-call:active { transform: scale(.99); }
.sos-ic { font-size: 1.9rem; line-height: 1; }
.sos-main { flex: 1; min-width: 0; }
.sos-num { display: block; font-family: var(--sans); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: .02em; }
.sos-sub { display: block; font-size: .8rem; color: #ffe2df; margin-top: .2rem; }
.sos-go { font-weight: 700; font-size: .95rem; white-space: nowrap; background: rgba(255,255,255,.18); padding: .5rem .8rem; border-radius: 999px; }

.nood-card { border-left: 3px solid var(--c-verblijf); }
.nood-card h3 { font-size: 1.1rem; margin: .1rem 0 .3rem; }
.nood-info { white-space: normal; line-height: 1.6; font-size: .95rem; margin-bottom: .6rem; }
.nood-tip { margin-top: 1rem; line-height: 1.5; }
.emergency .doc-edit textarea { width: 100%; font-family: var(--sans); }

/* Snelkoppeling op het Vandaag-scherm */
.dash-sos {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  margin-top: .9rem; padding: .7rem .9rem; border-radius: 12px;
  border: 1px solid #f3ccc9; background: #fdf1f0; color: var(--c-nood); font-weight: 700; font-size: .95rem;
}
.dash-sos span { font-size: 1.15rem; }
.dash-sos:hover { border-color: var(--c-nood); background: #fbe7e5; }

/* ============ Tijdschema-item inline bewerken ============ */
.timeline li { align-items: flex-start; }
.tl-item { flex: 1; min-width: 0; }
.tl-item > summary { display: flex; align-items: center; gap: .8rem; cursor: pointer; list-style: none; padding: .1rem 0; }
.tl-item > summary::-webkit-details-marker { display: none; }
.tl-item > summary::marker { content: ""; }
.tl-item .tl-actions { margin-left: auto; padding-left: .4rem; }
.mini-edit { font-size: .95rem; opacity: .5; padding: .12rem .34rem; border-radius: 8px; }
.tl-item > summary:hover .mini-edit { opacity: 1; background: #eef2f6; }
.tl-item[open] .mini-edit { opacity: 1; background: #eef2f6; }
.tl-edit-form { margin-top: .55rem; }
.tl-del { flex: 0 0 auto; margin: .15rem 0 0; }

/* ============ Restaurant/checkbox + foto-bijschrift bewerken ============ */
.check-inline { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check-inline input { width: auto; }

.entry-edit { margin: 0 0 1rem; }
.entry-edit textarea { width: 100%; font-family: var(--sans); }

/* Bijschrift onder een foto */
.ph-cap { margin-top: .35rem; }
.ph-cap > summary {
  list-style: none; cursor: pointer; font-size: .8rem; color: var(--ink-soft);
  padding: .2rem .1rem; line-height: 1.3;
}
.ph-cap > summary::-webkit-details-marker { display: none; }
.ph-cap[open] > summary { color: var(--ink); font-weight: 600; }
.ph-cap-form { display: flex; gap: .4rem; margin-top: .35rem; }
.ph-cap-form input { flex: 1; min-width: 0; padding: .4rem .55rem; border: 1.5px solid var(--line); border-radius: 9px; font-size: .85rem; }
.ph-cap-form input:focus { outline: none; border-color: var(--c-fotos); }

/* ============ Weer op het Vandaag-scherm ============ */
.dash-weather {
  position: absolute; top: .9rem; right: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .75rem .3rem .5rem; box-shadow: var(--shadow); color: var(--ink);
}
.wx-ico { font-size: 1.3rem; line-height: 1; }
.wx-body { display: flex; flex-direction: column; line-height: 1.12; }
.wx-temp { font-family: var(--sans); font-weight: 800; font-size: 1rem; }
.wx-desc { font-size: .68rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .dash-weather { top: .7rem; right: .7rem; padding: .28rem .6rem .28rem .45rem; }
  .dash-weather .wx-desc { display: none; }
}

/* ============ Reis exporteren (back-up) ============ */
.trip-export { position: absolute; top: .5rem; right: 2.9rem; margin: 0; text-decoration: none; color: var(--ink-soft); }
.trip-export:hover { color: var(--blue); border-color: var(--blue); }
.export-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.export-box .export-txt { min-width: 0; }
.export-box strong { font-size: 1rem; }
.export-box .btn { white-space: nowrap; }

/* ============ Foto delen ============ */
.icon-btn.js-share-photo:hover { color: var(--c-fotos); border-color: var(--c-fotos); }
.entry-share { margin: 0 0 1.1rem; }
.js-share-entry { border-color: var(--c-fotos); color: var(--c-fotos); }
.js-share-entry:hover { background: #fdeef4; }
.js-share-entry[disabled] { opacity: .6; cursor: default; }

/* ============ Reisgenoten & uitnodigingen (gebruikerssysteem) ============ */
.auth-card { max-width: 440px; margin: 8vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.8rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; line-height: 1.25; margin: .2rem 0 .6rem; }
.auth-card .accent { color: var(--blue); }
.auth-card .form-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.auth-alt { margin-top: 1rem; }

.member-list { display: flex; flex-direction: column; gap: .5rem; }
.member-row { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; }
.member-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.member-info strong { font-size: .98rem; }
.role-badge { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px; background: #eef2f6; color: var(--ink-soft); }
.role-badge.is-owner { background: #e7f0fb; color: var(--blue); }

.invite-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.invite-list { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.invite-list li { display: flex; align-items: center; gap: .4rem; }
.invite-url { flex: 1; min-width: 0; font-size: .8rem; font-family: var(--mono, monospace); padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 9px; background: #f8fafc; color: var(--ink); }

/* ============ Tricount-uitgaven ============ */
.settle-lines { list-style: none; margin: .4rem 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.settle-lines li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.settle-bal { margin-top: .3rem; font-weight: 700; }
.settle-bal.pos { color: #2FA36B; }
.settle-bal.neg { color: #D64B44; }

/* Verdeling: segmentkeuze */
.split-block { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .2rem; }
.split-modes { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.split-label { font-weight: 700; font-size: .82rem; color: var(--ink-soft); margin-right: .2rem; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: .35rem .7rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.split-hint { margin: .5rem 0 .3rem; }

.split-parts { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.split-parts li { display: flex; align-items: center; gap: .5rem; }
.part-weight, .part-amount { width: 90px; padding: .4rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; text-align: right; }
/* Toon het juiste invoerveld per modus */
.exp-form .part-weight, .exp-form .part-amount { display: none; }
.exp-form.mode-shares .part-weight { display: inline-block; }
.exp-form.mode-amount .part-amount { display: inline-block; }
.split-total { margin-top: .5rem; font-weight: 700; }
.split-total.ok { color: #2FA36B; }

/* Deelnemersbeheer */
.parts-manage summary { cursor: pointer; }
.parts-list { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.part-edit-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.part-name-input { flex: 1; min-width: 120px; padding: .4rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; }
.part-active { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }

/* Deelnemer-rijen links uitlijnen (overschrijft de kolom-labels van .stack) */

/* Deelnemer-rij: vinkje · naam (vult op) · invoerveld */
.split-parts .part-row { display: flex; align-items: center; gap: .6rem; }
.split-parts .part-cb { width: 18px; height: 18px; flex: 0 0 auto; }
.split-parts .part-name { flex: 1 1 auto; flex-direction: row; font-weight: 600; color: var(--ink); font-size: .95rem; cursor: pointer; }

/* ============ Activiteiten & dagprogramma-assemblage ============ */
.prog-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.prog-tabs .btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.act-timeline { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.act-row { display: flex; gap: .6rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.act-order { display: flex; flex-direction: column; gap: .2rem; flex: 0 0 auto; }
.ord-btn { width: 28px; height: 24px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; cursor: pointer; font-size: .7rem; line-height: 1; color: var(--ink-soft); }
.ord-btn:disabled { opacity: .35; cursor: default; }
.act-body { flex: 1; min-width: 0; }
.act-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.act-head h3 { margin: 0; font-size: 1.02rem; }
.act-actions { display: flex; align-items: center; gap: .3rem; flex: 0 0 auto; }
.act-meta { margin: .2rem 0 0; font-size: .82rem; }
.act-notes { margin: .35rem 0 0; font-size: .92rem; color: var(--ink); }
.act-doc { display: inline-block; margin-top: .45rem; font-size: .85rem; color: var(--blue); text-decoration: none; }
.add-activity { margin-top: .9rem; }

.act-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; margin-top: .8rem; }
.act-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.act-card .act-head h3 { font-size: 1rem; }

/* Uitnodigingen: naam + status */
.invite-create { display: flex; gap: .5rem; flex-wrap: wrap; }
.invite-create input { flex: 1; min-width: 140px; padding: .5rem .6rem; border: 1.5px solid var(--line); border-radius: 9px; }
.invite-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.invite-label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.invite-done li { align-items: center; }
.invite-check { color: #2FA36B; font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }

/* Tijd in het dagprogramma */
.starttime-row { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 .9rem; }
.starttime-label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.starttime-label input { padding: .45rem .5rem; border: 1.5px solid var(--line); border-radius: 9px; }
.act-time { font-size: .95rem; font-weight: 800; color: var(--navy); background: #eef4f9; border-radius: 7px; padding: .1rem .3rem; text-align: center; margin-bottom: .25rem; }
/* Duur: uren + minuten */
.dur-fields { display: flex; align-items: center; gap: .35rem; }
.dur-fields input { width: 64px; padding: .5rem; border: 1.5px solid var(--line); border-radius: 9px; text-align: right; }
.dur-unit { font-size: .85rem; color: var(--ink-soft); }

/* Hotspots */
.seg-wrap { flex-wrap: wrap; }
.hs-pick { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .2rem; }
.hs-list { list-style: none; margin: .3rem 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.hs-row { display: flex; align-items: center; gap: .6rem; }
.hs-row .hs-name { flex: 1 1 auto; flex-direction: row; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Offline klaarzetten */
.offline-what { list-style: none; margin: .3rem 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; }
.offline-status { padding: .5rem 0; }
.offline-progress { margin: .2rem 0 .4rem; }

/* Restaurant-tags kiezen */
.tag-pick { list-style: none; margin: .3rem 0 .2rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.tag-row { display: flex; align-items: center; gap: .6rem; }
.tag-row .tag-name { flex: 1 1 auto; flex-direction: row; font-weight: 600; color: var(--ink); cursor: pointer; }
.add-cat .row { align-items: center; }

/* "+ Toevoegen"-paneel op het dagprogramma */
.add-panel { margin-top: .9rem; }
.add-types { display: flex; gap: .4rem; margin: .2rem 0 .8rem; flex-wrap: wrap; }
.seg2 { position: relative; }
.seg2 input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg2 span { display: inline-block; padding: .4rem .8rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.seg2 input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.add-sub { display: none; }
.add-sub.is-active { display: block; }
.tag-quickpick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.tag-chip { position: relative; }
.tag-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tag-chip span { display: inline-block; padding: .3rem .7rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .82rem; cursor: pointer; }
.tag-chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Vinkjes en keuzerondjes altijd netjes op één rij met hun tekst
   (overschrijft de kolom-standaard van 'label' die enkel voor invoervelden bedoeld is) */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  flex-direction: row;
  align-items: center;
  gap: .5rem;
}
/* Elk vinkje/keuzerondje behoudt zijn natuurlijke grootte, ook naast (niet in) een label.
   Overschrijft de globale 'input { width: 100% }'. */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

/* Plan deze dag (kalender + Vandaag) */
.planday { display: inline-block; }
.planday > summary { list-style: none; cursor: pointer; }
.planday > summary::-webkit-details-marker { display: none; }
.planday-btn { display: inline-block; padding: .35rem .7rem; border: 1.5px dashed var(--blue); border-radius: 9px; color: var(--navy); font-weight: 700; font-size: .85rem; background: #eef4f9; }
.planday[open] .planday-btn { border-style: solid; }
.planday-body { margin-top: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; max-width: 340px; }
.planday-new input[type="text"] { width: 100%; }
.planday-pool { font-weight: 600; font-size: .82rem; color: var(--ink-soft); margin: .2rem 0; }
.planday-or { margin: .6rem 0 .4rem; }
.dash-plan { display: block; }
.dash-plan .planday { margin-top: .3rem; }

/* Beveiliging / sleutel */
.keybox { background: #0e1c2b; color: #d7e6f5; padding: .7rem .8rem; border-radius: 9px; font-family: ui-monospace, monospace; font-size: .8rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.steps { margin: .4rem 0 .6rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; }
.steps li { list-style: decimal; }
