/* EYT Community Platform – aanvullende stijlen */
/* Bouwt voort op /css/style.css variabelen */

/* ===== SUBNAV ===== */
.community-subnav {
  background: #f0ede6;
  border-bottom: 1px solid var(--grijs);
}
.subnav-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}
.subnav-inner a {
  display: inline-block;
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--blauw);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.subnav-inner a:hover,
.subnav-inner a.actief {
  border-bottom-color: var(--goud);
  color: var(--blauw);
  text-decoration: none;
}
.subnav-inner .subnav-logout {
  margin-left: auto;
  color: #c0392b;
}
.subnav-inner .subnav-logout:hover {
  border-bottom-color: #c0392b;
}

/* ===== WRAPPER ===== */
.community-wrapper {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ===== FORMULIEREN ===== */
.form-kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 2rem;
  max-width: 480px;
  margin: 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.form-kaart h1 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.form-groep {
  margin-bottom: 1.1rem;
}
.form-groep label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tekst);
  margin-bottom: 0.3rem;
}
.form-groep input,
.form-groep select,
.form-groep textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--tekst);
  background: var(--wit);
  transition: border-color 0.15s;
}
.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus {
  outline: none;
  border-color: var(--blauw-licht);
  box-shadow: 0 0 0 3px rgba(42,84,128,0.1);
}
.form-groep textarea {
  min-height: 120px;
  resize: vertical;
}
.form-fout {
  background: #fdf0f0;
  border: 1px solid #e74c3c;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  color: #c0392b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-ok {
  background: #f0fdf4;
  border: 1px solid #27ae60;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  color: #1e8449;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--tekst-midden);
  margin-top: 0.25rem;
}
.knop-vol {
  width: 100%;
  padding: 0.75rem;
  background: var(--blauw);
  color: var(--wit);
  border: none;
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.knop-vol:hover {
  background: var(--blauw-licht);
}
.form-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--tekst-midden);
}
.form-link a {
  color: var(--blauw);
}

/* ===== CATEGORIE KAARTEN ===== */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.categorie-kaart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: var(--wit);
  border: 2px solid var(--grijs);
  border-radius: 8px;
  text-decoration: none;
  color: var(--tekst);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  text-align: center;
}
.categorie-kaart:hover,
.categorie-kaart.actief {
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--tekst);
}
.categorie-kaart .cat-icoon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.categorie-kaart .cat-naam {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}
.categorie-kaart .cat-count {
  font-size: 0.75rem;
  color: var(--tekst-midden);
  margin-top: 0.2rem;
}

/* ===== ZOEK & FILTER BAR ===== */
.zoek-balk {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.zoek-balk input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}
.zoek-balk input[type="search"]:focus {
  outline: none;
  border-color: var(--blauw-licht);
}
.filter-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  overflow: hidden;
}
.filter-tabs a,
.filter-tabs button {
  padding: 0.55rem 1.1rem;
  background: var(--wit);
  border: none;
  border-right: 1px solid var(--grijs);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--tekst-midden);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.filter-tabs a:last-child,
.filter-tabs button:last-child {
  border-right: none;
}
.filter-tabs a.actief,
.filter-tabs button.actief,
.filter-tabs a:hover,
.filter-tabs button:hover {
  background: var(--blauw);
  color: var(--wit);
  text-decoration: none;
}

/* ===== LISTINGS GRID ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.listing-kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s, transform 0.1s;
  position: relative;
}
.listing-kaart:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.listing-kaart .kaart-balk {
  width: 5px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 8px 0 0 8px;
}
.listing-kaart .kaart-body {
  padding: 1rem 1rem 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-kaart .kaart-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge-aanbod  { background: #e8f5e9; color: #2e7d32; }
.badge-vraag   { background: #fff3e0; color: #e65100; }
.badge-gratis  { background: #e3f2fd; color: #1565c0; }
.badge-vrijwillig { background: #f3e5f5; color: #6a1b9a; }
.badge-betaald { background: #fce4ec; color: #880e4f; }
.badge-overleg { background: #f5f5f5; color: #424242; }
.listing-kaart h3 {
  font-family: var(--font-hoofd);
  font-size: 1.05rem;
  color: var(--blauw);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.listing-kaart .kaart-aanbieder {
  font-size: 0.82rem;
  color: var(--tekst-midden);
  margin-bottom: 0.5rem;
}
.listing-kaart .kaart-beschrijving {
  font-size: 0.9rem;
  color: var(--tekst);
  flex: 1;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-kaart .kaart-footer {
  border-top: 1px solid var(--grijs-licht);
  padding-top: 0.6rem;
  display: flex;
  justify-content: flex-end;
}

/* ===== LISTING DETAIL ===== */
.listing-detail {
  max-width: 720px;
  margin: 0 auto;
}
.listing-detail .detail-header {
  border-left: 5px solid var(--blauw);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}
