/* ================================================================
   mainstage — gedeelde statische CSS (identiek voor elk museum)
   Per-museum kleuren komen via --brand-bg/--brand-ink (zie ms_theme_vars()
   in inc/museum.inc.php + het kleine inline :root-blokje per pagina).
   Niet cachebaar hardcoderen wat per museum verschilt — alleen de 2
   merk-kleuren horen buiten dit bestand te blijven.
   ================================================================ */

/* === topbar (inc/topbar.inc.php) === */
.ig-topbar {
    background: var(--brand-bg);
    color: var(--brand-ink);
    padding: .5rem .875rem;
    /* Veilige zone bovenaan: in de PWA (black-translucent statusbalk) loopt
       content onder de klok/notch door; duw de balk daaronder. */
    padding-top: calc(.5rem + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .375rem;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 56px;
}

.ig-topbar-left {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 1;
    min-width: 0;
}

.ig-topbar-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

/* ── Gedeelde knop-stijl ── */
.ig-tb-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    padding: 0;
    opacity: .8;
    transition: opacity .15s, background .15s;
}
.ig-tb-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,.15);
}

.ig-tb-btn-lang {
    width: auto;
    padding: 0 .625rem;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ig-tb-btn-children {
    width: auto;
    padding: 0 .625rem;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 100px;
    opacity: 1;
}
.ig-tb-btn-children.ig-tb-audience-active {
    background: var(--brand-ink);
    color: var(--brand-bg);
}
.ig-tb-children-badge {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* ── Logo / initialen ── */
.ig-topbar-logo-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    border-radius: 3px;
    padding: 0;
    transition: opacity .15s;
    flex-shrink: 0;
}
.ig-topbar-logo-btn:hover { opacity: .85; }

.ig-topbar-logo-img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    border-radius: 3px;
}

.ig-topbar-initials {
    width: 40px;
    height: 40px;
    border: 2px solid var(--brand-ink);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--brand-ink);
    flex-shrink: 0;
    line-height: 1;
}

/* ── Slide-down menu ── */
.ig-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ig-topbar-h, 56px);
    z-index: 99;
    background: var(--brand-bg);
    color: var(--brand-ink);
    transform: translateY(-110%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.ig-menu.open {
    transform: translateY(0);
}

.ig-menu-item {
    display: flex;
    align-items: center;
    gap: .875rem;
    width: 100%;
    padding: .875rem 1.25rem;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    opacity: .9;
    transition: background .15s, opacity .15s;
    border-top: 1px solid rgba(255,255,255,.12);
}
.ig-menu-item:first-child { border-top: none; }
.ig-menu-item:hover {
    background: rgba(255,255,255,.1);
    opacity: 1;
}
.ig-menu-item.disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.ig-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    display: none;
}
.ig-menu-backdrop.open { display: block; }

/* ── Info modal + Logout modal (gedeelde sheet-stijl) ── */
.ig-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
    align-items: flex-end;
}
.ig-modal-overlay.open { display: flex; }

.ig-modal-sheet {
    background: #FAF8F5;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 2.5rem;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    animation: igSlideUp .22s ease-out;
}

/* Info modal: scrollable content, sticky close button */
#ig-info-modal .ig-modal-sheet {
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    padding-bottom: 0;
}
.ig-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding-bottom: 2.5rem;
}

@keyframes igSlideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.ig-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ig-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1C2B2D;
}

.ig-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #E8E1D6;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C2B2D;
    flex-shrink: 0;
    transition: background .15s;
}
.ig-modal-close:hover { background: #D8CFC4; }

/* Info modal stap-lijst */
.ig-modal-steps { display: flex; flex-direction: column; gap: 1rem; }
.ig-modal-step  { display: flex; gap: .875rem; align-items: flex-start; }

.ig-modal-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--brand-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: .1rem;
}

.ig-modal-step-text  { font-size: .9rem; color: #1C2B2D; line-height: 1.55; }
.ig-modal-step-label { font-weight: 700; display: block; margin-bottom: .1rem; }

/* Info modal — help intro tekst */
.ig-modal-intro {
    font-size: .875rem;
    color: #4A5B5D;
    line-height: 1.6;
    padding: .75rem 1rem;
    background: #F0EDE8;
    border-radius: 10px;
    border-left: 3px solid var(--brand-bg);
    margin-bottom: 1.25rem;
}

/* Info modal — sectie-kop */
.ig-modal-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #4A5B5D;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid #E8E1D6;
}

/* Info modal — sectie-scheiding */
.ig-modal-divider {
    height: 1px;
    background: #E8E1D6;
    margin: 1.25rem 0;
}

/* Info modal — games badge-reset knop */
.ig-modal-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .625rem;
    padding: .55rem 1rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    border: none;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.ig-modal-reset-btn:hover { opacity: .85; }

/* Info modal — bevestigingsbericht na reset */
.ig-modal-reset-confirm {
    display: none;
    margin-top: .625rem;
    font-size: .85rem;
    color: #1C2B2D;
    font-weight: 600;
    padding: .55rem .875rem;
    background: #DFF0E8;
    border-radius: 8px;
    border-left: 3px solid #2E7D52;
}
.ig-modal-reset-confirm.visible { display: block; }

/* Over modal — inhoudsblokken */
.ig-over-block {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 0;
}
.ig-over-block-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #4A5B5D;
}
.ig-over-block-value {
    font-size: .9rem;
    color: #1C2B2D;
    line-height: 1.55;
    white-space: pre-line;
}
.ig-over-block-value a {
    color: var(--brand-bg);
    text-decoration: none;
    font-weight: 600;
}
.ig-over-block-value a:hover { text-decoration: underline; }

