/* ═══════════════════════════════════════════════════════════════
   REISPLANNER — COMPONENTS CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── KAART REGIO PICKER ── */
.kaart-modal { max-width: 980px; overflow: hidden; }
#regioPicker { width: 100%; height: 420px; background: #a8d4f0; }
.kies-regio-btn {
  padding: 7px 14px; background: var(--purple-l); color: var(--purple);
  border: 1.5px solid #c7d2fe; border-radius: 7px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s;
}
.kies-regio-btn:hover { background: var(--purple); color: white; }

/* ── PDF VIEWER ── */
.pdf-modal {
  max-width: 960px; width: 96vw;
  height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pdf-modal .modal-header { flex-shrink: 0; }
.pdf-viewer-wrap {
  flex: 1; min-height: 0;
  background: #525659;
  position: relative;
  display: flex; flex-direction: column;
  border-radius: 0 0 16px 16px; overflow: hidden;
}
.pdf-naam {
  font-size: 14px; font-weight: 600; color: white;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
/* PDF iframe */
.pdf-viewer-wrap iframe {
  width: 100%; flex: 1; min-height: 0;
  border: none; display: block;
}
/* PDF download fallback */
.pdf-download-btn {
  display: block; margin: auto;
  padding: 14px 28px;
  background: var(--sea); color: white;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  text-decoration: none; text-align: center;
  transition: background .15s;
}
.pdf-download-btn:hover { background: #1d4f8a; }

/* iOS/Android PDF fallback */
.pdf-mobile-fallback {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; padding: 32px; text-align: center;
  color: white;
}
.pdf-mobile-fallback .pdf-icoon { font-size: 56px; }
.pdf-mobile-fallback p { font-size: 14px; opacity: .8; line-height: 1.6; max-width: 300px; }

/* ── BIJLAGEN IN DAG/PLANNER ── */
.bijlagen-sectie { margin: 0 0 20px; }
.bijlagen-header {
  background: linear-gradient(135deg, #4f46e5, var(--purple));
  color: white; padding: 11px 18px;
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13.5px;
}
.bijlagen-teller {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.25); color: white;
  border-radius: 10px; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
}
.bijlagen-lijst-sectie {
  border: 2px solid #e0e7ff; border-top: none;
  border-radius: 0 0 8px 8px; overflow: hidden;
}
.bijlage-rij {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; background: white;
  border-bottom: 1px solid #e0e7ff;
  transition: background .14s; cursor: pointer;
}
.bijlage-rij:last-child { border-bottom: none; }
.bijlage-rij:hover { background: var(--purple-l); }
.bijlage-rij-naam {
  font-weight: 600; font-size: 13px; color: var(--sea);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.bijlage-rij-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.bijlage-del-btn {
  background: var(--red-l); border: none; color: var(--red);
  width: 26px; height: 26px; border-radius: 5px;
  cursor: pointer; font-size: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.bijlage-del-btn:hover { background: var(--red); color: white; }

/* ── REISTYPE TOGGLE ── */
.reistype-toggle {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.reistype-btn {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 2px solid var(--border); background: white;
  color: #6b7280; font-family: inherit; transition: all .14s;
}
.reistype-btn.actief {
  border-color: var(--purple); background: var(--purple); color: white;
}

/* ── VOORTGANG AI REISPLANNER ── */
.ai-voortgang-stap {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px;
}
.ai-voortgang-nr {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple-l); color: var(--purple);
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ai-voortgang-nr.done { background: var(--green); color: white; }
.ai-voortgang-nr.current { background: var(--purple); color: white; }

/* ── MOBILE FAB ── */
.fab {
  position: fixed; z-index: 300;
  background: var(--sea); color: white; border: none; border-radius: 50%;
  width: 52px; height: 52px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(44,95,138,.4);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; opacity: 0; transform: translateY(20px) scale(.85);
  pointer-events: none;
}
.fab.zichtbaar { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.fab:hover { transform: translateY(-3px) scale(1.07); box-shadow: 0 8px 28px rgba(44,95,138,.5); }
.fab:active { transform: scale(.94); }
.fab-top { bottom: 24px; right: 20px; }
.fab-overzicht { bottom: 86px; right: 20px; background: #2d3561; font-size: 18px; }

/* ── SIDEBAR TOGGLE MOBIEL ── */
.sidebar-toggle {
  display: none; position: fixed;
  bottom: 84px; left: 16px; z-index: 300;
  background: var(--sea); color: white; border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 22px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.3); transition: transform .2s;
  align-items: center; justify-content: center;
}
.sidebar-toggle:hover { transform: scale(1.08); }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 290;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.actief { display: block; }

@media (max-width: 900px) {
  .sidebar-toggle { display: flex; }
}
