/* Foxy's speurkaart (Explore, 19 nov 2026): de promo-reel als vastgeprikte foto op de kaart van Speurdonk,
   met een vergrootglas om drie verstopte details te zoeken. Kaart: tools/site_tests/explore/speurkaart_svg.py,
   gedrag: speurkaart.js. De foto gebruikt de klassen van de schilderijen (galerij.css + galerij.js),
   enkel het uiterlijk verschilt. Beweging enkel met transform/opacity, niets bij 'minder beweging'. */

.speurkaart {
    position: relative;
    padding: 72px 0 84px;
    overflow: hidden;
    background-color: #0f0f22;
    /* hoogtelijnen, heel zacht */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.4'%3E%3Cpath d='M240 60c90 0 170 60 175 150s-60 190-170 195S50 330 60 230 150 60 240 60z'/%3E%3Cpath d='M240 110c62 0 118 42 121 104s-42 132-118 135-133-50-127-118 62-121 124-121z'/%3E%3Cpath d='M240 160c36 0 68 24 70 60s-24 76-68 78-77-29-73-68 35-70 71-70z'/%3E%3Cpath d='M-40 420c80-30 140 10 210-10s110-70 190-60 100 60 160 50'/%3E%3Cpath d='M-40 460c80-30 150 15 220-5s120-60 200-50 90 50 140 45'/%3E%3C/svg%3E");
    background-size: 480px 480px;
}
.speurkaart .section-header { position: relative; margin-bottom: 2.6rem; }
.speurkaart .section-header p { color: #c3c3dc; }
.speurkaart .section-tag { background: rgba(244, 231, 201, 0.12); color: #f4e7c9; border-color: rgba(244, 231, 201, 0.3); }

.speurkaart__tafel {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: center;
    max-width: 1092px;
    margin: 0 auto;
}

/* ---------- de foto (polaroid) met het filmpje ---------- */
.speurkaart .schilderij--foto {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
    width: auto;
    margin: 0 -44px 0 0;
    padding: 12px 12px 12px;
    align-items: stretch;
    background: #fbf8f1;
    border-radius: 3px;
    rotate: -3deg;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.55), 0 5px 12px rgba(0, 0, 0, 0.35);
    transition: rotate 0.35s ease, translate 0.35s ease;
}
.speurkaart .schilderij--foto:hover,
.speurkaart .schilderij--foto.is-film { rotate: 0deg; translate: 0 -4px; }
.speurkaart .schilderij--foto .schilderij__lijst,
.speurkaart .schilderij--foto:hover .schilderij__lijst {
    width: 100%;
    border: 0;
    border-image: none;
    box-shadow: none;
    translate: none;
    background: #0d0d1a;
}
.speurkaart .schilderij--foto .schilderij__doek::before { display: none; } /* geen doekstructuur: het is een foto */
.speurkaart .schilderij--foto .schilderij__knop {
    background: radial-gradient(circle at 35% 30%, #ffc3a3, #ff6b35 48%, #c2461c);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 0 6px rgba(13, 13, 26, 0.35);
}
.speurkaart .schilderij--foto .schilderij__knop svg { fill: #fff; }
.foto__punaise {
    position: absolute;
    top: -9px;
    left: 50%;
    z-index: 7;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ff9a7a, #e0402a 55%, #9e2414);
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.25);
}
.foto__onderschrift { display: block; padding: 11px 4px 1px; text-align: center; color: #3a2f22; line-height: 1.25; }
.foto__titel { display: block; font-weight: 800; font-size: 1.08rem; }
.foto__meta { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 600; color: #7a6a55; }

/* ---------- de kaart ---------- */
.speurkaart__kaart {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    aspect-ratio: 1100 / 700;
    border-radius: 6px;
    background: #f4e7c9;
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35);
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}
.speurkaart__svg { display: block; width: 100%; height: 100%; border-radius: inherit; }
.speurkaart__kaart::after { /* vouwen van een opgevouwen kaart + randje licht */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(120, 90, 50, 0.16) calc(33.3% - 1px), rgba(255, 255, 255, 0.35) calc(33.3% + 1px), transparent calc(33.3% + 9px)),
        linear-gradient(90deg, transparent calc(66.6% - 1px), rgba(120, 90, 50, 0.16) calc(66.6% - 1px), rgba(255, 255, 255, 0.35) calc(66.6% + 1px), transparent calc(66.6% + 9px)),
        linear-gradient(180deg, transparent calc(50% - 1px), rgba(120, 90, 50, 0.14) calc(50% - 1px), rgba(255, 255, 255, 0.3) calc(50% + 1px), transparent calc(50% + 8px)),
        radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(110, 80, 40, 0.18));
}
.speurkaart__svg text { font-family: Poppins, sans-serif; }
.sk-straat { font-size: 7.6px; font-weight: 600; font-style: italic; fill: #8f7652; letter-spacing: 0.4px; }
.sk-straat--beek { fill: #5f93a8; font-size: 8.5px; letter-spacing: 1.6px; }
.sk-plein { font-size: 12px; font-weight: 800; fill: #6f5531; letter-spacing: 0.5px; }
.sk-stop text { font-size: 13px; font-weight: 800; fill: #fff; }
.sk-krabbel { font-size: 5.3px; font-weight: 700; font-style: italic; fill: #b8432a; }
.sk-roos { font-size: 12px; font-weight: 800; fill: #5b4325; }
.sk-titel__klein { font-size: 11px; font-weight: 600; fill: #8f7652; letter-spacing: 1px; }
.sk-titel__groot { font-size: 25px; font-weight: 900; fill: #5b4325; letter-spacing: 3px; }
.sk-stempel { fill: none; stroke: #c0392b; stroke-width: 2.4; stroke-linecap: round; opacity: 0.85; }

/* ---------- het vergrootglas ---------- */
.loep {
    --d: 176px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: var(--d);
    height: var(--d);
    cursor: grab;
    touch-action: none;
    will-change: transform;
    filter: drop-shadow(10px 16px 12px rgba(40, 25, 10, 0.4));
    outline: none;
}
.loep[hidden] { display: none; }
.loep.is-sleep { cursor: grabbing; }
.speurkaart__kaart.is-muis { cursor: none; }
.speurkaart__kaart.is-muis .loep { cursor: none; }
.loep__glas {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f4e7c9;
}
.loep__beeld { display: block; width: 100%; height: 100%; }
.loep__glas::after { /* glans op het glas */
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 62%, rgba(90, 60, 20, 0.22) 100%);
}
.loep__rand {
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    pointer-events: none;
    border: 11px solid #c8962e;
    box-shadow: inset 0 0 0 1.5px #6e4a12, 0 0 0 1.5px #6e4a12, inset 0 3px 0 2px rgba(255, 236, 180, 0.55);
}
.loep__steel { /* steel naar rechts onder */
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 92px;
    margin-left: -12px;
    border-radius: 12px;
    transform-origin: 12px 0;
    transform: rotate(-45deg) translateY(calc(var(--d) / 2 + 4px));
    background: linear-gradient(90deg, #3d2412, #8b5a2b 45%, #5a3418);
    box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.35);
}
.loep__steel::before { /* koperen ring tussen glas en steel */
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: -2px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(90deg, #6e4a12, #f0cd78 45%, #8a5f19);
}
.loep:focus-visible .loep__rand { box-shadow: inset 0 0 0 1.5px #6e4a12, 0 0 0 4px var(--primary); }
.loep__chip {
    position: absolute;
    left: 50%;
    top: -34px;
    translate: -50% 0;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #4a90c8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transition: background-color 0.25s ease;
}
.loep__chip[hidden] { display: none; }
.loep__chip[data-stand="lauw"] { background: #9a8a6a; }
.loep__chip[data-stand="warm"] { background: #ef8a2c; }
.loep__chip[data-stand="heet"] { background: #e0402a; }

.speurkaart__hint {
    grid-column: 2;
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.speurkaart__hint[hidden] { display: none; }

/* ---------- Foxy en de speurlijst ---------- */
.speurkaart__onder {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
}
.speurkaart__onder[hidden] { display: none; }
.speurkaart__foxy { flex: 1 1 auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
.speurkaart__foxy img { flex: 0 0 96px; width: 96px; height: 96px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4)); }
.speurkaart__foxy .fx-bubble { flex: 1 1 auto; min-height: 76px; }
.speurkaart__foxy .fx-bubble.is-pop { animation: fx-pop 0.35s cubic-bezier(.2, .75, .2, 1.2); }

.speurlijst {
    position: relative;
    flex: 0 0 290px;
    padding: 18px 20px 16px;
    border-radius: 4px;
    background: #fbf3df;
    color: #3a2f22;
    rotate: 1.2deg;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}
.speurlijst::before { /* plakbandje */
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 86px;
    height: 22px;
    margin-left: -43px;
    rotate: -3deg;
    background: rgba(255, 250, 235, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.speurlijst__titel { margin: 0 0 8px; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8f7652; }
.speurlijst ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.speurlijst li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; }
.speurlijst__vakje {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #a8895d;
    border-radius: 4px;
    display: grid;
    place-items: center;
}
.speurlijst__vakje svg { width: 22px; height: 22px; fill: none; stroke: #c0392b; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 0.45s ease 0.05s; }
.speurlijst li.is-gevonden { color: #8f7652; text-decoration: line-through; text-decoration-color: rgba(192, 57, 43, 0.6); }
.speurlijst li.is-gevonden svg { stroke-dashoffset: 0; }
.speurlijst__sterren { display: flex; gap: 6px; margin: 12px 0 2px; }
.speurlijst__sterren svg { width: 28px; height: 28px; fill: #e4d6b3; stroke: #c8ad7e; stroke-width: 1; transition: fill 0.3s ease; }
.speurlijst__sterren svg.is-aan { fill: #f5b82e; stroke: #b8861d; }
.speurlijst__teller { margin: 2px 0 0; font-size: 0.8rem; font-weight: 600; color: #8f7652; }
.speurlijst__speel { margin-top: 12px; width: 100%; justify-content: center; }
.speurlijst__speel[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .speurlijst__sterren svg.is-aan { animation: fx-pop 0.45s cubic-bezier(.2, .75, .2, 1.2); }
    .loep.is-wenk { animation: sk-wenk 1.6s ease-in-out 3; }
}
@keyframes sk-wenk { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }

/* ---------- tablet en gsm: alles onder elkaar ---------- */
@media (max-width: 899px) {
    .speurkaart__tafel { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
    .speurkaart .schilderij--foto { grid-column: 1; grid-row: 1; justify-self: center; width: min(60%, 270px); margin: 0 0 30px; }
    .speurkaart__kaart { grid-column: 1; grid-row: 2; }
    .speurkaart__hint { grid-column: 1; }
    .speurkaart__onder { grid-column: 1; flex-direction: column; align-items: stretch; }
    .speurlijst { flex: none; rotate: 0.6deg; }
    /* de schilderij-regels voor gsm (galerij.css) gelden niet voor de foto */
    .speurkaart .schilderij--foto .schilderij__lijst { flex: none; border-width: 0; }
    .speurkaart .schilderij--foto .schilderij__label { display: inline; }
}
@media (max-width: 760px) {
    .speurkaart .schilderij--foto { flex-direction: column; padding: 10px 10px 10px; gap: 0; }
    .speurkaart .schilderij--foto .schilderij__label { display: none; }
}
@media (max-width: 599px) {
    .speurkaart { padding: 56px 0 64px; }
    .speurkaart__kaart { aspect-ratio: 1 / 1; }
    .loep { --d: 128px; }
    .loep__rand { inset: -8px; border-width: 8px; }
    .loep__steel { width: 18px; height: 66px; margin-left: -9px; transform-origin: 9px 0; }
    .loep__chip { top: -30px; font-size: 0.72rem; }
    .speurkaart__foxy img { flex-basis: 76px; width: 76px; height: 76px; }
    .speurkaart__foxy .fx-bubble { font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .speurkaart .schilderij--foto, .speurlijst__vakje svg, .speurlijst li { transition: none; }
}