.listing-detail .detail-header h1 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}
.detail-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.detail-beschrijving {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  white-space: pre-wrap;
}
.detail-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tag-chip {
  background: var(--grijs-licht);
  border: 1px solid var(--grijs);
  border-radius: 12px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  color: var(--tekst-midden);
}
.contact-blok {
  background: #f0f4fa;
  border: 1px solid #c5d3e8;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.contact-blok p {
  margin-bottom: 0.75rem;
}

/* ===== PROFIELPAGINA ===== */
.profiel-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profiel-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blauw);
  color: var(--wit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: var(--font-hoofd);
  flex-shrink: 0;
}
.profiel-info h1 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.profiel-info .profiel-meta {
  color: var(--tekst-midden);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.profiel-bio {
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== ADMIN ===== */
.admin-sectie {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-sectie h2 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grijs);
}
.leden-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.leden-tabel th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--grijs-licht);
  border-bottom: 2px solid var(--grijs);
  font-weight: 600;
  color: var(--blauw);
}
.leden-tabel td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--grijs-licht);
  vertical-align: middle;
}
.leden-tabel tr:hover td {
  background: #fafafa;
}

/* ===== PAGE HEADER ===== */
.pagina-header {
  margin-bottom: 1.75rem;
}
.pagina-header h1 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}
.pagina-header p {
  color: var(--tekst-midden);
  font-size: 1rem;
}

/* ===== LEGE STAAT ===== */
.leeg-staat {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tekst-midden);
}
.leeg-staat p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* ===== LEDEN GRID ===== */
.leden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.lid-kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 0.15s, transform 0.1s;
}
.lid-kaart:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.lid-kaart .lid-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blauw);
  color: var(--wit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: var(--font-hoofd);
  flex-shrink: 0;
}
.lid-kaart .lid-naam {
  font-weight: 600;
  color: var(--blauw);
  font-size: 0.95rem;
  line-height: 1.3;
}
.lid-kaart .lid-plaats {
  font-size: 0.8rem;
  color: var(--tekst-midden);
}

/* ===== TYPE BADGES ===== */
.type-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.type-badge-oud-delegate    { background: #e8f5e9; color: #2e7d32; }
.type-badge-odd-fellow-lid  { background: #e3f2fd; color: #1565c0; }
.type-badge-overig          { background: #f5f5f5; color: #424242; }

/* ===== TOUR KAARTEN ===== */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.tour-kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  transition: box-shadow 0.15s, transform 0.1s;
}
.tour-kaart:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.tour-kaart .tour-jaar {
  font-family: var(--font-hoofd);
  font-size: 2rem;
  color: var(--blauw);
  font-weight: 700;
  line-height: 1;
}
.tour-kaart .tour-bestemming {
  font-size: 0.82rem;
  color: var(--tekst-midden);
}
.tour-kaart .tour-count {
  font-size: 0.78rem;
  color: var(--tekst-midden);
  margin-top: 0.1rem;
}
.tour-kaart .tour-stats-mini {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .3rem;
}
.tour-kaart .tour-stats-mini span {
  font-size: .68rem;
  color: var(--tekst-midden);
  background: var(--grijs-licht);
  border-radius: 8px;
  padding: .1rem .4rem;
  white-space: nowrap;
}
.tour-kaart .tour-erbij-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
}

/* ===== DEELNEMERS CHIPS ===== */
.tour-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.5rem;
}
.tour-chip {
  background: var(--blauw);
  color: #fff;
  border-radius: 12px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.tour-chip::before {
  content: '🏅';
  font-size: 0.72rem;
}
.tour-chip:hover {
  background: #143066;
  text-decoration: none;
}

/* Badge naast naam in deelnemerslijst op tour-pagina */
.deelnemer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  background: var(--blauw);
  color: #fff;
  border-radius: 10px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
  margin-left: 0.3rem;
  font-weight: 600;
}

/* ===== SECTIE KADER HEADER ===== */
.sectie-kader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.sectie-kader-header h2 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.2rem;
  margin: 0;
  border: none;
  padding: 0;
}

