:root{
  --bg:#0b1220;
  --card:#121c33;
  --card2:#0f182c;
  --text:#eaf0ff;
  --muted:#a8b3d6;
  --accent:#7c5cff;
  --accent2:#2ee59d;
  --border:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --r:16px;

  --pad:14px;
  --max:980px;
  --tap:46px;
  font-synthesis-weight:none;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color:var(--text);
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding: calc(var(--pad) + env(safe-area-inset-top)) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.75);
  border-bottom: 1px solid var(--border);
}
.topbar__title{
  max-width:var(--max);
  margin:0 auto;
  padding: 12px var(--pad);
}
.kicker{ color:var(--muted); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
h1{ margin:2px 0 0; font-size:18px; }

/* ✅ Dag selector (kleine chips, altijd zichtbaar) */
.day-switch{
  display:flex;
  gap:8px;
  padding: 12px 0 6px;
  flex-wrap: wrap;
}

.day-chip{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:default;
  display:flex;
  align-items:center;
  gap:8px;
  user-select:none;
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
}

.day-chip__num{
  width:22px;
  height:22px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:800;
  background: rgba(124,92,255,.20);
  border:1px solid rgba(124,92,255,.35);
  font-size: 12px;
}

.day-chip[aria-selected="true"]{
  background: rgba(124,92,255,.18);
  border-color: rgba(124,92,255,.55);
}

.day-chip span{
  color: var(--muted);
  font-size: 12px;
}

.day-hero{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}
.day-hero__text{
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  box-shadow: var(--shadow);
}
h2{ margin:0 0 6px; font-size:18px; }
.muted{ color:var(--muted); }

.chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chip{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.map-card{
  border:1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.map-card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
  border-bottom:1px solid var(--border);
}
.map-card__title{ font-weight:700; }
.map{ height: 280px; width:100%; }

@media (min-width: 900px){
  .day-hero{
    grid-template-columns: 1fr 1.2fr;
    align-items:start;
  }
  .map{ height: 360px; }
}

.list-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-top: 14px;
  gap:10px;
}
.list-head h3{ margin:0; font-size:16px; }

.cards{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 10px;
}

.card{
  border:1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 12px;
  cursor:pointer;
  touch-action: manipulation;
}
.card:active{ transform: translateY(1px); }

.card__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.badge{
  font-size:12px;
  padding: 6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  height: fit-content;
}
.badge--food{ border-color: rgba(46,229,157,.35); }
.badge--poi{ border-color: rgba(124,92,255,.45); }

.card h4{ margin:0 0 4px; font-size:15px; }
.card p{ margin:0; color:var(--muted); line-height:1.35; }

.card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}
.meta{
  font-size:12px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:7px 10px;
  border-radius: 12px;
}

.poi-number{
  width:28px;
  height:28px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:800;
  border:1px solid rgba(124,92,255,.6);
  background: rgba(124,92,255,.18);
  flex: 0 0 auto;
}

.btn{
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor:pointer;
}
.btn--ghost{
  background: transparent;
  box-shadow:none;
}
.footer{
  margin-top: 16px;
  padding: 14px 6px 0;
}


/* ✅ Meta actions behave like chips */
.meta-btn{
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.meta-link{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}
.meta-link:hover, .meta-btn:hover{
  border-color: rgba(255,255,255,.22);
}


/* ✅ Floating Action Button (naar boven) */
.fab{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(124,92,255,.95);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.fab.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


/* ✅ Topbar action (print) */
.topbar__action{
  
  width:44px;
  height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.topbar__action:active{
  transform: translateY(1px);
}

/* ✅ Print/PDF layout */
@media print{
  body{
    background:#fff !important;
    color:#111 !important;
  }
  .topbar, .fab, .map-card, #fitBtn{
    display:none !important;
  }
  .wrap{
    max-width: 900px;
    padding: 0 !important;
  }
  .card{
    box-shadow:none !important;
    border:1px solid #e6e6e6 !important;
    background:#fff !important;
    break-inside: avoid;
  }
  .meta{
    border:1px solid #eee !important;
    background:#fafafa !important;
    color:#111 !important;
  }
  .badge{
    background:#f3f3f3 !important;
    color:#111 !important;
  }
  .poi-number{
    background:#f1f1ff !important;
    color:#111 !important;
    border:1px solid #ddd !important;
  }
}


/* ✅ Topbar flex row (title + actions) */
.topbar__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
