@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #07090e;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151d30 0%, #07090e 70%);
  --panel: rgba(13, 17, 28, 0.72);
  --panel-hover: rgba(22, 29, 48, 0.85);
  --panel-solid: #0d111c;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f1f5f9;
  --text-soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  
  /* Theme Accents */
  --teal: #00b4d8;
  --teal-soft: rgba(0, 180, 216, 0.12);
  --teal-glow: rgba(0, 180, 216, 0.25);
  --today: #ff4d4d;
  --today-soft: rgba(255, 77, 77, 0.15);
  
  /* Phase Accents */
  --c-heen: #4cc9f0;
  --c-sg: #00b4d8;
  --c-sumatra: #4ad66d;
  --c-jakarta: #f77f00;
  --c-java: #9d4edd;
  --c-flores: #f72585;
  --c-komodo: #00f5d4;
  --c-bali: #ffb703;
  
  /* Soft phase backdrops */
  --s-heen: rgba(76, 201, 240, 0.1);
  --s-sg: rgba(0, 180, 216, 0.1);
  --s-sumatra: rgba(74, 214, 109, 0.1);
  --s-jakarta: rgba(247, 127, 0, 0.1);
  --s-java: rgba(157, 78, 221, 0.1);
  --s-flores: rgba(247, 37, 133, 0.1);
  --s-komodo: rgba(0, 245, 212, 0.1);
  --s-bali: rgba(255, 183, 3, 0.1);
}

/* View transitions for smooth page navigation */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── HEADER & NAVIGATION ── */
.app-header {
  margin-bottom: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.app-brand {
  display: flex;
  flex-direction: column;
}
.app-brand h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-brand .sub {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.app-nav {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.app-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.app-nav-link.active {
  color: #fff;
  background: var(--teal-soft);
  border-color: rgba(0, 180, 216, 0.25);
  box-shadow: 0 0 12px var(--teal-glow);
}

/* ── STATS ROW ── */
.stat-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 860px) {
  .stat-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stat-cards-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .stat-cards-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.stat-card .label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.stat-card .value small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 2px;
}

/* ── PANEL / CARD LAYOUT ── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.panel h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.panel-grid-top {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 860px) {
  .panel-grid-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.group-panel-height {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}
.group-panel-height > div {
  flex: 1;
}

.combined-route-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .combined-route-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── COSTS SECTION ── */
.cost-flex {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 768px) {
  .cost-flex {
    grid-template-columns: 1fr;
  }
}

.cost-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-totals .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cost-totals .row:last-child {
  border-bottom: none;
}
.cost-totals .row .l {
  color: var(--text-soft);
  font-size: 14px;
}
.cost-totals .row .v {
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
}
.cost-totals .row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  margin-top: 6px;
}
.cost-totals .row.total .l {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.cost-totals .row.total .v {
  font-size: 24px;
  font-weight: 800;
  color: var(--teal);
  text-shadow: 0 0 12px var(--teal-glow);
}

.tbd-pill {
  display: inline-block;
  background: rgba(247, 127, 0, 0.15);
  color: #f77f00;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 600;
  border: 1px solid rgba(247, 127, 0, 0.2);
}

.chart-container {
  position: relative;
  height: 230px;
}

/* ── LISTS & TIMELINE COMMON ── */
.details {
  list-style: none;
}
.details li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #cbd5e1;
}
.details li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
}

/* ── GEZONDHEID STYLING ── */
.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) {
  .health-grid {
    grid-template-columns: 1fr;
  }
}