/* Pastel voor CRM-admin sectie – gecombineerde selector wint van .sectie-kader */
.sectie-kader.sectie-crm {
  background: linear-gradient(135deg, #fef3c7 0%, #fde8d8 60%, #fce7f3 100%);
  border-color: #f5c97a;
}

/* ===== PRIKBORD ===== */
.prikbord h2 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.prikbord-berichten {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.prikbord-bericht {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.prikbord-bericht .pb-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.pb-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blauw);
  color: var(--wit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-family: var(--font-hoofd);
  font-weight: 700;
  flex-shrink: 0;
}
.pb-naam {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blauw);
  text-decoration: none;
}
.pb-naam:hover { text-decoration: underline; }
.pb-datum {
  font-size: 0.78rem;
  color: var(--tekst-midden);
  margin-left: auto;
}
.pb-verwijder {
  background: none;
  border: none;
  cursor: pointer;
  color: #c0392b;
  font-size: 0.78rem;
  padding: 0;
  margin-left: 0.5rem;
}
.pb-verwijder:hover { text-decoration: underline; }
.prikbord-bericht .pb-tekst {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tekst);
  white-space: pre-wrap;
}
.prikbord-formulier textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--tekst);
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.75rem;
}
.prikbord-formulier textarea:focus {
  outline: none;
  border-color: var(--blauw-licht);
  box-shadow: 0 0 0 3px rgba(42,84,128,0.1);
}

/* ===== SECTIE KADER ===== */
.sectie-kader {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(42,84,128,.07);
}
/* Pastel tinten per blok */
.sectie-community   { background: #f0f5fb; }  /* lichtblauw  */
.sectie-gesprekken  { background: #f4f0fd; }  /* lavendel    */
.sectie-activiteit  { background: #fdf4fb; }  /* zachtroze   */
.sectie-listings    { background: #f0fdf6; }  /* mintgroen   */
.sectie-historisch  { background: #fdf9ed; }  /* licht amber */
.sectie-kader h2 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grijs);
}

/* ===== VERHALEN ===== */
.verhaal-item {
  background: #fafaf8;
  border: 1px solid var(--grijs-licht);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.verhaal-item .verhaal-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--tekst-midden);
}
.verhaal-item .verhaal-tekst {
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ===== RADIO GROEP ===== */
.radio-groep {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.radio-groep label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: normal;
  cursor: pointer;
}
.radio-groep input[type="radio"] {
  width: auto;
  margin: 0;
}

/* ===== CHECKBOX GRID VOOR TOURJAREN ===== */
.jaar-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  padding: 0.75rem;
}
.jaar-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: normal;
  cursor: pointer;
}
.jaar-checkboxes input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .categorie-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
  .form-kaart {
    padding: 1.25rem;
    margin: 1rem auto;
  }
  .community-wrapper {
    padding: 1.25rem 1rem 3rem;
  }
}

/* ===== FOTO-GRID (tour fotos) ===== */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.foto-item {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.foto-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.foto-item-body {
  padding: 0.5rem 0.6rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.foto-item-bijschrift {
  font-size: 0.83rem;
  color: var(--tekst);
  line-height: 1.4;
  flex: 1;
}
.foto-item-meta {
  font-size: 0.75rem;
  color: var(--tekst-midden);
}
.foto-item-verwijder {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.foto-item-verwijder:hover {
  text-decoration: underline;
}

/* ===== TOUR HERO ===== */
.tour-hero {
  position: relative;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--blauw) 0%, #1a3a6b 60%, #b8860b 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tour-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,55,0.88) 0%, rgba(10,25,55,0.45) 60%, transparent 100%);
}
.tour-hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.75rem 0;
  color: #fff;
}
.tour-hero-back {
  display: inline-block;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  margin-bottom: .5rem;
  letter-spacing: .02em;
}
.tour-hero-back:hover { color: #fff; text-decoration: none; }
.tour-hero-jaar {
  font-family: var(--font-hoofd);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: .25rem;
}
.tour-hero-bestemming {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.tour-stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: .75rem 1.75rem 1.25rem;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.15);
  margin-top: auto;
}
.tour-stats-bar span { white-space: nowrap; }
.tour-hero-admin {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.tour-hero-admin input[type="text"] {
  padding: .35rem .65rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: .85rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 200px;
}
.tour-hero-admin input[type="text"]::placeholder { color: rgba(255,255,255,.6); }
.tour-hero-admin button {
  padding: .35rem .8rem;
  font-size: .82rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-ui);
}
.tour-hero-admin button:hover { background: rgba(255,255,255,.35); }

/* ===== TOUR JOIN CARD ===== */
.tour-join-card {
  border: 2px solid var(--blauw-licht);
  border-left: 5px solid var(--goud);
  border-radius: 8px;
  background: #f4f7fb;
  padding: 1.5rem;
  max-width: 680px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(42,84,128,.08);
}
.tour-join-card h2 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.25rem;
  margin-bottom: .35rem;
}
.tour-join-card p {
  color: var(--tekst-midden);
  font-size: .92rem;
  margin-bottom: 1rem;
}
.tour-verbonden-kaart {
  border: 1px solid var(--grijs);
  border-radius: 8px;
  background: #f0fdf4;
  border-left: 5px solid #27ae60;
  padding: 1rem 1.25rem;
  max-width: 680px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(39,174,96,.08);
}
.tour-verbonden-kaart .bewerk-link {
  margin-left: auto;
  font-size: .83rem;
  color: var(--blauw);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  font-family: var(--font-ui);
}

