/* ─── Dakdrager Reservering — licht, fancy, goed leesbaar thema ────────────── */

:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f3f5fa;

  --ink: #1a2233;
  --ink-soft: #5b6577;
  --ink-muted: #97a0b0;

  --line: #e3e7ef;
  --line-soft: #edeff5;

  --accent: #2f6df6;
  --accent-dim: #245bd6;
  --accent-soft: #eaf1ff;
  --accent-ink: #ffffff;

  --ok: #1a9d68;
  --ok-bg: rgba(26, 157, 104, .10);
  --warn: #c9860a;
  --warn-bg: rgba(201, 134, 10, .10);
  --danger: #d64545;
  --danger-bg: rgba(214, 69, 69, .10);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(20, 30, 60, .08);
  --shadow-lg: 0 16px 48px rgba(20, 30, 60, .14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--accent-soft), transparent),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ─── Topbar ────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .logo-dot {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #63a1ff 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; box-shadow: var(--shadow);
}
.topbar nav { display: flex; gap: 24px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.topbar nav a:hover { color: var(--accent); }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a86ff 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 109, 246, .30);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(47, 109, 246, .40); }

.btn-outline {
  background: var(--surface); color: var(--accent);
  border: 1.5px solid var(--accent-soft);
}
.btn-outline:hover:not(:disabled) { background: var(--accent-soft); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dim);
  font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 780px; margin: 0 auto 16px; }
.hero p { color: var(--ink-soft); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Section ───────────────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--ink-soft); }

/* ─── Product cards ─────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.product-card {
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.is-selected { outline: 2px solid var(--accent); outline-offset: -2px; }

.product-photo {
  aspect-ratio: 4 / 3; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 2.2rem;
  overflow: hidden; position: relative;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-slider {
  display: flex; width: 100%; height: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.photo-slider::-webkit-scrollbar { display: none; }
.photo-slider img { scroll-snap-align: center; flex-shrink: 0; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(10, 14, 22, .55); color: #fff; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .15s ease, background .15s ease;
}
.slider-arrow:hover { background: rgba(10, 14, 22, .8); }
.slider-arrow-prev { left: 8px; }
.slider-arrow-next { right: 8px; }
.product-photo:hover .slider-arrow { opacity: 1; }

.slider-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, .55); cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.slider-dot.is-active { background: #fff; transform: scale(1.3); }

.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat {
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-dim);
}
.product-body h3 { font-size: 1.2rem; margin: 0; }
.product-desc { color: var(--ink-soft); font-size: .9rem; flex: 1; }

.product-price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.product-price .amount { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.product-price .unit { color: var(--ink-soft); font-size: .85rem; }
.product-borg { font-size: .78rem; color: var(--ink-muted); }

/* ─── Booking panel ─────────────────────────────────────────────────────── */
.booking { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.panel h3 { font-size: 1.05rem; margin-bottom: 18px; }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-size: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: .72rem; color: var(--ink-muted); text-align: center; font-weight: 700; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--ink);
  background: var(--surface-2); cursor: pointer; user-select: none;
  border: 1.5px solid transparent;
  transition: background .12s ease, border-color .12s ease;
}
.cal-day.is-empty { visibility: hidden; }
.cal-day.is-past { color: var(--ink-muted); background: transparent; cursor: not-allowed; }
.cal-day.status-vrij:hover { border-color: var(--accent); }
.cal-day.status-aangevraagd { background: var(--warn-bg); color: var(--warn); }
.cal-day.status-bezet { background: var(--danger-bg); color: var(--danger); cursor: not-allowed; }
.cal-day.is-selected { background: var(--accent); color: #fff; }
.cal-day.is-in-range { background: var(--accent-soft); color: var(--accent-dim); }

.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: .78rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-dot.vrij { background: var(--surface-2); border: 1px solid var(--line); }
.legend-dot.aangevraagd { background: var(--warn-bg); border: 1px solid var(--warn); }
.legend-dot.bezet { background: var(--danger-bg); border: 1px solid var(--danger); }
.legend-dot.selected { background: var(--accent); }

/* Formulier */
.field { margin-bottom: 16px; }

/* Honeypot — off-screen i.p.v. display:none, zodat simpele bots die display/visibility
   negeren het veld toch invullen en zichzelf zo verraden. */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.price-summary {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0;
  font-size: .9rem;
}
.price-summary .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); }
.price-summary .row.total { color: var(--ink); font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.checkbox-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-field label { font-size: .82rem; color: var(--ink-soft); font-weight: 500; }

/* ─── Disclaimer ────────────────────────────────────────────────────────── */
.disclaimer-box {
  background: var(--warn-bg); border: 1px solid rgba(201, 134, 10, .25);
  border-radius: var(--radius-sm); padding: 18px 20px; font-size: .87rem; color: #7a5608;
  display: flex; gap: 12px; align-items: flex-start;
}
.disclaimer-box .icon { font-size: 1.3rem; flex-shrink: 0; }

/* ─── Alerts / toasts ───────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; margin-bottom: 16px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-warn { background: var(--warn-bg); color: #7a5608; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 40px; color: var(--ink-muted); font-size: .85rem; text-align: center; }

/* ─── Admin ─────────────────────────────────────────────────────────────── */
.admin-shell { max-width: 1040px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.lock-screen { max-width: 380px; margin: 80px auto; text-align: center; }
.lock-screen .panel { text-align: left; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 10px 4px; margin-right: 18px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .92rem; color: var(--ink-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-confirmed { background: var(--ok-bg); color: var(--ok); }
.badge-declined { background: var(--danger-bg); color: var(--danger); }

.res-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.res-card .meta { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.res-edit-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.admin-product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.photo-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.photo-thumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb button {
  position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: .7rem; line-height: 1;
}
.upload-tile {
  width: 88px; height: 88px; border-radius: 10px; border: 2px dashed var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-muted);
  cursor: pointer; font-size: 1.4rem;
}
.upload-tile:hover { border-color: var(--accent); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .photo-slider { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
}
