/* ===== Rondleidingen (js/tour.js) =====
   Een donkere laag met een gat rond het aangewezen element, en een kaartje met uitleg.
   Op gsm is het kaartje een blad onderaan (of bovenaan als het element onderaan staat). */

.tour-root { position: fixed; inset: 0; z-index: 2100; pointer-events: none; }
.tour-block { position: fixed; pointer-events: auto; background: transparent; }
.tour-root.is-center .tour-block { background: rgba(10, 16, 26, .55); }
.tour-hole {
    position: fixed; pointer-events: none; border-radius: 10px;
    box-shadow: 0 0 0 3px var(--condors-yellow), 0 0 0 9999px rgba(10, 16, 26, .55);
    transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
}
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none; } }

.tour-pop {
    position: fixed; pointer-events: auto; width: 360px; max-width: calc(100vw - 24px);
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28); padding: 14px 16px 10px;
}
.tour-pop.is-sheet-bottom, .tour-pop.is-sheet-top { left: 12px; right: 12px; width: auto; max-width: none; }
.tour-pop.is-sheet-bottom { bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; }
.tour-pop.is-sheet-top { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }

.tour-head { display: flex; align-items: flex-start; gap: 8px; }
.tour-count { flex: 1; font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.tour-x {
    flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.tour-x:hover { background: var(--canvas); color: var(--ink); }
.tour-title { font-size: 1.1rem; font-weight: 700; margin: 2px 0 6px; }
.tour-text { margin: 0 0 6px; line-height: 1.45; }
.tour-hint { margin: 0 0 6px; font-size: .875rem; font-weight: 600; color: var(--condors-blue); }
.tour-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tour-bar .btn { min-height: 40px; min-width: 88px; }
.tour-dots { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots span.past { background: var(--condors-blue); opacity: .45; }
.tour-dots span.on { background: var(--condors-blue); width: 18px; border-radius: 4px; }
.tour-stop {
    display: block; margin: 6px auto 0; padding: 6px 10px; border: 0; background: transparent;
    color: var(--muted); font-size: .825rem; text-decoration: underline; cursor: pointer;
}
.tour-stop:hover { color: var(--ink); }

/* Gepauzeerd op een andere pagina: een knop om verder te gaan. */
.tour-pill {
    position: fixed; z-index: 2050; left: 50%; transform: translateX(-50%);
    bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px;
    max-width: calc(100vw - 24px); padding: 8px 8px 8px 14px; border-radius: 999px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--condors-yellow); box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
.tour-pill-text { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tour-pill .btn { flex: none; min-height: 36px; border-radius: 999px; }
@media (min-width: 992px) { .tour-pill { bottom: 20px; } }

.tour-toast {
    position: fixed; z-index: 2150; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 12px; font-size: .9rem;
    background: var(--condors-navy); color: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); transition: opacity .4s ease;
}
.tour-toast.is-out { opacity: 0; }
@media (min-width: 992px) { .tour-toast { bottom: 24px; } }
[data-bs-theme="dark"] .tour-toast { background: #2A2C31; }
[data-bs-theme="dark"] .tour-pop { box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }

/* Rondleidingen op de helppagina */
.tour-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tour-card {
    display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit;
}
.tour-card:hover, .tour-card:focus-visible { border-color: var(--condors-blue); }
.tour-card strong { display: block; font-weight: 600; }
.tour-card small { display: block; color: var(--muted); margin-top: 2px; }
.tour-card .tour-card-ico {
    flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--condors-blue-soft); color: var(--condors-blue);
}
.tour-card .tour-card-go { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--condors-blue); }
.tour-card .tour-card-done { display: none; margin-left: 6px; font-size: .75rem; font-weight: 600; color: #198754; }
.tour-card.is-done .tour-card-done { display: inline; }
[data-bs-theme="dark"] .tour-card .tour-card-done { color: #5CC98A; }

.tour-resume {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 900px; margin: 0 0 12px;
    padding: 12px 14px; border-radius: var(--radius); background: var(--condors-yellow-soft); border: 1px solid var(--condors-yellow);
}
.tour-resume span { flex: 1 1 220px; }
.tour-resume .btn { min-height: 40px; }

.tour-start-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
