/* Roamsters huisstijl. Kleuren uit het logo-ontwerp ("Chat Pin").
   Ocean = primair, Sunset = accent (tekst op Sunset altijd Night, niet wit). */
:root {
    --ocean: #0F5A63;
    --lagoon: #5CC8BE;
    --sunset: #F26B3A;
    --sunset-ink: #C2461A;
    --night: #10232A;
    --sand: #FBF6EE;

    --bg: var(--sand);
    --surface: #ffffff;
    --text: var(--night);
    --muted: #5b6b70;
    --primary: var(--ocean);
    --primary-contrast: #ffffff;
    --border: #e7ded0;
    --world-land: #e5ded2;
    --world-sea: #dcebea;

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-link-color-rgb: 15, 90, 99;
    --bs-font-sans-serif: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tagline: var(--sunset-ink);
    /* Bootstrap's grijze tekst (.text-muted, .form-text) volgt onze kleuren; anders bijna onzichtbaar in donker. */
    --bs-secondary-color: var(--muted);
    --bs-secondary-rgb: 91, 107, 112;
    color-scheme: light;
}

/* Donker: volgt het systeem, tenzij de bezoeker zelf koos (knop 🌙/☀️, cookie roamsters_theme → <html data-theme>).
   Daarom twee keer dezelfde waarden: automatisch (zonder data-theme="light") en gekozen (data-theme="dark").
   Nieuwe donkere regels altijd in BEIDE blokken zetten. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: var(--night); --surface: #172f37; --text: var(--sand); --muted: #a9bcbf;
        --primary: var(--lagoon); --primary-contrast: var(--night); --border: #25434c;
        --world-land: #2a454d; --world-sea: #0b1a1f; --bs-link-color-rgb: 92, 200, 190; --tagline: var(--sunset); --bs-secondary-rgb: 169, 188, 191;
        color-scheme: dark;
    }
    :root:not([data-theme="light"]) .logo-light, :root:not([data-theme="light"]) .theme-icon-to-dark { display: none !important; }
    :root:not([data-theme="light"]) .logo-dark, :root:not([data-theme="light"]) .theme-icon-to-light { display: inline-block !important; }
}
:root[data-theme="dark"] {
    --bg: var(--night); --surface: #172f37; --text: var(--sand); --muted: #a9bcbf;
    --primary: var(--lagoon); --primary-contrast: var(--night); --border: #25434c;
    --world-land: #2a454d; --world-sea: #0b1a1f; --bs-link-color-rgb: 92, 200, 190; --tagline: var(--sunset); --bs-secondary-rgb: 169, 188, 191;
    color-scheme: dark;
}
:root[data-theme="dark"] .logo-light, :root[data-theme="dark"] .theme-icon-to-dark { display: none !important; }
:root[data-theme="dark"] .logo-dark, :root[data-theme="dark"] .theme-icon-to-light { display: inline-block !important; }

body { background: var(--bg); color: var(--text); }
.logo-dark, .theme-icon-to-light { display: none; }
.theme-toggle { background: none; border: 0; padding: .25rem .5rem; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.site-header .nav-link:focus { box-shadow: none; }
.site-header .nav-link:focus-visible { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 45%, transparent); border-radius: 8px; }

/* Tijdlijn: mensen om te volgen (horizontaal scrollen op een telefoon). */
.suggest-strip { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.suggest-card { flex: 0 0 10.5rem; height: auto; padding: 1rem .75rem; text-align: center; scroll-snap-align: start; }

/* Hint over de kaart bij scrollen zonder Ctrl (Roam.wheelZoom). */
.map-zoom-hint { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; text-align: center;
    background: rgba(16, 35, 42, .55); color: #fff; font-weight: 700; font-size: 1.05rem; pointer-events: none; opacity: 0; transition: opacity .2s; }
.map-zoom-hint.show { opacity: 1; }

/* Beheeroverzicht (/admin) */
.admin-stat-value { font-family: "Nunito", var(--bs-font-sans-serif); font-weight: 900; font-size: 1.9rem; line-height: 1.2; margin: .15rem 0; }
.admin-stat-value a { color: inherit; text-decoration: none; }
.admin-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin: .5rem 0 .25rem; }
.admin-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; background: color-mix(in srgb, var(--primary) 8%, transparent); border-radius: 3px; }
.admin-bar span { display: block; width: 100%; min-height: 2px; background: var(--primary); border-radius: 3px; }
.admin-tile { display: flex; gap: .5rem; align-items: center; padding: .9rem 1rem; text-decoration: none; color: var(--text); font-weight: 600; }
.admin-tile:hover { border-color: var(--primary); color: var(--primary); }
.theme-switch a { color: var(--muted); text-decoration: none; margin-right: .5rem; }
.theme-switch a.active { color: var(--primary); font-weight: 700; }