/* ===== ROL ICOON GRID ===== */
.rol-icoon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: .75rem 0 1rem;
}
.rol-icoon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .75rem .5rem;
  border: 2px solid var(--grijs);
  border-radius: 8px;
  cursor: pointer;
  background: var(--wit);
  transition: border-color .15s, background .15s;
  text-align: center;
}
.rol-icoon-item:hover {
  border-color: var(--blauw-licht);
  background: #f0f4fb;
}
.rol-icoon-item.actief {
  border-color: var(--blauw);
  background: var(--blauw);
  color: #fff;
}
.rol-icoon-item .rol-emoji { font-size: 1.6rem; line-height: 1; }
.rol-icoon-item .rol-label { font-size: .75rem; font-weight: 600; line-height: 1.2; }
.rol-icoon-item.actief .rol-label { color: #fff; }
/* hide native radio */
.rol-icoon-grid input[type="radio"] { display: none; }

/* ===== COMMUNITY WALL ===== */
.community-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
.wall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  color: inherit;
}
.wall-item:hover { text-decoration: none; }
.wall-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blauw);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-family: var(--font-hoofd);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .1s;
}
.wall-item:hover .wall-avatar { transform: scale(1.07); }
.wall-naam {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blauw);
  text-align: center;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== ROL BADGES KLEIN ===== */
