/* Cruise Kalender – stijl. Systeemlettertypes: geen externe fonts (privacy). */
:root {
  --sand: #F6F1E7;
  --sand-2: #E7E1D4;
  --line: #E7E1D4;
  --ink: #1B1A17;
  --ink-2: #2E2C27;
  --muted: #5C574D;
  --faint: #8A8477;
  --orange: #C2410C;
  --orange-soft: #FDBA74;
  --teal: #0F766E;
  --yellow: #FDE68A;
  --blue: #1E40AF;
  --red: #B91C1C;
  --white: #FFFFFF;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
.loading, .empty { text-align: center; color: var(--muted); padding: 48px 20px; }

/* Kop */
.head { padding: 20px 20px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--orange); text-transform: uppercase; }
.title { margin: 4px 0 0; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1.05; letter-spacing: -.01em; }
.section { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.section-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Knoppen */
.btn {
  min-height: 48px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--white); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.btn-ghost { background: transparent; border-color: #C9C1B0; }
.btn-text { border: 0; background: transparent; color: var(--orange); font-weight: 700; min-height: 44px; padding: 0 4px; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn[disabled] { opacity: .6; cursor: default; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--white);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* Chips / filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px; margin-bottom: 16px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #C9C1B0;
  background: transparent; font-size: 14px; font-weight: 700;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--sand); border-color: var(--ink); }

/* Kaarten */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.hero {
  display: flex; flex-direction: column; gap: 12px; background: var(--ink); color: var(--sand);
  border-radius: 22px; padding: 20px; margin: 0 20px 20px;
}
.hero .eyebrow { color: var(--orange-soft); }
.hero-title { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.05; }
.hero-meta { color: #E7E1D4; font-size: 15px; }

.event-row { display: flex; align-items: center; gap: 14px; }
.date-block {
  width: 56px; height: 60px; border-radius: 12px; background: var(--sand); flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.date-block .wd { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--orange); text-transform: uppercase; }
.date-block .d { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1; }
.date-block.past { background: var(--sand-2); }
.date-block.past .wd { color: var(--muted); }
.event-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.event-name { font-size: 16px; font-weight: 700; }

.pill { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.pill-yes { background: var(--teal); color: var(--white); }
.pill-maybe { background: var(--yellow); color: var(--ink); }
.pill-no { background: var(--sand-2); color: var(--ink); }
.pill-went { background: var(--ink); color: var(--sand); }

/* Evenementpagina */
.event-hero { background: var(--ink); color: var(--sand); padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.event-hero .icon-btn { background: var(--ink-2); border-color: var(--ink-2); color: var(--sand); }
.event-hero .eyebrow { color: var(--orange-soft); }
.event-hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.02; }
.event-hero p { margin: 0; color: #E7E1D4; }

.rsvp-btn {
  min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--sand);
  font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.rsvp-btn .mark { font-size: 18px; line-height: 1; }
.rsvp-btn[aria-pressed="true"].yes { background: var(--teal); border-color: var(--teal); color: var(--white); }
.rsvp-btn[aria-pressed="true"].maybe { background: var(--yellow); border-color: var(--ink); }
.rsvp-btn[aria-pressed="true"].no { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.counts { display: flex; gap: 16px; font-size: 14px; color: var(--muted); border-top: 1px solid #EFEAE0; padding-top: 12px; }
.counts strong { color: var(--ink); }

.info { display: flex; gap: 12px; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--white);
}
.info-label { font-size: 13px; font-weight: 700; }
.info-name { font-size: 15px; font-weight: 600; }

#map { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pin {
  width: 32px; height: 32px; border-radius: 16px; border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: var(--white);
  box-shadow: 0 2px 6px rgba(27,26,23,.3);
}
.stop { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.badge {
  width: 34px; height: 34px; border-radius: 17px; flex-shrink: 0; color: var(--white); font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Reacties */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--sand-2); border-radius: 14px; padding: 4px; }
.tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(27,26,23,.15); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--sand);
  padding: 10px 12px; font-size: 16px;
}
.textarea { resize: vertical; min-height: 84px; }
.msg-ok { color: var(--teal); font-weight: 700; font-size: 14px; margin: 0; }
.msg-err { color: var(--red); font-weight: 700; font-size: 14px; margin: 0; }

.post { display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 20px; background: var(--orange-soft); color: var(--ink);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.post-body { margin: 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.link-card { display: flex; align-items: center; gap: 12px; border-radius: 14px; background: var(--ink); color: var(--sand); padding: 12px; }
.link-card .play { width: 48px; height: 48px; border-radius: 12px; background: var(--ink-2); color: var(--orange-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.link-card .url { font-size: 12px; color: #C9C1B0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.like { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.like[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.link-small { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; min-height: 44px; padding: 0 6px; }

/* Onderste menu */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.nav-inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav a {
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.nav a[aria-current="page"] { color: var(--orange); font-weight: 700; }

.leaflet-container { font-family: var(--font); }