/* Icoon in de huisstijl (de envelop-emoji is in donker bijna onzichtbaar). */
.icon-mail { width: 1.15em; height: 1.15em; vertical-align: -0.18em; margin-left: .2em; }
.icon-mail .env { fill: color-mix(in srgb, var(--primary) 16%, transparent); stroke: var(--primary); }
.icon-mail .flap { fill: none; stroke: var(--primary); }
.icon-mail .dot { fill: var(--sunset); }

h1, h2, h3, .brand-font { font-family: "Nunito", var(--bs-font-sans-serif); font-weight: 900; letter-spacing: -0.01em; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }

/* Header altijd donker, ook in de lichte weergave (proef 2026-10-05, gebruiker: "de light-versie is erg vlak").
   Terugdraaien = dit blok weghalen (en data-bs-theme="dark" op <header> in _Layout). De variabelen van de donkere
   weergave gelden zo voor alles in de header (links, knoppen, badges); logo: altijd de lichte variant. */
.site-header {
    --surface: #172f37; --text: var(--sand); --muted: #a9bcbf; --border: #25434c;
    --primary: var(--lagoon); --primary-contrast: var(--night); --bs-link-color-rgb: 92, 200, 190;
    color-scheme: dark;
}
/* .navbar zet de zijmarge van .container op 0: op een telefoon stonden logo en menuknop tegen de rand. */
.site-header .navbar { padding-left: 1rem; padding-right: 1rem; }
.site-header .logo-light { display: none !important; }
.site-header .logo-dark { display: inline-block !important; }
.site-header .nav-link { color: var(--text); font-weight: 600; }
.site-header .nav-link:hover { color: var(--primary); }

/* Eigen knoppen via de variabelen van Bootstrap: .btn:hover/:active zetten de achtergrond op --bs-btn-hover-bg /
   --bs-btn-active-bg (standaard transparant) en winnen op specificiteit van een gewone "background" hier. Zonder deze
   variabelen verdween de knop bij mouseover (tekst in Night op een donkere balk). */
.btn-roam {
    --bs-btn-bg: var(--primary); --bs-btn-color: var(--primary-contrast); --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--primary); --bs-btn-hover-color: var(--primary-contrast); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--primary); --bs-btn-active-color: var(--primary-contrast); --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-color: var(--primary-contrast); --bs-btn-disabled-border-color: transparent;
    border: 0; border-radius: 999px; padding: .65rem 1.4rem; font-weight: 700;
}
.btn-roam:hover, .btn-roam:focus-visible, .btn-roam:active { filter: brightness(1.1); }
.btn-sunset {
    --bs-btn-bg: var(--sunset); --bs-btn-color: var(--night); --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--sunset); --bs-btn-hover-color: var(--night); --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--sunset); --bs-btn-active-color: var(--night); --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: var(--sunset); --bs-btn-disabled-color: var(--night); --bs-btn-disabled-border-color: transparent;
    border: 0; border-radius: 999px; padding: .65rem 1.4rem; font-weight: 700;
}
.btn-sunset:hover, .btn-sunset:focus-visible, .btn-sunset:active { filter: brightness(1.05); }
.btn-ghost {
    --bs-btn-bg: transparent; --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary); --bs-btn-hover-color: var(--primary-contrast); --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary); --bs-btn-active-color: var(--primary-contrast); --bs-btn-active-border-color: var(--primary);
    --bs-btn-disabled-bg: transparent; --bs-btn-disabled-color: var(--primary); --bs-btn-disabled-border-color: var(--primary);
    --bs-btn-border-width: 2px;
    border-radius: 999px; padding: .55rem 1.3rem; font-weight: 700;
}

.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.hero .lead { color: var(--muted); font-size: 1.2rem; max-width: 38rem; }
.tagline { color: var(--tagline); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }

.card-roam { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; height: 100%; }
.card-roam .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 1.3rem; margin-bottom: .9rem; }
.card-roam p { color: var(--muted); margin: 0; }

.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--sunset); }
.plan .price { font-size: 2rem; font-weight: 900; font-family: "Nunito", var(--bs-font-sans-serif); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.plan li { padding: .3rem 0; }
.plan li::before { content: "✓"; color: var(--primary); font-weight: 900; margin-right: .5rem; }

.auth-box { max-width: 440px; margin: 3rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; }
.form-control { background: var(--bg); color: var(--text); border-color: var(--border); border-radius: 12px; padding: .65rem .9rem; }
.form-control:focus { background: var(--bg); color: var(--text); border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 25%, transparent); }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); padding: 2rem 0; margin-top: 4rem; font-size: .9rem; }
.site-footer a { color: var(--muted); }
.lang-switch a { color: var(--muted); text-decoration: none; margin-right: .75rem; }
.lang-switch a.active { color: var(--primary); font-weight: 700; }

