/* ====== HUD (center top) ====== */
#hud {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  background: rgba(20, 20, 25, 0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-align: center;
  pointer-events: none; /* laat kaartinteractie toe onder de HUD */
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ====== Puzzle panel (bottom sheet) ====== */
#puzzelPanel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
  max-height: 55vh;
  overflow: auto;
  padding: 14px;
  transform: translateY(100%);           /* hidden by default */
  transition: transform .25s ease-in-out;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#pzTitel {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

#pzTekst {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.4;
}

#pzImg {
  display: none;               /* shown dynamically when src set */
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

#pzOpties button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin: 6px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f7f7f7;
  cursor: pointer;
}

#pzOpties button:hover {
  background: #efefef;
}

#pzFeedback {
  margin-top: 8px;
  font-weight: 600;
}

#pzVolgende {
  margin-top: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #2e7d32;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: none;               /* shown on correct answer */
}

/* ====== Map container (ensure full-screen map if needed) ====== */
html, body, #kaart {
  height: 100%;
  margin: 0;
}

/* Optional: Leaflet control buttons consistency */
.leaflet-bar > button {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* styling Teamnaam */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;                 /* start hidden; JS shows it if needed */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.overlay .card {
  background: #fff;
  width: min(92vw, 420px);
  padding: 18px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.overlay h2 { margin: 0 0 8px; font-size: 20px; }
.overlay p  { margin: 0 0 12px; color: #444; }
#teamInput {
  width: 90%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}
.overlay .row {
  margin-top: 12px;
  display:flex;
  gap: 8px;
  justify-content: flex-end;
}
#teamSave {
  background: #2e7d32;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