.rol-badge-klein {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 10px;
  font-size: .67rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.rol-badge-delegate     { background: #e3f2fd; color: #1565c0; }
.rol-badge-jury         { background: #f3e5f5; color: #6a1b9a; }
.rol-badge-geinteresseerd { background: #f5f5f5; color: #424242; }
.rol-badge-school       { background: #e8f5e9; color: #2e7d32; }
.rol-badge-ouder        { background: #fff3e0; color: #e65100; }
.rol-badge-odd-fellow   { background: #fffde7; color: #b8860b; }
.rol-badge-overig       { background: #fce4ec; color: #880e4f; }

/* ===== TOPICS / GESPREKKEN ===== */
.topic-item {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-left: 4px solid var(--blauw-licht);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: .75rem;
}
.topic-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.topic-titel {
  font-family: var(--font-hoofd);
  font-size: 1rem;
  color: var(--blauw);
  font-weight: 700;
  flex: 1;
}
.topic-meta {
  font-size: .8rem;
  color: var(--tekst-midden);
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.topic-tekst {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--tekst);
  white-space: pre-wrap;
  margin-bottom: .75rem;
}
.topic-toggle-btn {
  background: none;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  padding: .25rem .7rem;
  font-size: .8rem;
  color: var(--blauw);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background .12s;
}
.topic-toggle-btn:hover { background: #f0f4fb; }
.topic-reacties {
  display: none;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--grijs-licht);
}
.topic-reacties.open { display: block; }
.topic-reactie-item {
  background: #fafaf8;
  border: 1px solid var(--grijs-licht);
  border-radius: 6px;
  padding: .7rem .9rem;
  margin-bottom: .5rem;
}
.topic-reactie-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
  font-size: .8rem;
  color: var(--tekst-midden);
}
.topic-reactie-tekst {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--tekst);
  white-space: pre-wrap;
}
.topic-reactie-form {
  margin-top: .75rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}
.topic-reactie-form textarea {
  flex: 1;
  padding: .5rem .7rem;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  font-family: var(--font-ui);
  font-size: .88rem;
  resize: vertical;
  min-height: 60px;
}
.topic-reactie-form textarea:focus {
  outline: none;
  border-color: var(--blauw-licht);
  box-shadow: 0 0 0 3px rgba(42,84,128,.1);
}
.topic-nieuw-form {
  display: none;
  background: #f4f7fb;
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.topic-nieuw-form.open { display: block; }

/* ===== ACTIVITEIT FEED ===== */
.activiteit-feed {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.activiteit-kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  gap: 0;
}
.activiteit-kaart.is-foto .act-thumb {
  width: 120px;
  min-width: 120px;
  background: var(--grijs-licht);
  overflow: hidden;
  flex-shrink: 0;
}
.activiteit-kaart.is-foto .act-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 90px;
}
.act-body {
  padding: .85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.act-type-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 8px;
  margin-bottom: .3rem;
}
.act-type-foto    { background: #e3f2fd; color: #1565c0; }
.act-type-verhaal { background: #f3e5f5; color: #6a1b9a; }
.act-titel {
  font-size: .95rem;
  font-weight: 600;
  color: var(--blauw);
  line-height: 1.4;
  margin-bottom: .25rem;
}
.act-meta {
  font-size: .78rem;
  color: var(--tekst-midden);
}
.act-verwijder {
  background: none;
  border: none;
  color: #c0392b;
  font-size: .75rem;
  cursor: pointer;
  padding: 0;
  margin-left: .5rem;
}
.act-verwijder:hover { text-decoration: underline; }
.activiteit-tabjes {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.activiteit-tabjes button {
  padding: .45rem 1rem;
  border: 1px solid var(--grijs);
  border-radius: 5px;
  background: var(--wit);
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--tekst-midden);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.activiteit-tabjes button.actief,
.activiteit-tabjes button:hover {
  background: var(--blauw);
  color: #fff;
  border-color: var(--blauw);
}
.activiteit-form-panel {
  display: none;
  background: #f4f7fb;
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.activiteit-form-panel.open { display: block; }

/* ===== MEMBER CARDS (tour-detail v2.1) ===== */
.member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: .75rem;
}
.member-card {
  border: 1px solid var(--grijs);
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  background: var(--wit);
  transition: box-shadow .15s;
}
.member-card.eigen-kaart {
  border-color: var(--blauw-licht);
  background: #f4f7fb;
}
.member-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.member-card-top {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.member-topics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grijs-licht);
  padding-top: .55rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.member-topic-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--blauw);
  text-decoration: none;
  padding: .2rem .3rem;
  border-radius: 4px;
  transition: background .1s;
}
.member-topic-link:hover {
  background: #e8f0fb;
  text-decoration: none;
}
.member-topic-link span:first-child {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.member-add-topic-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: .3rem .75rem;
  font-size: .82rem;
  background: none;
  border: 1px solid var(--blauw-licht);
  border-radius: 5px;
  color: var(--blauw);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: background .12s, color .12s;
}
.member-add-topic-btn:hover {
  background: var(--blauw);
  color: #fff;
}
.member-add-topic-form {
  display: none;
  background: #eef2f9;
  border: 1px solid var(--grijs);
  border-radius: 6px;
  padding: .75rem;
  margin-top: .25rem;
}
.member-add-topic-form.open { display: block; }

/* ===== HELP ICON BUTTON ===== */
.help-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 .15rem;
  opacity: .55;
  transition: opacity .15s;
  line-height: 1;
  flex-shrink: 0;
}
.help-icon-btn:hover { opacity: 1; }

/* ===== ACTIVITEIT ACTIE-KNOPPEN ===== */
.activiteit-actie-knoppen {
  display: flex;
  gap: .65rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

/* ===== TOPICS HORIZONTAL SCROLL ===== */
.topics-scroll {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.topics-scroll::-webkit-scrollbar { height: 5px; }
.topics-scroll::-webkit-scrollbar-track { background: var(--grijs-licht); border-radius: 3px; }
.topics-scroll::-webkit-scrollbar-thumb { background: var(--blauw-licht); border-radius: 3px; }
.topic-ov-card {
  flex: 0 0 270px;
  min-width: 270px;
  border: 1px solid var(--grijs);
  border-top: 3px solid var(--blauw-licht);
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  background: var(--wit);
  scroll-snap-align: start;
  transition: box-shadow .15s, transform .1s;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.topic-ov-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.topic-ov-titel {
  font-family: var(--font-hoofd);
  font-size: 1rem;
  color: var(--blauw);
  font-weight: 700;
  line-height: 1.3;
}
.topic-ov-meta {
  font-size: .78rem;
  color: var(--tekst-midden);
}
.topic-ov-intro {
  font-size: .84rem;
  color: var(--tekst);
  line-height: 1.5;
  border-left: 3px solid var(--grijs);
  padding-left: .6rem;
}
.topic-ov-reacties {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.topic-ov-reactie {
  font-size: .79rem;
  color: var(--tekst-midden);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topic-ov-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--tekst-midden);
  border-top: 1px solid var(--grijs-licht);
  padding-top: .45rem;
}
.topic-ov-lees {
  color: var(--blauw);
  font-weight: 600;
  font-size: .8rem;
}
.topic-ov-emoji-sum {
  display: flex;
  gap: .1rem;
  align-items: center;
  font-size: .88rem;
  flex: 1;
}
.topic-ov-emoji-sum small {
  font-size: .68rem;
  color: var(--tekst-midden);
  margin-left: .05rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--wit);
  border-radius: 10px;
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 680px;
  width: 100%;
  position: relative;
  margin: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.modal-sluiten {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--grijs-licht);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--tekst-midden);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  line-height: 1;
}
.modal-sluiten:hover { background: #ddd; color: var(--tekst); }
/* Topic modal inhoud */
.tmodal-titel {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.3rem;
  margin-bottom: .5rem;
  padding-right: 2.5rem;
}
.tmodal-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--tekst-midden);
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--grijs);
}
.tmodal-tekst {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--tekst);
  white-space: pre-wrap;
  padding: 1rem;
  background: #f8f9fc;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--blauw-licht);
}
.tmodal-reacties {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.tmodal-reply {
  border-top: 1px solid var(--grijs);
  padding-top: 1rem;
}
/* Help modal inhoud */
.modal-help-body h3 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.modal-help-body p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--tekst);
  margin-bottom: .75rem;
}

/* ===== REACTIE-ITEM (op listings) ===== */
.reactie-item {
  background: #fafaf8;
  border: 1px solid var(--grijs-licht);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.reactie-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--tekst-midden);
  flex-wrap: wrap;
}
.reactie-tekst {
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--tekst);
}

/* ===== DIRECT BERICHT KAART (profiel.php) ===== */
.direct-bericht-kaart {
  background: linear-gradient(135deg, #eaf2fb 0%, #ddeeff 100%);
  border: 1.5px solid #b0cce8;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  max-width: 640px;
}
.direct-bericht-kaart h3 {
  font-family: var(--font-hoofd);
  color: var(--blauw);
  font-size: 1.15rem;
  margin: 0 0 .4rem;
}
.direct-bericht-kaart .db-subtitel {
  font-size: .88rem;
  color: var(--tekst-midden);
  margin-bottom: 1rem;
}
.direct-bericht-kaart textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid #b0cce8;
  border-radius: 6px;
  padding: .65rem .8rem;
  font-size: .95rem;
  font-family: var(--font-brood);
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: .75rem;
}
.direct-bericht-kaart textarea:focus {
  outline: none;
  border-color: var(--blauw);
  box-shadow: 0 0 0 3px rgba(42,84,128,.12);
}
.direct-bericht-kaart .knop-stuur {
  background: var(--blauw);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.3rem;
  font-size: .95rem;
  cursor: pointer;
  font-family: var(--font-brood);
  transition: background .15s;
}
.direct-bericht-kaart .knop-stuur:hover {
  background: #1a4a7a;
}
.direct-bericht-kaart .db-privacynoot {
  font-size: .78rem;
  color: var(--tekst-midden);
  margin-top: .5rem;
}

/* ===== FOTO SCROLL KAARTEN ===== */
.foto-ov-card {
  flex: 0 0 200px;
  min-width: 200px;
  border: 1px solid var(--grijs);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--wit);
  scroll-snap-align: start;
  transition: box-shadow .15s, transform .1s;
  display: flex;
  flex-direction: column;
}
.foto-ov-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.foto-ov-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.foto-ov-caption {
  padding: .5rem .65rem .2rem;
  font-size: .82rem;
  color: var(--tekst);
  line-height: 1.4;
  flex: 1;
}
.foto-ov-meta {
  padding: .1rem .65rem .6rem;
  font-size: .72rem;
  color: var(--tekst-midden);
}