/* --- Algemeen (fase 1) --------------------------------------------------- */
.alert-roam { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 12px; }
.form-page { max-width: 640px; margin: 2rem auto; }
.form-page.wide { max-width: 1080px; }
.form-select { background-color: var(--bg); color: var(--text); border-color: var(--border); border-radius: 12px; }
.min-w-0 { min-width: 0; }
.danger-zone { border-color: color-mix(in srgb, #dc3545 40%, var(--border)); }

/* --- Reizen-overzicht ---------------------------------------------------- */
.trip-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none; height: 100%; transition: transform .15s, box-shadow .15s; }
.trip-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(16,35,42,.12); color: var(--text); }
.trip-card.archived { opacity: .7; }
.trip-card-cover { aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--primary) 15%, var(--surface)) center / cover no-repeat; display: grid; place-items: center; font-size: 2.5rem; }

/* --- Reispagina ---------------------------------------------------------- */
.trip-hero { margin-top: 1.5rem; border-radius: 22px; min-height: 260px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--ocean), #1c7c86) center / cover no-repeat; color: #fff; }
.trip-hero-inner { padding: 2rem; }
.trip-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 .25rem; }
.trip-hero .lead { color: rgba(255,255,255,.9); max-width: 44rem; }
.trip-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: 1rem 0; }
.trip-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .75rem; text-align: center; }
.trip-stats strong { display: block; font-family: "Nunito", var(--bs-font-sans-serif); font-weight: 900; font-size: 1.4rem; }
.trip-stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 575px) { .trip-stats { grid-template-columns: repeat(3, 1fr); } }