.health-block {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 16px;
}
.health-block h3 {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.health-list li {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #cbd5e1;
}

.risk-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 99px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.risk-hoog  { background: rgba(255, 77, 77, 0.18); color: #ff4d4d; border: 1px solid rgba(255,77,77,0.15); }
.risk-matig { background: rgba(255, 183, 3, 0.18); color: #ffb703; border: 1px solid rgba(255,183,3,0.15); }
.risk-laag  { background: rgba(74, 214, 109, 0.18); color: #4ad66d; border: 1px solid rgba(74,214,109,0.15); }
.risk-geen  { background: rgba(255,255,255,0.06); color: var(--text-soft); border: 1px solid rgba(255,255,255,0.04); }

.health-alert {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #ff8080;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.health-alert strong {
  color: #ff4d4d;
}

.health-sub-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-soft);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 8px;
}

.i-btn, .i-btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  line-height: 1;
}
.i-btn:hover, .i-btn-lg:hover {
  background: var(--teal);
  color: #000;
}
.i-btn-lg {
  width: 18px;
  height: 18px;
  font-size: 11px;
  margin-left: 6px;
}

.wanda-footer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wanda-footer a {
  color: var(--teal);
  text-decoration: none;
}
.wanda-footer a:hover {
  text-decoration: underline;
}

/* ── SVG MAP CARD ── */
.map-wrap {
  background: rgba(0,0,0,0.2);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  overflow-x: auto;
}
svg#routemap {
  width: 100%;
  min-width: 720px;
  height: auto;
  display: block;
}
.map-pt {
  cursor: pointer;
}
.map-pt circle.halo {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.map-pt:hover circle.halo {
  opacity: 0.25;
}
.map-pt text {
  font-size: 10px;
  font-weight: 500;
  fill: var(--text);
  pointer-events: none;
  paint-order: stroke fill;
  stroke: #07090e;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-soft);
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ── TIMELINE PAGE SPECIFICS ── */
.fase-nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.fase-nav-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.fase-nav-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fase-nav-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border-hover);
}

.fase-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  scroll-margin-top: 24px;
}
.fase-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.timeline-container {
  position: relative;
}
.timeline-container::before {
  content: "";
  position: absolute;
  left: 96px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255,255,255,0.05);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  scroll-margin-top: 24px;
}
.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item .when {
  font-size: 13px;
  color: var(--text-soft);
  padding-top: 4px;
  font-weight: 600;
  text-align: right;
}
.timeline-item .when .yr {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.6;
}
.timeline-item .when .dur {
  display: block;
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  margin-top: 4px;
}

.timeline-node {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.timeline-node::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid rgba(255,255,255,0.2);
  z-index: 2;
  transition: all 0.2s ease;
}
.timeline-item:hover .timeline-node::after {
  transform: scale(1.2);
}

/* Timeline card */
.item-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease;
}
.timeline-item:hover .item-card {
  border-color: var(--border-hover);
}

.item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.item-head h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
}

.badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
}
.badge.voltooid { background: rgba(255,255,255,0.06); color: var(--text-soft); border: 1px solid rgba(255,255,255,0.04); }
.badge.bezig { background: var(--today-soft); color: var(--today); border: 1px solid rgba(255,77,77,0.2); animation: pulse-red 2s infinite; }
.badge.binnenkort { background: rgba(255, 183, 3, 0.12); color: #ffb703; border: 1px solid rgba(255,183,3,0.2); }
.badge.gepland { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(0,180,216,0.2); }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
}

/* ── FORMS & INPUTS ── */
input[type="number"], input[type="text"], input[type="date"], textarea.note, select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  transition: all 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

/* Cost rows inside timeline cards */
.costs {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cost-line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 8px 12px;
}
.cost-line .clabel {
  flex: 1;
  font-size: 13px;
  color: var(--text-soft);
}
.cost-line input {
  width: 80px;
  text-align: right;
  padding: 4px 8px;
  height: 28px;
}
.cost-line .cur {
  color: var(--text-soft);
  font-size: 12.5px;
}
.cost-line label.booked {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-soft);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.cost-line label.booked input {
  cursor: pointer;
  accent-color: var(--teal);
}
.cost-url {
  font-size: 11.5px;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0, 180, 216, 0.08);
  padding: 2.5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 180, 216, 0.15);
  transition: all 0.15s ease;
}
.cost-url:hover {
  background: var(--teal);
  color: #000;
}