/* ===== FOTO GALLERIJ OVERLAY ===== */
.foto-gallerij {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.foto-gallerij.open { display: flex; }
.gallerij-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.gallerij-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}
.gallerij-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 2001;
  line-height: 1;
}
.gallerij-nav-btn:hover { background: rgba(255,255,255,.28); }
.gallerij-nav-prev { left: .6rem; }
.gallerij-nav-next { right: .6rem; }
.gallerij-footer {
  width: 100%;
  padding: .5rem 4rem .9rem;
  text-align: center;
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  box-sizing: border-box;
  flex-shrink: 0;
}
.gallerij-footer #gallerij-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: .2rem;
}
.gallerij-footer #gallerij-teller {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  margin-top: .15rem;
}
.gallerij-sluit {
  position: fixed;
  top: .85rem;
  right: .85rem;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 2001;
  line-height: 1;
}
.gallerij-sluit:hover { background: rgba(255,255,255,.28); }

/* ===== SECTOR BADGE ===== */
.sector-badge {
  display: inline-block;
  background: #f0f4ff;
  border: 1px solid #c5d3f0;
  border-radius: 4px;
  font-size: .75rem;
  padding: .15rem .5rem;
  color: #3a5a9a;
  line-height: 1.5;
  white-space: nowrap;
}

