/* ── Layout ───────────────────────────────────────────────────────────────── */
.topo-main { padding: 0 0 2rem; }

.topo-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.topo-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}

/* ── Leaflet kaart ─────────────────────────────────────────────────────────── */
.map-wrap {
  flex: 0 0 auto;
  width: 100%;
  max-width: 460px;
  height: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,0,0,0.12);
  cursor: crosshair;
}

/* Leaflet container zelf */
.map-wrap .leaflet-container {
  background: #e8f0f5;
  cursor: crosshair !important;
  font-family: 'Nunito', sans-serif;
}

/* Kleine, subtiele attributietekst */
.map-wrap .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255,255,255,0.7);
  padding: 1px 4px;
}

/* ── Stadsmarkers ─────────────────────────────────────────────────────────── */
.map-dot {
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.30);
  box-sizing: border-box;
}

@keyframes pulse-marker {
  0%, 100% { transform: scale(1);   opacity: 1;    }
  50%       { transform: scale(1.4); opacity: 0.75; }
}

.map-dot-pulse {
  animation: pulse-marker 1s ease-in-out infinite;
}

/* ── Vraagpaneel ──────────────────────────────────────────────────────────── */
.question-panel {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.25rem;
}

#q-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #1f2937);
  line-height: 1.4;
}

#q-sub {
  font-size: 0.88rem;
  font-weight: 800;
  color: #9B72CF;
  margin-top: 0.15rem;
}

/* Meerkeuze-knoppen */
.choices { display: flex; flex-direction: column; gap: 0.45rem; }

.choice-btn {
  padding: 0.6rem 1rem;
  border-radius: 0.7rem;
  border: 2px solid #e5e7eb;
  background: var(--card-bg, white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  color: var(--text, #1f2937);
}
.choice-btn:hover:not(:disabled) { border-color: #FF6B9D; background: #fff0f5; }
.choice-btn.btn-correct          { background: #d1fae5; border-color: #10b981; color: #065f46; }
.choice-btn.btn-wrong            { background: #fee2e2; border-color: #ef4444; color: #991b1b; }

/* Feedback */
.topo-feedback {
  font-size: 0.97rem;
  font-weight: 700;
  min-height: 1.4em;
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
}
.fb-correct { color: #065f46; background: #d1fae5; }
.fb-wrong   { color: #991b1b; background: #fee2e2; }

/* Volgende-knop */
.next-btn {
  padding: 0.7rem 1.4rem;
  background: #FF6B9D;
  color: white;
  border: none;
  border-radius: 2rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  align-self: flex-start;
}
.next-btn:hover { background: #e85d8a; transform: translateY(-1px); }

/* ── Modusknoppen ─────────────────────────────────────────────────────────── */
.mode-btns { display: flex; gap: 0.5rem; }

.mode-btn {
  padding: 0.4rem 0.95rem;
  border-radius: 2rem;
  border: 2px solid #e0e0e0;
  background: var(--card-bg, white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
  color: var(--text, #333);
}
.mode-btn.active { background: #FF6B9D; border-color: #FF6B9D; color: white; }

/* Score */
.topo-score { display: flex; align-items: center; gap: 0.75rem; }

#score {
  font-size: 1.45rem;
  font-weight: 900;
  color: #FF6B9D;
}
#progress { font-size: 0.8rem; color: #aaa; font-weight: 600; }

/* ── Responsief (mobiel) ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .topo-layout        { flex-direction: column; gap: 1rem; }
  .map-wrap           { max-width: 100%; height: 320px; }
  .topo-header-row    { flex-direction: column; align-items: flex-start; }
  .question-panel     { padding-top: 0; }
  #q-text             { font-size: 1.05rem; }
}

/* ── Dark mode ────────────────────────────────────────────────────────────── */
[data-theme="dark"] .choice-btn             { border-color: #374151; }
[data-theme="dark"] .choice-btn.btn-correct { background: #065f46; border-color: #10b981; color: #d1fae5; }
[data-theme="dark"] .choice-btn.btn-wrong   { background: #7f1d1d; border-color: #ef4444; color: #fee2e2; }
[data-theme="dark"] .fb-correct             { background: #065f46; color: #d1fae5; }
[data-theme="dark"] .fb-wrong               { background: #7f1d1d; color: #fee2e2; }

/* Leaflet tile-laag is altijd licht — werkt het best voor topo */
[data-theme="dark"] .map-wrap .leaflet-control-attribution {
  background: rgba(0,0,0,0.5);
  color: #aaa;
}
[data-theme="dark"] .map-wrap .leaflet-control-attribution a { color: #93c5fd; }