.item-foot {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
textarea.note {
  flex: 1;
  resize: vertical;
  min-height: 48px;
  border-radius: 10px;
  font-size: 13px;
}
textarea.note::placeholder {
  color: rgba(255,255,255,0.18);
}

/* ── PHOTOS STRIP ── */
.photo-strip-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 6px;
  margin-top: 14px;
  font-weight: 600;
}
.photo-strip {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  overflow-x: auto;
  padding-bottom: 6px;
}
.photo-slot {
  flex: 0 0 156px;
  height: 98px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s ease;
}
.photo-slot:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border-color: rgba(255,255,255,0.12);
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── LIGHTBOX (foto groot openen) ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-hover);
}
.btn.primary {
  background: var(--teal);
  color: #000;
  border-color: var(--teal);
  font-weight: 600;
}
.btn.primary:hover {
  opacity: 0.95;
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.35);
}
.btn.danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.25);
  background: rgba(255, 107, 107, 0.05);
}
.btn.danger:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
}

/* ── FOOTERS ── */
footer.note {
  text-align: center;
  color: var(--text-soft);
  font-size: 11.5px;
  margin-top: 40px;
  opacity: 0.7;
}

/* ── SHUTTLE OVERVIEW GRID (indonesia-live.html) ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.p-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.p-card .top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.p-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.p-card .nm {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
}
.p-card .loc {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-card .when {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}
.p-card .tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 10px;
  text-transform: uppercase;
}
.tag.live { background: rgba(247, 127, 0, 0.12); color: #f77f00; border: 1px solid rgba(247,127,0,0.18); }
.tag.planned { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(0,180,216,0.18); }
.tag.empty { background: rgba(255,255,255,0.04); color: var(--text-soft); border: 1px solid rgba(255,255,255,0.03); }
.p-card.hidden-person {
  opacity: 0.35;
}
.p-card.hidden-person::after {
  content: "verborgen";
  display: block;
  font-size: 10px;
  color: var(--text-soft);
  margin-top: 6px;
  font-weight: 600;
}

nav.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}
nav.tabs button {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
nav.tabs button.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}
nav.tabs button.active .dot {
  box-shadow: none;
}
nav.tabs button .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.current-box {
  margin: 18px 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--teal-soft);
  border: 1px solid rgba(0, 180, 216, 0.15);
}
.current-box .label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 700;
}
.current-box .place {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0;
  color: #fff;
}
.current-box .meta {
  font-size: 13px;
  color: var(--text-soft);
}

form.update {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 16px;
  margin: 20px 0;
  align-items: center;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: 16px;
}
@media (max-width: 520px) {
  form.update {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
form.update label {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 500;
}
form.update .submit-row {
  grid-column: 1/-1;
  text-align: right;
  margin-top: 6px;
}

ul.history {
  list-style: none;
  margin-top: 20px;
}
ul.history li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  align-items: flex-start;
}
ul.history li:last-child {
  border-bottom: none;
}
ul.history .hdate {
  width: 80px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-soft);
  padding-top: 2px;
  font-weight: 600;
}
ul.history .hbody {
  flex: 1;
}
ul.history .hloc {
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
ul.history .hnote {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}
ul.history .hdel {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 107, 107, 0.08);
  color: #ff6b6b;
  cursor: pointer;
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 107, 107, 0.15);
}
ul.history .hdel:hover {
  background: #ff6b6b;
  color: #000;
}

.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
  background: rgba(0,0,0,0.2);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}
.view-toggle button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.view-toggle button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.05);
}
.view-toggle button:not(.active):hover {
  color: #fff;
}
.person-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.person-head .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.person-head h2 {
  font-size: 20px;
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ── SHARED PERSON SELECTOR ── */
.person-selector-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.person-selector-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 600;
}
.person-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}
@media (max-width: 860px) {
  .person-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.person-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: inherit;
  color: var(--text-soft);
  width: 100%;
}
.person-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.person-card.active {
  color: #fff;
  background: var(--teal-soft);
  border-color: rgba(0, 180, 216, 0.35);
  box-shadow: 0 0 12px var(--teal-glow);
}
.person-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.person-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card-name {
  font-size: 13px;
  font-weight: 600;
}