/* ===== EMOJI BALK ===== */
.emoji-balk {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: .75rem 0;
}
.emoji-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: .2rem .55rem;
  font-size: .9rem;
  cursor: pointer;
  line-height: 1.4;
  transition: background .12s, border-color .12s;
}
.emoji-btn:hover {
  background: #ebebeb;
}
.emoji-btn.actief {
  background: #e8f0fe;
  border-color: var(--blauw-licht);
}
.emoji-count {
  font-size: .8rem;
  margin-left: .2rem;
  color: var(--tekst-midden);
}

/* ===== AVATAR UPLOAD PREVIEW ===== */
.avatar-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: .5rem;
  border: 2px solid var(--grijs);
}

/* ===== IN-APP NOTIFICATIES ===== */
.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  padding: .3rem .5rem;
  line-height: 1;
  user-select: none;
}
.notif-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  background: #e53935;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}
.notif-badge:empty {
  display: none;
}

/* ===== TOUR BADGES ===== */
.tour-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}
.tour-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #e8f0fe;
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .82rem;
  color: var(--blauw);
  text-decoration: none;
  transition: background .12s;
  white-space: nowrap;
}
.tour-badge:hover {
  background: #d2e3fc;
  color: var(--blauw);
  text-decoration: none;
}
.tour-badge-dest {
  color: var(--tekst-midden);
  font-weight: 400;
}

/* ===== E-MAILGROEP ICONS OP LIDKAART ===== */
.eg-icons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2px;
  margin-top: -1rem;
  margin-bottom: .1rem;
}
.eg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: .6rem;
  line-height: 1;
  cursor: default;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
/* iets groter als ze naast formulier-labels staan */
label .eg-icon {
  width: 20px;
  height: 20px;
  font-size: .75rem;
  border-radius: 5px;
}

/* ===== GHOST-LEDEN (privaat) ===== */
.privaat-kaart {
  border: 2px dashed #fcd34d;
  background: #fffbeb;
}
.privaat-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  padding: .15rem .55rem;
  white-space: nowrap;
}

/* ===== ICON KNOPPEN (prikbord & CRM) ===== */
.pb-icon-knop {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  padding: .2rem .45rem;
  border-radius: 4px;
  color: var(--tekst-midden);
  line-height: 1;
  transition: background .12s, color .12s;
}
.pb-icon-knop:hover {
  background: rgba(42,84,128,.1);
  color: var(--blauw);
}
.pb-icon-knop.pb-icon-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
}


/* ── Collaboratieve tour-bewerking ── */
.verborgen { display: none !important; }

.tourwebpage-blok {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flow-root;
  position: relative; /* anker voor absoluut gepositioneerde knoppen */
}
/* Knoppen rechtsboven, halverwege buiten het blok zodat ze niet in de content-flow vallen */
.tourwebpage-knoppen {
  position: absolute;
  top: -.85rem;
  right: .75rem;
  display: flex;
  gap: .25rem;
  z-index: 2;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  padding: .15rem .3rem;
}
.collab-lock-melding {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: .3rem .75rem;
  margin-top: .4rem;
}
.log-icon-knop {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: .55;
  padding: .15rem .3rem;
  border-radius: 4px;
}
.log-icon-knop:hover { opacity: 1; background: #f3f4f6; }

/* Bewerk-pennetje – zelfde stijl als foto-bijschrift knop */
.collab-edit-knop {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  padding: 0 .2rem;
  opacity: .6;
}
.collab-edit-knop:hover { opacity: 1; }

/* Summernote editor: pixel-perfect gelijk aan #tourwebpage-inhoud
   .note-editor krijgt door Summernote een inline width=Xpx — overschrijf dat met 100%
   zodat het de container-breedte volgt (= zelfde als #tourwebpage-inhoud).
   .note-frame: border weg zodat geen pixels extra worden ingenomen. */
#tourwebpage-editor .note-editor {
  width: 100% !important;
  box-sizing: border-box !important;
}
#tourwebpage-editor .note-frame {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#tourwebpage-editor .note-editable {
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
#tourwebpage-editor .note-editable img {
  margin: .75rem;
}

/* Tourwebpage rendered content
   display:flow-root zorgt dat de container zijn hoogte aanpast aan gefloate kinderen.
   Geen width/height overrides — Summernote's inline stijlen blijven intact.
   margin op img geeft standaard-ruimte tussen foto en omlopende tekst;
   inline margin (door gebruiker ingesteld in editor) heeft hogere prioriteit. */
#tourwebpage-inhoud {
  display: flow-root;
}
#tourwebpage-inhoud img {
  margin: .75rem;
}
/* Ruimte tussen block-elementen zodat tekst niet strak staat */
#tourwebpage-inhoud p,
#tourwebpage-inhoud h1, #tourwebpage-inhoud h2, #tourwebpage-inhoud h3,
#tourwebpage-inhoud ul, #tourwebpage-inhoud ol,
#tourwebpage-inhoud blockquote {
  margin-top: .65rem;
  margin-bottom: .65rem;
}