/* Social link-knoppen */
.ig-over-socials {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .2rem;
}
.ig-over-social-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    background: #F0EDE8;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 600;
    color: #1C2B2D;
    text-decoration: none;
    transition: background .15s;
}
.ig-over-social-btn:hover { background: #E8E1D6; }

/* Hoog contrast — over modal */
html.ig-hc .ig-over-block-label { color: #aaa !important; }
html.ig-hc .ig-over-block-value { color: #fff !important; }
html.ig-hc .ig-over-block-value a { color: #7df !important; }
html.ig-hc .ig-over-social-btn { background: #222 !important; color: #fff !important; }

/* Hoog contrast aanpassingen */
html.ig-hc .ig-modal-intro { background: #222 !important; color: #fff !important; border-left-color: #fff !important; }
html.ig-hc .ig-modal-section-title { color: #aaa !important; border-bottom-color: #444 !important; }
html.ig-hc .ig-modal-divider { background: #444 !important; }
html.ig-hc .ig-modal-reset-btn { background: #fff !important; color: #000 !important; }
html.ig-hc .ig-modal-reset-confirm { background: #1a3a28 !important; color: #fff !important; }

/* Logout modal inhoud */
.ig-logout-body {
    color: #1C2B2D;
    margin-bottom: 1.5rem;
}
.ig-logout-question {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .625rem;
}
.ig-logout-time {
    font-size: .875rem;
    color: #4A5B5D;
    line-height: 1.55;
    padding: .75rem 1rem;
    background: #F0EDE8;
    border-radius: 10px;
    border-left: 3px solid var(--brand-bg);
}
.ig-logout-actions {
    display: flex;
    gap: .625rem;
}
.ig-logout-confirm {
    flex: 1;
    padding: .8rem 1rem;
    border: none;
    border-radius: 10px;
    background: #C0392B;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: opacity .15s;
}
.ig-logout-confirm:hover { opacity: .88; }
.ig-logout-cancel {
    flex: 1;
    padding: .8rem 1rem;
    border: 1px solid #D8CFC4;
    border-radius: 10px;
    background: #FAF8F5;
    color: #1C2B2D;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.ig-logout-cancel:hover { background: #F0EDE8; }

/* ── A11y knop actief-staat (normaal contrast) ── */
.ig-a11y-active {
    background: rgba(255,255,255,.25) !important;
}

/* ── Newsletter badge in menu ── */
.ig-nl-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .875rem;
    border-radius: 100px;
    border: 1.5px solid #2E7D52;
    background: transparent;
    min-height: 36px;
    transition: background .2s, border-color .2s;
}
.ig-nl-badge--in {
    background: #2E7D52;
    border-color: #2E7D52;
}
.ig-nl-badge-text {
    font-size: .82rem;
    color: inherit;
    line-height: 1.35;
    text-align: center;
}
.ig-nl-badge--in .ig-nl-badge-text { display: none; }
.ig-nl-badge-check { display: none; color: #fff; }
.ig-nl-badge--in .ig-nl-badge-check { display: block; }

html.ig-hc .ig-nl-badge { border-color: #fff !important; }
html.ig-hc .ig-nl-badge--in { background: #fff !important; }
html.ig-hc .ig-nl-badge--in .ig-nl-badge-check { color: #000 !important; }

/* ── Hoog contrast modus — topbar-elementen ── */
html.ig-hc .ig-topbar {
    background: #000 !important;
    color: #fff !important;
    border-bottom: 2px solid #fff;
}
html.ig-hc .ig-menu {
    background: #000 !important;
    color: #fff !important;
    border-bottom: 2px solid #333;
}
html.ig-hc .ig-menu-item { border-color: #333 !important; color: #fff !important; }
html.ig-hc .ig-menu-item:hover { background: #222 !important; }
html.ig-hc .ig-modal-sheet { background: #111 !important; }
html.ig-hc .ig-modal-title { color: #fff !important; }
html.ig-hc .ig-modal-close { background: #333 !important; color: #fff !important; }
html.ig-hc .ig-modal-step-text { color: #fff !important; }
html.ig-hc .ig-modal-step-num { background: #fff !important; color: #000 !important; }
html.ig-hc .ig-logout-body,
html.ig-hc .ig-logout-question { color: #fff !important; }
html.ig-hc .ig-logout-time {
    background: #222 !important;
    color: #fff !important;
    border-left-color: #fff !important;
}
html.ig-hc .ig-logout-cancel {
    background: #222 !important;
    color: #fff !important;
    border-color: #fff !important;
}
html.ig-hc .ig-a11y-active {
    background: #fff !important;
    color: #000 !important;
}
html.ig-hc .ig-tb-btn-children.ig-tb-audience-active {
    background: #fff !important;
    color: #000 !important;
}
html.ig-hc *:focus-visible {
    outline: 3px solid #FFFF00 !important;
    outline-offset: 2px !important;
}
/* ── Update-banner (nieuwe content beschikbaar) ── */
.ig-update-banner {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .6rem .875rem;
    background: var(--brand-ink);
    color: var(--brand-bg);
    font-size: .85rem;
    font-weight: 600;
    position: sticky;
    top: var(--ig-topbar-h, 56px);
    z-index: 95;
}
.ig-update-banner[hidden] { display: none; }
.ig-update-banner__text { flex: 1; }
.ig-update-banner__btn {
    border: none;
    background: var(--brand-bg);
    color: var(--brand-ink);
    font-weight: 700;
    font-size: .8rem;
    padding: .4rem .85rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.ig-update-banner__close {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    flex-shrink: 0;
    opacity: .7;
}
html.ig-hc .ig-update-banner { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
html.ig-hc .ig-update-banner__btn { background: #000 !important; color: #fff !important; }

/* Survey badge: no left-hand label, button centered, close pinned to the corner.
   Unlike the "update available" banner this one isn't meant to stay pinned while
   scrolling — a sticky pill kept re-covering the tour photo underneath it as the
   page scrolled. #id selector so this reliably wins over .ig-update-banner's
   position:sticky regardless of source order. */
#ig-survey-banner.ig-survey-banner {
    /* relative (not sticky/static) — keeps this a positioning context for the
       absolutely-placed close button below, without sticky's overlap-while-
       scrolling behavior. Must explicitly reset top: the shared .ig-update-banner
       rule sets top: var(--ig-topbar-h, 56px) for its sticky behavior — under
       position:relative that offset still applies and shoved this banner down
       over the first tour card's photo instead of leaving it inert. */
    position: relative;
    top: auto;
    justify-content: center;
}
#ig-survey-banner.ig-survey-banner .ig-update-banner__close {
    position: absolute;
    right: .875rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Lucide icon baseline ── */
.ig-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.ig-modal-step-num .ig-icon { width: 15px; height: 15px; }
.ig-tb-btn .ig-icon { width: 20px; height: 20px; }
.ig-icon-lang { width: 16px; height: 16px; }
.ig-tb-btn.ig-tb-offline-done { opacity: .55; }

/* === login (login.php) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Basis, gedeeld door alle 5 pagina's (login/language/install/tours/poi) — was
   voorheen 5x los gedupliceerd binnen dit bestand, met o.a. de achtergrondkleur
   verschillend per pagina-type. Omdat het allemaal in één stylesheet staat wint
   bij een botsende `html, body`-regel de laatst-gedefinieerde voor ALLE pagina's
   (niet alleen de pagina waar 'ie bij hoort) — vandaar nu expliciete scoping per
   pagina-type i.p.v. herhaalde bare-element-selectors. */
html, body {
    min-height: 100dvh;
    font-family: system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* login.php, language.php, install.php: volledige achtergrond in museumkleur */
body.ms-page-branded {
    background: var(--brand-bg);
}

/* login.php, install.php: gecentreerde kaart-layout */
body.ms-page-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    gap: .875rem;
}

.lg-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: .25rem;
}

body.ms-page-card .lg-logo img {
    max-height: 50vw;
    max-width: 50vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
    border-radius: 25px;
}

body.ms-page-card .lg-museum-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--brand-ink);
    text-align: center;
    width: 100%;
    max-width: 420px;
}

.lg-status {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    width: 100%;
    max-width: 420px;
    font-size: .925rem;
    line-height: 1.55;
    text-align: center;
    color: var(--brand-ink);
}

.lg-status strong { font-weight: 700; }

.lg-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 32px rgba(0,0,0,.12);
}

.lg-label {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: #1C2B2D;
    margin-bottom: .55rem;
}

.lg-hint {
    font-size: .8rem;
    color: #667;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.lg-input {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid #D0CECE;
    border-radius: 10px;
    outline: none;
    color: #1C2B2D;
    background: #fff;
    transition: border-color .15s;
}

.lg-input:focus { border-color: var(--brand-bg); }

.lg-input-code {
    text-align: center;
    letter-spacing: .55em;
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: .9rem .5rem;
}

.lg-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -.01em;
    transition: opacity .15s;
}

.lg-btn:hover  { opacity: .88; }
.lg-btn:active { opacity: .75; }

.lg-resend {
    display: block;
    margin-top: 1.1rem;
    text-align: center;
    font-size: .875rem;
    color: #555;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    width: 100%;
}

.lg-resend:disabled {
    opacity: .35;
    cursor: default;
    text-decoration: none;
}

.lg-error {
    margin-top: .75rem;
    font-size: .875rem;
    color: #c0392b;
    text-align: center;
}

/* ── Child mode ── */
.lg-child-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: 100%;
    max-width: 420px;
    padding: .7em 1.2em;
    background: #E6F4EF;
    color: #1A6B3C;
    border: 1.5px solid #A8D9CC;
    border-radius: 99px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.lg-child-badge:hover { background: #D6F0E4; }

.lg-child-badge svg { flex-shrink: 0; }

.lg-back-link {
    display: block;
    width: 100%;
    max-width: 420px;
    text-align: center;
    font-size: .875rem;
    color: var(--brand-ink);
    opacity: .75;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    padding: .35rem 0;
}
.lg-back-link:hover { opacity: 1; }

.lg-optin {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-top: 1rem;
    font-size: .85rem;
    color: #445;
    line-height: 1.45;
    cursor: pointer;
}

.lg-optin input[type="checkbox"] {
    margin-top: .15rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--brand-bg);
    cursor: pointer;
}

.lg-input-pin {
    background: #E6F4EF;
    border-color: #A8D9CC;
    text-align: center;
    letter-spacing: .45em;
    font-size: 1.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: .9rem .5rem;
}
.lg-input-pin:focus { border-color: #1A6B3C; outline: none; }

.lg-btn-child {
    background: #1A6B3C;
    color: #fff;
}

/* Hoog contrast modus */
html.ig-hc,
html.ig-hc body { background: #000 !important; color: #fff !important; }
html.ig-hc .lg-museum-name { color: #fff !important; }
html.ig-hc .lg-card {
    background: #111 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}
html.ig-hc .lg-label { color: #fff !important; }
html.ig-hc .lg-input,
html.ig-hc .lg-input-pin {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
html.ig-hc .lg-input::placeholder { color: #888 !important; }
html.ig-hc .lg-btn {
    background: #fff !important;
    color: #000 !important;
}
html.ig-hc .lg-alert {
    background: #222 !important;
    color: #fff !important;
    border-color: #fff !important;
}
html.ig-hc .lg-hint { color: #ccc !important; }
html.ig-hc .lg-resend { color: #FFFF00 !important; }
html.ig-hc *:focus-visible {
    outline: 3px solid #FFFF00 !important;
    outline-offset: 2px !important;
}

/* === language (language.php) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* language.php: lijst-layout die bovenaan begint i.p.v. centreert */
body.ms-page-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25vh 1.25rem 2rem;
    gap: 1.5rem;
}

.lg-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: .25rem;
}

body.ms-page-list .lg-logo img {
    max-height: 25vw;
    max-width: 25vh;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius, 12px);
}

body.ms-page-list .lg-museum-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--brand-ink);
    text-align: center;
    width: 100%;
}

.lg-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-ink);
    opacity: .6;
    text-align: center;
    letter-spacing: .01em;
}

.lg-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
    max-width: 420px;
}

.lg-lang-btn {
    display: flex;
    align-items: center;
    gap: .875rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px;
    padding: .9rem 1.1rem;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background .15s;
}

.lg-lang-btn:hover,
.lg-lang-btn:focus { background: rgba(255,255,255,.22); outline: none; }

.lg-flag { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.lg-lang-name { flex: 1; }
.lg-arrow { opacity: .5; flex-shrink: 0; }

/* Kindermodus-toggle: los, versleepbaar rondje (48px kinderfoto) met
   een continu ronddraaiende tekstring eromheen, alleen aanwezig als
   minstens één taal kindercontent heeft. Rust-positie is onderaan
   gecentreerd (net als voorheen); JS zet 'm bij het eerste sleepje
   om naar vrije left/top-positionering (zie script onderaan). Tikken
   (zonder sleep) schakelt .lg-kids-mode op .lg-list: talen zónder
   kindertour verdwijnen (zie regel hieronder) en de overgebleven
   taalknoppen sturen audience=children i.p.v. adults. */
.lg-list.lg-kids-mode .lg-lang-form:not(.lg-has-kids) { display: none; }

.lg-kids-toggle {
    position: fixed;
    left: 50%;
    bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    z-index: 6;
}
.lg-kids-toggle:active { cursor: grabbing; }

/* Reserveert ruimte onderaan de flex-flow zodat de vast-gepositioneerde
   rust-stand van het rondje (200px) niet over de taallijst heen valt.
   Puur decoratief — zodra iemand het rondje wegsleept blijft deze
   ruimte gewoon leeg, maar dat is een acceptabele afweging t.o.v.
   standaard onleesbare tekst eronder. */
.lg-kids-spacer {
    width: 100%;
    height: calc(200px + env(safe-area-inset-bottom, 0px));
}

.lg-kids-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: lg-kids-ring-spin 12s linear infinite;
}
@keyframes lg-kids-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.lg-kids-ring-text {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .03em;
    fill: var(--brand-ink);
}

.lg-kids-circle {
    position: relative;
    width: 132px;
    height: 132px;
    flex-shrink: 0;
}
.lg-kids-circle img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter .2s;
    -webkit-user-drag: none;
    user-drag: none;
}
.lg-kids-toggle.lg-kids-active .lg-kids-circle img {
    filter: invert(14%);
}

/* Sleep-hint: klein "vingertje" dat vlak na het laden 2x over de
   poppetjes schuift om te laten zien dat het rondje versleepbaar is.
   Speelt automatisch af (animation-iteration-count:2) en blijft
   daarna onzichtbaar (fill-mode:both + eindstand opacity:0) — geen
   JS-timer nodig om 'm te stoppen. JS verbergt 'm bovendien meteen
   zodra iemand zelf al begint te slepen/tikken (zie script onderaan). */
.lg-kids-finger-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(255,255,255,.35) 60%, rgba(255,255,255,0) 76%);
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: lg-kids-finger-hint 2.6s ease-in-out 1s 2 both;
}
@keyframes lg-kids-finger-hint {
    0%   { opacity: 0; transform: translate(-28px, 18px) scale(.85); }
    15%  { opacity: 1; transform: translate(-28px, 18px) scale(1); }
    50%  { opacity: 1; transform: translate(28px, -18px) scale(1); }
    65%  { opacity: 0; transform: translate(28px, -18px) scale(.85); }
    100% { opacity: 0; }
}

/* A11y toggle knop: vast linksboven in het scherm */
.lg-a11y-btn {
    position: fixed;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    left: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--brand-ink);
    opacity: .65;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    padding: .5rem .875rem;
    border-radius: 20px;
    border: 1px solid var(--brand-ink-a44);
    background: var(--brand-bg);
    transition: opacity .15s, background .15s;
}
.lg-a11y-btn:hover { opacity: 1; background: rgba(255,255,255,.12); }

/* Hoog contrast modus */
html.ig-hc,
html.ig-hc body { background: #000 !important; color: #fff !important; }
html.ig-hc .lg-title { color: #fff !important; opacity: 1; }
html.ig-hc .lg-lang-btn {
    background: #111 !important;
    border-color: #fff !important;
    color: #fff !important;
}
html.ig-hc .lg-lang-btn:hover,
html.ig-hc .lg-lang-btn:focus { background: #222 !important; outline: none; }
html.ig-hc .lg-museum-name { color: #fff !important; }
html.ig-hc .lg-kids-ring-text { fill: #fff !important; }
html.ig-hc .lg-a11y-btn {
    color: #fff !important;
    border-color: #fff !important;
    background: #000 !important;
    opacity: 1;
}
html.ig-hc *:focus-visible {
    outline: 3px solid #FFFF00 !important;
    outline-offset: 2px !important;
}

/* === install (install.php) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



.iv-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: .25rem;
}
.iv-logo img {
    max-height: 56px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
}
.iv-museum-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--brand-ink);
    text-align: center;
    width: 100%;
    max-width: 420px;
}

.iv-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 32px rgba(0,0,0,.12);
    text-align: center;
}

.iv-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin: 0 auto 1.1rem;
    display: block;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.iv-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1C2B2D;
    margin-bottom: .6rem;
}

.iv-body {
    font-size: .95rem;
    line-height: 1.55;
    color: #556;
    margin-bottom: 1.4rem;
}

.iv-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -.01em;
    transition: opacity .15s;
    text-decoration: none;
    text-align: center;
}
.iv-btn:hover  { opacity: .88; }
.iv-btn:active { opacity: .75; }

.iv-later {
    display: block;
    margin-top: 1.1rem;
    text-align: center;
    font-size: .9rem;
    color: #667;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    width: 100%;
}
.iv-later:hover { color: #1C2B2D; }

/* ── iOS instructions ── */
.iv-ios-title {
    font-size: .95rem;
    font-weight: 700;
    color: #1C2B2D;
    margin-bottom: 1rem;
    text-align: left;
}
.iv-steps {
    list-style: none;
    text-align: left;
    margin-bottom: 1.4rem;
}
.iv-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 0;
    font-size: .95rem;
    line-height: 1.4;
    color: #334;
}
.iv-step + .iv-step { border-top: 1px solid #F0ECE5; }
.iv-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--brand-ink);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.iv-share-icon {
    flex-shrink: 0;
    color: var(--brand-bg);
    vertical-align: middle;
}

/* iOS share-arrow hint die naar de systeembalk wijst */
.iv-ios-hint {
    position: fixed;
    left: 50%;
    bottom: .5rem;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    color: var(--brand-ink);
    animation: iv-bounce 1.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes iv-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

[hidden] { display: none !important; }

/* Hoog-contrast modus */
html.ig-hc, html.ig-hc body { background: #000 !important; }
html.ig-hc .iv-museum-name { color: #fff !important; }
html.ig-hc .iv-card {
    background: #111 !important;
    border: 2px solid #fff !important;
}
html.ig-hc .iv-title { color: #fff !important; }
html.ig-hc .iv-body,
html.ig-hc .iv-step { color: #ddd !important; }
html.ig-hc .iv-ios-title { color: #fff !important; }
html.ig-hc .iv-btn { background: #fff !important; color: #000 !important; }
html.ig-hc .iv-step-num { background: #fff !important; color: #000 !important; }
html.ig-hc .iv-share-icon { color: #fff !important; }
html.ig-hc .iv-later { color: #FFFF00 !important; }
html.ig-hc *:focus-visible {
    outline: 3px solid #FFFF00 !important;
    outline-offset: 2px !important;
}

/* === gedeelde tour-badges (was inc/badge_styles.inc.php, gebruikt door tours.php + poi.php) === */
.ig-badge {
    display: inline-flex;
    align-items: center;
    padding: .18em .55em;
    border-radius: 3px;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.ig-badge-primary  { background: var(--brand-bg); color: var(--brand-ink); }
.ig-badge-lang     { background: #fff; color: var(--brand-bg); }
.ig-badge-children { background: #E6F4EF; color: #1A6B3C; }
.ig-badge-outdoor  { background: #E6F0F4; color: #1A5A8C; }

/* === tours (tours.php) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* tours.php, poi.php: neutrale achtergrond, museumkleur alleen in componenten */
body.ms-page-content {
    background: #FAF8F5;
    color: #1C2B2D;
}

/* ── Tour grid ── */
.ig-tours {
    padding: 1.25rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Tour card ── */
.ig-tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8E1D6;
    display: flex;
    flex-direction: column;
}

/* Volledige foto-area is de start-link */
.ig-tour-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #E8E1D6;
    flex-shrink: 0;
    position: relative;
    display: block;
    text-decoration: none;
    transition: filter .15s;
}
.ig-tour-thumb:hover,
.ig-tour-thumb:active { filter: brightness(.9); }

.ig-tour-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-bg-a22);
    color: #C8BEB4;
}

/* Subtiel play-icoon rechtsboven op de foto */
.ig-tour-play {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 34px;
    height: 34px;
    background: rgba(0,0,0,.38);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

/* Card body */
.ig-tour-body {
    padding: 1rem 1.1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ig-tour-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: .25rem;
    line-height: 1.25;
}
.ig-tour-tagline {
    font-size: .875rem;
    color: #4A5B5D;
    line-height: 1.5;
    margin-bottom: .65rem;
}
/* Meer over de tour knop */
.ig-tour-info-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    align-self: flex-start;
    padding: .38em .75em;
    border: 1.5px solid var(--brand-bg);
    border-radius: 8px;
    background: transparent;
    color: var(--brand-bg);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.ig-tour-info-btn:hover { background: var(--brand-bg-a18); }

/* Badge overlay op de foto */
.ig-tour-badges {
    position: absolute;
    bottom: .65rem;
    left: .65rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

/* ── Favorites-pseudotour: live mozaïek van favoriete thumbnails ── */
.ig-fav-mosaic {
    display: grid;
    gap: 2px;
    background: #E8E1D6;
}
.ig-fav-mosaic-1 { grid-template-columns: 1fr; }
.ig-fav-mosaic-2 { grid-template-columns: 1fr 1fr; }
.ig-fav-mosaic-3,
.ig-fav-mosaic-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ig-fav-mosaic-cell {
    background-size: cover;
    background-position: center;
    background-color: var(--brand-bg-a22);
}
.ig-fav-heart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-bg);
    opacity: .35;
}
.ig-fav-heart-empty .ig-icon { width: 40px; height: 40px; }
html.ig-hc .ig-fav-mosaic { background: #333 !important; }
html.ig-hc .ig-fav-mosaic-cell { background-color: #111 !important; }
html.ig-hc .ig-fav-heart-empty { color: #fff !important; }

/* ── Tour detail popup ── */
.ig-tour-modal-sheet {
    max-height: 82dvh;
    overflow-y: auto;
}

.ig-tour-detail-desc {
    font-size: .9rem;
    line-height: 1.65;
    color: #1C2B2D;
    margin-bottom: 1.25rem;
}
.ig-tour-detail-desc p         { margin-bottom: .6rem; }
.ig-tour-detail-desc p:last-child { margin-bottom: 0; }
.ig-tour-detail-desc strong    { font-weight: 700; }
.ig-tour-detail-desc em        { font-style: italic; }
.ig-tour-detail-desc ul,
.ig-tour-detail-desc ol        { padding-left: 1.25rem; margin-bottom: .6rem; }
.ig-tour-detail-desc li        { margin-bottom: .2rem; }

.ig-tour-detail-section { margin-top: 1.25rem; }
.ig-tour-detail-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: .5rem;
}

.ig-tour-detail-langs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.ig-tour-detail-lang {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .3em .65em;
    background: #F0EDE8;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 500;
    color: #1C2B2D;
}

.ig-tour-detail-counts {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}
.ig-tdc {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .75rem .5rem;
    background: #F0EDE8;
    border-radius: 10px;
    text-align: center;
}
.ig-tdc-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1C2B2D;
    line-height: 1;
}
.ig-tdc-lbl {
    font-size: .7rem;
    color: #4A5B5D;
    line-height: 1.3;
}

.ig-tour-detail-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .9rem 1rem;
    margin-top: 1.5rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
}
.ig-tour-detail-start:hover { opacity: .88; }

/* Empty state */
.ig-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #666;
}

/* Hoog contrast */
html.ig-hc body                  { background: #000 !important; color: #fff !important; }
html.ig-hc .ig-tour-card         { background: #111 !important; border-color: #fff !important; }
html.ig-hc .ig-tour-title        { color: #fff !important; }
html.ig-hc .ig-tour-tagline      { color: #ccc !important; }
html.ig-hc .ig-tour-meta         { color: #aaa !important; }
html.ig-hc .ig-tour-no-photo     { background: #111 !important; }
html.ig-hc .ig-empty             { color: #ccc !important; }
html.ig-hc .ig-tour-play         { background: rgba(255,255,255,.3) !important; }
html.ig-hc .ig-tour-info-btn     { border-color: #fff !important; color: #fff !important; }
html.ig-hc .ig-tour-detail-desc  { color: #fff !important; }
html.ig-hc .ig-tour-detail-label { color: #aaa !important; }
html.ig-hc .ig-tour-detail-lang  { background: #333 !important; color: #fff !important; }
html.ig-hc .ig-tdc               { background: #333 !important; }
html.ig-hc .ig-tdc-num           { color: #fff !important; }
html.ig-hc .ig-tdc-lbl           { color: #ccc !important; }
html.ig-hc .ig-tour-detail-start { background: #fff !important; color: #000 !important; }
html.ig-hc *:focus-visible { outline: 3px solid #FFFF00 !important; outline-offset: 2px !important; }

/* ── Tour splash screen ── */
.ig-splash {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 8000;
    display: none;
    background: rgba(0,0,0,.92);
}
.ig-splash--active { display: block; }

.ig-splash__photo {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
}

/* Portrait photo on portrait devices, landscape on wider screens */
.ig-splash__photo--p { display: block; }
.ig-splash__photo--l { display: none; }
@media (min-aspect-ratio: 1/1) {
    .ig-splash__photo--p { display: none; }
    .ig-splash__photo--l { display: block; }
}

/* Dark gradient over the lower 60% for legibility */
.ig-splash__gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
    pointer-events: none;
}

/* Progress wrap — centred at 75% from top (= middle of the lower half) */
.ig-splash__progress {
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 2.5rem;
}

.ig-splash__track {
    height: 6px;
    background: rgba(255,255,255,.25);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: .75rem;
}

.ig-splash__fill {
    height: 100%;
    width: 0%;
    background: var(--brand-bg);
    border-radius: 3px;
    transition: width .2s ease-out;
}

.ig-splash__pct {
    text-align: center;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .05em;
}

/* ── PWA offline-download prompt (alleen in standalone PWA) ── */
.ig-pwa-dl {
    position: fixed; inset: 0; z-index: 9000;
    display: none;
    align-items: center; justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,.6);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ig-pwa-dl.open { display: flex; }
.ig-pwa-dl__card {
    background: #fff; color: #1C2B2D;
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    max-width: 380px; width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.ig-pwa-dl__icon { font-size: 2.5rem; line-height: 1; margin-bottom: .75rem; }
.ig-pwa-dl__title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.ig-pwa-dl__body { font-size: .95rem; line-height: 1.5; color: #44524f; margin-bottom: 1.4rem; }
.ig-pwa-dl__btn {
    display: block; width: 100%;
    padding: .9rem 1.4rem;
    border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer;
}
.ig-pwa-dl__btn--go { background: var(--brand-bg); color: #fff; margin-bottom: .6rem; }
.ig-pwa-dl__btn--go:active { opacity: .85; }
.ig-pwa-dl__btn--skip { background: transparent; color: #6b7a76; }
.ig-pwa-dl__track { height: 8px; background: #e6ebe9; border-radius: 4px; overflow: hidden; margin: 1rem 0 .6rem; }
.ig-pwa-dl__fill { height: 100%; width: 0%; background: var(--brand-bg); border-radius: 4px; transition: width .2s ease-out; }
.ig-pwa-dl__pct { font-size: .85rem; font-weight: 600; color: #44524f; }
.ig-pwa-dl__detail { font-size: .8rem; color: #6b7a76; margin-top: .35rem; }
html.ig-hc .ig-pwa-dl__detail { color: #ccc !important; }
html.ig-hc .ig-pwa-dl__card { background: #000 !important; color: #fff !important; border: 2px solid #fff; }
html.ig-hc .ig-pwa-dl__body { color: #ccc !important; }
html.ig-hc .ig-pwa-dl__btn--go { background: #fff !important; color: #000 !important; }
html.ig-hc .ig-pwa-dl__btn--skip { color: #ccc !important; }
html.ig-hc .ig-pwa-dl__fill { background: #fff !important; }

/* === poi (poi.php) === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* topbar: zie inc/topbar.inc.php */

/* ── View toggle + zoekbalk ── */
.ig-view-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem .25rem;
    max-width: 540px;
    margin: 0 auto;
}
.ig-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .25rem;
    background: #fff;
    border: 1.5px solid #E8E1D6;
    border-radius: 8px;
    padding: 0 .5rem;
    min-width: 0;
    transition: border-color .18s;
}
.ig-search-wrap:focus-within { border-color: var(--brand-bg); }
.ig-search-icon { color: #C0B4AA; flex-shrink: 0; pointer-events: none; }
#ig-search {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: .875rem;
    color: #1C2B2D;
    padding: .52rem 0;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}
#ig-search::placeholder { color: #C0B4AA; font-style: italic; }
#ig-search::-webkit-search-cancel-button { display: none; }
#ig-search-clear {
    display: none;
    border: none;
    background: none;
    color: #B0A49A;
    cursor: pointer;
    padding: .2rem .1rem;
    font-size: .75rem;
    line-height: 1;
    flex-shrink: 0;
}
#ig-search-clear.visible { display: block; }
.ig-view-tourbadge {
    flex: 1;
    display: none;
    align-items: center;
    background: var(--brand-bg);
    color: var(--brand-ink);
    border-radius: 8px;
    padding: .6rem .8rem;
    min-width: 0;
}
.ig-view-tourbadge span {
    font-size: .875rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ig-view-toggle {
    display: inline-flex;
    background: #E8E1D6;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}
.ig-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.ig-view-btn {
    background: none;
    border: none;
    padding: .3rem .55rem;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    opacity: .45;
    transition: background .15s, opacity .15s;
}
.ig-view-btn .ig-icon { width: 18px; height: 18px; }
.ig-view-btn.active {
    background: #fff;
    opacity: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ── POI card grid ── */
.ig-poi-grid {
    padding: .5rem .75rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .625rem;
    max-width: 540px;
    margin: 0 auto;
}
.ig-poi-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E1D6;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.ig-poi-card-thumb {
    position: relative;
    aspect-ratio: 3/4;
    background: var(--brand-bg-a22);
    overflow: hidden;
}
.ig-poi-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ig-poi-card-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8BEB4;
}

.ig-poi-card-body {
    position: relative;
    padding: .55rem .6rem .65rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

/* ── Favoriet-hartje ── */
.ig-poi-fav-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.ig-poi-fav-btn .ig-icon { width: 16px; height: 16px; color: var(--brand-bg); }
.ig-poi-fav-btn--item {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: .25rem;
    flex-shrink: 0;
}
.ig-poi-fav-btn--item .ig-icon { width: 18px; height: 18px; }
html.ig-hc .ig-poi-fav-btn { background: #000 !important; border: 1px solid #fff; }
html.ig-hc .ig-poi-fav-btn--item { border: none; }
html.ig-hc .ig-poi-fav-btn .ig-icon { color: #fff !important; }
.ig-poi-card-title {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1C2B2D;
}
.ig-poi-card-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    
    gap: .3rem;
}
.ig-poi-badge-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 1;

}
.ig-poi-badge-pill-num {
    height: 26px;
    min-width: 26px;
    padding: 0 .45rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
}
.ig-poi-badge-pill-icons {
    height: 26px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 .5rem 0 .35rem;
    background: var(--brand-bg-a1a);
    color: var(--brand-bg);
}
.ig-poi-badge-pill-icons .ig-icon { width: 19.5px; height: 19.5px; }
.ig-poi-meta { display: flex; align-items: center; gap: 3px; flex-shrink: 0; color: #5A6E70; font-size: .85rem; }
.ig-poi-meta .ig-icon { width: 14px; height: 14px; }

/* ── POI list ── */
.ig-poi-list {
    padding: .25rem .75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 540px;
    margin: 0 auto;
}
.ig-poi-item {
    display: flex;
    align-items: center;
    gap: .875rem;
    background: #fff;
    border-radius: 12px;
    padding: .875rem 1rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E8E1D6;
}
.ig-poi-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ig-poi-name {
    font-size: .95rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.ig-poi-arrow { color: #bbb; flex-shrink: 0; }

/* ── QR-scanner ── */
.ig-scan-wrap {
    padding: .75rem .75rem 1.5rem;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.ig-scan-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 20px;
    overflow: hidden;
    background: #10171a;
}
.ig-scan-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ig-scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    aspect-ratio: 1/1;
    max-width: 220px;
    border: 3px solid #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.5);
    overflow: hidden;
}
.ig-scan-frame.is-hit { border-color: #4CAF6A; }
.ig-scan-line {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 8%;
    height: 2px;
    background: var(--brand-bg);
    box-shadow: 0 0 8px var(--brand-bg);
    animation: ig-scan-sweep 2.2s ease-in-out infinite;
}
@keyframes ig-scan-sweep {
    0%, 100% { top: 8%; }
    50%      { top: 90%; }
}
@media (prefers-reduced-motion: reduce) {
    .ig-scan-line { animation: none; }
}
.ig-scan-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: .8rem 1rem;
    background: rgba(10,14,16,.7);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: #fff;
    text-align: center;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background .15s;
}
.ig-scan-banner.is-error   { background: rgba(179,38,30,.85); }
.ig-scan-banner.is-success { background: rgba(46,125,70,.88); }

/* POI detail */
.ig-poi-detail { padding-bottom: 5rem; }

/* ── Foto slider ── */
.ig-poi-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--brand-bg-a22);
}
.ig-num-badge-overlay {
    position: absolute;
    bottom: .625rem;
    left: .625rem;
    z-index: 10;
    font-size: .9rem;
    font-weight: 700;
    padding: .2em .55em;
    border-radius: 6px;
    background: var(--brand-bg);
    color: var(--brand-ink);
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.ig-poi-slides {
    display: flex;
    height: 100%;
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
@keyframes ig-slider-peek {
    0%   { transform: translateX(0);    }
    35%  { transform: translateX(-10%); }
    65%  { transform: translateX(-10%); }
    100% { transform: translateX(0);    }
}
.ig-poi-slides.ig-peek {
    animation: ig-slider-peek .85s ease-in-out;
    transition: none;
}
.ig-poi-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Before/After slide ── */
.ig-ba-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y; /* laat verticaal scrollen toe, onderschep alleen horizontaal */
    user-select: none;
    -webkit-user-select: none;
}
.ig-ba-after {
    position: absolute;
    inset: 0;
}
.ig-ba-after img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.ig-ba-before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
    transition: clip-path .0s; /* geen transitie — volgt vinger live */
}
.ig-ba-before img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.ig-ba-handle {
    position: absolute;
    left: var(--ba-pos, 50%);
    top: 0; bottom: 0;
    width: 0;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}
.ig-ba-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(0,0,0,.45);
}
.ig-ba-btn {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C2B2D;
}
.ig-ba-label {
    position: absolute;
    bottom: .6rem;
    background: rgba(0,0,0,.52);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .15em .55em;
    border-radius: 4px;
    pointer-events: none;
    z-index: 4;
}
.ig-ba-label-before { left: .6rem; }
.ig-ba-label-after  { right: .6rem; }

.ig-poi-dots {
    position: absolute;
    bottom: .625rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .4rem;
    z-index: 2;
}
.ig-poi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.ig-poi-dot.active {
    background: #fff;
    transform: scale(1.35);
}
.ig-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.32);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 0 .05rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2;
    transition: background .15s;
}
.ig-slider-btn:hover { background: rgba(0,0,0,.5); }
.ig-slider-btn:disabled { opacity: .25; pointer-events: none; }
.ig-slider-prev { left: .625rem; }
.ig-slider-next { right: .625rem; }

.ig-poi-cover-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--brand-bg);
    opacity: .3;
}

.ig-poi-body {
    padding: 1.25rem 1.25rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.ig-poi-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin-bottom: .35rem;
}

/* ── POI head-badge (nummer + titel + tour) ── */
.ig-poi-headbadge {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .35rem 1.1rem .35rem .35rem;
    background: var(--brand-bg-a1a);
    border-radius: 100px;
    margin-bottom: 1rem;
}
.ig-poi-headbadge-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-bg);
    color: var(--brand-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.ig-poi-headbadge-text { min-width: 0; }
.ig-poi-headbadge-title {
    color: var(--brand-bg);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.ig-poi-headbadge-tour {
    color: var(--brand-bg);
    opacity: .55;
    font-size: .85rem;
    font-weight: 500;
    margin-top: .15rem;
}
html.ig-hc .ig-poi-headbadge { background: #111 !important; border: 1px solid #fff; }
html.ig-hc .ig-poi-headbadge-title,
html.ig-hc .ig-poi-headbadge-tour { color: #fff !important; opacity: 1; }

/* ── POI tekst-kaart (zelfde stijl als head-badge) ── */
.ig-poi-textcard {
    background: var(--brand-bg-a1a);
    border-radius: 18px;
    padding: 1rem 1.25rem;
}
html.ig-hc .ig-poi-textcard { background: #111 !important; border: 1px solid #fff; }
html.ig-hc .ig-poi-textcard .ig-poi-text { color: #fff !important; }

.ig-year-badge {
    display: block;
    width: fit-content;
    margin-left: auto;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand-bg);
    background: var(--brand-bg-a1a);
    border-radius: 100px;
    padding: .35em .9em;
    margin-bottom: .75rem;
}
html.ig-hc .ig-year-badge { background: #111 !important; color: #fff !important; border: 1px solid #fff; }

.ig-poi-text {
    font-size: .95rem;
    line-height: 1.7;
    color: #2A3A3C;
}

.ig-poi-text p { margin-bottom: .75rem; }
.ig-poi-text h2, .ig-poi-text h3 { margin: 1rem 0 .4rem; font-weight: 700; }
.ig-poi-text ul, .ig-poi-text ol { padding-left: 1.4rem; margin-bottom: .75rem; }

/* ── Immersive audio player ── */
.ig-audio-player {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: hidden;
}
.ig-ap-bg { position: absolute; inset: 0; }
.ig-ap-bg-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.ig-ap-bg-slide.active { opacity: 1; }
.ig-ap-gradient {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.52) 0%,
        rgba(0,0,0,.15) 35%,
        rgba(0,0,0,.15) 55%,
        rgba(0,0,0,.78) 100%
    );
    pointer-events: none;
}
.ig-ap-content {
    position: relative; z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 56px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    overflow: hidden;
}
/* Track list */
.ig-ap-tracks {
    padding: .75rem .875rem .375rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex-shrink: 0;
}
.ig-ap-track {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    padding: .65rem .9rem;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    width: 100%;
}
.ig-ap-track.active {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.55);
}
.ig-ap-track-title {
    flex: 1;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
/* Waveform */
.ig-ap-wave {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .2s;
}
.ig-ap-track.active .ig-ap-wave { opacity: .5; }
.ig-ap-track.active.playing .ig-ap-wave { opacity: 1; }
.ig-ap-wave span {
    display: block; width: 3px;
    border-radius: 2px; background: #fff;
    transform-origin: bottom;
}
.ig-ap-wave span:nth-child(1) { height: 8px; }
.ig-ap-wave span:nth-child(2) { height: 14px; }
.ig-ap-wave span:nth-child(3) { height: 6px; }
@keyframes ig-wave-anim {
    0%,100% { transform: scaleY(.35); }
    50%     { transform: scaleY(1);   }
}
.ig-ap-track.active.playing .ig-ap-wave span:nth-child(1) { animation: ig-wave-anim .7s ease-in-out infinite; }
.ig-ap-track.active.playing .ig-ap-wave span:nth-child(2) { animation: ig-wave-anim .7s ease-in-out .18s infinite; }
.ig-ap-track.active.playing .ig-ap-wave span:nth-child(3) { animation: ig-wave-anim .7s ease-in-out .36s infinite; }
/* Center */
.ig-ap-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .875rem;
    min-height: 0;
}
.ig-ap-badge {
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
}
.ig-ap-play {
    width: 76px; height: 76px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.88);
    background: rgba(0,0,0,.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .1s;
}
.ig-ap-play:active { transform: scale(.91); }
/* Progress */
.ig-ap-progress {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .25rem 1.25rem .375rem;
    flex-shrink: 0;
}
.ig-ap-time {
    color: rgba(255,255,255,.78);
    font-size: .76rem;
    font-weight: 500;
    min-width: 33px;
    font-variant-numeric: tabular-nums;
}
.ig-ap-time:last-child { text-align: right; }
.ig-ap-bar {
    flex: 1; height: 36px;
    display: flex; align-items: center;
    cursor: pointer; position: relative;
}
.ig-ap-bar-track {
    position: absolute; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.28);
    border-radius: 2px;
}
.ig-ap-bar-fill {
    position: absolute; left: 0;
    height: 3px; width: 0%;
    background: #fff; border-radius: 2px;
    pointer-events: none;
}
.ig-ap-bar-thumb {
    position: absolute;
    width: 13px; height: 13px;
    border-radius: 50%; background: #fff;
    transform: translateX(-50%); left: 0%;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
/* Controls strip */
.ig-ap-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: .25rem 1.25rem .375rem;
    flex-shrink: 0;
}
.ig-ap-ctrl {
    position: relative;
    width: 46px; height: 46px;
    border: none; background: none;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: .88;
    transition: opacity .15s, transform .1s;
}
.ig-ap-ctrl:active { transform: scale(.86); opacity: 1; }
.ig-ap-ctrl-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .53rem; font-weight: 900; color: #fff;
    margin-top: 6px; pointer-events: none;
}
.ig-ap-ctrl.no-transcript { opacity: .28; pointer-events: none; }
/* POI title */
.ig-ap-title {
    text-align: center;
    padding: .375rem 1.5rem .625rem;
    color: rgba(255,255,255,.88);
    font-size: .9rem; font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,.65);
    letter-spacing: -.01em;
    flex-shrink: 0;
}
.ig-ap-title-num { opacity: .6; margin-right: .2rem; }
/* Bottom sheets */
.ig-sheet-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 300;
    align-items: flex-end; justify-content: center;
}
.ig-sheet-overlay.open { display: flex; }
.ig-sheet {
    background: #FAF8F5;
    border-radius: 20px 20px 0 0;
    width: 100%; max-width: 560px;
    max-height: 75dvh;
    display: flex; flex-direction: column;
    animation: igSlideUp .22s ease-out;
}
.ig-sheet-handle {
    width: 36px; height: 4px;
    background: #D8CFC4; border-radius: 2px;
    margin: .75rem auto .25rem; flex-shrink: 0;
}
.ig-sheet-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: .375rem 1.25rem .75rem;
    border-bottom: 1px solid #E8E1D6; flex-shrink: 0;
}
.ig-sheet-title { font-size: .95rem; font-weight: 700; color: #1C2B2D; }
.ig-sheet-close {
    width: 30px; height: 30px; border: none;
    background: #E8E1D6; border-radius: 50%; cursor: pointer;
    color: #1C2B2D; font-size: .78rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .15s;
}
.ig-sheet-close:hover { background: #D8CFC4; }
.ig-sheet-body {
    padding: 1rem 1.25rem 2.5rem;
    overflow-y: auto; flex: 1;
    -webkit-overflow-scrolling: touch;
    font-size: .92rem; line-height: 1.7; color: #1C2B2D;
}
.ig-sheet-body p { margin-bottom: .75rem; }
.ig-sheet-body h2, .ig-sheet-body h3 { margin: 1rem 0 .4rem; font-weight: 700; }
.ig-sheet-body ul, .ig-sheet-body ol { padding-left: 1.4rem; margin-bottom: .75rem; }

/* ── Legpuzzel ── */
.ig-puzzle-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: .75rem .75rem 0;
}
.ig-puzzle-grid {
    display: grid;
    gap: 3px;
    background: #1C2B2D;
    border: 3px solid #1C2B2D;
    border-radius: 10px;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
.ig-puzzle-piece {
    cursor: pointer;
    transition: opacity .12s;
    -webkit-tap-highlight-color: transparent;
    outline: 0 solid transparent;
}
.ig-puzzle-piece.selected {
    opacity: .65;
    outline: 3px solid rgba(255,255,255,.9);
    outline-offset: -3px;
}
.ig-puzzle-done {
    display: none;
    position: absolute;
    inset: .75rem .75rem 0;
    border-radius: 10px;
    background: rgba(250,248,245,.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.ig-puzzle-done.is-visible {
    display: flex;
    animation: ig-pz-in .4s ease both;
}
@keyframes ig-pz-in {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}
.ig-puzzle-done-inner { text-align: center; padding: 1.5rem 1.25rem; }
.ig-puzzle-done-star {
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    animation: ig-pz-bounce .5s ease .15s both;
}
@keyframes ig-pz-bounce {
    0%   { transform: scale(0) rotate(-15deg); }
    60%  { transform: scale(1.3) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}
.ig-puzzle-done-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1C2B2D;
    margin: .5rem 0 1.25rem;
    letter-spacing: -.03em;
}
.ig-puzzle-done-next {
    display: inline-block;
    background: var(--brand-bg);
    color: var(--brand-ink);
    padding: .65rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.ig-puzzle-done-next:active { opacity: .8; }

/* ── Quiz ── */
.ig-quiz-question {
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem 1rem .5rem;
    color: #1C2B2D;
}
.ig-quiz-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    padding: .5rem 1rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}
.ig-quiz-card {
    background: #fff;
    border: 2px solid #E8E1D6;
    border-radius: 12px;
    padding: .85rem .75rem;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, background .15s;
    user-select: none;
    min-height: 150px;
    min-width: 150px;
}
.ig-quiz-card:active { opacity: .8; }
.ig-quiz-card.ig-quiz-correct {
    background: #e6f4ea;
    border-color: #34a853;
    color: #1e7e34;
}
.ig-quiz-card.ig-quiz-wrong {
    background: #fdecea;
    border-color: #ea4335;
    color: #c5221f;
}
.ig-quiz-card.ig-quiz-done { pointer-events: none; }

.ig-quiz-done-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.ig-quiz-done-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.ig-quiz-done-sheet {
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    text-align: center;
    width: 100%;
    max-width: 480px;
}
.ig-quiz-done-star { margin-bottom: .5rem; }
.ig-quiz-done-star .ig-icon { width: 2.5rem; height: 2.5rem; color: var(--brand-bg); }
.ig-quiz-done-title { font-size: 1.3rem; font-weight: 700; color: #1C2B2D; margin-bottom: 1rem; }
.ig-quiz-done-next {
    display: inline-block;
    margin-top: .25rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    padding: .65rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.ig-quiz-done-next:active { opacity: .8; }

/* ── Trofeeënbanner ── */
/* ── Trofeeën-pil (zelfde badge-stijl als de head-badge) ── */
.ig-trophy-wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: .25rem .75rem 0;
}
.ig-trophy-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem .75rem;
    background: var(--brand-bg-a1a);
    border-radius: 100px;
    margin-bottom: 1rem;
}
.ig-trophy-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform .15s;
}
.ig-trophy-item:active { transform: scale(.92); }
.ig-trophy-icon { display: block; width: 22px; height: 22px; color: var(--brand-bg); opacity: .3; transition: opacity .2s; }
.ig-trophy-item.ig-trophy-done .ig-trophy-icon { opacity: 1; }
html.ig-hc .ig-trophy-pill { background: #111 !important; border: 1px solid #fff; }
html.ig-hc .ig-trophy-item { background: #000 !important; border: 1px solid #fff; }
html.ig-hc .ig-trophy-icon { color: #fff !important; opacity: .4; }
html.ig-hc .ig-trophy-item.ig-trophy-done .ig-trophy-icon { opacity: 1; }

/* POI nav */
.ig-poi-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-bg);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: .625rem .875rem;
    padding-bottom: calc(.625rem + env(safe-area-inset-bottom));
    z-index: 90;
}

.ig-poi-nav a,
.ig-poi-nav span {
    display: flex;
    align-items: center;
    color: var(--brand-ink);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    min-height: 44px;
}

.ig-poi-nav-prev { justify-content: flex-start; }
.ig-poi-nav-next { justify-content: flex-end; }

.ig-poi-nav-all {
    justify-content: center;
    padding: .5rem .875rem;
    border-radius: 8px;
    border: 1.5px solid var(--brand-ink-a33);
}

.ig-poi-nav .disabled { opacity: .3; }

/* ── Terug-naar-scanner FAB (alleen bij QR-binnenkomst) ── */
.ig-scan-return-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(74px + env(safe-area-inset-bottom));
    z-index: 91;
    display: flex;
    align-items: center;
    gap: .45rem;
    background: var(--brand-bg);
    color: var(--brand-ink);
    border: none;
    border-radius: 999px;
    padding: .6rem 1rem .6rem .7rem;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.ig-scan-return-fab .ig-icon { width: 18px; height: 18px; }

/* Hoog contrast modus */
html.ig-hc body { background: #000 !important; color: #fff !important; }
html.ig-hc .ig-poi-card { background: #111 !important; border-color: #fff !important; }
html.ig-hc .ig-poi-card-thumb { background: #111 !important; }
html.ig-hc .ig-poi-card-title { color: #fff !important; }
html.ig-hc .ig-poi-item { background: #111 !important; border-color: #fff !important; }
html.ig-hc .ig-poi-name { color: #fff !important; }
html.ig-hc .ig-poi-arrow { color: #888 !important; }
html.ig-hc .ig-poi-title { color: #fff !important; }
html.ig-hc .ig-poi-text { color: #eee !important; }
html.ig-hc .ig-poi-text p,
html.ig-hc .ig-poi-text li { color: #eee !important; }
html.ig-hc .ig-poi-nav {
    background: #000 !important;
    border-top: 2px solid #fff;
}
html.ig-hc .ig-poi-nav a,
html.ig-hc .ig-poi-nav span { color: #fff !important; }
html.ig-hc .ig-poi-nav-all { border-color: #fff !important; }
html.ig-hc .ig-view-toggle { background: #222 !important; }
html.ig-hc .ig-view-btn { color: #ccc !important; }
html.ig-hc .ig-view-btn.active { background: #fff !important; color: #000 !important; }
html.ig-hc .ig-search-wrap { background: #111 !important; border-color: #fff !important; }
html.ig-hc .ig-view-tourbadge { background: #fff !important; color: #000 !important; }
html.ig-hc .ig-scan-frame { border-color: #FFFF00 !important; }
html.ig-hc .ig-scan-frame.is-hit { border-color: #4CAF6A !important; }
html.ig-hc .ig-scan-line { background: #FFFF00 !important; box-shadow: 0 0 8px #FFFF00 !important; }
html.ig-hc .ig-scan-banner { background: rgba(0,0,0,.9) !important; color: #fff !important; }
html.ig-hc .ig-scan-return-fab { background: #fff !important; color: #000 !important; border: 2px solid #fff !important; }

/* ── GPS: constante indicator (geen tab) ── */
.ig-gps-indicator {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-left: .5rem;
    padding: .35rem .65rem;
    border: 1px solid #E8E1D6;
    border-radius: 99px;
    background: #fff;
    font-size: .75rem;
    font-weight: 600;
    color: #4A5B5D;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.ig-gps-indicator-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #C8BEB4;
    flex-shrink: 0;
}
.ig-gps-indicator[data-state="active"] {
    border-color: var(--brand-bg);
    color: var(--brand-bg);
    cursor: default;
}
.ig-gps-indicator[data-state="active"] .ig-gps-indicator-dot {
    background: var(--brand-bg);
    animation: ig-gps-pulse-anim 1.8s ease-out infinite;
}
.ig-gps-indicator[data-state="denied"] {
    color: #A33;
    border-color: #E8C4C0;
    cursor: default;
}
.ig-gps-indicator[data-state="denied"] .ig-gps-indicator-dot { background: #C0392B; }
@keyframes ig-gps-pulse-anim {
    0%   { box-shadow: 0 0 0 0 var(--brand-bg-a55); }
    100% { box-shadow: 0 0 0 6px var(--brand-bg-a00); }
}
@media (prefers-reduced-motion: reduce) {
    .ig-gps-indicator[data-state="active"] .ig-gps-indicator-dot { animation: none; }
}

.ig-gps-optin-banner {
    display: none;
    align-items: center;
    gap: .6rem;
    margin: 0 1rem .75rem;
    padding: .7rem .9rem;
    background: #FFF3CD;
    border: 1px solid #F0C040;
    border-radius: 10px;
    color: #7A5000;
    font-size: .825rem;
    line-height: 1.4;
}
.ig-gps-optin-banner.is-visible { display: flex; }
.ig-gps-optin-banner .ig-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Zone-highlight — the POI's own card/item lights up when it comes into
   GPS range, in both the grid and the list view, instead of a separate
   floating banner. The card/item is already the link into the POI. */
.ig-gps-near-badge {
    display: none;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 700;
}
.ig-gps-near-badge .ig-icon { width: 13px; height: 13px; }

/* Grid card: badge overlaid on the thumbnail, card gets a glowing ring */
.ig-poi-card-thumb .ig-gps-near-badge {
    position: absolute;
    top: .5rem; left: .5rem;
    z-index: 2;
    padding: .3rem .55rem;
    border-radius: 99px;
    background: var(--brand-bg);
    color: var(--brand-ink);
}
.ig-poi-card.is-gps-near {
    box-shadow: 0 0 0 3px var(--brand-bg);
    animation: ig-gps-near-pulse 1.8s ease-in-out infinite;
}
@keyframes ig-gps-near-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--brand-bg); }
    50%      { box-shadow: 0 0 0 3px var(--brand-bg-a99); }
}

/* List item: inline pill next to the name, item gets a tinted background */
.ig-gps-near-badge--item {
    padding: .2rem .5rem;
    border-radius: 99px;
    background: var(--brand-bg);
    color: var(--brand-ink);
    flex-shrink: 0;
}
.ig-poi-item.is-gps-near {
    background: var(--brand-bg-a14);
    border-color: var(--brand-bg);
}

.ig-poi-card.is-gps-near .ig-gps-near-badge,
.ig-poi-item.is-gps-near .ig-gps-near-badge { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
    .ig-poi-card.is-gps-near { animation: none; }
}

/* Background-pause toast (Page Visibility) */
.ig-gps-toast {
    position: fixed;
    left: 1rem; right: 1rem; top: calc(env(safe-area-inset-top, 0px) + 3.75rem);
    z-index: 7500;
    display: none;
    padding: .7rem .9rem;
    background: rgba(0,0,0,.85);
    color: #fff;
    border-radius: 10px;
    font-size: .8rem;
    text-align: center;
}
.ig-gps-toast.is-visible { display: block; }

/* Geblurred "Resume"-scherm: gate vóór (her)start van GPS-tracking */
.ig-gps-resume-gate {
    position: fixed;
    inset: 0;
    z-index: 8500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(28,43,45,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ig-gps-resume-gate[hidden] { display: none; }
.ig-gps-resume-card {
    max-width: 20rem;
    width: 100%;
    background: var(--bg);
    border-radius: var(--radius, 12px);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.ig-gps-resume-card svg { width: 2rem; height: 2rem; color: var(--teal); margin-bottom: .6rem; }
.ig-gps-resume-card p { margin: 0 0 1rem; color: var(--ink); font-size: .9rem; line-height: 1.4; }
.ig-gps-resume-card button {
    border: 0;
    background: var(--teal);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .65rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
}
.ig-gps-resume-card button:active { background: var(--teal-deep); }

/* Tijdelijk diagnostisch paneel (?gpsdebug=1) */
.ig-gps-debug {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-height: 40vh;
    overflow-y: auto;
    margin: 0;
    padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(0,0,0,.9);
    color: #7CFC7C;
    font: 11px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
    white-space: pre-wrap;
    word-break: break-word;
    z-index: 99999;
    border-top: 2px solid #7CFC7C;
}
.ig-gps-debug[hidden] { display: none; }

html.ig-hc .ig-gps-indicator { background: #111 !important; border-color: #fff !important; color: #fff !important; }
html.ig-hc .ig-gps-near-badge { background: #FFFF00 !important; color: #000 !important; }
html.ig-hc .ig-poi-card.is-gps-near { box-shadow: 0 0 0 3px #FFFF00 !important; }
html.ig-hc .ig-poi-item.is-gps-near { background: #222 !important; border-color: #FFFF00 !important; }
html.ig-hc .ig-gps-optin-banner { background: #222 !important; color: #fff !important; border-color: #fff !important; }
html.ig-hc #ig-search { color: #fff !important; }
html.ig-hc #ig-search::placeholder { color: #888 !important; }
html.ig-hc #ig-search-clear { color: #ccc !important; }
html.ig-hc .ig-sheet { background: #111 !important; }
html.ig-hc .ig-sheet-title { color: #fff !important; }
html.ig-hc .ig-sheet-body { color: #eee !important; }
html.ig-hc .ig-sheet-body p,
html.ig-hc .ig-sheet-body li { color: #eee !important; }
html.ig-hc .ig-sheet-close { background: #333 !important; color: #fff !important; }
html.ig-hc .ig-sheet-header { border-color: #444 !important; }
html.ig-hc *:focus-visible { outline: 3px solid #FFFF00 !important; outline-offset: 2px !important; }

/* ── Videospeler ── */
.ig-vp-wrap { padding-bottom: 5rem; }

/* Sticky video blok (portrait) */
.ig-vp-sticky {
    position: sticky;
    top: 56px;
    z-index: 10;
    background: #000;
}
.ig-vp-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}
.ig-vp-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Controls overlay op de video */
.ig-vp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transition: opacity .3s;
}
.ig-vp-overlay.ig-vp-hidden { opacity: 0; pointer-events: none; }
.ig-vp-overlay-top {
    padding: .5rem .625rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.ig-vp-overlay-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
}
.ig-vp-overlay-bottom {
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
    padding: .5rem .875rem calc(.5rem + env(safe-area-inset-bottom));
}
.ig-vp-play {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.88);
    background: rgba(0,0,0,.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .1s;
}
.ig-vp-play:active { transform: scale(.88); }

/* Minimize — alleen zichtbaar in forced fullscreen (.ig-vp-fs op body) */
.ig-vp-minimize {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .1s;
    flex-shrink: 0;
}
.ig-vp-minimize:active { transform: scale(.88); }
body.ig-vp-fs .ig-vp-minimize { display: flex; }

/* "Rotate for fullscreen"-hint: landscape video, scherm nog in portrait. Sits in normal
   flow right below the play button (inside .ig-vp-overlay-center) instead of being
   pinned a fixed distance from the container bottom — the old bottom-anchored offset
   was tuned for one specific layout and drifted out of place under PWA safe-area
   insets / whenever the thumbnail strip changed height, causing it to overlap. Being a
   flex sibling of the play button keeps it correctly placed regardless of what's above
   or below it. */
.ig-vp-rotate-hint {
    align-items: center;
    gap: .4rem;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .45rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity .3s;
    pointer-events: none;
}
/* [hidden] moet display:none kunnen winnen — display niet los op de basisklasse zetten */
.ig-vp-rotate-hint:not([hidden]) { display: flex; }
.ig-vp-rotate-hint.ig-vp-hidden { opacity: 0; }

/* Progress + skip (hergebruik audio-stijlen) */
.ig-vp-progress {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .35rem;
}
.ig-vp-time {
    color: rgba(255,255,255,.82);
    font-size: .72rem;
    font-weight: 500;
    min-width: 30px;
    font-variant-numeric: tabular-nums;
}
.ig-vp-time:last-child { text-align: right; }
.ig-vp-bar {
    flex: 1; height: 32px;
    display: flex; align-items: center;
    cursor: pointer; position: relative;
}
.ig-vp-bar-track {
    position: absolute; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,.28); border-radius: 2px;
}
.ig-vp-bar-fill {
    position: absolute; left: 0;
    height: 3px; width: 0%;
    background: #fff; border-radius: 2px; pointer-events: none;
}
.ig-vp-bar-thumb {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%; background: #fff;
    transform: translateX(-50%); left: 0%;
    pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.ig-vp-skip-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.ig-vp-skip-row-left {
    justify-self: start;
}
.ig-vp-skip-row-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.ig-vp-skip {
    position: relative;
    width: 42px; height: 42px;
    border: none; background: none;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: .88; transition: opacity .15s, transform .1s;
}
.ig-vp-skip:active { transform: scale(.86); opacity: 1; }
.ig-vp-skip-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .5rem; font-weight: 900; color: #fff;
    margin-top: 6px; pointer-events: none;
}

/* Playlist (portrait, onder video) */
.ig-vp-body {
    padding: 1.25rem 1.25rem .75rem;
    max-width: 600px;
    margin: 0 auto;
}
.ig-vp-playlist {
    padding: 0 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    max-width: 600px;
    margin: 0 auto;
}
.ig-vp-track {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(28,43,45,.06);
    border: 1.5px solid #E8E1D6;
    border-radius: 12px;
    padding: .5rem .9rem .5rem .5rem;
    color: #1C2B2D;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    width: 100%;
    text-align: left;
}
.ig-vp-track.active {
    background: var(--brand-bg-a18);
    border-color: var(--brand-bg);
}
.ig-vp-track-poster {
    width: 72px;
    aspect-ratio: 16/9;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--brand-bg-a22);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ig-vp-track-poster img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ig-vp-track-poster-icon { color: var(--brand-bg); opacity: .6; }
.ig-vp-track-info { flex: 1; min-width: 0; }
.ig-vp-track-title {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ig-vp-track-active-label {
    font-size: .72rem;
    color: var(--brand-bg);
    font-weight: 600;
    margin-top: .15rem;
    display: none;
}
.ig-vp-track.active .ig-vp-track-active-label { display: block; }

/* Fullscreen playlist thumbnails — lives inside .ig-vp-overlay-bottom, right above the
   progress bar. Portrait (default): horizontal strip in normal flow, just above the
   progress bar. Landscape: detached into a vertical column pinned to the right edge
   (positioned against .ig-vp-container, the nearest positioned ancestor). */
.ig-vp-sidebar {
    display: none;
    flex-direction: row;
    gap: 6px;
    padding: 0;
    margin-bottom: .5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    transition: opacity .3s;
}
.ig-vp-sidebar.ig-vp-hidden { opacity: 0; pointer-events: none; }
.ig-vp-sidebar-item {
    position: relative;
    width: 84px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: rgba(255,255,255,.18);
    flex-shrink: 0;
    transition: border-color .18s;
}
.ig-vp-sidebar-item.active { border-color: rgba(255,255,255,.85); }
.ig-vp-sidebar-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-vp-sidebar-no-poster {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
}
.ig-vp-sidebar-num {
    position: absolute; bottom: 2px; right: 4px;
    color: #fff; font-size: .58rem; font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
@media (orientation: landscape) {
    body.ig-vp-fs .ig-vp-sidebar {
        position: absolute;
        left: auto; right: 0; top: 0; bottom: 60px;
        width: 108px;
        flex-direction: column;
        gap: 6px;
        padding: 8px;
        margin-bottom: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }
    body.ig-vp-fs .ig-vp-sidebar-item { width: 100%; }
}

/* Forced fullscreen — JS-driven (.ig-vp-fs op body): altijd bij op Play drukken, en
   ook wanneer het toestel naar landscape draait terwijl er nog niet is afgespeeld.
   Vult gewoon de huidige viewport (portrait of landscape, wat het ook is) — de
   <video> zelf blijft object-fit:contain, dus een landscape-video op een nog-portrait
   scherm toont met zwarte balken tot de bezoeker draait (zie .ig-vp-rotate-hint). */
body.ig-vp-fs .ig-vp-sticky {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 200;
    aspect-ratio: unset;
}
body.ig-vp-fs .ig-vp-container {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
}
body.ig-vp-fs .ig-vp-body,
body.ig-vp-fs .ig-vp-playlist { display: none; }
body.ig-vp-fs .ig-vp-sidebar { display: flex; }
body.ig-vp-fs .ig-vp-overlay-bottom {
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
}
/* Nav verbergen in fullscreen */
body.ig-vp-fs .ig-poi-nav { display: none; }
body.ig-vp-fs .ig-scan-return-fab { display: none; }

/* === survey modal (inc/survey_modal.inc.php) === */
/* Alleen geïncludeerd via inc/topbar.inc.php, dat op zijn beurt alleen in
   tours.php/poi.php geladen wordt — --brand-bg/--brand-ink staan dus al. */
.ig-survey-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400;
}
.ig-survey-overlay.active { display: block; }
.ig-survey-modal {
    display: none; position: fixed; z-index: 410; left: 0; right: 0; bottom: 0;
    max-height: 88vh; overflow-y: auto; background: #fff; color: #1a1a1a;
    border-radius: 16px 16px 0 0; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    flex-direction: column; gap: 1rem;
}
@media (min-width: 640px) {
    .ig-survey-modal {
        left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%);
        width: 100%; max-width: 480px; border-radius: 16px;
    }
}
.ig-survey-modal.active { display: flex; }
.ig-survey-modal h2 { margin: 0; font-size: 1.05rem; }
.ig-survey-q { display: flex; flex-direction: column; gap: .5rem; }
.ig-survey-q-text { font-size: .92rem; font-weight: 500; }
.ig-survey-stars { display: flex; gap: .35rem; }
.ig-survey-star {
    background: none; border: none; padding: 0; cursor: pointer; line-height: 1;
    font-size: 1.9rem; color: #D8D4CE;
}
.ig-survey-star.filled { color: var(--brand-bg); }
.ig-survey-open textarea {
    width: 100%; box-sizing: border-box; min-height: 5rem; border-radius: 10px;
    border: 1px solid #D8D4CE; padding: .6rem .75rem; font: inherit; resize: vertical;
}
.ig-survey-submit {
    border: none; border-radius: 100px; padding: .75rem 1rem; font-weight: 700;
    font-size: .95rem; cursor: pointer;
    background: var(--brand-bg); color: var(--brand-ink);
}
.ig-survey-submit:disabled { opacity: .5; cursor: default; }
.ig-survey-close {
    align-self: flex-end; background: none; border: none; font-size: 1.4rem;
    line-height: 1; cursor: pointer; color: #8a8580; padding: .25rem;
}
.ig-survey-thanks { text-align: center; padding: 1rem 0; }
.ig-survey-reward-code {
    font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; margin: .75rem 0;
    background: #F7F5F2; border-radius: 10px; padding: .75rem; color: #1a1a1a;
}
