/* Natuurapp — stijl (zelfde taal als ontwerp 8: licht, hoog contrast, groot) */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }

body.nature { background: #FFFFFF; color: #111111; -webkit-user-select: none; user-select: none; }
.nature-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.n-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  border-bottom: 5px solid #111; padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 48px);
}
.n-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1; }
.n-sub { font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; color: #4B5563; margin-top: 6px; text-transform: capitalize; }
.n-note { font-size: clamp(14px, 1.7vw, 18px); font-weight: 700; color: #1E7A46; margin-top: 4px; }
.n-count { flex-shrink: 0; background: #1E7A46; color: #fff; font-weight: 800; font-size: clamp(17px, 2.4vw, 28px); padding: 0.45em 0.85em; border-radius: 14px; white-space: nowrap; }
.beta-badge { display: inline-block; vertical-align: middle; font-size: 0.4em; font-weight: 800; letter-spacing: 0.06em; color: #6B7280; background: #E5E7EB; border-radius: 6px; padding: 3px 7px; margin-left: 10px; }

.n-grid {
  flex-grow: 1; padding: clamp(14px, 2.5vw, 24px) clamp(20px, 4vw, 48px) 150px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px);
  align-content: start;
}
@media (max-width: 780px) { .n-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.n-card {
  position: relative;
  border: 3px solid #E5E7EB; background: #fff; border-radius: 22px;
  padding: clamp(12px, 1.6vw, 16px); display: flex; align-items: center; gap: clamp(12px, 1.8vw, 18px);
  min-height: clamp(110px, 15vw, 150px);
}
.n-card.spotted { border-color: #1E7A46; background: #F1F8F3; }
.n-card.drop-target { border-color: #1E7A46; outline: 5px dashed #1E7A46; outline-offset: -3px; background: #E7F3EB; }
.n-icon {
  flex-shrink: 0; width: clamp(74px, 8vw, 92px); height: clamp(74px, 8vw, 92px);
  border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.n-icon svg { width: 60%; height: 60%; }
.n-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.n-cam {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: #111; color: #fff; opacity: 0.5; display: flex; align-items: center; justify-content: center;
}
.n-cam:hover { opacity: 1; }
.n-main { min-width: 0; }
.n-name { font-size: clamp(24px, 2.9vw, 30px); font-weight: 800; }
.n-hint { font-size: clamp(16px, 1.9vw, 20px); font-weight: 700; color: #9AA0A6; margin-top: 8px; }
.n-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.n-tag { display: inline-block; font-size: clamp(15px, 1.7vw, 18px); font-weight: 800; background: #CDE8D5; color: #1E7A46; padding: 4px 12px; border-radius: 999px; }

.n-empty { flex-grow: 1; text-align: center; padding: 12vh 24px; }
.n-empty .big { font-size: clamp(34px, 6vw, 60px); font-weight: 800; color: #1E7A46; }
.n-empty .sub { font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: #333; margin-top: 12px; }

/* Locatiekiezer */
.n-picker { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px; }
.n-picker h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin: 0; text-align: center; }
.n-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; width: min(900px, 100%); }
.n-picker-btn { cursor: pointer; border: 5px solid #1E7A46; background: #fff; color: #111; border-radius: 22px; padding: clamp(24px, 4vw, 44px); font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; }

/* Namenbalk onderin */
.names-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #F3F4F6; border-top: 4px solid #111; padding: 10px clamp(16px, 3vw, 40px) 14px; }
.names-label { font-size: clamp(14px, 1.6vw, 18px); font-weight: 800; color: #6B7280; margin-bottom: 8px; }
.names-list { display: flex; gap: 12px; align-items: center; overflow-x: auto; padding-bottom: 4px; }
.name-chip { flex-shrink: 0; cursor: grab; touch-action: none; user-select: none; background: #14489B; color: #fff; border: none; border-radius: 999px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; padding: 12px 24px; }
.name-chip:active { cursor: grabbing; }
.name-ghost { position: fixed; z-index: 300; pointer-events: none; transform: translate(-50%, -50%); background: #1E7A46; color: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; padding: 12px 24px; opacity: 0.95; }
.hidden { display: none !important; }

.toast { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 800; z-index: 200; opacity: 0; transition: opacity .2s; }
.toast.show { opacity: 1; }

/* Beheerders-venster (pincode voor foto's) */
.pin-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.62); display: none; align-items: center; justify-content: center; z-index: 220; padding: 24px; }
.pin-overlay.open { display: flex; }
.pin-box { background: #fff; border-radius: 22px; padding: 28px; width: min(460px, 100%); }
.pin-box h2 { margin: 0 0 6px; font-size: clamp(24px, 3.2vw, 32px); color: #111; }
.pin-sub { margin: 0 0 16px; font-size: clamp(16px, 2vw, 20px); font-weight: 700; color: #4B5563; }
#pin-input { width: 100%; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: 0.3em; text-align: center; padding: 14px; border: 3px solid #111; border-radius: 14px; box-sizing: border-box; }
.pin-hint { margin-top: 10px; font-size: 16px; font-weight: 700; color: #6B7280; }
.pin-error { margin-top: 8px; min-height: 22px; font-size: 16px; font-weight: 800; color: #B02020; }
.pin-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.btn-soft-lg, .btn-primary-lg { cursor: pointer; border: none; border-radius: 14px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; padding: 12px 22px; }
.btn-soft-lg { background: #E5E7EB; color: #1F2933; }
.btn-primary-lg { background: #1E7A46; color: #fff; }

/* Waarnemings-animatie */
.celebrate { position: fixed; inset: 0; pointer-events: none; display: none; align-items: center; justify-content: center; z-index: 150; }
.celebrate.show { display: flex; }
.cel-ring { width: 150px; height: 150px; border-radius: 50%; background: #1E7A46; color: #fff; display: flex; align-items: center; justify-content: center; animation: celpop .5s ease-out; }
@keyframes celpop { 0% { transform: scale(0); opacity: 0; } 55% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.cel-piece { position: absolute; width: 14px; height: 14px; border-radius: 3px; animation: celfly .9s ease-out forwards; }
@keyframes celfly { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cel-ring { animation: none; } .cel-piece { display: none; } }