/* Log-popup inner wrapper */
.log-popup-inner {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  max-width: 500px;
  width: 100%;
  margin: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}


/* ===== HELP SYSTEEM ===== */

/* Backdrop: blokkeert klikken op de pagina tijdens de tour */
#help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9989;
  background: transparent;
  cursor: default;
}

/* Spotlight: highlight van het doelelement via gigantische box-shadow */
#help-spotlight {
  position: fixed;
  z-index: 9990;
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.75), 0 0 0 9999px rgba(0,0,40,.58);
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
/* Geen doelelement: alleen dim, geen witte ring */
#help-spotlight.help-geen-doel {
  box-shadow: 0 0 0 9999px rgba(0,0,40,.58);
}
/* Tijdens scroll/resize: spotlight volgt direct zonder animatie */
#help-spotlight.help-transitionless {
  transition: none !important;
}

/* Callout ballon */
#help-callout {
  position: fixed;
  z-index: 9995;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem .85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
  font-family: var(--font-ui);
  font-size: .88rem;
  line-height: 1.45;
  color: var(--tekst);
  transition: opacity 0.18s ease;
}

/* Pijl via ::before — zichtbaar alleen als data-positie gezet is */
#help-callout::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}
#help-callout:not([data-positie])::before { display: none; }

/* Pijl omhoog (callout staat ONDER element) */
#help-callout[data-positie="bottom"]::before {
  bottom: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border-bottom: 10px solid #fff;
}

/* Pijl omlaag (callout staat BOVEN element) */
#help-callout[data-positie="top"]::before {
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border-top: 10px solid #fff;
}

/* Pijl links (callout staat RECHTS van element) */
#help-callout[data-positie="right"]::before {
  right: 100%;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  border-right: 10px solid #fff;
}

/* Pijl rechts (callout staat LINKS van element) */
#help-callout[data-positie="left"]::before {
  left: 100%;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  border-left: 10px solid #fff;
}

/* Bovenste rij: stap-teller + sluit-knop */
.help-callout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .45rem;
}
#help-stap-teller {
  font-size: .72rem;
  color: var(--tekst-midden);
  font-weight: 600;
  letter-spacing: .03em;
}
#help-sluiten {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--tekst-midden);
  line-height: 1;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: background .12s;
}
#help-sluiten:hover { background: var(--grijs-licht); }

/* Titel en tekst */
#help-callout h3 {
  margin: 0 0 .35rem;
  font-family: var(--font-hoofd);
  font-size: 1rem;
  color: var(--blauw);
  line-height: 1.25;
}
#help-callout p {
  margin: 0 0 .7rem;
}

/* Navigatieknoppen */
.help-callout-nav {
  display: flex;
  gap: .5rem;
}
.help-callout-nav button {
  flex: 1;
  padding: .42rem .7rem;
  border: 1px solid var(--grijs);
  border-radius: 6px;
  background: var(--wit);
  cursor: pointer;
  font-size: .82rem;
  font-family: var(--font-ui);
  color: var(--blauw);
  font-weight: 600;
  transition: background .12s;
}
.help-callout-nav button:hover { background: var(--grijs-licht); }
#help-volgende {
  background: var(--blauw) !important;
  color: #fff !important;
  border-color: var(--blauw) !important;
}
#help-volgende:hover { opacity: .88; }

/* Toetsbord hint */
.help-toets-hint {
  margin: .5rem 0 0 !important;
  font-size: .7rem !important;
  color: #bbb !important;
  text-align: center;
}

/* Mobiele callout: vastgepind onderaan het scherm */
#help-callout.help-mobiel {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,.22) !important;
  padding: 1rem 1.25rem .75rem !important;
  z-index: 9995;
}
#help-callout.help-mobiel::before { display: none !important; }
#help-callout.help-mobiel .help-toets-hint { display: none; }

/* Help-icoon knop in de subnav */
.help-icoon-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--blauw);
  background: none;
  color: var(--blauw);
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-left: .25rem;
  vertical-align: middle;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.help-icoon-knop:hover {
  background: var(--blauw);
  color: #fff;
}

/* Tijdelijke rondleiding-knop */
.help-rondleiding-knop {
  font-size: .78rem;
  color: var(--goud);
  border: 1px solid var(--goud);
  border-radius: 5px;
  padding: .2rem .55rem;
  background: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  margin-left: .5rem;
  transition: background .12s, color .12s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.help-rondleiding-knop:hover {
  background: var(--goud);
  color: #fff;
}