.trip-map { height: 420px; border-radius: 18px; border: 1px solid var(--border); z-index: 0; }
.map-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .75rem; }
.map-style-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer; font-size: .9rem; text-align: center; }
.map-style-option img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; border: 2px solid var(--border); background: var(--border); }
.map-style-option input { position: absolute; opacity: 0; pointer-events: none; }
.map-style-option input:checked + img { border-color: var(--sunset); box-shadow: 0 0 0 2px var(--sunset); }
.map-style-option input:focus-visible + img { outline: 3px solid var(--primary); outline-offset: 2px; }
.map-style-option input:disabled ~ * { opacity: .55; cursor: not-allowed; }
.picker-map { height: 380px; border-radius: 14px; border: 1px solid var(--border); z-index: 0; cursor: crosshair; }
.roam-pin { background: var(--ocean); color: #fff; border: 2px solid #fff; border-radius: 50%; display: grid !important; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.roam-pin.masked { background: #7a8a8f; }

.timeline { position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding-bottom: 2rem; position: relative; scroll-margin-top: 1rem; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step-marker { width: 44px; height: 44px; border-radius: 50%; background: var(--sunset); color: var(--night); display: grid; place-items: center; font-weight: 900; font-family: "Nunito", var(--bs-font-sans-serif); }
.step-content { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem 1.5rem; min-width: 0; }
.step-body { white-space: pre-line; line-height: 1.65; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.photo-grid figure { margin: 0; position: relative; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; height: auto; }
.photo-grid figcaption { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.photo-menu { position: absolute; top: .35rem; right: .35rem; }
.photo-menu summary { list-style: none; cursor: pointer; background: rgba(16,35,42,.7); color: #fff; border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 900; }
.photo-menu summary::-webkit-details-marker { display: none; }
.photo-menu-body { position: absolute; right: 0; top: 32px; z-index: 5; width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: grid; gap: .35rem; }

.uploader { background: var(--surface); border: 2px dashed var(--border); border-radius: 18px; padding: 1.25rem; transition: border-color .15s, background .15s; }
.uploader.drag { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.uploader.busy .uploader-drop { opacity: .6; pointer-events: none; }
.uploader-drop { display: flex; flex-direction: column; align-items: center; gap: .25rem; cursor: pointer; text-align: center; padding: .75rem; }
.upload-list { max-height: 180px; overflow: auto; }

.share-link { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--border); }
.share-qr { width: 96px; flex: 0 0 96px; background: #fff; border-radius: 8px; padding: 4px; }
.share-qr svg { width: 100%; height: auto; display: block; }

/* --- Video, viewer en slepen --------------------------------------------- */
.photo-grid figure a { display: block; position: relative; }
.video-badge { position: absolute; left: .4rem; bottom: .4rem; background: rgba(16,35,42,.78); color: #fff; font-size: .75rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.media-status { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: .5rem; font-size: .8rem; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--muted); }
.media-status.failed { background: color-mix(in srgb, #dc3545 12%, var(--surface)); color: var(--text); }
.photo-grid.empty { min-height: 90px; border: 2px dashed var(--border); border-radius: 12px; }
.photo-grid.empty:not(:has(figure))::before { content: attr(data-empty); grid-column: 1 / -1; align-self: center; text-align: center; color: var(--muted); font-size: .85rem; }
.photo-grid[data-sortable] figure[data-id]:not(.not-ready) { cursor: grab; }
.photo-grid.saving { opacity: .7; }
.drag-ghost { opacity: .35; }

html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,18,22,.94); display: none; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; }
.lightbox.open { display: grid; }
.lb-stage { grid-column: 2; grid-row: 1; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 1rem 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-prev, .lb-next, .lb-close { background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; opacity: .8; cursor: pointer; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { opacity: 1; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: .6rem; right: .9rem; font-size: 1.8rem; z-index: 1; }
.lb-footer { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 1rem; color: #e8eef0; padding: .6rem 1rem 1rem; font-size: .9rem; }
@media (max-width: 575px) { .lightbox { grid-template-columns: 0 1fr 0; } .lb-prev, .lb-next { display: none; } }

/* --- Community (fase 3) ---------------------------------------------------- */
.avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-block; background: color-mix(in srgb, var(--primary) 15%, var(--surface)); }
.avatar-initials { display: inline-grid; place-items: center; color: var(--primary); font-weight: 800; font-family: "Nunito", var(--bs-font-sans-serif); }
.profile-header { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; margin: 2rem 0 1rem; }
.profile-counts { display: flex; gap: 1.25rem; color: var(--muted); font-size: .95rem; }
.profile-counts strong { color: var(--text); }
.profile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.badge-road { background: var(--sunset); color: var(--night); }
.person-list li + li { border-top: 1px solid var(--border); }
.person-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: var(--text); text-decoration: none; }
.nav-badge { position: absolute; top: 0; right: -4px; font-size: .65rem; }

.welcome { margin-top: 2rem; }
.road-strip { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.road-chip { display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .35rem 1rem .35rem .35rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.road-chip:hover { border-color: var(--primary); color: var(--text); }
.feed { max-width: 680px; }
.feed-item { margin-bottom: 1rem; height: auto; }
.feed-photos { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; }
.feed-photos.count-1 { grid-template-columns: 1fr; }
.feed-photos.count-2, .feed-photos.count-4 { grid-template-columns: 1fr 1fr; }
.feed-photos.count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.feed-photos.count-3 .feed-photo:first-child { grid-row: span 2; }
.feed-photo { position: relative; }
.feed-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.feed-photos.count-1 .feed-photo img { aspect-ratio: 16 / 10; }

/* --- Reacties, likes, meldingen (fase 3b) ---------------------------------- */
.engagement { margin-top: .9rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.engagement-bar { display: flex; align-items: center; gap: 1rem; }
.like-button { background: none; border: 0; padding: .1rem .4rem; border-radius: 999px; font-weight: 700; color: var(--text); }
.like-button:hover { background: color-mix(in srgb, var(--sunset) 15%, transparent); }
.like-button.static { cursor: default; }
.comment-list { margin: .6rem 0 .4rem; display: grid; gap: .5rem; }
.comment { display: flex; gap: .5rem; align-items: flex-start; }
.comment-bubble { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border-radius: 14px; padding: .4rem .75rem; min-width: 0; }
.comment-delete { margin-left: auto; }
.comment-form { display: flex; gap: .5rem; margin-top: .5rem; }
.notification-list li + li { border-top: 1px solid var(--border); }
.notification.unread { background: color-mix(in srgb, var(--sunset) 8%, transparent); border-radius: 12px; }
.notification .person-row { padding: .6rem .5rem; }

/* --- Moderatie (fase 3c) --- */
.media-moderation { margin-top: .35rem; padding: .35rem .5rem; border-radius: .5rem; background: rgba(15, 90, 99, .08); }
.media-moderation.hidden { background: rgba(220, 53, 69, .1); }
.media-moderation summary { cursor: pointer; }
figure { position: relative; }
.media-report { position: absolute; top: .35rem; right: .35rem; width: 1.8rem; height: 1.8rem; line-height: 1.8rem; text-align: center;
    border-radius: 50%; background: rgba(16, 35, 42, .55); color: #fff; text-decoration: none; font-size: .85rem; opacity: 0; transition: opacity .15s; }
figure:hover .media-report, .media-report:focus { opacity: 1; }
@media (hover: none) { .media-report { opacity: .8; } }
.comment-report { align-self: flex-start; text-decoration: none; opacity: .6; }
.comment-report:hover { opacity: 1; }
.moderation-preview { position: relative; cursor: pointer; overflow: hidden; border-radius: .75rem; background: #10232a; }
.moderation-preview img, .moderation-preview video { display: block; width: 100%; max-height: 60vh; object-fit: contain; filter: blur(28px); transition: filter .2s; }
.moderation-preview.revealed img, .moderation-preview.revealed video { filter: none; }
.moderation-reveal { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; pointer-events: none; }
.moderation-preview.revealed .moderation-reveal { display: none; }

/* --- Chat (fase 3e) --- */
.chat-messages { display: flex; flex-direction: column; gap: .5rem; max-height: 60vh; overflow-y: auto; padding: 1rem; }
.chat-message { max-width: 80%; }
.chat-message.mine { align-self: flex-end; text-align: right; }
.chat-message.theirs { align-self: flex-start; }
.chat-bubble { display: inline-block; padding: .5rem .8rem; border-radius: 1rem; background: rgba(15, 90, 99, .08); text-align: left; }
.chat-message.mine .chat-bubble { background: var(--primary, #0F5A63); color: #fff; border-bottom-right-radius: .3rem; }
.chat-message.theirs .chat-bubble { border-bottom-left-radius: .3rem; }
.chat-meta { margin-top: .15rem; }
/* Officieel Roamsters-account (redactietips): altijd herkenbaar als van ons. */
.badge-official { background: var(--primary); color: var(--primary-contrast); font-weight: 700; }
.chat-plan { display: inline-block; padding: .6rem .8rem; border-radius: .8rem; border: 1px solid var(--border); background: var(--surface); max-width: min(320px, 80vw); }
.chat-receipt { color: var(--primary, #0F5A63); font-weight: 600; }
.chat-typing { padding: .25rem .75rem; font-style: italic; }
.chat-photo { display: inline-block; margin-bottom: .25rem; }
.chat-photo img { max-width: min(260px, 70vw); height: auto; border-radius: .8rem; display: block; }
.chat-sender { display: block; margin-bottom: .1rem; }
.chat-photo-pending { font-style: italic; }
.group-card { display: block; color: var(--text); text-decoration: none; }

/* --- Routefilm (fase 5) --- */
body.film-open { overflow: hidden; }
.film-overlay { position: fixed; inset: 0; z-index: 2000; background: #10232a; }
.film-map { position: absolute; inset: 0; }
.film-card { position: absolute; left: 1rem; bottom: 5rem; z-index: 1000; display: flex; gap: .75rem; align-items: center; max-width: min(92vw, 28rem);
    padding: .6rem; border-radius: 1rem; background: rgba(255, 255, 255, .95); color: #10232a; box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .3); animation: film-in .4s ease-out; }
.film-card img { width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: .7rem; }
.film-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #F26B3A; color: #10232a; font-weight: 800; font-size: .8rem; margin-bottom: .2rem; }
.film-controls { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 1000; display: flex; gap: .5rem; align-items: center;
    padding: .4rem .6rem; border-radius: 2rem; background: rgba(16, 35, 42, .8); width: min(92vw, 30rem); }
.film-progress { flex: 1; height: .35rem; border-radius: 1rem; background: rgba(255, 255, 255, .25); overflow: hidden; }
.film-progress span { display: block; height: 100%; width: 0; background: #F26B3A; transition: width .2s linear; }
@keyframes film-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .film-card { animation: none; } }

/* --- Reisboek (fase 5): scherm = voorbeeld, print = A5-boek --- */
.book { max-width: 48rem; margin: 0 auto; }
.book-cover { min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; border-radius: 1rem; color: #fff;
    background: #0F5A63 center/cover no-repeat; }
.book-cover h1 { font-size: 2.6rem; font-weight: 900; }
.book-page { padding: 2rem 0; border-bottom: 1px solid rgba(16, 35, 42, .12); }
.book-page h2 { font-weight: 900; }
.book-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1rem; }
.book-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .4rem; }
.book-photos img:only-child { grid-column: span 2; aspect-ratio: 3 / 2; }
.book-caption { font-size: .8rem; color: #5b6b70; }
.book-map-img { width: 100%; border-radius: .6rem; }
@media print {
    @page { size: A5; margin: 12mm; }
    .site-header, .site-footer, .d-print-none, .flash { display: none !important; }
    body { background: #fff !important; }
    .book-cover { min-height: 180mm; border-radius: 0; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .book-page { break-inside: avoid-page; border: 0; }
    .book-page.new-page { break-before: page; }
    .book-photos img { break-inside: avoid; }
}

/* --- Tips (fase 5) --- */
.tip-list { display: flex; flex-direction: column; gap: .35rem; }
.tip { display: flex; gap: .5rem; align-items: flex-start; padding: .45rem .6rem; border-radius: .6rem; background: rgba(242, 107, 58, .08); }
.tip-icon { font-size: 1.1rem; line-height: 1.4; }
.tip-add summary { list-style: none; }
.tip-add summary::-webkit-details-marker { display: none; }

/* Mijn wereld */
.world-map, .world-map.leaflet-container { height: 420px; border-radius: 1rem; background: var(--world-sea); border: 1px solid var(--border); }
@media (max-width: 576px) { .world-map, .world-map.leaflet-container { height: 260px; } }
.world-badges li { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.world-badge-icon { display: inline-block; width: 1.6em; text-align: center; }

.step-weather { white-space: nowrap; }

/* Hoogteprofiel */
.elevation-chart { width: 100%; height: 140px; display: block; }
.elevation-area { fill: var(--primary); opacity: .18; }
.elevation-line { fill: none; stroke: var(--primary); stroke-width: 2; }

/* Herinneringen en aftellen (feed) */
.memory-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: .75rem; flex: none; }
.memory-thumb-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--world-land); font-size: 1.8rem; }
.countdown-days { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 72px; height: 72px; border-radius: .75rem; background: var(--sunset); color: var(--night); flex: none; line-height: 1.1; }
.countdown-days strong { font-size: 1.6rem; }

/* Jaaroverzicht */
.year-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.year-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; }
.year-months { display: flex; align-items: flex-end; gap: .35rem; height: 160px; }
.year-month { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: .72rem; color: var(--muted); }
.year-bar { width: 100%; min-height: 2px; background: var(--sunset); border-radius: .35rem .35rem 0 0; }

/* Spraakmemo's */
.audio-row audio { height: 36px; max-width: 100%; }


/* Inbedden (iframe op andere sites) */
body.embed { padding: .75rem .75rem 2.5rem; background: var(--bg); }
.embed-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.embed-map, .embed-map.leaflet-container { height: 320px; border-radius: .75rem; }
.embed-steps { display: grid; gap: .5rem; margin-top: .5rem; }
.embed-step { display: flex; gap: .6rem; align-items: center; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: .4rem; }
.embed-step img { width: 52px; height: 52px; object-fit: cover; border-radius: .5rem; flex: none; }
.embed-brand { position: fixed; right: .75rem; bottom: .5rem; font: 800 .8rem "Nunito", sans-serif; color: var(--primary); text-decoration: none; background: var(--surface); padding: .15rem .5rem; border-radius: 999px; border: 1px solid var(--border); }

/* Checklists */
.checklist-box { font-size: 1.25rem; line-height: 1; padding: 0 .25rem; border: 0; }
.checklist li.checked .checklist-text { text-decoration: line-through; color: var(--muted); }


/* Chips (filters bij ontdekken) */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }
.chip-count { font-weight: 400; opacity: .7; }

/* Reis plannen */
.plan-pin span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sunset); color: var(--night); font: 800 .8rem "Nunito", sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.plan-pin.visited span { background: #2e9e6b; color: #fff; }
li.plan-visited strong { color: var(--muted); }

/* Online fotoboek (roamsters-photobook.js). Pagina's 3:4; tekst en marges in cqw zodat een pagina op elk scherm hetzelfde
   vol staat (PhotoBookPaginator rekent met vaste aantallen tekens). Thema's = variabelen op .pb[data-theme]. */
.pb { --pb-paper: #fff; --pb-ink: #10232A; --pb-muted: #6b7b80; --pb-accent: #0F5A63; --pb-title: "Nunito", var(--bs-font-sans-serif); --pb-title-weight: 900; --pb-radius: 1cqw; --pb-cover: #0F5A63; margin-top: 1rem; }
.pb[data-theme="magazine"] { --pb-title: Georgia, "Times New Roman", serif; --pb-title-weight: 700; --pb-radius: 0; --pb-accent: #C2461A; }
.pb[data-theme="minimal"] { --pb-paper: #fdfdfb; --pb-ink: #222; --pb-muted: #8a8a8a; --pb-accent: #222; --pb-title: "Figtree", var(--bs-font-sans-serif); --pb-title-weight: 300; --pb-radius: 0; --pb-cover: #e9e7e1; }
.pb[data-theme="roamsters"] { --pb-paper: #FBF6EE; --pb-ink: #10232A; --pb-muted: #C2461A; --pb-accent: #0F5A63; --pb-radius: 2cqw; }
.pb[data-theme="night"] { --pb-paper: #10232A; --pb-ink: #FBF6EE; --pb-muted: #9fb3b8; --pb-accent: #5CC8BE; --pb-cover: #0b181d; }
.pb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.pb-nav { display: flex; align-items: center; gap: .35rem; }
.pb-counter { min-width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.pb-page { background: var(--pb-paper); color: var(--pb-ink); overflow: hidden; container-type: size; box-shadow: 0 6px 24px rgba(16,35,42,.18); }
.pb:not(.pb-js) .pb-page { position: relative; width: min(100%, 560px); aspect-ratio: 3 / 4; margin: 0 auto 1.25rem; }
.pb-js .pb-stage { container-type: size; height: min(78vh, 980px); min-height: 360px; display: flex; align-items: center; justify-content: center; perspective: 2600px; }
.pb:fullscreen { background: #0b181d; padding: 1rem; margin: 0; }
.pb:fullscreen .pb-stage { height: calc(100vh - 6rem); }
.pb:fullscreen .pb-back, .pb:fullscreen .pb-hint, .pb:fullscreen [data-pb-edit] { display: none; }
.pb:fullscreen .pb-toolbar .btn, .pb:fullscreen .pb-counter { color: #FBF6EE; }
.pb-book { position: relative; width: min(100cqw, 75cqh); aspect-ratio: 3 / 4; touch-action: pan-y; cursor: pointer; user-select: none; }
.pb-book.pb-wide { width: min(100cqw, 150cqh); aspect-ratio: 3 / 2; }
.pb-js .pb-page { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.pb-wide .pb-page { width: 50%; }
.pb-wide .pb-page.pb-right { left: 50%; }
.pb-wide .pb-page.pb-left::after, .pb-wide .pb-page.pb-right::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6%; pointer-events: none; }
.pb-wide .pb-page.pb-left::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.14), transparent); }
.pb-wide .pb-page.pb-right::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.14), transparent); }
.pb-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.45,.1,.25,1); z-index: 5; }
.pb-leaf-next { left: 50%; transform-origin: left center; }
.pb-leaf-next.pb-turn { transform: rotateY(-180deg); }
.pb-leaf-prev { left: 0; transform-origin: right center; }
.pb-leaf-prev.pb-turn { transform: rotateY(180deg); }
.pb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pb-face.pb-back { transform: rotateY(180deg); }
.pb-face.pb-blank { background: var(--pb-paper); }
.pb-book .pb-face > .pb-page { left: 0; width: 100%; }
.pb-in-next { animation: pb-in-next .3s ease-out; }
.pb-in-prev { animation: pb-in-prev .3s ease-out; }
@keyframes pb-in-next { from { transform: translateX(12%); opacity: .2; } }
@keyframes pb-in-prev { from { transform: translateX(-12%); opacity: .2; } }
.pb-inner { position: absolute; inset: 7cqw 7cqw 9cqw; display: flex; flex-direction: column; gap: 2cqw; }
.pb-header { font-size: 2.3cqw; text-transform: uppercase; letter-spacing: .08em; color: var(--pb-muted); }
.pb-title { font-family: var(--pb-title); font-weight: var(--pb-title-weight); font-size: 6cqw; line-height: 1.1; color: var(--pb-accent); margin: 0; }
/* Tekst krimpt nooit (de paginaverdeling rekent op zijn regels); de foto's nemen wat overblijft (basis 0). Eerst
   kromp de tekst mee met een grote foto en werd hij halverwege afgekapt (melding gebruiker 2026-10-05). */
.pb-text { font-size: 2.9cqw; line-height: 1.5; white-space: pre-line; overflow: hidden; flex: 0 0 auto; }
.pb-grid { flex: 1 1 0; min-height: 0; display: grid; gap: 2cqw; grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pb-grid.n2 { grid-template-rows: 1fr 1fr; }
.pb-grid.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; }
.pb-grid.n3 figure:first-child { grid-column: 1 / -1; }
.pb-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pb-grid figure { margin: 0; min-height: 0; display: flex; flex-direction: column; }
.pb-grid img, .pb-video-player { width: 100%; flex: 1 1 auto; min-height: 0; height: 100%; object-fit: cover; border-radius: var(--pb-radius); display: block; }
.pb-grid.portrait img { object-fit: contain; }
.pb-video-player { object-fit: contain; background: #000; }
.pb-grid figcaption { font-size: 2.1cqw; color: var(--pb-muted); margin-top: .8cqw; }
.pb-video { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.pb-video::after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 12cqw; height: 12cqw; border-radius: 50%; display: grid; place-items: center; font-size: 5cqw; color: #fff; background: rgba(16,35,42,.6); }
.pb-folio { position: absolute; bottom: 3.5cqw; left: 0; right: 0; text-align: center; font-size: 2.1cqw; color: var(--pb-muted); }
.pb-left .pb-folio { text-align: left; padding-left: 7cqw; }
.pb-right .pb-folio { text-align: right; padding-right: 7cqw; }
.pb-cover { background: var(--pb-cover); }
.pb-cover-img { position: absolute; inset: 0; background: center / cover no-repeat; }
.pb-cover-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,35,42,0) 35%, rgba(16,35,42,.8)); }
.pb-cover-text { position: absolute; left: 8cqw; right: 8cqw; bottom: 10cqw; color: #fff; }
.pb[data-theme="minimal"] .pb-cover-text { color: #222; }
.pb[data-theme="minimal"] .pb-cover-img::after { background: linear-gradient(180deg, transparent 50%, rgba(253,253,251,.9)); }
.pb-kicker { font-size: 2.4cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pb-cover-title { font-family: var(--pb-title); font-weight: var(--pb-title-weight); font-size: 9cqw; line-height: 1.05; margin: 1.5cqw 0; color: inherit; }
.pb-cover-sub { font-size: 3cqw; }
.pb-summary { flex: 0 0 auto; }
.pb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; margin-top: auto; margin-bottom: auto; }
.pb-stats strong { display: block; font-family: var(--pb-title); font-weight: var(--pb-title-weight); font-size: 8cqw; color: var(--pb-accent); line-height: 1; }
.pb-stats span { font-size: 2.6cqw; color: var(--pb-muted); }
.pb-chapter-inner, .pb-end-inner { justify-content: center; align-items: center; text-align: center; }
.pb[data-theme="magazine"] .pb-photos .pb-inner { inset: 0; }
.pb[data-theme="magazine"] .pb-photos .pb-continued { display: none; }
.pb[data-theme="magazine"] .pb-photos .pb-grid { gap: 0; }
.pb[data-theme="magazine"] .pb-photos .pb-grid figcaption { position: absolute; left: 4cqw; bottom: 4cqw; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pb[data-theme="magazine"] .pb-photos figure { position: relative; }
.pb[data-theme="magazine"] .pb-photos .pb-folio { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pb[data-theme="minimal"] .pb-inner { inset: 10cqw 10cqw 12cqw; }
.pb[data-theme="minimal"] .pb-header { text-transform: none; letter-spacing: 0; }
.pb[data-theme="roamsters"] .pb-header { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pb-leaf { transition: none; } .pb-in-next, .pb-in-prev { animation: none; } }
/* Samenstellen */
.pb-edit-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.pb-edit-photos label { position: relative; display: block; cursor: pointer; }
.pb-edit-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pb-edit-photos input { position: absolute; top: .35rem; left: .35rem; width: 1.1rem; height: 1.1rem; }
.pb-edit-photos input[type="checkbox"]:not(:checked) + img { opacity: .35; filter: grayscale(1); }
.pb-edit-photos input[type="radio"]:checked + * { outline: 3px solid var(--sunset); outline-offset: 2px; }
.pb-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.pb-theme-option { border: 2px solid var(--border); border-radius: 12px; padding: .6rem; display: flex; flex-direction: column; gap: .35rem; cursor: pointer; }
.pb-theme-option:has(input:checked) { border-color: var(--sunset); box-shadow: 0 0 0 2px var(--sunset); }
.pb-swatch { height: 46px; border-radius: 8px; display: flex; align-items: flex-end; padding: .3rem .45rem; font-weight: 800; font-size: .85rem; }

/* Advertenties: herkenbaar, afgeschermd iframe, nooit breder dan het scherm. Toestemmingsbalk onderaan. */
.ad-slot { margin: 1.5rem auto; text-align: center; max-width: 100%; }
.ad-slot iframe { border: 0; display: block; margin: 0 auto; max-width: 100%; background: transparent; }
.ad-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .25rem; }
.pb-ad-inner { justify-content: center; align-items: center; }
.pb-ad-inner .ad-slot { margin: 0; }
.pb-ad-plus { color: var(--pb-muted); }
.ad-placeholder { margin: 0 auto; background: rgba(127,127,127,.08); border-radius: 6px; max-width: 100%; }
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: var(--bg); border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(16,35,42,.12); padding: .75rem 0; }
.consent-banner p { max-width: 720px; }

/* Inspiratie: fotoboekkaarten */
.photobook-card .trip-card-cover { position: relative; }
.media-credit { display: block; font-size: .72rem; line-height: 1.3; color: var(--muted); margin-top: .2rem; overflow-wrap: anywhere; }
.media-credit a { color: inherit; }
.hero-credit .media-credit, .pb-cover-credit .media-credit { color: rgba(255,255,255,.85); }
.pb-grid .media-credit { font-size: 1.6cqw; color: var(--pb-muted); }
.pb-cover-credit { margin-top: 2cqw; }
.pb-cover-credit .media-credit { font-size: 1.8cqw; }
.example-banner { border-left: 4px solid var(--sunset); }
.photobook-card-badge { position: absolute; left: .75rem; bottom: .75rem; background: rgba(16,35,42,.75); color: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 700; }