/* ── OVERENGINEERED ROUTE STEPPER & MAP HIGHLIGHTS (CLEAN & SIMPLE UI) ── */
.route-stepper-panel {
  margin-top: 24px;
}

.simple-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
  margin-top: 10px;
  gap: 14px;
}

.simple-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.simple-step:hover {
  transform: translateX(4px);
}

.simple-step-line {
  position: absolute;
  left: -14px;
  top: 12px;
  bottom: -20px;
  width: 2px;
  opacity: 0.35;
}

.simple-step:last-child .simple-step-line {
  display: none;
}

.simple-step-node {
  position: absolute;
  left: -19px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  z-index: 2;
  transition: transform 0.15s ease;
}

.simple-step:hover .simple-step-node {
  transform: scale(1.35);
  box-shadow: 0 0 8px currentColor;
}

.simple-step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.simple-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.simple-step-title {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.simple-step-duration {
  font-size: 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 600;
  display: inline-block;
}

.simple-step-dates {
  font-size: 12.5px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.simple-step-companions-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.simple-step-companions-row {
  display: flex;
  flex-direction: row;
}

.simple-companion-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  border: 1px solid #07090e;
  margin-left: -4px;
}

.simple-companion-dot:first-child {
  margin-left: 0;
}

.simple-companion-dot:hover {
  transform: scale(1.2) translateY(-1px);
  z-index: 5;
}

/* Glowing route line animation */
.glowing-route {
  stroke-dasharray: 8 6;
  animation: routeDash 1.2s linear infinite;
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -28;
  }
}

.simple-step-desc {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-top: 3px;
  margin-bottom: 2px;
}

.simple-step-airbnb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  vertical-align: middle;
}

.simple-step-airbnb:hover {
  transform: scale(1.3) translateY(-1px);
  filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.8));
}

/* ── STEPPER PHOTO STRIP ── */
.stepper-photos { display: none; }

/* ── DESTINATIONS GALLERY ── */
.destinations-panel {
  overflow: hidden;
}
.destinations-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.destinations-row::-webkit-scrollbar {
  height: 4px;
}
.destinations-row::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
}

.dest-card {
  flex: 0 0 300px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  background: rgba(0,0,0,0.3);
}
.dest-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1.5px var(--color);
}
.dest-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.dest-card:hover .dest-bg {
  transform: scale(1.06);
}
.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  gap: 6px;
}
.dest-extras { display: none; }
.dest-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dest-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.dest-dates {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ── VERGRENDELD FOTOPANEEL (klik op fase in Route & Verloop) ── */
.locked-photos-panel {
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  animation: lockedFadeIn 0.28s ease;
}

@keyframes lockedFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.locked-photo-wrap {
  position: relative;
}

.locked-photo-hero {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.locked-photo-hero:hover {
  transform: scale(1.025);
}

.locked-photo-placeholder {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-size: 13px;
}

.locked-photos-thumbs {
  display: flex;
  gap: 3px;
  background: rgba(0,0,0,0.4);
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.locked-photos-thumbs::-webkit-scrollbar { display: none; }
.locked-photos-thumbs img {
  height: 58px;
  width: 86px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.18s ease, transform 0.15s ease;
  border: 1.5px solid transparent;
}
.locked-photos-thumbs img:hover {
  opacity: 1;
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.3);
}

.locked-phase-info {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.locked-phase-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.locked-phase-dates {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.locked-phase-desc-text {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* Vergrendelde stap in de stepper */
.simple-step.locked > .simple-step-content {
  background: rgba(255,255,255,0.025);
  border-radius: 8px;
  padding: 6px 8px;
  margin-left: -8px;
}
.simple-step.locked .simple-step-node {
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.25);
}

